/* =====================================================================
   VALOENT — Shared design system (v3, green theme)
   Light rail + paper background, deep-green ink, mint accents, Inter.
   Class names are unchanged from v2 so all pages inherit the new look.
   ===================================================================== */
:root {
  --ink: #172b2a;
  --green: #235c4e;
  --green-dark: #1a463c;
  --mint: #d5f2b5;
  --sage: #a3c77c;
  --paper: #f7f8f2;
  --card: #ffffff;
  --line: #dce3d9;
  --muted: #596866;

  /* legacy aliases used by existing markup */
  --navy: #235c4e;
  --navy-end: #1a463c;
  --navy-dark: #172b2a;
  --navy-900: #172b2a;
  --slate: #596866;
  --slate-light: #7d8c8a;
  --brass: #235c4e;
  --brass-light: #e6f3da;
  --teal: #1f6b4f;
  --teal-light: #e1f4d2;
  --amber: #7a5a0a;
  --amber-light: #fbf1cf;
  --red: #a23c3c;
  --red-light: #fbeaea;
  --soft-primary: #e6f3da;
  --radius: 14px;

  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 750; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
a { color: inherit; }

/* ---------- App shell: light rail ---------- */
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: #fff; border-right: 1px solid var(--line); color: var(--ink);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand {
  display: flex; flex-direction: column; font-weight: 800; font-size: 1.25rem; color: var(--ink);
  padding: 2px 10px 18px; letter-spacing: -0.03em; text-transform: lowercase;
}
.sidebar .brand::before {
  content: ""; display: block; width: 30px; height: 30px; margin-bottom: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M4 9H14L24 29L19 39L4 9Z' fill='%23235c4e'/%3E%3Cpath d='M21 39L36 9H46L29 43C27.5 46 23.5 46 22 43L21 39Z' fill='%23235c4e'/%3E%3Cpath d='M17.5 22L22.5 12H33L28 22H17.5Z' fill='%23a3c77c'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sidebar .brand span {
  display: block; font-weight: 700; font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--muted);
  cursor: pointer; border: 1px solid transparent; background: none; text-align: left; width: 100%;
}
.nav-item:hover { background: #f1f5ec; color: var(--ink); }
.nav-item.active { background: var(--mint); color: var(--green-dark); border-color: #c4e6a0; }
.nav-count { margin-left: auto; font-size: 0.75rem; font-weight: 700; background: #eef3e8; color: var(--green); border-radius: 100px; padding: 1px 8px; }
.nav-item.active .nav-count { background: #fff; }
.sidebar-foot { margin-top: auto; padding: 12px 6px 0; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); word-break: break-all; }

.main { padding: 28px 40px 60px; max-width: 1240px; width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.topbar h1 { font-size: 1.7rem; font-weight: 750; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.pill.teal { background: var(--teal-light); color: var(--teal); }
.pill.brass { background: var(--brass-light); color: var(--green); }
.pill.amber { background: var(--amber-light); color: var(--amber); }
.pill.red { background: var(--red-light); color: var(--red); }

/* ---------- Metric cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 18px; margin-bottom: 0 !important; }
.kpi:first-child { background: var(--green); border-color: var(--green); }
.kpi:first-child .kpi-label, .kpi:first-child .kpi-meta { color: #cfe3cf; }
.kpi:first-child .kpi-value { color: #fff; }
.kpi-label { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.kpi-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.kpi-meta { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Panels ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card h2 { font-size: 1.08rem; font-weight: 750; margin-bottom: 4px; }
.card h3 { font-size: 1rem; }
.card .sub, .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

label { display: block; font-size: 0.82rem; font-weight: 650; color: var(--muted); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.94rem; background: #fff; margin-bottom: 14px; color: var(--ink);
}
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]) { min-height: 42px; }
select { -webkit-appearance: none; appearance: none; height: 42px; padding: 0 34px 0 12px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235c6c63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
select[multiple], select[size]:not([size="1"]) { -webkit-appearance: auto; appearance: auto; height: auto; padding: 8px; background-image: none; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

button.btn {
  background: var(--green); color: #fff; border: 1px solid var(--green);
  padding: 10px 18px; border-radius: 100px; font-family: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer;
  transition: background .15s ease;
}
button.btn:hover { background: var(--green-dark); }
button.btn:disabled { opacity: .6; cursor: not-allowed; }
button.btn.secondary { background: #fff; color: var(--green); border: 1px solid var(--green); }
button.btn.secondary:hover { background: #f1f7ea; }
button.btn.ghost { background: none; color: var(--muted); border: none; padding: 6px 10px; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state h3 { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 6px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 0.9rem; opacity: 0; transform: translateY(8px); transition: all .25s ease; pointer-events: none; z-index: 999; }
.toast.show { opacity: 1; transform: translateY(0); }

.section { display: none; }
.section.active { display: block; }
.view-hidden { display: none !important; }

/* ---------- Stepper (profile + requirement flows) ---------- */
.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.step-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 0.85rem; font-weight: 650; color: var(--muted); cursor: pointer; }
.step-pill b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #eef3e8; color: var(--green); font-size: 0.75rem; }
.step-pill.active { background: var(--mint); border-color: #c4e6a0; color: var(--green-dark); }
.step-pill.active b { background: var(--green); color: #fff; }
.step-pane { display: none; }
.step-pane.active { display: block; }
.step-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.review-list { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 0.92rem; margin: 0 0 16px; }
.review-list dt { color: var(--muted); font-weight: 650; }
.review-list dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; border-right: none; border-bottom: 1px solid var(--line); gap: 6px; }
  .sidebar .brand { flex-direction: row; align-items: center; gap: 8px; padding: 0 8px 0 0; width: 100%; }
  .sidebar .brand::before { margin: 0; width: 24px; height: 24px; }
  .sidebar .brand span { margin: 0 0 0 auto; }
  .nav-item { width: auto; padding: 8px 12px; font-size: 0.88rem; }
  .sidebar-foot { margin: 0; padding: 0; border: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .sidebar-foot .nav-item { width: auto; }
  .main { padding: 20px 16px 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .review-list { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}
.step-hidden { display: none !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); width: 18px; height: 18px; padding: 0; margin: 0; flex: 0 0 18px; }
/* checkbox rows: box first, text beside it, aligned to the first line */
.check { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; margin: 0 0 10px; font-size: .92rem; font-weight: 500; color: var(--ink); line-height: 1.45; cursor: pointer; text-align: left; }
.check input { margin-top: 2px; }
.check span { flex: 1; min-width: 0; }
.checks { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafcf7; }
.checks .check:last-child { margin-bottom: 0; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--green); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--soft, #edf2e7); }

.hint { font-size: 0.8rem; color: var(--muted); margin: -6px 0 12px; }
.group-title { font-size: 0.8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.status-chip { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 100px; padding: 2px 10px; background: var(--mint); color: var(--green-dark); }
.status-chip.done { background: #eef3e8; color: var(--muted); }
.proj-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.proj-card h3 { font-size: 1rem; margin: 0 0 4px; }
.proj-meta { font-size: 0.85rem; color: var(--muted); }
.proj-card p { margin: 6px 0 0; font-size: 0.88rem; color: var(--ink); max-width: 640px; }
.consent-box { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); font-size: 0.92rem; line-height: 1.5; }
.consent-box input { margin: 3px 0 0; flex-shrink: 0; }
.kpis + .kpis .kpi:first-child { background: var(--card); border-color: var(--line); }
.kpis + .kpis .kpi:first-child .kpi-label, .kpis + .kpis .kpi:first-child .kpi-meta { color: var(--muted); }
.kpis + .kpis .kpi:first-child .kpi-value { color: var(--ink); }

/* ---- Shared brand: logo, public header and footer (all pages) ---- */
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; text-transform: none; }
.site-logo svg { width: 32px; height: 32px; flex: 0 0 auto; }
.site-logo .dot, .sidebar .brand .dot { color: #6e9366; font-style: normal; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 6%; background: #fff; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; font-weight: 600; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--green); }
.site-header nav a.cta { background: var(--green); color: #fff; padding: 9px 16px; border-radius: 999px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 28px 6% 34px; margin-top: 40px; font-size: 0.88rem; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 640px) { .site-header nav a:not(.cta) { display: none; } .site-logo { font-size: 1.3rem; } }

/* ---- Dashboard polish (v6) ---- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head .crumb { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.page-head h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.15; margin: 0; font-weight: 750; }
.page-head .page-sub { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.page-actions { display: flex; align-items: center; gap: 12px; }
.ws-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 2px 12px 8px; }
.link-arrow { font: inherit; font-size: .82rem; font-weight: 700; color: var(--green); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-bottom: 20px; }
.dash-grid .stack > .card { margin-bottom: 16px; }
.card.dark { background: var(--ink); color: #f6f8f0; border-color: var(--ink); }
.card.dark h2 { color: #fff; }
.card.dark .sub, .card.dark .hint { color: #bdccc2; }
.card.dark .link-arrow { color: #d5f2b5; }
.avail-now { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 750; margin: 10px 0 4px; }
.avail-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #d5f2b5; flex: 0 0 auto; }
.avail-now.off::before { background: #8fa39a; }
.kv-line { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #ffffff22; padding-top: 12px; margin-top: 14px; font-size: .88rem; }
.mini-profile { display: flex; gap: 12px; align-items: center; margin: 10px 0 8px; }
.mini-profile .av { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--green); display: grid; place-items: center; font-weight: 750; flex: 0 0 auto; }
.mini-profile .nm { font-weight: 700; } .mini-profile .hl { font-size: .85rem; color: var(--muted); }
.opp-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; margin-bottom: 12px; }
.opp-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.opp-card .org { font-size: .8rem; color: var(--muted); }
.opp-card h3 { font-size: 1.05rem; margin: 4px 0 6px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.opp-card .desc { font-size: .9rem; color: var(--muted); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.opp-card .why { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { font-size: .75rem; font-weight: 600; background: #eef3e8; color: var(--green); border-radius: 8px; padding: 3px 9px; }
.opp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; flex-wrap: wrap; }
.opp-foot .price { font-weight: 750; font-size: 1rem; }
.opp-foot .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.todo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.todo-row:first-child { border-top: 0; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.mini-row:first-child { border-top: 0; }
.mini-row .t { font-weight: 650; overflow-wrap: anywhere; } .mini-row .s { font-size: .8rem; color: var(--muted); }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
.pill.gray { background: #eef1ec; color: var(--muted); }

/* ---- v16 modern polish ---- */
body { background: radial-gradient(1200px 500px at 85% -10%, #e6f2d8 0%, transparent 60%), var(--paper); background-attachment: fixed; }
.page-head.hero { position: relative; overflow: hidden; border: 0; border-radius: 22px; padding: 30px 32px; margin-bottom: 22px; color: #f6f8f0;
  background: radial-gradient(520px 260px at 92% 0%, #3b8a6e55, transparent 70%), radial-gradient(380px 220px at 0% 110%, #a3c77c33, transparent 70%), linear-gradient(135deg, #14302c 0%, #1d4a3f 100%); box-shadow: 0 18px 40px -22px #172b2a99; }
.page-head.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(#ffffff14 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-head.hero > * { position: relative; z-index: 1; }
.page-head.hero .crumb { color: #a9d68b; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.page-head.hero .crumb::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a9d68b; margin-right: 8px; box-shadow: 0 0 0 4px #a9d68b33; }
.page-head.hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.page-head.hero .page-sub { color: #c3d4c9; }
.page-head.hero .btn { background: var(--mint); color: #12302a; border-color: var(--mint); box-shadow: 0 6px 20px -8px #a9d68b; }
.page-head.hero .btn.ghost { background: #ffffff14; color: #fff; border-color: #ffffff33; box-shadow: none; }
.kpi { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px #172b2a66; }
.kpi::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, #a3c77c33, transparent 70%); }
.card { transition: box-shadow .18s ease, border-color .18s ease; }
.card:hover { box-shadow: 0 12px 30px -22px #172b2a77; }
.btn:not(.ghost):not(.secondary) { box-shadow: 0 8px 18px -10px #235c4e; transition: transform .15s ease, box-shadow .15s ease; }
.btn:not(.ghost):not(.secondary):hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px #235c4e; }
:focus-visible { outline: 2px solid #6e9366; outline-offset: 2px; }
.nav-item.active { background: linear-gradient(90deg, #235c4e12, transparent); box-shadow: inset 3px 0 0 var(--green); }
.chip, .tag { border-radius: 999px; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.serif-accent { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; color: var(--green); }
.glass { background: #ffffffb3; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #ffffffcc; }
@media (max-width: 700px) { .page-head.hero { padding: 22px 20px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* legal / info pages (v16) */
body .legal-wrap { max-width: 820px; margin: 36px auto 70px; padding: 44px clamp(22px, 5vw, 56px) 52px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 50px -34px #172b2a88; position: relative; }
body .legal-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, #235c4e, #a3c77c); }
body .legal-wrap h1 { font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.1; }
body .legal-wrap h2 { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.2rem; letter-spacing: -.01em; }
body .legal-wrap .back-link { font-weight: 650; color: var(--green); text-decoration: none; }
@media (max-width: 700px) { body .legal-wrap { margin: 16px 12px 50px; border-radius: 18px; } }

/* ---- hiring pipeline (v17) ---- */
.vmodal { position: fixed; inset: 0; z-index: 9000; background: #172b2a99; backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.vmodal-box { position: relative; background: #fff; border-radius: 20px; padding: 28px; width: min(520px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 70px -30px #000a; }
.vmodal-box.wide { width: min(960px, 100%); }
.vmodal-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.room-frame { width: 100%; height: min(62vh, 560px); border: 0; border-radius: 12px; background: #0f1d1c; }
.pcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pcard-body { font-size: .9rem; color: var(--ink); margin: 10px 0 2px; line-height: 1.55; }
.pcard-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sug { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.sug-title { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.sug-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #eef5e4; border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; }
.win-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 10px; }
#be-monthly.win-row { grid-template-columns: 1fr 1fr; }
.win-row label { font-size: .85rem; font-weight: 600; display: grid; gap: 6px; }
.win-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; cursor: pointer; font-size: .92rem; }
.win-opt input { width: auto; margin: 0; }
.be-est { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--green); color: #fff; border-radius: 14px; padding: 16px; margin: 14px 0; }
.be-est span { display: block; font-size: .78rem; color: #cfe3cf; }
.be-est b { font-size: 1.5rem; letter-spacing: -.02em; color: var(--mint); }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pf-grid div { background: #f2f6ec; border-radius: 10px; padding: 10px 12px; }
.pf-grid b { display: block; font-size: 1.05rem; } .pf-grid span { font-size: .78rem; color: var(--muted); }
.build-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #eef5e4, #e3eed3); border-color: #b9d2a6; margin-bottom: 16px; }

/* v18 AI match reason */
.why{font-size:13px;color:var(--muted,#5b6472);margin:6px 0 2px;line-height:1.4}
.ai-tag{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.06em;padding:1px 6px;border-radius:999px;background:#eef2ff;color:#3b4fd8;margin-right:4px;vertical-align:1px}

/* v19 in-app back / forward arrows */
.nav-arrows{display:flex;gap:8px;margin-bottom:10px}
.nav-arrow{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.7);color:inherit;cursor:pointer;transition:transform .15s,background .15s,box-shadow .15s,opacity .15s;padding:0}
.nav-arrow:hover:not(:disabled){background:#fff;transform:translateY(-1px);box-shadow:0 4px 12px rgba(20,40,30,.12)}
.nav-arrow:disabled{opacity:.3;cursor:default}
.page-head.hero .nav-arrow{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);color:#f6f8f0}
.page-head.hero .nav-arrow:hover:not(:disabled){background:rgba(255,255,255,.26)}

/* v20 clickable KPI tiles */
.kpi-link { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.kpi-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,40,20,.10); border-color: var(--green); }
.kpi-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* v20 requirements flow */
.req-intro { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.req-intro h2 { margin:0 0 4px; }
.req-card { border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:12px; background:#fff; }
.req-card.closed { opacity:.65; }
.req-card-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.req-card h3 { margin:0 0 4px; font-size:1.05rem; }
.req-meta { color:var(--muted); font-size:.85rem; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.req-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; align-items:center; }
.ws-hide { display:none !important; }
.flow-steps { list-style:none; display:flex; gap:6px; padding:0; margin:10px 0 14px; flex-wrap:wrap; }
.flow-steps li { display:flex; align-items:center; gap:7px; padding:6px 12px; border-radius:100px; background:#eef1ec; color:var(--muted); font-size:.82rem; font-weight:650; }
.flow-steps li b { display:inline-flex; width:20px; height:20px; border-radius:50%; align-items:center; justify-content:center; background:#fff; font-size:.75rem; }
.flow-steps li.now { background:var(--green); color:#fff; } .flow-steps li.now b { color:var(--green); }
.flow-steps li.done { background:var(--teal-light); color:var(--teal); }
.choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:16px; }
@media (max-width:720px){ .choice-grid { grid-template-columns:1fr; } }
.choice { border:1px solid var(--line); border-radius:14px; padding:18px; display:flex; flex-direction:column; gap:8px; }
.choice.primary { border:2px solid var(--green); background:#f6faf1; }
.choice h3 { margin:0; } .choice p { margin:0 0 6px; color:var(--muted); flex:1; font-size:.92rem; }
.choice-tag { font-size:.75rem; font-weight:700; color:var(--green); }
.ai-think { display:flex; align-items:center; gap:10px; padding:18px 0; color:var(--muted); }
.spinner { width:16px; height:16px; border:2px solid #cfd8c8; border-top-color:var(--green); border-radius:50%; animation:vspin .8s linear infinite; display:inline-block; }
@keyframes vspin { to { transform:rotate(360deg); } }
.role-row { display:grid; grid-template-columns:2fr 90px 3fr auto; gap:10px; align-items:end; padding:12px 0; border-top:1px solid var(--line); }
.role-row label { font-size:.78rem; font-weight:650; color:var(--muted); display:flex; flex-direction:column; gap:4px; margin:0; }
.role-row input { margin:0; }
@media (max-width:720px){ .role-row { grid-template-columns:1fr 1fr; } .role-row label:first-child,.rr-skills-l { grid-column:1/-1; } }
.flow-actions { display:flex; gap:10px; align-items:center; margin-top:16px; flex-wrap:wrap; }
.role-panel { border:1px solid var(--line); border-radius:14px; padding:14px; margin-top:14px; }
.role-panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.cand-card { display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:8px; cursor:pointer; }
.cand-card input { width:auto; margin:4px 0 0; }
.cand-card:has(input:checked) { border-color:var(--green); background:#f6faf1; }
.cand-body { flex:1; min-width:0; } .cand-top { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.chips { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.chip { background:#eef1ec; border-radius:100px; padding:2px 10px; font-size:.75rem; }
.ws-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.auto-steps { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.auto-steps li { display:flex; align-items:center; gap:10px; color:var(--muted); }
.auto-steps li.now { color:var(--ink,#1b2b22); font-weight:650; }
.auto-steps li.done { color:var(--teal); }
.btn.danger{color:var(--red,#b42318)} .btn.danger:hover{background:var(--red-light,#fdecea)}

/* v24 single-page requirement form */
.post-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:28px; margin-top:6px; align-items:start; }
@media (max-width:900px){ .post-grid { grid-template-columns:1fr; gap:0; } }
.post-right .hint { margin-top:4px; }
.budget-row { display:grid; grid-template-columns:110px 1fr; gap:8px; }
.budget-row select, .budget-row input { margin:0; }
.post-actions { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
[data-tip] { position:relative; }
[data-tip]::after { content:attr(data-tip); position:absolute; left:0; bottom:calc(100% + 10px); width:min(340px,80vw); background:#1b2b22; color:#fff; padding:10px 12px; border-radius:10px; font-size:.82rem; font-weight:500; line-height:1.45; text-align:left; white-space:normal; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .15s; z-index:40; box-shadow:0 8px 24px rgba(0,0,0,.18); }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity:1; visibility:visible; }

.mini-click{cursor:pointer;border-radius:8px}.mini-click:hover{background:var(--soft,#f1f5f2)}.pf-resume{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.pf-resume pre{white-space:pre-wrap;font:inherit;font-size:.86rem;max-height:320px;overflow:auto;background:var(--soft,#f1f5f2);border-radius:10px;padding:12px;margin:8px 0 0}

button.btn.secondary.reject{color:var(--red,#b3261e);border-color:var(--red,#b3261e)}button.btn.secondary.reject:hover{background:var(--red-light,#fbeaea)}

/* v31 - notification panel */
.notif-panel{position:fixed;z-index:60;width:min(380px,calc(100vw - 24px));max-height:70vh;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px #0b2a2022;display:flex;flex-direction:column;overflow:hidden}
.notif-panel[hidden]{display:none}
.np-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.np-all{background:none;border:0;color:var(--green);font-weight:700;font-size:.82rem;cursor:pointer}.np-all:disabled{color:var(--muted);cursor:default}
.np-list{overflow:auto}
.np-item{display:flex;gap:10px;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--line);padding:12px 16px;cursor:pointer;font:inherit}
.np-item:hover{background:#f4f8f1}.np-item.unread{background:#f1f8ec}
.np-dot{flex:0 0 9px;height:9px;margin-top:6px;border-radius:50%;background:transparent}.np-item.unread .np-dot{background:var(--green)}
.np-txt{display:flex;flex-direction:column;gap:2px;min-width:0}.np-txt b{font-size:.9rem}.np-txt span{font-size:.84rem;color:var(--muted)}.np-txt small{font-size:.75rem;color:var(--muted)}
.np-empty{padding:28px 16px;text-align:center;color:var(--muted)}
.bell-btn{position:relative;font-size:1.1rem}
.bell-btn .pill{position:absolute;top:-6px;right:-10px;padding:2px 6px;font-size:.7rem}

/* v31 - next interview banner */
.next-interview{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 18px;padding:16px 20px;border-radius:18px;background:#eaf5e4;border:1px solid #cfe5c4}
.next-interview[hidden]{display:none}
.next-interview .ni-kicker{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
.next-interview .ni-title{font-size:1.1rem;font-weight:750;margin:2px 0}.next-interview .ni-title span{font-weight:500;color:var(--muted)}
.next-interview .ni-meta{font-size:.88rem;color:var(--muted)}
.next-interview .ni-acts{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.next-interview .ni-acts a.btn{text-decoration:none;display:inline-block}
.next-interview .ni-wait{font-size:.82rem;color:var(--muted)}
.next-interview.soon{background:#dff3d4;border-color:#9fd18a}
.next-interview.live{background:var(--green-dark,#1d4a3c);border-color:var(--green-dark,#1d4a3c);color:#fff}
.next-interview.live .ni-kicker,.next-interview.live .ni-title,.next-interview.live .ni-title span,.next-interview.live .ni-meta{color:#fff}
.next-interview.live .btn{background:#fff;color:var(--green-dark,#1d4a3c)}
.next-interview.live .btn.secondary{background:transparent;color:#fff;border:1px solid #ffffff88}
.ni-live{display:inline-flex;align-items:center;gap:6px;font-weight:800}.ni-live i{width:9px;height:9px;border-radius:50%;background:#7CFC9A;animation:ni-pulse 1.4s infinite}
@keyframes ni-pulse{0%{box-shadow:0 0 0 0 #7cfc9a99}100%{box-shadow:0 0 0 10px #7cfc9a00}}
/* v31: banner links styled as buttons */
.next-interview .ni-acts a.btn{padding:10px 18px;border-radius:999px;font-weight:700;font-size:.9rem;background:var(--green);color:#fff;border:1px solid var(--green);cursor:pointer}
.next-interview .ni-acts a.btn.secondary{background:#fff;color:var(--green);border:1px solid var(--green)}
.next-interview.live .ni-acts a.btn{background:#fff;color:var(--green-dark,#1d4a3c);border-color:#fff}
.next-interview.live .ni-acts a.btn.secondary{background:transparent;color:#fff;border:1px solid #ffffff99}

/* round icon actions with a hover label (Edit, Close, Delete, Reopen) */
.btn-ico { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--green); background: #fff; color: var(--green); display: inline-grid; place-items: center; padding: 0; cursor: pointer; transition: background .15s, color .15s; }
.btn-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-ico:hover, .btn-ico:focus-visible { background: #f1f7ea; }
.btn-ico.danger { color: var(--red, #b3261e); border-color: var(--red, #b3261e); }
.btn-ico.danger:hover, .btn-ico.danger:focus-visible { background: var(--red-light, #fbeaea); }
.btn-ico::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(3px); background: #172b2a; color: #fff; font-size: .74rem; font-weight: 600; line-height: 1; padding: 6px 9px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 20; }
.btn-ico:hover::after, .btn-ico:focus-visible::after { opacity: 1; transform: translateX(-50%); }

select { background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px 8px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235c6c63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") !important; text-overflow: ellipsis; font-size: .9rem; }
select[multiple], select[size]:not([size="1"]) { background-image: none !important; }
