/* Nico — Goals (nico-goals-native.js). Tokens only; dark / light / sierra. One column on phones and
   folded duos; list + side panel when the window is ≥ 720 px (iPad, unfolded, split view). */
html.gv-open, html.gv-open body { overflow: hidden; }
.gv-page { position: fixed; inset: 0; z-index: 900; background: var(--bg, var(--surface-1)); color: var(--text); font-family: var(--sans, -apple-system, system-ui, sans-serif); display: flex; justify-content: center; }
.gv-page[hidden], .gv-scrim[hidden] { display: none; }
.gv-page *, .gv-sheet * { box-sizing: border-box; }
.gv-wrap { width: 100%; max-width: 760px; display: flex; flex-direction: column; min-height: 0; padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.gv-wrap.two { max-width: 1180px; }
.gv-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 12px; flex-wrap: wrap; }
.gv-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.025em; flex: 1; min-width: 90px; }
.gv-back { appearance: none; border: 0; background: none; color: var(--accent); font: 500 16px var(--sans, system-ui); min-height: 44px; padding: 0 6px 0 0; cursor: pointer; }
.gv-new, .gv-primary { appearance: none; border: 0; background: var(--accent); color: var(--accent-ink, white); font: 600 14px var(--sans, system-ui); min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.gv-primary { width: 100%; min-height: 48px; font-size: 16px; border-radius: 14px; margin-top: 4px; }
.gv-primary:disabled { opacity: 0.55; }
.gv-seg { display: inline-flex; border: 0.5px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface-1); }
.gv-seg button, .gv-seg label span { appearance: none; border: 0; background: none; color: var(--text-2); font: 600 12.5px var(--sans, system-ui); padding: 0 12px; min-height: 34px; display: inline-flex; align-items: center; border-radius: 999px; cursor: pointer; }
.gv-seg button[aria-pressed="true"], .gv-seg input:checked + span { background: var(--surface-3, var(--surface-2)); color: var(--text); }
.gv-seg.wide { display: flex; width: 100%; }
.gv-seg.wide label { flex: 1; display: flex; }
.gv-seg.wide label span { flex: 1; justify-content: center; min-height: 40px; font-size: 14px; }
.gv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.gv-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.gv-cols { flex: 1; min-height: 0; display: flex; gap: 18px; }
.gv-body { flex: 1; min-width: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.gv-side { width: 420px; flex: none; overflow-y: auto; -webkit-overflow-scrolling: touch; border-left: 0.5px solid var(--line); padding: 4px 0 calc(28px + env(safe-area-inset-bottom)) 18px; }
.gv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gv-card { appearance: none; width: 100%; text-align: left; border: 0.5px solid var(--line); background: var(--surface-1); color: var(--text); border-radius: 16px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; font: inherit; cursor: pointer; }
.gv-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.gv-card.arch { opacity: 0.72; }
.gv-card:focus-visible, .gv-alert:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gv-row1 { display: flex; align-items: baseline; gap: 8px; }
.gv-title { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; flex: 1; min-width: 0; }
.gv-period { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.gv-row2, .gv-big { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.gv-val { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gv-big .gv-val { font-size: 40px; }
.gv-of { font-size: 14px; color: var(--text-2); flex: 1; }
.gv-scope { font-size: 11.5px; font-weight: 600; color: var(--text-2); border: 0.5px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.gv-bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-3, var(--surface-2)); margin: 6px 0 4px; }
.gv-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.gv-bar.behind > i { background: var(--warn, oklch(0.72 0.15 65)); }
.gv-bar.done > i, .gv-bar.ok > i { background: var(--ok, oklch(0.68 0.13 150)); }
.gv-bar.muted > i { background: var(--text-4); }
.gv-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text-2); border-radius: 1px; }
.gv-ms { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; border: 1.5px solid var(--line-bright, var(--line)); background: var(--surface-1); }
.gv-ms.hit { background: var(--text); border-color: var(--surface-1); }
.gv-pace { margin: 0; font-size: 13.5px; display: flex; gap: 8px; flex-wrap: wrap; color: var(--text-2); }
.gv-pace b { color: var(--text); }
.gv-pace.behind b { color: var(--warn-text, oklch(0.6 0.15 55)); }
.gv-pace.ok b, .gv-pace.done b { color: var(--ok-text, oklch(0.55 0.12 150)); }
.gv-find { margin: 0; font-size: 13.5px; color: var(--text-2); }
.gv-meta { font-size: 12px; color: var(--text-3); }
.gv-alert { appearance: none; width: 100%; text-align: left; border: 0.5px solid color-mix(in srgb, var(--warn, #d98a2b) 50%, var(--line)); background: color-mix(in srgb, var(--warn, #d98a2b) 10%, var(--surface-1)); color: var(--text); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font: inherit; cursor: pointer; }
.gv-alert b { font-size: 14px; }
.gv-alert span { font-size: 13.5px; color: var(--text-2); }
.gv-empty { padding: 22px 4px; }
.gv-empty h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.gv-empty p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 560px; }
.gv-starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gv-starters button { appearance: none; text-align: left; border: 0.5px solid var(--line); background: var(--surface-1); color: var(--text); border-radius: 14px; padding: 14px; min-height: 76px; display: flex; flex-direction: column; gap: 4px; font: inherit; cursor: pointer; }
.gv-starters b { font-size: 15px; }
.gv-starters span { font-size: 13px; color: var(--text-3); }
.gv-msg { margin: 0; font-size: 13.5px; color: var(--text-2); min-height: 0; }
.gv-msg:empty { display: none; }
.gv-link { appearance: none; border: 0; background: none; color: var(--accent); font: inherit; padding: 0; cursor: pointer; text-decoration: underline; }
.gv-muted { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.45; }
.gv-skel { display: flex; flex-direction: column; gap: 10px; }
.gv-skel i { display: block; height: 96px; border-radius: 16px; background: var(--surface-2); animation: gvp 1.2s ease-in-out infinite; }
@keyframes gvp { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .gv-skel i { animation: none; } }
.gv-detail { display: flex; flex-direction: column; gap: 8px; }
.gv-dtop { display: flex; align-items: flex-start; gap: 10px; }
.gv-dtop > div { flex: 1; min-width: 0; }
.gv-dtop h3 { margin: 0; font-size: 19px; font-weight: 680; letter-spacing: -0.02em; outline: none; }
.gv-dtop p { margin: 3px 0 0; font-size: 13px; color: var(--text-3); }
.gv-x { appearance: none; border: 0; background: var(--surface-2); color: var(--text-2); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.gv-x.sm { width: 30px; height: 30px; font-size: 17px; background: none; }
.gv-h4 { margin: 12px 0 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-4); }
.gv-spark { width: 100%; height: 64px; display: block; }
.gv-spark .a { fill: color-mix(in oklch, var(--accent) 14%, transparent); }
.gv-spark .l { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.gv-mss { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gv-mss li { border: 0.5px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-3); }
.gv-mss li b { font-size: 15px; color: var(--text-2); }
.gv-mss li.hit { background: var(--surface-2); }
.gv-mss li.hit b { color: var(--text); }
.gv-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gv-checks li { display: flex; align-items: center; gap: 6px; border-bottom: 0.5px solid var(--line); }
.gv-check { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.gv-check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.gv-check input:checked + span { color: var(--text-3); text-decoration: line-through; }
.gv-add { display: flex; gap: 8px; }
.gv-add input, .gv-form input:not([type="radio"]) { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0.5px solid var(--line); background: var(--surface-1); color: var(--text); font: 16px var(--sans, system-ui); }
.gv-add button { appearance: none; border: 0.5px solid var(--line); background: var(--surface-2); color: var(--text); font: 600 14px var(--sans, system-ui); min-height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer; }
.gv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gv-acts button { appearance: none; border: 0.5px solid var(--line); background: var(--surface-1); color: var(--text); font: 500 14px var(--sans, system-ui); min-height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer; }
.gv-acts button.danger { color: var(--danger, oklch(0.58 0.2 25)); }
.gv-scrim { position: fixed; inset: 0; z-index: 950; background: color-mix(in oklch, black 38%, transparent); display: flex; align-items: flex-end; justify-content: center; }
.gv-sheet { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg, var(--surface-1)); color: var(--text); border-radius: 18px 18px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); font-family: var(--sans, -apple-system, system-ui, sans-serif); }
@media (min-width: 720px) { .gv-scrim { align-items: center; } .gv-sheet { border-radius: 18px; max-height: 86vh; } }
.gv-form { display: flex; flex-direction: column; gap: 12px; }
.gv-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gv-form legend, .gv-lbl { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0; margin-bottom: 2px; }
.gv-metrics { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 520px) { .gv-metrics { grid-template-columns: 1fr 1fr; } }
.gv-opt { display: flex; gap: 10px; align-items: flex-start; border: 0.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 52px; cursor: pointer; background: var(--surface-1); }
.gv-opt input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.gv-opt b { display: block; font-size: 14.5px; }
.gv-opt small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.gv-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.gv-dates { display: flex; gap: 10px; }
.gv-dates[hidden] { display: none; }
.gv-dates label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 380px) { .gv-head h2 { font-size: 23px; } .gv-val { font-size: 24px; } .gv-mss { grid-template-columns: repeat(2, 1fr); } }
/* phones: Back · Goals · New goal on one line, Active / Archived on its own line below */
@media (max-width: 600px) {
  .gv-head .gv-new { order: 2; min-height: 38px; padding: 0 14px; }
  .gv-head .gv-seg { order: 3; width: 100%; }
  .gv-head .gv-seg button { flex: 1; justify-content: center; }
}
/* Salestools targets */
.gv-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 2px 0; flex-wrap: wrap; }
.gv-sec h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.gv-sec span { font-size: 12.5px; color: var(--text-3); }
.gv-tick.proj { background: var(--text-3); width: 2px; opacity: 0.7; }
.gv-people, .gv-recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gv-people li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 40px; border-bottom: 0.5px solid var(--line); font-size: 14px; }
.gv-people li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-recs li { padding: 8px 0; border-bottom: 0.5px solid var(--line); font-size: 14px; line-height: 1.45; }
.gv-pill { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; border: 0.5px solid var(--line); color: var(--text-2); white-space: nowrap; }
.gv-pill:empty { display: none; }
.gv-pill.behind { color: var(--warn-text, oklch(0.6 0.15 55)); }
.gv-pill.ok, .gv-pill.done { color: var(--ok-text, oklch(0.55 0.12 150)); }
.gv-btn { display: inline-flex; align-items: center; border: 0.5px solid var(--line); background: var(--surface-1); color: var(--text); font: 500 14px var(--sans, system-ui); min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; }
.gv-form > .gv-seg.wide button { flex: 1; justify-content: center; min-height: 40px; font-size: 14px; }
