/* ============================================================
   nova³ Vertriebler-Portal — Design System
   ============================================================ */
:root {
  --bg: #f4f5f9;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #14161d;
  --ink-2: #4b5266;
  --muted: #868ea3;
  --line: #e7e9f0;
  --line-2: #eef0f5;

  --brand: #4f46e5;
  --brand-2: #6d5efc;
  --brand-ink: #ffffff;
  --brand-soft: #ecebfe;

  --green: #0a7c46; --green-bg: #e5f4ec;
  --amber: #9a6700; --amber-bg: #fbf1dc;
  --red: #c0392b;   --red-bg: #fdecea;
  --sky: #1e6fd9;   --sky-bg: #e7f0fd;

  --shadow-sm: 0 1px 2px rgba(20,22,29,.06), 0 1px 3px rgba(20,22,29,.04);
  --shadow-md: 0 4px 16px rgba(20,22,29,.08);
  --shadow-lg: 0 20px 48px rgba(20,22,29,.18);

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sidebar-w: 250px;
  --ff: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0d0f14;
  --bg-elev: #14171f;
  --surface: #161a23;
  --surface-2: #1c212c;
  --ink: #eef0f6;
  --ink-2: #b9c0d0;
  --muted: #7f889c;
  --line: #262c38;
  --line-2: #212734;
  --brand: #7c6cff;
  --brand-2: #937fff;
  --brand-soft: #221f45;
  --green-bg: #10261c; --amber-bg: #2a2110; --red-bg: #2c1614; --sky-bg: #101f34;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f14; --bg-elev: #14171f; --surface: #161a23; --surface-2: #1c212c;
    --ink: #eef0f6; --ink-2: #b9c0d0; --muted: #7f889c; --line: #262c38; --line-2: #212734;
    --brand: #7c6cff; --brand-2: #937fff; --brand-soft: #221f45;
    --green-bg: #10261c; --amber-bg: #2a2110; --red-bg: #2c1614; --sky-bg: #101f34;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5); --shadow-md: 0 6px 20px rgba(0,0,0,.5); --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
/* Inline-Icons standardmaessig klein halten (Charts/Empty/Buttons ueberschreiben das). */
svg { width: 18px; height: 18px; flex-shrink: 0; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--ff); background: var(--bg); color: var(--ink);
  font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }

/* ---------- Login ---------- */
.login-bg {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(1000px 500px at 110% 110%, rgba(109,94,252,.14), transparent 55%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 34px 30px;
}
.login-logo { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.login-logo span { color: var(--brand); }
.login-tag { color: var(--muted); margin: 2px 0 26px; font-size: 13.5px; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--bg-elev); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { font-size: 22px; font-weight: 800; letter-spacing: -.5px; padding: 6px 10px 20px; }
.sidebar .logo span { color: var(--brand); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav .section { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 16px 12px 6px; font-weight: 700; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; transition: .12s;
}
.nav a svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .8; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.nav a.active svg { opacity: 1; }
.sidebar .spacer { flex: 1; }
.side-user { padding: 12px; border-top: 1px solid var(--line); margin-top: 8px; border-radius: var(--r-sm); transition: .12s; }
.side-user:hover { background: var(--surface-2); }
.side-user.active { background: var(--brand-soft); }
.side-user .nm { font-weight: 700; font-size: 13.5px; }
.side-user .rl { color: var(--muted); font-size: 12px; }
.side-user .su-set { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--brand); font-weight: 600; }
.side-user .su-set svg { width: 15px; height: 15px; }

/* Popover-Menü am Namensblock */
.usermenu {
  position: fixed; left: calc(var(--sidebar-w) + 8px); bottom: 18px; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; display: flex; flex-direction: column; gap: 2px;
}
.usermenu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: 0; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.usermenu button:hover { background: var(--surface-2); }
.usermenu button svg { width: 17px; height: 17px; color: var(--muted); }

/* Account-Tabs */
.acct-tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.acct-tab { padding: 10px 16px; font-size: 14px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acct-tab:hover { color: var(--ink); }
.acct-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 19px; margin: 0; font-weight: 750; letter-spacing: -.3px; }
.topbar .sub { color: var(--muted); font-size: 13px; font-weight: 500; }
.view { padding: 26px 32px 60px; max-width: 1440px; width: 100%; }
.view.full { max-width: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--brand); color: var(--brand-ink); border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 9px 15px; font-size: 13.5px; font-weight: 650; cursor: pointer;
  transition: .12s; white-space: nowrap;
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.soft:hover { filter: brightness(.97); }
.btn.danger { background: var(--red); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn.block { width: 100%; padding: 12px; font-size: 15px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: .12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 12.5px; color: var(--ink-2); margin: 12px 0 5px; font-weight: 600; }
input, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; background: var(--surface); color: var(--ink); transition: .12s;
}
input::placeholder { color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 20px;
}
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-h h2 { font-size: 16px; margin: 0; font-weight: 700; }
.card-h .muted { font-size: 13px; }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.tile .ic { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tile .ic svg { width: 18px; height: 18px; }
.tile .val { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.tile .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; font-weight: 600; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.gray { background: var(--surface-2); color: var(--ink-2); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.sky { background: var(--sky-bg); color: var(--sky); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
tbody tr { transition: .1s; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }
.row-click { cursor: pointer; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 150px; }
.filters .search { flex: 1; min-width: 200px; }

/* ---------- Kanban ---------- */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kcol { flex: 1 1 0; min-width: 200px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 60vh; }
.kcol .kh { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-weight: 700; font-size: 13px; }
.kcol .kh .cnt { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; color: var(--muted); }
.kcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 12px; margin-bottom: 9px; cursor: pointer; box-shadow: var(--shadow-sm); transition: .12s;
}
.kcard:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.kcard .f { font-weight: 700; font-size: 13.5px; }
.kcard .m { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kcard .tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10,12,18,.45); z-index: 40; opacity: 0; transition: .18s; }
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 460px; max-width: 94vw; z-index: 41;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .22s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-h { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-h .t { font-size: 18px; font-weight: 750; letter-spacing: -.3px; }
.drawer-h .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.drawer-b { padding: 20px 22px; overflow-y: auto; flex: 1; }
.drawer-sec { margin-bottom: 22px; }
.drawer-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv .k { color: var(--muted); }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 18px; }
.timeline:before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 14px; }
.tl-item:before { content: ""; position: absolute; left: -18px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.tl-item .a { font-weight: 650; font-size: 13px; }
.tl-item .d { color: var(--muted); font-size: 12px; }

/* ---------- Misc ---------- */
.banner { padding: 13px 16px; border-radius: var(--r); font-size: 13.5px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.banner.amber { background: var(--amber-bg); color: var(--amber); }
.banner.green { background: var(--green-bg); color: var(--green); }
.banner.brand { background: var(--brand-soft); color: var(--brand); }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; display: flex; }
.progress > span { display: block; height: 100%; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty svg { width: 40px; height: 40px; opacity: .4; margin-bottom: 10px; }
.err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; }
.muted { color: var(--muted); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 2px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { display: none; }
.switch .sl { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .15s; cursor: pointer; }
.switch .sl:before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + .sl { background: var(--green); }
.switch input:checked + .sl:before { transform: translateX(16px); }

/* ---------- Charts ---------- */
.charts-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .cx-label { fill: var(--ink-2); font-size: 12px; }
.chart .cx-val { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart .cx-axis { stroke: var(--line); stroke-width: 1; }
.chart .cx-bar { fill: var(--brand); }
.chart .cx-bar:hover { fill: var(--brand-2); }
.chart .cx-area { fill: var(--brand); opacity: .12; }
.chart .cx-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.chart .cx-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }

/* ---------- Logo ---------- */
.logo-img { display: block; height: 34px; width: auto; object-fit: contain; }
:root:not([data-theme="dark"]) .logo-img { filter: invert(1) brightness(.25); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-img { filter: invert(1) brightness(.25); } }
:root[data-theme="light"] .logo-img { filter: invert(1) brightness(.25); }
.login-logo-img { height: 66px; width: auto; margin: 0 auto 4px; display: block; }

/* ---------- Sales-Fortschrittsbalken ---------- */
.pbar { display: flex; align-items: flex-start; margin: 4px 0 8px; }
.pstep { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 auto; }
.pstep .pdot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 2px solid var(--line); font-weight: 700; font-size: 12px; }
.pstep .pdot svg { width: 15px; height: 15px; }
.pstep.done .pdot { background: var(--green); border-color: var(--green); color: #fff; }
.pstep.cur .pdot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.pstep .plbl { font-size: 11px; color: var(--muted); white-space: nowrap; text-align: center; }
.pstep.cur .plbl { color: var(--ink); font-weight: 700; }
.pline { flex: 1 1 auto; height: 2px; background: var(--line); margin: 15px 4px 0; min-width: 8px; }
.pline.done { background: var(--green); }

/* ---------- Analyse / Verkaufsargumente ---------- */
.analyse-list { list-style: none; margin: 0; padding: 0; }
.analyse-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.analyse-list li:last-child { border-bottom: 0; }
.analyse-list li:before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.analyse-list.schwach li:before { background: var(--amber); }
.analyse-list.chance li:before { background: var(--green); }

/* ---------- Verkaufs-Leitfaden ---------- */
.guide h3 { margin: 16px 0 6px; }
.guide p { line-height: 1.55; }
.guide ul { margin: 6px 0 0; padding-left: 18px; }
.guide li { margin: 6px 0; font-size: 14px; }
.guide details { border-top: 1px solid var(--line-2); margin-top: 14px; padding-top: 10px; }
.guide summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::before { content: "▸"; color: var(--muted); }
.guide details[open] summary::before { content: "▾"; }
.guide .qa { margin: 10px 0 12px 2px; }
.guide .qa .q { font-weight: 650; font-size: 13.5px; }
.guide .qa .an { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.guide .gl { margin: 9px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.guide .gl b { color: var(--ink); }

/* ---------- Spinner ---------- */
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Lead-Detailseite ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; margin-bottom: 12px; }
.back:hover { color: var(--ink); }
.lead-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.lead-head .t { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.lead-head .s { color: var(--muted); margin-top: 2px; }
.lead-head .contact { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.lead-head .contact svg { width: 16px; height: 16px; color: var(--brand); }
.lead-head .contact.muted { color: var(--muted); }
.lead-head .contact.muted svg { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 20px; align-items: start; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; }
.stepper .step { padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 650; cursor: pointer; color: var(--ink-2); transition: .12s; }
.stepper .step:hover { border-color: var(--brand); }
.stepper .step.done { background: var(--green-bg); color: var(--green); border-color: transparent; }
.stepper .step.current { background: var(--brand); color: var(--brand-ink); border-color: transparent; }

/* ---------- Tasks ---------- */
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.task:last-child { border-bottom: 0; }
.task .cbx { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; flex: 0 0 20px; margin-top: 1px; display: grid; place-items: center; color: transparent; transition: .12s; }
.task .cbx:hover { border-color: var(--brand); }
.task.done .cbx { background: var(--green); border-color: var(--green); color: #fff; }
.task .cbx svg { width: 13px; height: 13px; }
.task .body { flex: 1; min-width: 0; }
.task .tt { font-weight: 600; font-size: 14px; }
.task.done .tt { text-decoration: line-through; color: var(--muted); }
.task .mt { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task .due-over { color: var(--red); font-weight: 700; }
.task .due-today { color: var(--amber); font-weight: 700; }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r);
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; z-index: 60; opacity: 0; transition: .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* skeleton */
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line-2) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sh 1.2s infinite; border-radius: 6px; }
@keyframes sh { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 1000px) {
  .charts-2 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .view { padding: 20px 16px 50px; }
}
