/* /vstup and /vstup/<код>: calculator, cut-off lists, specialty pages */
.vs-wrap [hidden] { display:none !important; }   /* labels below are flex */
.vs-wrap { max-width:960px; margin:0 auto; padding:28px 16px 100px; }
.vs-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:20px 22px; margin-bottom:18px; }
.vs-card h2 { font-size:17px; color:var(--navy); margin-bottom:12px; line-height:1.3; }
.vs-card h3 { font-size:15px; color:var(--navy); margin:14px 0 8px; }
.vs-note { padding:12px 14px; border-radius:12px; background:rgba(245,200,66,.16); color:#6B4E00; font-size:14px; line-height:1.55; margin-bottom:18px; }
.vs-note a, .vs-muted a, .vs-list a { color:inherit; text-decoration:underline; }
.vs-muted { font-size:13.5px; color:var(--muted); line-height:1.6; margin:8px 0; }
.vs-crumbs { font-size:14px; margin-bottom:10px; color:rgba(255,255,255,.7); }
.vs-crumbs a { color:var(--gold); }
.vs-list { padding-left:18px; font-size:15px; line-height:1.7; }
.vs-tag { display:inline-block; font-size:11px; font-weight:800; padding:1px 7px; border-radius:99px; background:rgba(34,197,94,.14); color:#14532D; vertical-align:1px; }
.vs-sub { font-size:12.5px; color:var(--muted); }
.vs-err { color:#B91C1C; font-weight:700; }
.vs-ok { color:#15803D; font-weight:700; }

/* coefficient table */
.vs-coef { width:100%; border-collapse:collapse; font-size:15px; }
.vs-coef td { padding:7px 4px; border-bottom:1px solid var(--border); }
.vs-coef td:last-child { text-align:right; font-weight:800; color:var(--navy); white-space:nowrap; }

/* forms */
.vs-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; }
.vs-mini { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; align-items:end; }
.vs-card label, .vs-mini label { display:flex; flex-direction:column; gap:5px; font-size:13.5px; font-weight:700; color:var(--navy); }
.vs-card input[type=number], .vs-card input[type=search], .vs-card select {
  width:100%; padding:11px 12px; border:1.5px solid var(--border); border-radius:12px; font-size:16px; background:#fff; color:var(--text);
}
.vs-card input:focus-visible, .vs-card select:focus-visible { outline:2px solid var(--navy); outline-offset:1px; border-color:var(--navy); }
.vs-card label.vs-check { flex-direction:row; align-items:flex-start; gap:8px; font-weight:600; line-height:1.4; }
.vs-check input { width:18px; height:18px; margin-top:1px; flex-shrink:0; }
.vs-hint { font-size:12.5px; font-weight:500; color:var(--muted); }
.vs-search { position:relative; }
.vs-opts { list-style:none; margin-top:6px; border:1px solid var(--border); border-radius:12px; max-height:290px; overflow:auto; background:#fff; }
.vs-opts:empty { display:none; }
.vs-opts button { display:block; width:100%; text-align:left; padding:10px 12px; border:0; background:none; font-size:14.5px; cursor:pointer; color:var(--text); border-bottom:1px solid var(--border); }
.vs-opts li:last-child button { border-bottom:0; }
.vs-opts button:hover, .vs-opts button:focus-visible { background:rgba(26,39,68,.06); outline:none; }
.vs-opts b { color:var(--navy); margin-right:6px; }
.vs-picked { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 12px; border-radius:12px; background:rgba(26,39,68,.05); margin-top:8px; font-weight:700; color:var(--navy); }
.vs-picked a { font-size:13px; font-weight:600; color:var(--navy); }
.vs-picked button { border:0; background:none; color:var(--muted); font-size:13px; cursor:pointer; text-decoration:underline; }
.vs-prefill { padding:10px 12px; border-radius:12px; background:rgba(34,197,94,.1); color:#15803D; font-size:14px; font-weight:600; margin-bottom:12px; }
.vs-prefill:empty { display:none; }
details.vs-more summary { cursor:pointer; font-weight:700; color:var(--navy); font-size:14px; margin-top:12px; }
details.vs-more[open] summary { margin-bottom:10px; }

/* result */
.vs-kb { font-family:'Unbounded',sans-serif; font-size:clamp(34px,7vw,48px); font-weight:800; color:var(--navy); line-height:1.1; margin:4px 0 6px; }
.vs-res-head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.vs-badge { display:inline-block; padding:5px 12px; border-radius:99px; font-size:13.5px; font-weight:800; }
.vs-badge.ok { background:rgba(34,197,94,.14); color:#15803D; }
.vs-badge.no { background:#FEE2E2; color:#B91C1C; }
.vs-badge.fc { background:rgba(245,200,66,.22); color:#6B4E00; }
.vs-steps { margin-top:12px; font-size:14.5px; line-height:1.75; overflow-wrap:anywhere; }
.vs-steps code { font-family:inherit; background:rgba(26,39,68,.05); padding:1px 6px; border-radius:6px; }
.vs-gains { display:grid; gap:10px; }
.vs-gain { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 12px; border:1px solid var(--border); border-radius:12px; }
.vs-gain b { color:var(--navy); }
.vs-gain .vs-plus { font-weight:800; color:#15803D; white-space:nowrap; }
.vs-gain .vs-plus.vs-err { color:#B91C1C; white-space:normal; }

/* cut-off lists */
.vs-filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.vs-filters label { flex:1 1 180px; }
.vs-groups { display:grid; gap:14px; }
.vs-group h3 { display:flex; align-items:center; gap:8px; }
.vs-dot { width:10px; height:10px; border-radius:50%; display:inline-block; }
.vs-dot.high { background:#22C55E; } .vs-dot.mid { background:#F5C842; } .vs-dot.low { background:#EF4444; }
.vs-zvo { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); font-size:14.5px; }
.vs-zvo:last-child { border-bottom:0; }
.vs-zvo .vs-min { text-align:right; white-space:nowrap; font-weight:800; color:var(--navy); }
.vs-zvo .vs-min span { display:block; font-size:12px; font-weight:600; color:var(--muted); }
.vs-showall { margin-top:8px; border:0; background:none; color:var(--navy); font-weight:700; text-decoration:underline; cursor:pointer; font-size:14px; }
.vs-tablewrap { overflow-x:auto; }
.vs-cut { width:100%; border-collapse:collapse; font-size:14px; }
.vs-cut th { text-align:left; font-size:12.5px; color:var(--muted); font-weight:700; padding:8px 6px; border-bottom:2px solid var(--border); }
.vs-cut td { padding:9px 6px; border-bottom:1px solid var(--border); vertical-align:top; }
.vs-cut td:nth-child(n+3) { white-space:nowrap; }
.vs-links { display:flex; flex-wrap:wrap; gap:8px; }
.vs-links a { padding:6px 11px; border-radius:99px; border:1px solid var(--border); font-size:13.5px; color:var(--navy); text-decoration:none; background:#fff; }
.vs-links a:hover { border-color:var(--navy); }
.vs-index h3 { margin-top:16px; }

@media (max-width:640px) {
  .vs-card { padding:16px 14px; border-radius:16px; }
  /* cut-off table → cards */
  .vs-cut thead { display:none; }
  .vs-cut, .vs-cut tbody, .vs-cut tr, .vs-cut td { display:block; width:100%; }
  .vs-cut tr { padding:10px 0; border-bottom:1px solid var(--border); }
  .vs-cut td { border:0; padding:2px 0; white-space:normal !important; }
  .vs-cut td[data-l]:not(:first-child)::before { content:attr(data-l) ': '; color:var(--muted); font-size:12.5px; }
}

/* Моя ціль (Pro) */
.vs-aim { display:block; margin:6px 0 0 auto; border:1px solid var(--border); background:#fff; border-radius:99px; padding:3px 10px; font-size:12.5px; font-weight:700; color:var(--navy); cursor:pointer; white-space:nowrap; }
.vs-aim.on { background:var(--navy); color:#fff; border-color:var(--navy); }
.vs-goal h3 { margin-top:18px; }
.vs-goal-sum { font-size:15.5px; margin-top:6px; }
.vs-seg { display:inline-flex; border:1px solid var(--border); border-radius:99px; overflow:hidden; }
.vs-seg button { border:0; background:#fff; padding:6px 12px; font-size:13px; font-weight:700; color:var(--navy); cursor:pointer; }
.vs-seg button.on { background:var(--navy); color:#fff; }
.vs-lock { padding:10px 12px; border:1px dashed var(--border); border-radius:12px; margin-top:8px; color:var(--muted); font-size:14px; background:repeating-linear-gradient(135deg,#fff,#fff 8px,#F7F7F9 8px,#F7F7F9 16px); }
.vs-dyn { display:grid; gap:8px; }
.vs-dyn-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; }
.vs-bar { flex:1 1 120px; height:8px; border-radius:99px; background:#EEF0F4; overflow:hidden; }
.vs-bar i { display:block; height:100%; background:var(--navy); border-radius:99px; }
.vs-save { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.vs-save input { flex:1 1 200px; padding:10px 12px; border:1.5px solid var(--border); border-radius:12px; font-size:16px; }
