    :root {
      --bg: #f5f5f7;
      --bg-soft: #fbfbfd;
      --surface: #ffffff;
      --surface-2: #f7f7f9;
      --surface-3: #ededf1;
      --text: #1d1d1f;
      --text-soft: #5c5c63;
      --text-muted: #8a8a91;
      --text-inverse: #ffffff;
      --accent: #ffcc00;
      --accent-dark: #174a6f;
      --accent-soft: #fff4bf;
      --accent-ink: #2b2300;
      --good: #0a7f4f;
      --good-soft: #e7f7ee;
      --watch: #d99400;
      --watch-soft: #fff5d6;
      --bad: #b42318;
      --bad-soft: #fdecea;
      --line: rgba(29,29,31,.10);
      --line-strong: rgba(29,29,31,.16);
      --shadow: 0 12px 34px rgba(0,0,0,.08);
      --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 10px 26px rgba(0,0,0,.05);
      --radius: 20px;
      --radius-sm: 13px;
      --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem; --s5:1.25rem; --s6:1.5rem; --s8:2rem;
      --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      --ease: cubic-bezier(.22,1,.36,1);
    }
    * { box-sizing: border-box; }
    html { color-scheme: light; scroll-behavior: smooth; }
    body {
      margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text);
      background: radial-gradient(1200px 400px at 15% -5%, rgba(255,255,255,.9), transparent 60%),
                  linear-gradient(180deg, var(--bg-soft), var(--bg) 40rem);
      -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    }
    button, input, select, textarea { font: inherit; color: inherit; }
    button { cursor: pointer; }
    h1,h2,h3,h4,p { margin: 0; }
    :focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 6px; }

    .wrap { width: 100%; max-width: 2200px; margin-inline: auto; padding: clamp(.75rem, 2.2vw, 1.6rem) clamp(.75rem, 2.6vw, 2.4rem) 4rem; }

    /* ---------- App bar ---------- */
    .appbar { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; padding-block: var(--s2) var(--s4); }
    .brand { display: flex; align-items: center; gap: .7rem; }
    .brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: linear-gradient(145deg, #fff2b0, var(--accent)); color: var(--accent-ink); font-weight: 900; box-shadow: 0 8px 20px rgba(255,204,0,.3); }
    .brand-txt small { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 800; }
    .brand-txt strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
    .appbar-spacer { flex: 1 1 auto; }
    .today-chip { text-align: right; line-height: 1.25; }
    .today-chip span { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 700; }
    .today-chip strong { font-size: .95rem; }

    /* ---------- Main tab nav ---------- */
    .mainnav { display: flex; gap: .3rem; flex-wrap: wrap; padding: .3rem; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(0,0,0,.04); margin-bottom: var(--s4); }
    .mainnav button { flex: 1 1 auto; min-width: 8rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-soft); font-weight: 800; transition: all .18s var(--ease); }
    .mainnav button svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .mainnav button:hover { color: var(--text); }
    .mainnav button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.1); }

    /* ---------- Date navigator ---------- */
    .datenav { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
    .seg { display: inline-flex; align-items: center; gap: .2rem; padding: .25rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
    .seg button { min-width: 2.4rem; min-height: 2.4rem; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-weight: 900; display: grid; place-items: center; }
    .seg button:hover { background: var(--surface-2); }
    .seg .seg-label { padding: 0 .9rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .pill-btn { min-height: 2.6rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; box-shadow: var(--shadow-soft); transition: all .16s var(--ease); }
    .pill-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
    .pill-btn.is-active { background: var(--accent-soft); border-color: rgba(255,204,0,.6); color: var(--accent-ink); }

    .weekstrip { display: flex; gap: .25rem; flex-wrap: wrap; padding: .25rem; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--line); }
    .weekstrip button { flex: 1 1 3rem; min-width: 3rem; min-height: 3rem; display: grid; place-items: center; gap: 1px; border: 0; border-radius: 12px; background: transparent; color: var(--text-soft); font-weight: 800; line-height: 1; transition: all .16s var(--ease); }
    .weekstrip button small { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
    .weekstrip button b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
    .weekstrip button:hover { background: var(--surface); color: var(--text); }
    .weekstrip button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
    .weekstrip button[aria-selected="true"] small { color: var(--accent-ink); }
    .weekstrip button.is-weekend { color: var(--text-muted); }
    .weekstrip button.is-today { box-shadow: inset 0 0 0 2px var(--accent-dark); }

    /* ---------- Calendar ---------- */
    .calendar-wrap { overflow: hidden; transition: grid-template-rows .28s var(--ease); display: grid; grid-template-rows: 0fr; }
    .calendar-wrap.open { grid-template-rows: 1fr; }
    .calendar-inner { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .24s var(--ease), transform .28s var(--ease); }
    .calendar-wrap.open .calendar-inner { opacity: 1; transform: none; }
    .calendar { margin-top: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
    .cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
    .cal-title { font-weight: 800; font-size: 1.05rem; }
    .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
    .cal-dow { text-align: center; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding-bottom: .2rem; }
    .cal-day { position: relative; aspect-ratio: 1 / .82; min-height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
    .cal-day:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
    .cal-day.other { opacity: .32; }
    .cal-day.weekend { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, #f0f0f3 6px, #f0f0f3 12px); color: var(--text-muted); }
    .cal-day[data-status="good"] { background: var(--good-soft); border-color: rgba(10,127,79,.35); color: #075c39; }
    .cal-day[data-status="watch"] { background: var(--watch-soft); border-color: rgba(217,148,0,.4); color: #8a5e00; }
    .cal-day[data-status="bad"] { background: var(--bad-soft); border-color: rgba(180,35,24,.32); color: #8f1c14; }
    .cal-day[data-status="review"] { background: #eef1f6; border-color: var(--line); color: var(--text-soft); }
    .cal-day.selected { outline: 3px solid var(--accent); outline-offset: 1px; }
    .cal-day.today::after { content: ""; position: absolute; bottom: .28rem; width: .32rem; height: .32rem; border-radius: 50%; background: var(--accent-dark); }
    .cal-legend { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--s3); font-size: .74rem; color: var(--text-soft); }
    .cal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
    .cal-legend i { width: .8rem; height: .8rem; border-radius: 4px; display: inline-block; }

    /* ---------- Panels & layout ---------- */
    .grid { display: grid; gap: var(--s4); }
    .cols { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
    .dash-layout { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
    @media (max-width: 1080px) { .dash-layout { grid-template-columns: 1fr; } }
    .stack { display: grid; gap: var(--s4); align-content: start; min-width: 0; }

    .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }
    .panel-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5) var(--s5) var(--s3); }
    .panel-h h3 { font-size: 1.08rem; font-weight: 800; }
    .panel-h p { margin-top: .2rem; color: var(--text-soft); font-size: .85rem; line-height: 1.4; }
    .panel-b { padding: 0 var(--s5) var(--s5); }
    .chip { display: inline-flex; align-items: center; min-height: 1.9rem; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: .7rem; font-weight: 800; white-space: nowrap; }

    /* Hero */
    .hero { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #fffbe9, var(--surface) 55%); box-shadow: var(--shadow-soft); padding: var(--s5); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--s4); align-items: center; }
    @media (max-width: 620px){ .hero { grid-template-columns: 1fr; } }
    .hero .kick { font-family: var(--mono); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }
    .hero h2 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 800; line-height: 1.1; margin-top: .3rem; }
    .hero p.brief { margin-top: .5rem; color: var(--text-soft); font-size: .92rem; line-height: 1.5; max-width: 58ch; }
    .ring { position: relative; width: 8.6rem; height: 8.6rem; display: grid; place-items: center; }
    .ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
    .ring-track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
    .ring-arc { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.726; stroke-dashoffset: 326.726; transition: stroke-dashoffset .9s var(--ease); filter: drop-shadow(0 3px 9px rgba(245,179,1,.38)); }
    .ring.complete .ring-arc { stroke: url(#ringGradDone); filter: drop-shadow(0 3px 12px rgba(10,127,79,.42)); }
    .ring-center { position: relative; display: grid; justify-items: center; gap: .22rem; }
    .ring-center b { font-size: 1.95rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
    .ring-pill { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .72rem; font-weight: 800; color: var(--text-soft); font-variant-numeric: tabular-nums; }
    .ring-cap { font-size: .58rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
    .ring.complete .ring-cap { color: var(--good); font-size: .52rem; letter-spacing: .015em; }
    .ring.complete .ring-pill { background: var(--good-soft); border-color: rgba(10,127,79,.3); color: #075c39; }
    .ring.complete .ring-center b { animation: ringPop .5s var(--ease); }
    @keyframes ringPop { 0%{ transform: scale(.9); } 55%{ transform: scale(1.06); } 100%{ transform: scale(1); } }

    /* Checklist */
    .checkline { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; padding: .6rem .5rem; border-radius: 12px; cursor: pointer; transition: background .14s, opacity .4s var(--ease), transform .42s var(--ease), max-height .42s var(--ease), padding .42s var(--ease), margin .42s var(--ease); }
    .checkline:hover { background: var(--surface-2); }
    .checkline.fading { opacity: 0; transform: translateX(18px); overflow: hidden; }
    .link-btn { border: 0; background: transparent; padding: 0; min-height: auto; color: var(--accent-dark); font-weight: 800; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
    .link-btn:hover { color: var(--text); }
    .checkline + .checkline { margin-top: 2px; }
    .checkline input { width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--accent); }
    .checkline .t { font-weight: 700; line-height: 1.3; }
    .checkline .hint { display: block; margin-top: .15rem; color: var(--text-soft); font-size: .84rem; line-height: 1.4; }
    .checkline.done .t { text-decoration: line-through; color: var(--text-muted); }
    .checkline.done .hint { color: var(--text-muted); }

    /* Schedule */
    .slot { position: relative; display: grid; grid-template-columns: 5.6rem 1fr; gap: .7rem; padding: .55rem .5rem; border-radius: 12px; transition: background .18s, opacity .35s var(--ease), transform .42s var(--ease), max-height .42s var(--ease), padding .42s var(--ease), margin .42s var(--ease); }
    .slot:hover { background: var(--surface-2); }
    .slot-check { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%) scale(.4); width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; background: var(--good-soft); color: var(--good); font-size: .8rem; font-weight: 900; line-height: 1; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
    .slot.past { opacity: .55; padding-right: 2.1rem; }
    .slot.past .st, .slot.past .sn, .slot.past .tm { color: var(--text-muted); }
    .slot.past .slot-check { opacity: 1; transform: translateY(-50%) scale(1); }
    .slot.fading { opacity: 0; transform: translateX(18px); overflow: hidden; }
    .slot .tm { color: var(--accent-dark); font-family: var(--mono); font-size: .72rem; font-weight: 900; }
    .slot .st { font-weight: 700; line-height: 1.3; }
    .slot .sn { display: block; margin-top: .1rem; color: var(--text-soft); font-size: .82rem; line-height: 1.4; }
    @media (max-width: 520px){ .slot { grid-template-columns: 1fr; gap: .1rem; } }

    /* Metrics entry */
    .metric-group + .metric-group { margin-top: var(--s4); }
    .metric-group-h { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 .55rem .15rem; }
    .metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.4rem, 1fr)); gap: .55rem; }
    .metric { display: grid; gap: .2rem; padding: .6rem .5rem .45rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); text-align: center; transition: border-color .15s, background .15s, box-shadow .15s; }
    .metric:focus-within { border-color: color-mix(in srgb, var(--accent-dark) 45%, transparent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-dark) 8%, transparent); }
    .metric .m-lab { font-size: .7rem; font-weight: 700; color: var(--text-soft); }
    .stepper { display: grid; grid-template-columns: 1.9rem 1fr 1.9rem; align-items: center; gap: .15rem; }
    .stepper button { width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: var(--surface-3); font-size: 1.1rem; font-weight: 800; color: var(--accent-dark); display: grid; place-items: center; transition: background .15s, transform .08s; }
    .stepper button:hover { background: var(--line-strong); color: var(--text); }
    .stepper button:active { transform: scale(.85); }
    .stepper input { border: 0; text-align: center; font-weight: 800; font-size: 1.55rem; line-height: 1; font-variant-numeric: tabular-nums; width: 100%; min-height: auto; background: transparent; color: var(--text); -moz-appearance: textfield; }
    .stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .metric.bump .stepper input { animation: numPop .34s var(--ease); }
    @keyframes numPop { 0%{ transform: scale(1); } 42%{ transform: scale(1.22); } 100%{ transform: scale(1); } }

    /* Derived KPI cards */
    .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 12.5rem)); gap: .55rem; justify-content: start; }
    .kpi { position: relative; display: grid; gap: .1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
    .kpi::after { content: ""; position: absolute; top: .8rem; right: .8rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--text-muted); }
    .kpi[data-status="good"] { background: var(--good-soft); border-color: rgba(10,127,79,.28); }
    .kpi[data-status="good"]::after { background: var(--good); }
    .kpi[data-status="watch"] { background: var(--watch-soft); border-color: rgba(217,148,0,.4); }
    .kpi[data-status="watch"]::after { background: var(--watch); }
    .kpi[data-status="bad"] { background: var(--bad-soft); border-color: rgba(180,35,24,.28); }
    .kpi[data-status="bad"]::after { background: var(--bad); }
    .kpi .lab { font-size: .78rem; font-weight: 800; color: var(--text-soft); }
    .kpi .val { font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; }
    .kpi .tgt { font-family: var(--mono); font-size: .64rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }

    /* Revenue */
    .rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; align-items: start; }
    .rev { display: grid; gap: .5rem; padding: .85rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
    .rev-lab { font-weight: 800; font-size: .92rem; }
    .rev-lab small { display: block; color: var(--text-muted); font-size: .68rem; font-weight: 700; margin-top: .1rem; }
    .rev-inline { position: relative; }
    .rev-inline input { width: 100%; min-height: 2.9rem; padding: .6rem 3.2rem .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
    .rev-inline input:focus { outline: none; border-color: color-mix(in srgb, var(--accent-dark) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-dark) 8%, transparent); }
    .rev-unit { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); padding: .15rem .5rem; border-radius: 999px; background: var(--surface-3); color: var(--text-soft); font-family: var(--mono); font-size: .64rem; font-weight: 900; pointer-events: none; }
    .rev-target { font-family: var(--mono); font-size: .64rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
    .rev-bar { height: .42rem; border-radius: 999px; background: rgba(29,29,31,.08); overflow: hidden; }
    .rev-bar i { display: block; height: 100%; border-radius: inherit; background: var(--text-muted); transform-origin: left; transition: width .5s var(--ease), background .2s; }
    .rev[data-status="good"] .rev-bar i { background: var(--good); }
    .rev[data-status="watch"] .rev-bar i { background: var(--watch); }
    .rev[data-status="bad"] .rev-bar i { background: var(--bad); }
    .rev-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .76rem; font-weight: 800; color: var(--text-soft); }
    .rev-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
    .rev-calc-toggle { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .72rem; font-weight: 800; color: var(--accent-dark); cursor: pointer; transition: background .15s; }
    .rev-calc-toggle:hover { background: var(--surface-3); }
    .rev-calc-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
    .rev-calc-wrap.open { grid-template-rows: 1fr; }
    .rev-calc-inner { min-height: 0; overflow: hidden; }
    .rev-calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; padding-top: .55rem; }
    .rev-calc label { display: grid; gap: .2rem; min-width: 0; font-size: .58rem; font-weight: 900; text-transform: uppercase; color: var(--text-muted); letter-spacing: .02em; }
    .rev-calc input { width: 100%; min-width: 0; min-height: 2.4rem; padding: .4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
    .rev-formula { font-size: .66rem; color: var(--text-muted); padding-top: .3rem; }

    /* Evaluation */
    .eval-controls { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
    .eval-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem,1fr)); gap: var(--s3); }
    .stat { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
    .stat span { display: block; color: var(--text-muted); font-size: .74rem; font-weight: 800; }
    .stat strong { display: block; margin-top: .2rem; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
    .stat small { color: var(--text-soft); font-size: .72rem; font-weight: 700; }

    .chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
    .chart-svg .grid-line { stroke: var(--line); stroke-width: 1; }
    .chart-svg .axis-txt { fill: var(--text-muted); font-size: 11px; font-family: var(--mono); font-weight: 700; }
    .chart-svg .lbl-txt { fill: var(--text-soft); font-size: 11px; font-weight: 700; }

    .funnel { display: grid; gap: .5rem; }
    .funnel-row { display: grid; grid-template-columns: 11rem 1fr; gap: .8rem; align-items: center; }
    @media (max-width: 560px){ .funnel-row { grid-template-columns: 1fr; gap: .1rem; } }
    .funnel-bar-track { position: relative; height: 2.3rem; background: var(--surface-2); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
    .funnel-bar { height: 100%; display: flex; align-items: center; padding: 0 .7rem; border-radius: 10px; background: linear-gradient(90deg, var(--accent), #ffde5c); color: var(--accent-ink); font-weight: 900; font-variant-numeric: tabular-nums; transition: width .5s var(--ease); white-space: nowrap; }
    .funnel-lab { font-weight: 800; }
    .funnel-lab small { display: block; color: var(--text-muted); font-size: .72rem; font-weight: 700; }
    .conv-chip { display: inline-block; margin-left: .5rem; font-size: .74rem; font-weight: 800; color: var(--text-soft); font-variant-numeric: tabular-nums; }

    .pace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem,1fr)); gap: var(--s3); }
    .pace { padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); border-left: 4px solid var(--text-muted); }
    .pace[data-status="good"] { border-left-color: var(--good); background: var(--good-soft); }
    .pace[data-status="watch"] { border-left-color: var(--watch); background: var(--watch-soft); }
    .pace[data-status="bad"] { border-left-color: var(--bad); background: var(--bad-soft); }
    .pace .pl { font-weight: 800; }
    .pace .pv { margin-top: .3rem; font-size: 1.05rem; font-weight: 900; font-variant-numeric: tabular-nums; }
    .pace .pn { margin-top: .25rem; font-size: .8rem; color: var(--text-soft); line-height: 1.35; }

    .streak-box { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
    .streak-num { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; color: var(--accent-dark); }
    .streak-dots { display: flex; gap: .3rem; flex-wrap: wrap; }
    .streak-dots i { width: 1.1rem; height: 1.1rem; border-radius: 5px; background: var(--surface-3); }
    .streak-dots i[data-on="1"] { background: var(--accent); }

    /* Settings / goals */
    .field { display: grid; gap: .35rem; margin-bottom: var(--s4); }
    .field label { font-weight: 800; font-size: .86rem; }
    .field .fh { color: var(--text-soft); font-size: .78rem; font-weight: 600; }
    .field input[type="text"], .field input[type="number"], .field input[type="date"] { min-height: 2.8rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 800; }
    .goal-row { display: grid; grid-template-columns: 1fr 10rem; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
    .goal-row:last-child { border-bottom: 0; }
    .goal-row .gl { font-weight: 800; }
    .goal-row .gl small { display: block; color: var(--text-muted); font-size: .72rem; font-weight: 700; }
    .goal-row input { min-height: 2.7rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-weight: 900; text-align: right; }

    .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.8rem; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 800; transition: all .16s var(--ease); }
    .btn:hover { background: var(--surface-2); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
    .btn-primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
    .btn-danger { color: var(--bad); border-color: rgba(180,35,24,.3); }
    .btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }

    .notes-area { width: 100%; min-height: 8rem; resize: vertical; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); line-height: 1.5; }

    .tabpage { display: none; animation: fade .25s var(--ease); }
    .tabpage.active { display: block; }
    @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

    .empty-note { padding: 1.4rem; text-align: center; color: var(--text-muted); font-size: .9rem; }

    /* Info-„i" auf Abhak-Zeilen */
    .checkline { grid-template-columns: 1.4rem 1fr auto; }
    .info-i { align-self: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--accent-dark); font: italic 900 .84rem/1 Georgia, "Times New Roman", serif; display: grid; place-items: center; opacity: .5; transition: all .16s var(--ease); flex: 0 0 auto; }
    .info-i:hover { opacity: 1; background: var(--accent-soft); border-color: rgba(255,204,0,.6); transform: scale(1.14); box-shadow: 0 4px 12px rgba(255,204,0,.3); }

    /* Info-Modal (fancy) */
    dialog.info { width: min(680px, calc(100% - 1.5rem)); max-height: min(88vh, 880px); padding: 0; border: 0; border-radius: 24px; background: transparent; overflow: visible; }
    dialog.info::backdrop { background: rgba(18,20,26,.42); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); opacity: 0; animation: infoBd .3s var(--ease) forwards; }
    @keyframes infoBd { to { opacity: 1; } }
    .info-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.3); max-height: inherit; display: flex; flex-direction: column; }
    .info-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); z-index: 6; }
    .info-card.opening { animation: infoPop .44s var(--ease); }
    @keyframes infoPop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
    .info-head { position: relative; padding: 1.4rem 1.5rem 1.1rem; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; flex: 0 0 auto; }
    .info-eyebrow { position: relative; font: 800 .64rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
    .info-title { position: relative; margin-top: .35rem; font-size: 1.3rem; font-weight: 800; line-height: 1.2; color: var(--text); padding-right: 2.6rem; }
    .info-x { position: absolute; z-index: 5; right: 1rem; top: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-soft); font-size: 1.35rem; display: grid; place-items: center; transition: background .15s, transform .15s, color .15s; }
    .info-x:active { transform: scale(.92); }
    .info-x:hover { background: var(--surface-3); color: var(--text); }
    .info-body { padding: 1.2rem 1.5rem 1.6rem; overflow: auto; }
    .info-sec { opacity: 0; transform: translateY(12px); animation: infoSec .5s var(--ease) forwards; margin-bottom: 1.15rem; }
    @keyframes infoSec { to { opacity: 1; transform: none; } }
    .info-sec:last-child { margin-bottom: 0; }
    .info-sec-h { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: .95rem; margin-bottom: .5rem; }
    .info-sec-ic { width: 1.7rem; height: 1.7rem; border-radius: 9px; display: grid; place-items: center; font-size: .95rem; flex: 0 0 auto; }
    .info-why .info-sec-ic { background: #e8f0fb; } .info-how .info-sec-ic { background: #eafaf1; }
    .info-pitch .info-sec-ic { background: var(--accent-soft); } .info-cross .info-sec-ic { background: #f3ecfd; }
    .info-obj .info-sec-ic { background: #fdeee9; } .info-err .info-sec-ic { background: #f1f2f5; }
    .info-sec p { color: var(--text-soft); line-height: 1.5; font-size: .92rem; }
    .info-sec ol, .info-sec ul { margin: 0; padding-left: 1.2rem; color: var(--text-soft); line-height: 1.55; font-size: .92rem; }
    .info-sec li + li { margin-top: .35rem; }
    .info-quote { padding: .75rem .95rem; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--text); font-weight: 600; font-style: italic; line-height: 1.5; }
    .info-obj-row { padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: .5rem; }
    .info-obj-row:last-child { margin-bottom: 0; }
    .info-obj-q { font-weight: 800; font-size: .88rem; }
    .info-obj-a { margin-top: .25rem; color: var(--text-soft); font-size: .9rem; line-height: 1.5; }

    /* KDB-Cockpit */
    .kdb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem,1fr)); gap: var(--s4); }
    .kdb-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }
    .kdb-card-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 1.1rem .5rem; }
    .kdb-name { font-weight: 800; font-size: 1.08rem; }
    .kdb-tag { font-family: var(--mono); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .18rem .5rem; border-radius: 999px; }
    .kdb-card[data-status="good"] .kdb-tag { background: var(--good-soft); color: #075c39; }
    .kdb-card[data-status="watch"] .kdb-tag { background: var(--watch-soft); color: #8a5e00; }
    .kdb-card[data-status="bad"] .kdb-tag { background: var(--bad-soft); color: #8f1c14; }
    .kdb-card-b { padding: 0 1.1rem 1.1rem; }
    .kdb-stat { display: flex; align-items: baseline; gap: .45rem; }
    .kdb-big { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
    .kdb-goal { color: var(--text-muted); font-weight: 800; }
    .kdb-bar { height: .5rem; border-radius: 999px; background: rgba(29,29,31,.08); overflow: hidden; margin: .65rem 0 .2rem; }
    .kdb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--text-muted); transition: width .5s var(--ease); }
    .kdb-card[data-status="good"] .kdb-bar i { background: var(--good); }
    .kdb-card[data-status="watch"] .kdb-bar i { background: var(--watch); }
    .kdb-card[data-status="bad"] .kdb-bar i { background: var(--bad); }
    .kdb-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
    .kdb-inputs label { display: grid; gap: .25rem; font-size: .74rem; font-weight: 800; color: var(--text-soft); }
    .kdb-inputs .stepper { grid-template-columns: 2.1rem 1fr 2.1rem; }
    .kdb-pitch { margin-top: .9rem; padding: .85rem .95rem; border-radius: 13px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface-2); animation: infoSec .5s var(--ease) both; }
    .kdb-pitch-h { display: flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .8rem; color: var(--text); margin-bottom: .35rem; }
    .kdb-pitch p { color: var(--text-soft); font-size: .89rem; line-height: 1.5; font-style: italic; }
    .kdb-pitch .info-i { margin-left: auto; font-style: italic; }

    /* Scripts dialog */
    dialog.scripts { width: min(760px, calc(100% - 1.5rem)); max-height: min(80vh, 780px); padding: 0; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
    dialog.scripts::backdrop { background: rgba(20,23,28,.35); backdrop-filter: blur(6px); }
    .sc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem .9rem; }
    .sc-tabs { display: flex; gap: .4rem; flex-wrap: wrap; padding: 0 1.4rem 1rem; border-bottom: 1px solid var(--line); }
    .sc-tabs button { flex: 1 1 8rem; min-height: 2.6rem; border: 1px solid transparent; border-radius: 999px; background: var(--surface-2); font-weight: 800; color: var(--text-soft); }
    .sc-tabs button[aria-selected="true"] { background: var(--text); color: #fff; }
    .sc-body { padding: 1.2rem 1.4rem 1.5rem; overflow: auto; }
    .sc-body ol { margin: 0; padding-left: 1.3rem; line-height: 1.6; color: var(--text-soft); }
    .sc-body li + li { margin-top: .5rem; }
    .icon-x { width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.3rem; display: grid; place-items: center; }

    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

    @media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
  

/* ===================== Passwortloser Login (Magic-Link) ===================== */
.authgate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(1000px 500px at 15% -10%, #fff9df, transparent 55%),
    radial-gradient(900px 500px at 110% 10%, #eaf1f8, transparent 55%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  animation: authFade .4s var(--ease);
}
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
.auth-card {
  width: min(420px, 100%); padding: clamp(1.4rem, 4vw, 2.1rem);
  border: 1px solid var(--line); border-radius: 26px; background: var(--surface);
  box-shadow: 0 30px 80px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.05);
  animation: authPop .5s var(--ease);
}
@keyframes authPop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.auth-title { font-size: clamp(1.5rem, 3.5vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin-top: .2rem; }
.auth-sub { margin-top: .5rem; color: var(--text-soft); font-size: .95rem; line-height: 1.5; }
.auth-form { display: grid; gap: .7rem; margin-top: 1.3rem; }
.auth-input {
  width: 100%; min-height: 3.1rem; padding: .7rem 1rem; border: 1px solid var(--line-strong);
  border-radius: 14px; background: var(--surface-2); font-weight: 700; font-size: 1.02rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s;
}
.auth-input:focus { outline: none; background: var(--surface); border-color: color-mix(in srgb, var(--accent-dark) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-dark) 10%, transparent); }
.auth-btn { width: 100%; min-height: 3.1rem; font-size: 1.02rem; box-shadow: 0 10px 24px rgba(255,204,0,.3); }
.auth-btn:disabled { opacity: .6; cursor: default; box-shadow: none; }
.auth-msg { min-height: 1.1rem; margin-top: .7rem; font-size: .86rem; font-weight: 700; }
.auth-msg.warn { color: var(--bad); }
.auth-fine { margin-top: 1.1rem; color: var(--text-muted); font-size: .76rem; line-height: 1.5; }
.auth-loading { display: flex; align-items: center; gap: .7rem; padding: 1.2rem .2rem; color: var(--text-muted); font-weight: 700; }
.auth-spinner { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2.5px solid var(--surface-3); border-top-color: var(--accent-dark); animation: authSpin .8s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-sent { text-align: center; animation: authPop .45s var(--ease); }
.auth-mailicon {
  width: 3.6rem; height: 3.6rem; margin: .3rem auto 1rem; display: grid; place-items: center;
  border-radius: 18px; font-size: 1.7rem; background: linear-gradient(145deg, #fff2b0, var(--accent));
  color: var(--accent-ink); box-shadow: 0 12px 28px rgba(255,204,0,.35); animation: ringPop .6s var(--ease);
}
.auth-sent .auth-title { margin-top: 0; }
.auth-sent .link-btn { margin-top: 1.2rem; }

/* hidden-Attribut muss immer gewinnen (sonst überschreibt display:flex/grid das Verstecken) */
[hidden] { display: none !important; }

/* ===================== Dezente Edit-Links (Apple-Style, hellgrau) ===================== */
.edit-link { border: 0; background: transparent; padding: .15rem .1rem; min-height: auto; color: var(--text-muted); font-weight: 600; font-size: .82rem; cursor: pointer; text-decoration: none; transition: color .15s var(--ease); white-space: nowrap; align-self: center; }
.edit-link:hover { color: var(--text-soft); }
.hero-edit-btn { display: inline-block; margin-top: .8rem; }

/* ===================== Hero-Editor (Kachel umbenennen) ===================== */
.hero-edit-form { margin-top: .8rem; display: grid; gap: .6rem; max-width: 40rem; }
.hero-ef { display: grid; gap: .25rem; }
.hero-ef-cap { font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); padding-left: .15rem; }
.hero-ef-in { width: 100%; min-height: 2.6rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font: inherit; font-weight: 600; }
textarea.hero-ef-in { min-height: 4.6rem; resize: vertical; line-height: 1.45; }
.hero-ef-in:focus { outline: none; border-color: color-mix(in srgb, var(--accent-dark) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-dark) 8%, transparent); }

/* ===================== Listen-Editor (Zeitfenster & Abhakliste) ===================== */
.list-editor { display: flex; flex-direction: column; gap: .6rem; }
.le-row { display: flex; gap: .7rem; align-items: stretch; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); transition: border-color .15s var(--ease); }
.le-row:hover { border-color: var(--line-strong); }
.le-fields { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.le-field { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.le-cap { font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); padding-left: .15rem; }
.le-in { width: 100%; min-width: 0; min-height: 2.6rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-weight: 600; font-size: .95rem; transition: border-color .15s, box-shadow .15s, background .15s; }
.le-in:focus { outline: none; background: var(--surface); border-color: color-mix(in srgb, var(--accent-dark) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-dark) 8%, transparent); }
.le-in.le-time { max-width: 9rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.le-ctrl { display: flex; flex-direction: column; justify-content: center; gap: .3rem; flex: 0 0 auto; }
.le-btn { width: 2.1rem; height: 1.9rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text-soft); font-size: .78rem; cursor: pointer; transition: background .15s, transform .08s, color .15s; }
.le-btn:hover { background: var(--surface-3); color: var(--text); }
.le-btn:active { transform: scale(.9); }
.le-del { color: var(--bad); border-color: rgba(180,35,24,.25); }
.le-del:hover { background: var(--bad-soft); color: var(--bad); }
.le-bar { margin-top: .8rem; gap: .5rem; flex-wrap: wrap; }

/* ===================== Storno-Kacheln (je Sparte, Anzahl + Betrag) ===================== */
.storno-card { gap: .55rem; }
.storno-card.has-storno { border-color: rgba(180,35,24,.32); background: var(--bad-soft); }
.storno-field { display: grid; gap: .25rem; }
.storno-cap { font-size: .64rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); }
.storno-step { grid-template-columns: 2rem 1fr 2rem; }
.rev.storno-card .rev-inline input { min-height: 2.6rem; font-size: 1.05rem; }

/* ===================== Ziel-Cockpit (Donut-Ringe) ===================== */
.goal-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1rem; }
.goal-ring { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.1rem .7rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); text-align: center; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.goal-ring:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.goal-ring[data-status="good"]  { background: var(--good-soft);  border-color: rgba(10,127,79,.25); }
.goal-ring[data-status="watch"] { background: var(--watch-soft); border-color: rgba(217,148,0,.32); }
.goal-ring[data-status="bad"]   { background: var(--bad-soft);   border-color: rgba(180,35,24,.22); }
.gr-donut { position: relative; width: 7rem; height: 7rem; }
.gr-svg { width: 100%; height: 100%; display: block; }
.gr-track { stroke: rgba(29,29,31,.08); }
.gr-arc { transition: stroke-dashoffset 1.1s var(--ease); filter: drop-shadow(0 2px 6px rgba(0,0,0,.12)); }
.gr-center { position: absolute; inset: 0; display: grid; place-content: center; gap: .05rem; }
.gr-center b { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; }
.gr-sub { font-size: .66rem; font-weight: 800; color: var(--text-muted); }
.gr-label { font-weight: 800; font-size: .9rem; line-height: 1.2; }
.gr-label small { display: block; margin-top: .15rem; font-size: .68rem; font-weight: 700; color: var(--text-muted); }
.streak-tile { justify-content: flex-start; }
.streak-emoji { font-size: 1.9rem; line-height: 1; animation: ringPop .5s var(--ease); }
.streak-big { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; color: var(--accent-dark); }
.gr-dots { margin-top: .3rem; justify-content: center; }

/* ===================== Gleitender Tab-Indikator (Apple-Style) ===================== */
.mainnav { position: relative; }
.mainnav button { position: relative; z-index: 1; }
.mainnav button[aria-selected="true"] { background: transparent; box-shadow: none; color: var(--text); }
.mainnav-ind {
  position: absolute; z-index: 0; left: 0; top: .3rem; width: 0; height: 2.9rem;
  border-radius: 999px; background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.1);
  opacity: 0; pointer-events: none;
  transition: left .42s var(--ease), top .42s var(--ease), width .42s var(--ease), height .42s var(--ease), opacity .2s var(--ease);
}

/* ===================== Select (Dropdown) im Feld-Stil ===================== */
.field select {
  width: 100%; min-height: 2.8rem; padding: .55rem 2.4rem .55rem .8rem;
  border: 1px solid var(--line); border-radius: 12px; background-color: var(--surface);
  font: inherit; font-weight: 800; color: var(--text); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238a8a91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right .85rem center;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field select:focus { outline: none; border-color: color-mix(in srgb, var(--accent-dark) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-dark) 8%, transparent); }

/* ===================== Sparten-Dropdown (Umsatz-Verlauf) ===================== */
.rev-trend-sel {
  min-height: 2.5rem; padding: .4rem 2.2rem .4rem .8rem; border: 1px solid var(--line);
  border-radius: 999px; background-color: var(--surface); font: inherit; font-weight: 800;
  font-size: .82rem; color: var(--text); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238a8a91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right .8rem center;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.rev-trend-sel:hover { border-color: var(--line-strong); }
.rev-trend-sel:focus { outline: none; border-color: color-mix(in srgb, var(--accent-dark) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-dark) 8%, transparent); }

/* ===================== Überweisungs-/Bonus-Kacheln im Ziel-Cockpit ===================== */
.bonus-amount { font-size: 1.55rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; color: var(--accent-dark); }
.goal-ring[data-status="good"] .bonus-amount { color: #075c39; }
.goal-ring[data-status="watch"] .bonus-amount { color: #8a5e00; }
.payout-tile, .bonus-tile { justify-content: flex-start; }
