/* =========================================================
   Vermey Music Sales: Pipeline + Radar
   House style of the offers (Instagram look): purple-blue gradient for money and highlights,
   lavender, white, Montserrat; JetBrains Mono for dates and numbers.
   ========================================================= */
:root {
  --grad: linear-gradient(135deg, #7E36E2 0%, #3653E2 100%);
  --white: #FFFFFF;
  --accent: #5B3BE2;
  --accent-dark: #4A2DC8;
  --ink: #111017;
  --body: #46444F;
  --muted: #6B687A;
  --placeholder: #9895A8;
  --line: #E7E4F0;
  --line2: #D6D2E6;
  --soft: #F3F1FC;
  --lav: #E6E0FA;
  --grey: #ECEAF2;
  --head: #FBFAFE;
  --bg: #F7F6FB;
  --lane: #EFEDF6;
  --lane2: #F4F3F8;
  --late: #E5484D;
  --late-ink: #C4262C;
  --late-soft: #FBEDEE;
  --today: #2F9E62;
  --today-ink: #1E7A49;
  --none: #E8A317;
  --none-ink: #8F6200;
  --planned: #A9A6B8;
  --on-grad: rgba(255, 255, 255, .86);
  --scrim: rgba(17, 16, 23, .3);
  --bar-later: #DCD8EA;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 0 0 1px rgba(0, 0, 0, .05);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1.5px rgba(91, 59, 226, .45), 0 6px 16px rgba(91, 59, 226, .12);
  --shadow-sheet: -12px 0 40px rgba(17, 16, 23, .12);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mark svg { display: block; width: 100%; height: auto; }
.mark path { fill: currentColor; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); font-weight: 600; }

/* ---------- controls ---------- */
.input, .select, textarea { background: var(--white); border: 0; box-shadow: inset 0 0 0 1.5px var(--line2); border-radius: 10px; min-height: 44px; padding: 0 12px; font-weight: 500; font-size: 14.5px; width: 100%; color: var(--ink); }
.input::placeholder, textarea::placeholder { color: var(--placeholder); }
.input:hover, .select:hover, textarea:hover { box-shadow: inset 0 0 0 1.5px var(--placeholder); }
.input:focus-visible, .select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--late); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B687A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
textarea { padding: 10px 12px; min-height: 96px; line-height: 1.5; resize: vertical; display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 0 16px; min-height: 44px; font-weight: 700; font-size: 13.5px; white-space: nowrap; background: var(--white); color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, opacity .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--soft); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-p { background: var(--grad); color: var(--white); box-shadow: none; }
.btn-p:hover { background: var(--grad); opacity: .9; }
.btn-k { background: var(--ink); color: var(--white); box-shadow: none; }
.btn-k:hover { background: var(--ink); opacity: .88; }
.btn-no { color: var(--late-ink); }
.btn-no:hover { background: var(--late-soft); }
.btn-no.sure { background: var(--late); color: var(--white); box-shadow: none; }
.btn-ghost { background: transparent; box-shadow: none; color: var(--muted); padding: 0 12px; }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.link { border: 0; background: none; padding: 0; min-height: 44px; font-weight: 700; font-size: 13.5px; color: var(--accent); }
.link:hover { text-decoration: underline; }
.link:active { opacity: .7; }
.link.danger { color: var(--late-ink); }
.field-label { display: block; font-weight: 700; font-size: 13.5px; margin: 14px 0 6px; }
.error { min-height: 1.4em; margin: 6px 0 0; font-weight: 600; font-size: 13px; color: var(--late-ink); }
.seg { display: flex; background: var(--white); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); }
.seg button { border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--muted); padding: 0 14px; min-height: 38px; border-radius: 8px; white-space: nowrap; transition: transform .15s; }
.seg button:hover { color: var(--ink); }
.seg button:active { transform: scale(.96); }
.seg button.on { background: var(--ink); color: var(--white); }
.seg button em { font-style: normal; font-family: var(--mono); font-weight: 500; opacity: .75; margin-left: 6px; }

/* ---------- avatars, dots, pills ---------- */
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 11px/1 var(--font); flex: none; background: var(--lav); color: var(--accent); }
.av.sales { background: var(--grad); color: var(--white); }
.av.me { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.s-late { background: var(--late); } .s-today { background: var(--today); } .s-none { background: var(--none); } .s-planned { background: var(--planned); }
.pill { display: inline-block; font-weight: 700; font-size: 11.5px; padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--accent); white-space: nowrap; }
.pill.nieuw { background: var(--grey); color: var(--muted); }
.pill.offerte { background: var(--grey); color: var(--body); }
.pill.akkoord { background: var(--grad); color: var(--white); }
.pill.nee { background: var(--late-soft); color: var(--late-ink); }
.chip { display: inline-block; font-weight: 700; font-size: 11px; padding: 4px 8px; border-radius: 6px; background: var(--grey); color: var(--body); white-space: nowrap; }
.chip-klant { background: var(--grad); color: var(--white); }
.chip-warm { background: var(--lav); color: var(--accent); }
.chip-bediend { background: var(--late-soft); color: var(--late-ink); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side { background: var(--grad); color: var(--white); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-side .mark { width: 72px; }
.login-side h2 { margin: 0; font-weight: 800; font-size: clamp(48px, 6vw, 88px); line-height: .92; letter-spacing: -.04em; }
.login-side p { margin: 14px 0 0; font-weight: 600; font-size: 16px; color: var(--on-grad); max-width: 380px; }
.login-main { display: flex; flex-direction: column; justify-content: center; padding: 48px 24px; max-width: 440px; width: 100%; margin: 0 auto; }
.login-main .mark { width: 48px; color: var(--accent); display: none; }
.login h1 { font-weight: 800; font-size: 30px; letter-spacing: -.025em; margin: 0 0 8px; }
.login-main > p { color: var(--muted); font-weight: 500; margin: 0 0 18px; }
.login form .btn { width: 100%; margin-top: 8px; }
.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }

/* ---------- top bar ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand .mark { width: 36px; color: var(--accent); }
.nav { display: flex; gap: 4px; height: 100%; }
.nav button { border: 0; background: none; padding: 0 14px; font-weight: 700; font-size: 14px; color: var(--muted); box-shadow: inset 0 -2px 0 transparent; }
.nav button:hover { color: var(--ink); }
.nav button:active { opacity: .7; }
.nav button[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.me { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 0 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; color: var(--muted); transition: transform .15s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }

/* ---------- page head ---------- */
.bar { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 28px 0 18px; }
.bar h1 { margin: 0; font-weight: 800; font-size: 28px; letter-spacing: -.025em; line-height: 1; }
.bar .sub { margin: 8px 0 0; font-weight: 500; font-size: 14px; color: var(--muted); }
.bar .sub b { color: var(--late-ink); font-weight: 700; }
.tools { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- commission ---------- */
.comm { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.earn { background: var(--grad); color: var(--white); border-radius: 14px; padding: 18px 20px 17px; }
.comm .lbl { font-weight: 700; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.earn .lbl { color: var(--on-grad); }
.earn b { display: block; font-weight: 800; font-size: 40px; letter-spacing: -.035em; line-height: 1; margin-top: 10px; }
.earn p { margin: 9px 0 0; font-weight: 500; font-size: 13px; line-height: 1.45; color: var(--on-grad); }
.earn p strong { color: var(--white); font-weight: 700; }
.ct { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 18px 16px; }
.ct b { display: block; font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1; margin-top: 10px; }
.ct p { margin: 8px 0 0; font-weight: 500; font-size: 13px; line-height: 1.45; color: var(--muted); }
.m-only { display: none; }

/* ---------- pipeline board ---------- */
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding-bottom: 18px; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .lead { font-weight: 700; color: var(--body); }
.lanes-h { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 10px; }
.lanes-h div { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 2px; }
.lanes-h div::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.lanes-h .ls { grid-column: 1 / 3; color: var(--accent); }
.lanes-h .lj { grid-column: 3 / 5; }
.lanes-h svg { width: 12px; height: 12px; flex: none; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-bottom: 40px; align-items: start; }
.col { background: var(--lane); border-radius: 14px; padding: 0 8px 8px; min-height: 200px; }
.col.jer { background: var(--lane2); box-shadow: inset 0 0 0 1px var(--grey); }
.col-h { padding: 14px 6px 12px; position: relative; }
.col-h::before { content: ""; position: absolute; left: -8px; right: -8px; top: 0; height: 3px; border-radius: 14px 14px 0 0; background: var(--lav); }
.col.jer .col-h::before { background: var(--line2); }
.col.akkoord .col-h::before { background: var(--grad); }
.col-h .t { display: flex; align-items: center; gap: 8px; }
.col-h h2 { margin: 0; font-weight: 800; font-size: 14.5px; letter-spacing: -.01em; }
.col-h .n { font: 700 12px/1 var(--mono); background: var(--white); color: var(--body); padding: 4px 7px; border-radius: 6px; }
.col-h .own { display: none; }
.col-h p { margin: 5px 0 0; font-weight: 500; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.empty { margin: 0; padding: 18px 8px 22px; text-align: center; font-weight: 500; font-size: 13px; color: var(--muted); }
.card { display: block; width: 100%; text-align: left; border: 0; background: var(--white); border-radius: 12px; padding: 12px 12px 11px; margin-bottom: 8px; box-shadow: var(--shadow); font: inherit; transition: transform .15s; }
.card:last-of-type { margin-bottom: 0; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.card:active { transform: scale(.985); }
.card .r1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card .hd { display: block; min-width: 0; }
.card .via { display: block; font-weight: 700; font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.card .nm { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.card .r2 { display: block; margin-top: 3px; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.card .r3 { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12.5px; }
.ns { font-weight: 600; color: var(--body); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns.none { color: var(--none-ink); }
.ns.ask { color: var(--accent); }
.nd { margin-left: auto; font: 700 11.5px var(--mono); color: var(--body); white-space: nowrap; }
.nd.late { color: var(--late-ink); } .nd.today { color: var(--today-ink); } .nd.mu { color: var(--muted); }
.ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ic svg { width: 10px; height: 10px; }
.ic-won { background: var(--grad); color: var(--white); }
.ic-sent { background: var(--grey); color: var(--muted); }
.ic-ask { background: var(--lav); color: var(--accent); }
.ic-lost { background: var(--late-soft); color: var(--late-ink); }
.money { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; background: var(--soft); border-radius: 8px; padding: 7px 10px; font-weight: 600; font-size: 12.5px; color: var(--accent); }
.money b { font: 700 12.5px var(--mono); }
.money.win { background: var(--grad); color: var(--white); }
.money.off { background: var(--grey); color: var(--muted); }
.add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; min-height: 44px; border: 1.5px dashed var(--line2); background: transparent; border-radius: 12px; font-weight: 700; font-size: 13px; color: var(--muted); transition: transform .15s; }
.add svg { width: 18px; height: 18px; flex: none; }
.add:hover { color: var(--accent); border-color: var(--accent); background: var(--white); }
.add:active { transform: scale(.985); }
.lost { margin-top: 10px; }
.lost summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted); background: var(--white); box-shadow: var(--shadow); }
.lost summary::-webkit-details-marker { display: none; }
.lost summary::after { content: "+"; font: 700 15px var(--mono); }
.lost[open] summary::after { content: "\2212"; }
.lost summary:hover { color: var(--ink); }
.lost summary:active { opacity: .7; }
.lost[open] summary { margin-bottom: 8px; }
.lost .card { opacity: .85; }
.stagetabs { display: none; }

/* ---------- pipeline list ---------- */
.list { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 40px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.6fr 130px 1.7fr 110px 130px 44px; gap: 16px; align-items: center; padding: 12px 18px; font-size: 13.5px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.tr.th { border-top: 0; background: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
button.tr:hover { background: var(--soft); }
button.tr:active { opacity: .75; }
button.tr:focus-visible { outline-offset: -2px; }
.tr .g { min-width: 0; }
.tr .g b { display: block; font-weight: 700; font-size: 14px; }
.tr .g i { display: block; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.tr .nx { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tr .v { font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- radar ---------- */
.radar-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.win { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.win .select { width: auto; min-width: 136px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { text-align: left; border: 0; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; transition: transform .15s; }
.kpi:hover { box-shadow: var(--shadow-hover); }
.kpi:active { transform: scale(.98); }
.kpi b { display: block; font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.kpi span { display: block; margin-top: 8px; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi[aria-pressed="true"] { background: var(--grad); color: var(--white); box-shadow: none; }
.kpi[aria-pressed="true"] span { color: var(--on-grad); }
.tl { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 18px 12px; margin-bottom: 16px; }
.tl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tl-top h2 { margin: 0; font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tl-legend .in { background: var(--grad); } .tl-legend .later { background: var(--bar-later); }
.months { position: relative; display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 3px; height: 120px; align-items: end; }
.m { position: relative; height: 100%; border: 0; background: none; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; border-radius: 6px; }
.m:hover { background: var(--soft); }
.m .bar { display: block; border-radius: 4px 4px 2px 2px; background: var(--bar-later); min-height: 3px; }
.m.in .bar { background: var(--grad); }
.m .cnt { font: 700 10.5px var(--mono); color: var(--muted); text-align: center; margin-bottom: 3px; }
.m[aria-pressed="true"] { background: var(--lav); }
.m[aria-pressed="true"] .cnt { color: var(--accent); }
.m-today { position: absolute; bottom: 0; width: 2px; height: 100%; background: var(--late); border-radius: 2px; pointer-events: none; }
.mlabels { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 3px; margin-top: 6px; font: 500 10.5px var(--mono); color: var(--muted); text-align: center; }
.mlabels span { overflow: visible; white-space: nowrap; display: flex; justify-content: center; }
.mlabels .y { color: var(--ink); font-weight: 700; }
.mlabels span:not(.y):not(.q) { visibility: hidden; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.active-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 36px; margin-bottom: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.clear { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--lav); color: var(--accent); border-radius: 999px; padding: 0 8px 0 12px; min-height: 36px; font-weight: 700; font-size: 13px; }
.clear svg { width: 16px; height: 16px; }
.clear:hover { background: var(--line2); }
.linkish { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 13px; padding: 0; min-height: 44px; }
.linkish:hover { text-decoration: underline; }
.table { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 40px; }
.thead, .row { display: grid; grid-template-columns: 2fr 1fr 1.25fr 1.4fr 150px; gap: 14px; align-items: center; padding: 12px 18px; }
.thead { background: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.row { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.row:hover { background: var(--soft); }
.row:active { opacity: .75; }
.row:focus-visible { outline-offset: -2px; }
.namecell { min-width: 0; }
.namecell .name { display: block; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.row .sub { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.when b { display: block; font-family: var(--mono); font-size: 12.5px; }
.when span { font-size: 12.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.st { display: flex; align-items: center; gap: 6px; justify-content: flex-start; }
.st .av { width: 22px; height: 22px; font-size: 10px; }
.more-row { padding: 14px; text-align: center; border-top: 1px solid var(--line); }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.sheet-open .scrim { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--white); z-index: 50; transform: translateX(100%); visibility: hidden; transition: transform .25s cubic-bezier(.2, .7, .2, 1), visibility 0s .25s; overflow-y: auto; overscroll-behavior: contain; }
.sheet-open .sheet { transform: none; visibility: visible; transition: transform .25s cubic-bezier(.2, .7, .2, 1); box-shadow: var(--shadow-sheet); }
.sh-h { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 1; }
.sh-h .x { position: absolute; right: 14px; top: 14px; }
.sh-h h2 { margin: 0; font-weight: 800; font-size: 22px; letter-spacing: -.02em; padding-right: 48px; overflow-wrap: anywhere; }
.sh-h p { margin: 4px 0 0; font-weight: 500; font-size: 13.5px; color: var(--muted); }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sh-b { padding: 4px 24px 40px; }
.sh-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sh-sec:last-child { border-bottom: 0; }
.sh-sec > h3 { margin: 0 0 10px; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.saved { font-weight: 700; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--today-ink); opacity: 0; transition: opacity .2s; }
.saved.on { opacity: 1; }
.stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; }
.stages button { border: 0; background: none; border-radius: 9px; min-height: 44px; font-weight: 700; font-size: 13px; color: var(--muted); padding: 0 4px; transition: transform .15s; }
.stages button:hover { color: var(--ink); }
.stages button:active { transform: scale(.97); }
.stages button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.acts { display: grid; gap: 8px; margin-top: 10px; }
.acts.two { grid-template-columns: 1fr 1fr; }
.acts .btn { width: 100%; }
.hint { margin: 10px 0 0; font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hint.lead-in { margin: 0 0 12px; }
.lock { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 12px; padding: 14px; font-weight: 500; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.lock svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.lock b { color: var(--ink); }
.next { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; font-weight: 600; font-size: 14px; }
.next .nd { font-size: 12px; }
.stepf .field-label:first-child { margin-top: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chips button { border: 0; background: var(--soft); color: var(--accent); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 0 12px; min-height: 36px; transition: transform .15s; }
.chips button:hover { background: var(--lav); }
.chips button:active { transform: scale(.96); }
.cblock { border-radius: 12px; padding: 14px 16px 15px; background: var(--soft); display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 14px; }
.cblock .lbl { grid-column: 1 / -1; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.cblock b { font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.cblock .t { font-weight: 500; font-size: 13px; color: var(--muted); padding-bottom: 3px; }
.cblock.win { background: var(--grad); color: var(--white); }
.cblock.win .lbl, .cblock.win .t { color: var(--on-grad); }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 10px; }
.inline-form .field-label { grid-column: 1 / -1; margin: 0; }
.inline-form .error:empty { display: none; }
.euro { position: relative; }
.euro .input { padding-left: 30px; font-family: var(--mono); }
.euro::before { content: "\20AC"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 12px; font-size: 14px; margin: 0; }
.kv dt { font-weight: 600; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kv .select { width: auto; min-height: 38px; }
.claim { margin-top: 12px; background: var(--soft); border-radius: 12px; padding: 12px 14px; font-weight: 500; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.claim b { color: var(--ink); }
.note { font-weight: 500; font-size: 14px; line-height: 1.6; color: var(--body); margin: 0; white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--head); border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.fact.wide { grid-column: 1 / -1; }
.fact small { display: block; font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact b { font-weight: 700; }
.clines { display: grid; gap: 4px; }
.clines a { overflow-wrap: anywhere; }
.research { margin: 10px 0 0; padding-left: 18px; color: var(--body); font-size: 13px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hist li { font-size: 13.5px; font-weight: 500; color: var(--body); line-height: 1.45; }
.hist li b { color: var(--ink); }
.hist time { display: block; font: 500 11.5px var(--mono); color: var(--muted); }
.results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.results button { width: 100%; text-align: left; border: 0; background: var(--white); box-shadow: var(--shadow); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; min-height: 52px; transition: transform .15s; }
.results button:hover { box-shadow: var(--shadow-hover); }
.results button:active { transform: scale(.985); }
.results .rn { flex: 1; min-width: 0; }
.results .rn b { display: block; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.results .rn span { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.users { list-style: none; margin: 0 0 8px; padding: 0; }
.users li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.users .who b { display: block; font-weight: 700; }
.users .who span { font-weight: 500; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--white); font: 600 14px/1.4 var(--font); padding: 14px 18px; border-radius: 12px; z-index: 80; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .tr { grid-template-columns: 1.5fr 130px 1.6fr 44px; } .tr .c-lus, .tr .c-via { display: none; }
  .thead, .row { grid-template-columns: 2fr 1.2fr 1fr 130px; } .thead .c-stad, .row .stadcell { display: none; }
  .comm { grid-template-columns: 1fr 1fr; } .earn { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .m-only { display: block; }
  .d-only { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-main .mark { display: block; margin-bottom: 18px; }
  .top .wrap { gap: 10px; }
  .brand span:not(.mark) { display: none; }
  .nav button { padding: 0 10px; }
  .me span:not(.av) { display: none; }
  .mlabels .q { visibility: hidden; }
  .clear { min-height: 44px; }
  .bar { padding: 20px 0 14px; gap: 14px; }
  .tools { margin-left: 0; width: 100%; display: grid; grid-template-columns: auto 1fr; }
  .tools .seg button { flex: 1; min-height: 44px; }
  .tools .who-seg { grid-column: 1 / -1; }
  .comm { grid-template-columns: 1fr; margin-bottom: 14px; }
  .earn { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 14px 16px; }
  .earn b { margin-top: 0; font-size: 30px; grid-column: 2; grid-row: 1; }
  .earn .lbl { grid-column: 1; grid-row: 1; }
  .earn p { grid-column: 1 / -1; margin-top: 6px; font-size: 13.5px; }
  .ct { display: none; }
  .legend { gap: 6px 12px; font-size: 13px; padding-bottom: 14px; }
  .legend .lead { display: none; }
  .lanes-h { display: none; }
  .stagetabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 12px; }
  .stagetabs::-webkit-scrollbar { display: none; }
  .stagetabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--white); box-shadow: var(--shadow); border-radius: 999px; min-height: 44px; padding: 0 14px; font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: transform .15s; }
  .stagetabs button em { font-style: normal; font-family: var(--mono); opacity: .75; }
  .stagetabs button:active { transform: scale(.96); }
  .stagetabs button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
  .board { grid-template-columns: 1fr; }
  .col { display: none; } .col.on { display: block; }
  .col-h .own { display: inline; margin-left: auto; font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .col-h p { font-size: 13.5px; }
  .card .via { font-size: 11px; }
  .card .nm { font-size: 16px; }
  .card .r2, .card .r3, .money { font-size: 14px; }
  .nd { font-size: 12.5px; }
  .tr { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; } .tr.th { display: none; }
  .tr .g b { font-size: 15px; } .tr .g i { font-size: 13.5px; }
  .tr .c-st { grid-column: 2; grid-row: 1; } .tr .nx { grid-column: 1 / -1; font-size: 14px; } .tr .c-who { display: none; }
  .radar-tools { width: 100%; }
  .win { width: 100%; flex-wrap: wrap; }
  .win .select { flex: 1; }
  .radar-tools .btn { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 24px; }
  .tl { padding: 14px 12px 10px; }
  .months { height: 90px; gap: 2px; }
  .m .cnt { font-size: 9.5px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .input { grid-column: 1 / -1; }
  .thead { display: none; }
  .row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; }
  .row .when { grid-column: 1; }
  .row .tags { grid-column: 1 / -1; }
  .row .st { grid-column: 2; grid-row: 1; }
  .sh-h { padding: 20px 16px 14px; }
  .sh-b { padding: 4px 16px 40px; }
  .kv { grid-template-columns: 110px 1fr; }
  .acts.two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .hint, .claim, .lock, .hist li, .cblock .t, .fact, .note { font-size: 14px; }
  .input, .select, textarea { font-size: 16px; }
  .chips button { min-height: 44px; }
  .toast { left: 16px; right: 16px; transform: translateY(20px); max-width: none; }
  .toast.on { transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
