/* Vogels Trading Journal. Aufbau: feste Seitenleiste links, Kopfzeile mit Filtern, Inhalt als Karten-Raster. */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/montserrat-normal-500.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-normal-600.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/montserrat-normal-700.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/montserrat-normal-800.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/montserrat-normal-900.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: italic; font-weight: 800; font-display: swap; src: url('/fonts/montserrat-italic-800.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: italic; font-weight: 900; font-display: swap; src: url('/fonts/montserrat-italic-900.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0F0F0F; --s1: #151715; --s2: #1B1E1B; --s3: #242824; --line: #2A2F2A; --line2: #363C36;
  --text: #F3F4F6; --muted: #9AA39D; --dim: #6E776F;
  --neon: #39FF14; --green: #22C55E; --green-l: #4ADE80; --green-d: #1a9c2c;
  --gold: #FFC300; --gold-l: #FFD75E; --red: #FF2D55; --red-l: #FF6B88;
  --glow: 0 0 10px rgba(57,255,20,.28); --glow-gold: 0 0 10px rgba(255,195,0,.3);
  --r: 14px; --font: Montserrat, Bahnschrift, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: var(--green-l); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(57,255,20,.3); }
.num, td.r, .kv b, .kpi .v { font-variant-numeric: tabular-nums; }
.pos { color: var(--green-l); } .neg { color: var(--red-l); } .mut { color: var(--muted); } .gold { color: var(--gold-l); }
.r { text-align: right; } .c { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.sp { justify-content: space-between; }

/* Start und Anmeldung */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.boot img { mix-blend-mode: screen; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth::before, .main::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(57,255,20,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,20,.05) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 0%, transparent 75%); }
.main::before { height: 320px; inset: 0 0 auto 0; -webkit-mask-image: radial-gradient(ellipse 55% 100% at 50% 0%, #000 0%, transparent 78%); mask-image: radial-gradient(ellipse 55% 100% at 50% 0%, #000 0%, transparent 78%); }
.authbox { position: relative; width: min(420px, 100%); display: grid; gap: 18px; justify-items: center; }
.authbox img { width: 190px; height: 190px; mix-blend-mode: screen; margin-bottom: -22px; }
.authbox form { width: 100%; display: grid; gap: 12px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.wordmark { text-align: center; line-height: 1; }
.wordmark .v { font-weight: 900; font-style: italic; font-size: 44px; letter-spacing: 1px; color: #fff; -webkit-text-stroke: 1.5px var(--green-d); paint-order: stroke fill; text-shadow: 0 0 8px rgba(57,255,20,.55); padding-right: .08em; }
.wordmark .t { margin-top: 8px; font-weight: 600; font-size: 15px; letter-spacing: .52em; color: var(--gold); text-shadow: 0 0 8px rgba(255,195,0,.4); padding-left: .52em; }
.wordmark .j { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .4em; color: var(--muted); padding-left: .4em; }

/* Grundgeruest */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); height: 100vh; }
.side { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; overflow-y: auto; background: var(--bg); z-index: 30; }
.brand { display: flex; align-items: center; gap: 4px; padding: 0 2px 12px; }
.brand img { width: 62px; height: 62px; mix-blend-mode: screen; margin: -6px -4px -6px -8px; }
.brand .v { font-weight: 900; font-style: italic; font-size: 21px; color: #fff; -webkit-text-stroke: 1px var(--green-d); paint-order: stroke fill; text-shadow: 0 0 6px rgba(57,255,20,.5); line-height: 1; }
.brand .t { font-weight: 600; font-size: 9.5px; letter-spacing: .5em; color: var(--gold); margin-top: 4px; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; border: 1px solid transparent; }
.nav a:hover { color: var(--text); background: var(--s1); text-decoration: none; }
.nav a.on { color: #fff; border-color: rgba(57,255,20,.55); background: rgba(57,255,20,.07); box-shadow: var(--glow), inset 0 0 10px rgba(57,255,20,.1); }
.nav a.on svg { color: var(--neon); }
.nav svg, .ic { width: 18px; height: 18px; flex: none; }
.navsep { margin: 10px 12px 4px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.sidefoot { margin-top: auto; padding: 12px 6px 2px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.sync { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.ok { background: var(--neon); box-shadow: 0 0 8px var(--neon); } .dot.warn { background: var(--gold); } .dot.bad { background: var(--red); }
.main { position: relative; overflow-y: auto; min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 22px; background: rgba(15,15,15,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ptitle { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 21px; letter-spacing: .5px; color: #fff; -webkit-text-stroke: 1px var(--green-d); paint-order: stroke fill; text-shadow: 0 0 7px rgba(57,255,20,.45); margin: 0 auto 0 0; padding-right: .1em; white-space: nowrap; }
.content { position: relative; padding: 18px 22px 60px; display: grid; gap: 16px; max-width: 1640px; margin: 0 auto; }
.burger { display: none; }

/* Bedienelemente */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--green); background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; box-shadow: 0 0 8px rgba(57,255,20,.22), inset 0 0 8px rgba(57,255,20,.08); }
.btn:hover { border-color: var(--neon); box-shadow: 0 0 12px rgba(57,255,20,.45), inset 0 0 10px rgba(57,255,20,.14); text-decoration: none; }
.btn.primary { background: var(--green); color: #03130A; border-color: var(--green-l); font-weight: 800; }
.btn.primary:hover { background: var(--green-l); }
.btn.ghost { border-color: var(--line2); box-shadow: none; background: var(--s1); color: var(--text); font-weight: 600; }
.btn.ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn.gold { border-color: var(--gold); color: var(--gold-l); box-shadow: var(--glow-gold), inset 0 0 8px rgba(255,195,0,.1); }
.btn.danger { border-color: var(--red); color: var(--red-l); box-shadow: none; }
.btn.sm { padding: 4px 11px; font-size: 12px; }
.btn.icon { padding: 6px; border-radius: 50%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn .badge { background: var(--gold); color: #1a1300; border-radius: 999px; font-size: 10px; padding: 1px 6px; font-weight: 800; }
.in, select.in, textarea.in { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 11px; color: var(--text); min-width: 0; }
.in:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
textarea.in { resize: vertical; min-height: 110px; line-height: 1.55; }
select.in { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239AA39D' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.in.sm { padding: 5px 9px; font-size: 12.5px; width: auto; }
label.f { display: grid; gap: 5px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
label.f > .in { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.form { display: grid; gap: 12px; }
.form2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.err { color: var(--red-l); font-size: 13px; min-height: 1em; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.chk input { accent-color: var(--green); width: 16px; height: 16px; }
.seg { display: inline-flex; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 5px 13px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.seg button.on { background: var(--s3); color: #fff; box-shadow: inset 0 0 0 1px rgba(57,255,20,.5); }
.pop { position: relative; }
.popbox { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 270px; max-width: min(92vw, 360px); background: var(--s2); border: 1px solid var(--line2); border-radius: 12px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }

/* Karten */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.ct { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct .sub { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--dim); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi .v { font-size: 25px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.g3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.25fr); gap: 14px; }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.g23 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; }
.g13 { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; align-items: start; }
.gauto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); display: grid; gap: 12px; justify-items: center; line-height: 1.6; }
.empty img { width: 150px; mix-blend-mode: screen; opacity: .9; }
.empty h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 800; }
.wl { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--s3); gap: 2px; min-width: 110px; }
.wl i { display: block; height: 100%; } .wl .w { background: var(--green); } .wl .l { background: var(--red); }

/* Tabellen */
.tw { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.s { cursor: pointer; } .tbl th.s:hover { color: var(--text); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.cl { cursor: pointer; } .tbl tbody tr.cl:hover { background: var(--s2); }
.tbl td.wrap { white-space: normal; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; border: 1px solid; text-transform: uppercase; }
.pill.win { color: var(--green-l); border-color: rgba(34,197,94,.6); background: rgba(34,197,94,.1); }
.pill.loss { color: var(--red-l); border-color: rgba(255,45,85,.55); background: rgba(255,45,85,.1); }
.pill.be { color: var(--muted); border-color: var(--line2); }
.pill.open { color: var(--gold-l); border-color: rgba(255,195,0,.6); background: rgba(255,195,0,.08); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--s3); border: 1px solid var(--line2); color: var(--text); white-space: nowrap; }
button.chip { cursor: pointer; } button.chip:hover { border-color: var(--muted); }
button.chip.on { border-color: var(--green); background: rgba(34,197,94,.14); color: #fff; box-shadow: 0 0 6px rgba(57,255,20,.2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stars { display: inline-flex; gap: 2px; } .stars button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--line2); font-size: 18px; line-height: 1; } .stars button.on { color: var(--gold); text-shadow: 0 0 6px rgba(255,195,0,.5); }
.bar { height: 8px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.bar.gold > i { background: var(--gold); } .bar.red > i { background: var(--red); }
.hb { display: grid; grid-template-columns: 1fr 1fr; align-items: center; height: 14px; min-width: 120px; }
.hb .n, .hb .p { height: 8px; display: flex; } .hb .n { justify-content: flex-end; border-right: 1px solid var(--line2); } .hb .p { border-left: 1px solid var(--line2); }
.hb i { display: block; height: 100%; } .hb .n i { background: var(--red); border-radius: 4px 0 0 4px; } .hb .p i { background: var(--green); border-radius: 0 4px 4px 0; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); } .kv b { font-weight: 700; text-align: right; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 13px; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: #fff; border-bottom-color: var(--neon); }

/* Kalender */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, .9fr); gap: 5px; }
.cal .hd { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; text-align: center; padding: 2px 0 4px; }
.cal .d { min-height: 62px; border-radius: 9px; background: var(--s2); border: 1px solid var(--line); padding: 5px 7px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; min-width: 0; }
.cal .d.out { background: transparent; border-color: transparent; }
.cal .d.has { cursor: pointer; }
.cal .d.w { background: rgba(34,197,94,.13); border-color: rgba(34,197,94,.45); } .cal .d.l { background: rgba(255,45,85,.11); border-color: rgba(255,45,85,.42); }
.cal .d.has:hover { border-color: var(--text); }
.cal .d .n { color: var(--muted); font-weight: 700; } .cal .d .p { font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cal .d .t { color: var(--muted); font-size: 10px; }
.cal .d.today .n { color: var(--gold-l); }
.cal .wk { background: var(--bg); border-style: dashed; }
.ycal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini i { aspect-ratio: 1; border-radius: 4px; background: var(--s2); display: block; } .mini i.x { background: transparent; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heat i { border-radius: 3px; background: var(--s2); display: block; }

/* Diagramme */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--font); font-size: 10.5px; fill: var(--muted); font-weight: 600; }
#tip { position: fixed; z-index: 100; pointer-events: none; background: #0b0c0b; border: 1px solid var(--line2); border-radius: 9px; padding: 7px 10px; font-size: 12px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0,0,0,.6); max-width: 260px; }
#tip b { font-weight: 800; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Tagesjournal */
.day { display: grid; gap: 12px; }
.dayhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; cursor: pointer; }
.dayhead h3 { margin: 0; font-size: 15px; font-weight: 800; }
.daygrid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: center; }
.stats6 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.stats6 > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.stats6 span { color: var(--muted); } .stats6 b { font-variant-numeric: tabular-nums; }
.md h3 { font-size: 15px; margin: 12px 0 6px; } .md h4 { font-size: 13px; margin: 10px 0 4px; color: var(--gold-l); } .md p { margin: 6px 0; line-height: 1.6; } .md ul { margin: 4px 0; padding-left: 20px; line-height: 1.6; }
.md { font-size: 13.5px; overflow-wrap: anywhere; }

/* Trade-Detail */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.thumb { position: relative; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* Notizbuch */
.nb { display: grid; grid-template-columns: 200px 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.nblist { display: grid; gap: 4px; max-height: 70vh; overflow-y: auto; }
.nbitem { text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; width: 100%; }
.nbitem:hover { background: var(--s2); } .nbitem.on { border-color: rgba(57,255,20,.5); background: rgba(57,255,20,.06); }
.nbitem b { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nbitem span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Fenster und Hinweise */
.modalbg { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(560px, 100%); background: var(--s1); border: 1px solid var(--line2); border-radius: 16px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.7); }
.modal.wide { width: min(820px, 100%); }
.modal h2 { margin: 0; font-size: 17px; font-weight: 800; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: grid; gap: 8px; }
.toast { background: var(--s2); border: 1px solid var(--green); border-radius: 10px; padding: 10px 14px; font-weight: 600; box-shadow: var(--glow); max-width: 340px; }
.toast.bad { border-color: var(--red); box-shadow: none; }
.code { font-family: Consolas, 'Courier New', monospace; background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }
ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; color: var(--text); }

@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } .g3 > :first-child { grid-column: 1 / -1; } .nb { grid-template-columns: 180px 230px minmax(0, 1fr); } }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 60px #000; }
  .burger { display: inline-flex; }
  .top { padding: 10px 16px; } .content { padding: 14px 16px 60px; }
  .g2, .g3, .g23, .g13, .nb, .daygrid { grid-template-columns: 1fr; }
  .g3 > :first-child { grid-column: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .stats6 { grid-template-columns: 1fr 1fr; }
  .cal .d { min-height: 52px; padding: 4px; } .cal .d .p { font-size: 10.5px; } .cal .d .t { display: none; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } .ptitle { font-size: 17px; } .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); } .cal .wk, .cal .hd.wkh { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
