/* ReAssign Pro — styles. Tokens mirror the original light/dark palette. */
:root {
  --card: #fdfbf9; --card-foreground: #0a0a0a; --popover: #fdfbf9; --popover-foreground: #0a0a0a;
  --primary: #fac800; --primary-foreground: #733e0a; --primary-ink: #6d4b00;
  --secondary: #f6f4f0; --secondary-foreground: #1a1815; --muted: #f7f5f1; --muted-foreground: #76736e;
  --accent: #f7f5f1; --accent-foreground: #171717; --destructive: #e40014; --warning: #d88018;
  --border: #e7e5e1; --input: #e7e5e1; --ring: #a1a1a1; --radius: .625rem;
  --background: #fcfaf6; --foreground: #0a0a0a;
  --now-indicator: #da6438; --cycle-drop: #d24b54;
  --weather-clear: #f4bf3f; --weather-cloud: #a2acb7; --weather-rain: #1a89c5; --weather-snow: #99dfe3;
  --weather-day-wash: #feeec1; --weather-night-ink: #26324d; --weather-golden: #faab3f; --weather-comfort: #83d494; --weather-tint: #89a2b5;
  --weather-temp-cold: #5aa3ec; --weather-temp-cool: #5fc9db; --weather-temp-mild: #89da9b; --weather-temp-warm: #feb354; --weather-temp-hot: #f45246;
  --weather-moon: #e0e5eb;
  --weather-uv-low: #95d7a2; --weather-uv-moderate: #e8cd62; --weather-uv-high: #fd923e; --weather-uv-very-high: #e9622e; --weather-uv-extreme: #a059b1;
  --weather-pressure-low: #f5519f; --weather-pressure-normal: #e87cc7; --weather-pressure-high: #d0a4e4;
  --shadow-drag-lift: 0 8px 16px #0000002e;
  --shadow-popup: 0 12px 32px #0000002e, 0 3px 8px #0000001a;
  --shadow-card: 0 1px 2px #0000000d, 0 2px 8px #00000008;

  --dial-rim: #f4f2ee; --dial-track: #efede9; --dial-track-in: #e9e7e3; --dial-track-out: #f6f4f0;
  --dial-disc: #f3f1ed; --dial-disc-hi: #fbfaf8; --dial-shadow: rgba(60, 50, 30, .16);
  --dial-line: rgba(40, 35, 25, .32); --dial-line-soft: rgba(40, 35, 25, .16); --dial-label: #6f6c66; --dial-label-major: #3b3934;
  --dial-night: rgba(70, 80, 110, .05);
  --shade-dark: #000; --shade-light: #fff; --shade-in: .16; --shade-hi: .5; --shade-out: .2;
  --cal-fill: rgba(255, 255, 255, .55);
  --energy-awake: #c2a70f; --energy-sleep: #7466d0; --energy-inertia: #9b9378;
  --dot-grid: rgba(60, 50, 30, .13);
  color-scheme: light;
}
.dark {
  --shadow-popup: 0 16px 40px #0000008c, 0 4px 12px #00000059; --shadow-card: 0 1px 2px #0000004d;
  --background: #0b0a08; --foreground: #fafafa; --card: #191714; --card-foreground: #fafafa; --popover: #22201d; --popover-foreground: #fafafa;
  --primary: #edb200; --primary-foreground: #733e0a; --primary-ink: var(--primary);
  --secondary: #292724; --secondary-foreground: #fafafa; --muted: #282623; --muted-foreground: #a3a09b; --accent: #282623; --accent-foreground: #fafafa;
  --destructive: #ff6568; --warning: #eba42c; --now-indicator: #e37547; --cycle-drop: #ea6a6a;
  --border: #ffffff1a; --input: #ffffff26; --ring: #737373;
  --weather-clear: #f9c635; --weather-cloud: #95a0ab; --weather-rain: #2ea2e5; --weather-snow: #83d4d8; --weather-day-wash: #907f4e; --weather-night-ink: #0f1932;
  --weather-golden: #f7a224; --weather-comfort: #76cf8a; --weather-tint: #3b596e;
  --weather-temp-cold: #4d97de; --weather-temp-cool: #51bcce; --weather-temp-mild: #7ccd8e; --weather-temp-warm: #f7ac4d; --weather-temp-hot: #e6443a; --weather-moon: #d0d8e1;
  --weather-uv-low: #88ca95; --weather-uv-moderate: #dbc054; --weather-uv-high: #ef852e; --weather-uv-very-high: #db551d; --weather-uv-extreme: #944da4;
  --weather-pressure-low: #ff61ab; --weather-pressure-normal: #fa85d6; --weather-pressure-high: #dfaef5;
  --dial-rim: #121110; --dial-track: #121110; --dial-track-in: #0f0e0c; --dial-track-out: #161513;
  --dial-disc: #100f0d; --dial-disc-hi: #161513; --dial-shadow: rgba(0, 0, 0, .7);
  --dial-line: rgba(255, 255, 255, .26); --dial-line-soft: rgba(255, 255, 255, .1); --dial-label: #8e8b85; --dial-label-major: #d6d3cd;
  --dial-night: rgba(120, 140, 200, .04);
  --shade-in: .35; --shade-hi: .14; --shade-out: .45;
  --cal-fill: rgba(255, 255, 255, .06);
  --energy-awake: #d4b80f; --energy-sleep: #7e70e0; --energy-inertia: #a59c7d;
  --dot-grid: rgba(255, 255, 255, .07);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.45;
  color: var(--foreground); background-color: var(--background);
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1.2px);
  background-size: 18px 18px; -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .5; }
a { color: var(--primary-ink); }
kbd { font-family: inherit; font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 5px; background: var(--secondary); color: var(--muted-foreground); border: 1px solid var(--border); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.serif { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
.muted { color: var(--muted-foreground); }
.small { font-size: 12px; }
.row { display: flex; align-items: center; }
.row.center { align-items: center; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; }
.pad { padding: 10px; }
.t-right { text-align: right; }
.center:not(.row) { text-align: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.ic { flex: none; display: block; }
#app { height: 100%; display: flex; flex-direction: column; }
::selection { background: color-mix(in srgb, var(--primary) 40%, transparent); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 70%, transparent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); font-weight: 500; font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 1px 1px #00000008; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover:not(:disabled) { background: var(--secondary); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--primary); border-color: transparent; color: var(--primary-foreground); }
.dark .btn.primary { color: #2b1a00; }
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--secondary); }
.btn.ghost-b { background: transparent; }
.btn.danger { background: var(--destructive); color: #fff; border-color: transparent; }
.btn.danger-ghost { color: var(--destructive); }
.btn.sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.btn kbd { margin-left: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--foreground);
  transition: background .15s; position: relative;
}
.icon-btn:hover, .icon-btn.open { background: var(--secondary); }
.icon-btn.round { width: 36px; height: 36px; border-radius: 26px; background: var(--background); border: 1px solid var(--border); }
.icon-btn.round:hover, .icon-btn.round.open { background: var(--secondary); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.xs { width: 22px; height: 22px; border-radius: 6px; }
.icon-btn.ghost { background: transparent; border: 0; box-shadow: none; }
.icon-btn.ghost:hover { background: var(--secondary); }
.icon-btn .count { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.link-btn { color: var(--primary-ink); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.link-btn.sm { font-size: 12px; }
.link-btn:hover { text-decoration: underline; }
.pill-btn { height: 36px; padding: 0 14px; border-radius: 26px; background: var(--background); border: 1px solid var(--border); font-weight: 500; font-size: 14px; }
.pill-btn:hover { background: var(--secondary); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); font-weight: 500; font-size: 13px; }
.chip:hover { background: var(--secondary); }
.chip.on { background: var(--secondary); color: var(--foreground); border-color: color-mix(in srgb, var(--foreground) 22%, transparent); box-shadow: inset 0 1px 2px #0000000f; }
.chip.sm { height: 26px; padding: 0 9px; font-size: 12px; white-space: nowrap; flex: none; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); border: 1px solid var(--border); }
.badge.ok { background: color-mix(in srgb, var(--weather-comfort) 30%, transparent); color: var(--foreground); }
.kbd-group { display: inline-flex; gap: 3px; align-items: center; }
.spin .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* ---------- inputs ---------- */
.input {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: color-mix(in srgb, var(--foreground) 30%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.input.num { width: 70px; text-align: center; padding: 0 6px; }
select.input { padding-right: 8px; }
.ic-input { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--secondary); color: var(--muted-foreground); }
.ic-input .input { border: 0; background: transparent; padding: 0; height: 36px; box-shadow: none; color: var(--foreground); }
.time-in { border: 0; background: transparent; outline: none; font-variant-numeric: tabular-nums; width: 92px; text-align: center; padding: 6px; border-radius: 8px; }
.time-in:focus { background: var(--card); }
.time-in::-webkit-calendar-picker-indicator { display: none; }
.time-in.boxed { background: var(--secondary); border: 1px solid var(--border); width: 96px; }
.select {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  display: flex; align-items: center; gap: 8px; text-align: left; transition: background .15s;
}
.select:hover, .select.open { background: var(--secondary); }
.select .sel-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select .placeholder { color: var(--muted-foreground); }
.select .chev { color: var(--muted-foreground); }
.select .sel-ic { display: grid; place-items: center; color: var(--muted-foreground); }
.select.static { cursor: default; }
.toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--border); position: relative; transition: background .2s; flex: none; }
.dark .toggle { background: #ffffff26; }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s; }
.toggle.on { background: var(--primary); }
.toggle.on .knob { transform: translateX(14px); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--secondary); gap: 2px; }
.seg-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 999px; color: var(--muted-foreground); font-size: 13px; font-weight: 500; white-space: nowrap; }
.seg-btn:hover { color: var(--foreground); }
.seg-btn.active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 3px #0000001f; }
.seg.mini .seg-btn { height: 22px; padding: 0 8px; font-size: 11.5px; }
.seg.wide { display: flex; } .seg.wide .seg-btn { flex: 1; justify-content: center; }
.range { -webkit-appearance: none; appearance: none; width: 140px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--primary) var(--p, 50%), var(--border) var(--p, 50%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px #0003; cursor: pointer; }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--border); }

/* ---------- popovers & menus ---------- */
.popover {
  position: fixed; z-index: 60; min-width: 180px; background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-popup); padding: 6px; opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity .12s, transform .12s;
  max-height: calc(100vh - 24px); overflow: auto;
}
.popover.in { opacity: 1; transform: none; }
.menu { display: flex; flex-direction: column; min-width: 200px; }
.menu-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px; text-align: left; font-size: 13.5px; white-space: nowrap; }
.menu-item:hover:not(:disabled), .menu-item.active { background: var(--secondary); }
.menu-item.danger { color: var(--destructive); }
.menu-item .mi-ic { width: 18px; display: grid; place-items: center; color: var(--muted-foreground); }
.menu-item.danger .mi-ic { color: var(--destructive); }
.menu-item .mi-label { flex: 1; }
.menu-item .mi-sub { color: var(--muted-foreground); font-size: 12px; }
.menu-item .mi-right { color: var(--muted-foreground); font-size: 12px; }
.menu-item .mi-check { color: var(--foreground); display: grid; }
.menu-item .mi-check.off { opacity: 0; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-header { font-size: 12px; color: var(--muted-foreground); padding: 8px 10px 4px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 5px 10px; min-height: 38px; font-size: 13.5px; }
.app-menu .menu { min-width: 290px; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--primary) 60%, #fff); display: inline-block; }
.acct { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; min-width: 220px; }
.select-pop { padding: 5px; }
.select-pop .menu { min-width: 0; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 10, .28); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .15s; }
.dark .overlay { background: rgba(0, 0, 0, .55); }
.overlay.in { opacity: 1; }
.modal { background: var(--popover); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-popup); max-height: calc(100vh - 32px); overflow: auto; transform: translateY(6px) scale(.985); transition: transform .16s; position: relative; width: min(560px, 100%); }
.overlay.in .modal { transform: none; }
.modal.small { width: min(420px, 100%); }
.modal.mid { width: min(720px, 100%); }
.confirm { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.confirm h3 { margin: 0; font-size: 20px; }
.confirm p { margin: 0; }
.close-x { color: var(--muted-foreground); }
.ne { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.ne-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px; }
.ne-head h2 { margin: 0; font-size: 19px; }
.ne-body { padding: 4px 20px 16px; overflow: auto; }
.ne-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid transparent; }
.modal.new-event { width: min(404px, 100%); overflow: hidden; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches.pop { width: 196px; padding: 4px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px #0000001a; }
.swatch.on { border-color: var(--foreground); }
.swatch.pat { width: 36px; height: 36px; border-radius: 10px; background: var(--secondary); display: grid; place-items: center; }

/* ---------- toast / tooltip / empty ---------- */
.toast { position: fixed; left: 50%; bottom: 76px; z-index: 80; transform: translate(-50%, 10px); opacity: 0; transition: .2s; background: #1d1b18; color: #fff; padding: 9px 10px 9px 16px; border-radius: 999px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-popup); font-size: 13.5px; max-width: calc(100vw - 32px); }
.dark .toast { background: #f3f1ec; color: #111; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast-act { color: var(--primary); font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.dark .toast-act { color: #8a5d00; }
.toast-act:hover { background: #ffffff1a; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: #1d1b18; color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 8px; opacity: 0; transition: opacity .12s; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.tip kbd { background: #ffffff26; border-color: transparent; color: #fff; }
.tip.in { opacity: 1; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 24px; }
.empty-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary-ink); }
.empty-title { font-weight: 600; font-size: 16px; }
.empty-text { color: var(--muted-foreground); max-width: 290px; font-size: 13px; }

/* ---------- top bar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 16px; pointer-events: none; gap: 12px; }
.topbar > * { pointer-events: auto; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-left { gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 14px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); font-weight: 500; font-size: 14px; }
.brand:hover, .brand.open { background: var(--secondary); }
.brand-logo { color: var(--foreground); display: grid; }
.brand-pro { font-size: 10px; font-weight: 700; background: var(--primary); color: var(--primary-foreground); border-radius: 6px; padding: 1px 5px; letter-spacing: .03em; }
.brand .chev { color: var(--muted-foreground); margin-left: 4px; transition: transform .15s; }
.brand.open .chev { transform: rotate(180deg); }
.tagline { font-family: Caveat, cursive; font-size: 15px; color: var(--muted-foreground); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tagline .heart { color: #f2557a; }
.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--primary) 35%, var(--card)); color: var(--primary-foreground); font-weight: 600; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dark .avatar { background: color-mix(in srgb, var(--primary) 30%, var(--card)); color: #fff3cf; }
.avatar.xs { width: 20px; height: 20px; font-size: 10px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-btn { border-radius: 50%; }
.seg-group { display: flex; align-items: center; gap: 2px; padding: 4px; height: 40px; border-radius: 999px; background: var(--secondary); }
.seg-split { display: flex; align-items: center; border-radius: 999px; }
.seg-split.active { background: var(--card); box-shadow: 0 1px 2px #00000014, 0 0 0 1px var(--border); }
.seg-pill { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 22px; color: var(--muted-foreground); font-weight: 500; font-size: 14px; }
.seg-pill:hover { color: var(--foreground); }
.seg-pill.active { color: var(--foreground); }
.seg-pill.active:not(.main) { background: var(--card); box-shadow: 0 1px 2px #00000014, 0 0 0 1px var(--border); }
.seg-split .seg-pill.main { padding-right: 4px; }
.seg-caret { height: 32px; width: 26px; display: grid; place-items: center; color: var(--muted-foreground); border-radius: 999px; }
.seg-split.active .seg-caret { color: var(--foreground); }
.create-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-radius: 26px; background: var(--primary); color: var(--primary-foreground); font-weight: 500; font-size: 14px; }
.dark .create-btn { color: #2b1a00; }
.create-btn:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.kbd-chip { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, #fff 55%, transparent); color: var(--primary-foreground); }

/* ---------- views ---------- */
.view { position: relative; flex: 1; min-height: 0; }
.scroll-page { position: absolute; inset: 0; overflow: auto; padding: 80px 16px 60px; }
.page-title { font-size: 30px; font-weight: 600; letter-spacing: -.75px; line-height: 38px; margin: 0 0 4px; }
.page-sub { color: var(--muted-foreground); margin: 0 0 24px; font-size: 14px; }

/* ---------- dial ---------- */
.dial-wrap { position: absolute; inset: 0; }
.dial { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.view-dial .dial-wrap { top: 0; }
.ring-bg { fill: rgba(0, 0, 0, 0); stroke: var(--border); stroke-width: 1px; cursor: crosshair; }
.now-fill { fill: rgba(100, 116, 139, .045); pointer-events: none; }
.dark .now-fill { fill: rgba(148, 163, 184, .05); }
.mid-guide { fill: none; stroke: color-mix(in srgb, var(--foreground) 15%, transparent); stroke-width: 1; stroke-dasharray: 2 4; }
.coil-shadow { fill: rgb(107, 93, 74); }
.dark .coil-shadow { fill: #000; }
.coil-lift { fill: #fff; }
.dark .coil-lift { fill: #fff; opacity: .04 !important; }
.coil-seam-rim { stroke-width: 1.25px; stroke-linecap: round; opacity: .8; }
.dark .coil-seam-rim { opacity: .55; }
.hour-tick { stroke: var(--muted-foreground); stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 3 4; opacity: .55; }
.hour-tick.emphasized { stroke-width: 1.2px; opacity: .85; }
.quarter-tick { stroke: var(--muted-foreground); stroke-width: .7px; stroke-linecap: round; opacity: .55; }
.quarter-tick.half { opacity: .85; }
.hour-label { fill: var(--muted-foreground); font-family: Inter, sans-serif; font-variant-numeric: tabular-nums; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.hour-label-num { font-size: 15px; font-weight: 500; }
.hour-label-suffix { letter-spacing: .04em; opacity: .75; font-size: 10px; font-weight: 500; }
.hour-label-minor { opacity: .6; }
.hour-label-minor .hour-label-num { font-size: 9px; font-weight: 400; }
.sun-ic { stroke: var(--muted-foreground); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.temp-bar { stroke-width: 3; stroke-linecap: round; opacity: .92; }
.uv-bar { stroke-width: 3; stroke-linecap: round; opacity: .9; }
.wx-glyph { opacity: .95; }
.wedge { transition: opacity .12s; }
.wedge.past { opacity: .45; }
.wedge.dim { opacity: .15; }
.section { cursor: grab; outline: none; stroke-width: 1.2px; transition: stroke-width .12s, filter .12s; }
.section.virtual { stroke-dasharray: 6 3; stroke-opacity: .85; }
.wedge:not(.past):hover .section, .wedge.hover:not(.past) .section { filter: brightness(1.05) drop-shadow(0 1px 2px color-mix(in oklab, var(--foreground) 12%, transparent)); }
.wedge.selected .section { filter: drop-shadow(0 1px 4px color-mix(in oklab, var(--foreground) 28%, transparent)); stroke-dasharray: 0; stroke-width: 2px; }
.section-shade, .section-light { stroke: none; pointer-events: none; }
.section-glass { stroke: none; opacity: .7; mix-blend-mode: plus-lighter; pointer-events: none; }
.section-contact { fill: rgb(11, 18, 32); opacity: .16; filter: url(#wedgeContact); pointer-events: none; }
.dark .section-contact { fill: #000; opacity: .5; }
.wedge.mode-nonblocking .section { fill-opacity: .55; stroke-dasharray: 5 3; }
.wedge.mode-reference .section { stroke-dasharray: 2 3; stroke-width: 1.4px; }
.wedge.skipped .section { fill-opacity: .25; stroke-dasharray: 4 3; }
.wedge.cal .section { stroke-width: 1.4px; }
.dial.dragging .section { cursor: grabbing; }
.section-handle { fill: var(--background); stroke-width: 2px; cursor: ew-resize; filter: drop-shadow(0 1px 2px #0003); }
.handle { cursor: ew-resize; }
.energy-seg { fill: none; stroke-width: 3; stroke-linecap: round; }
.energy { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.energy.awake { stroke: oklch(0.72 0.18 110); }
.energy.sleep { stroke: oklch(0.56 0.13 286); }
.energy.inertia { stroke: oklch(0.64 0.045 95); }
.energy-arrow { stroke: none; }
.moment circle, .mood-mark circle { fill: var(--card); stroke: var(--border); }
.now-line { stroke: var(--now-indicator); stroke-width: 2.5px; stroke-linecap: round; }
.now-dot { filter: drop-shadow(0 0 3px color-mix(in oklab, var(--now-indicator) 55%, transparent)); transform-box: fill-box; transform-origin: center; animation: now-pulse 2.4s ease-in-out infinite; }
.now-ripple { fill: none; stroke: var(--now-indicator); stroke-width: 1.5px; transform-box: fill-box; transform-origin: center; animation: now-ripple 2.4s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes now-ripple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes now-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.callout { cursor: pointer; }
.section-leader { fill: none; stroke-width: 1px; stroke-dasharray: 3 3; }
.callout.hover .section-leader, .callout.selected .section-leader { stroke-opacity: 1; }
.co-title { font-size: 12.8px; font-weight: 500; fill: var(--foreground); }
.co-time { font-size: 10.9px; fill: var(--muted-foreground); }
.co-time .rep { fill: var(--muted-foreground); }
.co-note { font-size: 10px; fill: color-mix(in srgb, var(--muted-foreground) 85%, transparent); }
.callout.selected .co-title, .callout.hover .co-title { font-weight: 600; }
.center-date { font-size: 9.1px; letter-spacing: 1.64px; fill: var(--muted-foreground); font-family: Inter, sans-serif; }
.center-day { font-family: Caveat, cursive; font-weight: 500; fill: var(--foreground); }
.center-temps { font-size: 20px; font-weight: 500; fill: var(--foreground); }
.center-sub { font-size: 10px; fill: var(--muted-foreground); }
.center-pill { cursor: pointer; }
.center-pill rect { fill: var(--card); stroke: var(--border); }
.center-pill:hover rect { fill: var(--secondary); }
.pill-ic { stroke: var(--muted-foreground); stroke-width: 1.1; stroke-linecap: round; fill: none; }
.weather-pill { cursor: pointer; }
.weather-pill rect { fill: color-mix(in srgb, var(--card) 85%, transparent); stroke: var(--border); }
.weather-pill text { font-size: 9.1px; fill: var(--foreground); font-weight: 500; }
.nav-btn { cursor: pointer; }
.nav-btn circle { fill: color-mix(in srgb, var(--card) 60%, transparent); stroke: var(--border); transition: fill .15s; }
.nav-btn:hover circle { fill: var(--card); }
.nav-btn path { stroke: var(--foreground); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.half-toggle { cursor: pointer; }
.half-toggle rect { fill: var(--card); stroke: var(--border); }
.half-toggle text { font-size: 10px; font-weight: 600; fill: var(--foreground); }
.ghost { fill: color-mix(in srgb, var(--c) 30%, transparent); stroke: var(--c); stroke-width: 1.6; stroke-dasharray: 5 3; }
.drag-tip { position: absolute; z-index: 30; pointer-events: none; background: #1d1b18; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; padding: 4px 8px; border-radius: 8px; opacity: 0; transition: opacity .1s; white-space: nowrap; }
.drag-tip.in { opacity: 1; }

/* bottom legend bar */
.bottom-bar { position: absolute; left: 0; right: 0; bottom: 16px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 16px; z-index: 10; overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.bottom-bar > * { pointer-events: auto; }
.bottom-bar::-webkit-scrollbar { display: none; }
.bottom-bar.tl { right: auto; }
.lg-group { display: flex; align-items: center; gap: 4px; }
.lg-sep { width: 1px; height: 16px; background: var(--border); margin: 0 6px; flex: none; }
.lg-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 2px 6px; border-radius: 22px; background: color-mix(in srgb, var(--secondary) 75%, transparent); color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.lg-chip.area { background: transparent; padding: 2px 4px; }
.lg-chip.area .dot { width: 5px; height: 5px; }
.lg-chip i { font-family: Fraunces, serif; font-style: italic; font-size: 12px; opacity: .8; }
.lg-chip:hover, .lg-chip.on { background: var(--secondary); color: var(--foreground); }
.lg-chip.none { opacity: .55; }
.metro { width: auto; min-width: 34px; padding: 0 9px; gap: 6px; display: inline-flex; }
.metro.on { background: color-mix(in srgb, var(--primary) 22%, var(--card)); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.bpm { font-size: 12px; font-weight: 600; color: var(--primary-ink); padding: 2px 4px; border-radius: 6px; }
.bpm:hover { background: color-mix(in srgb, var(--primary) 25%, transparent); }

/* ---------- side panel (block editor) ---------- */
.side-panel {
  position: absolute; top: 64px; z-index: 25; width: 316px; max-height: calc(100% - 128px); overflow: auto; padding: 10px; border-radius: 22px;
  background: var(--popover); border: 1px solid var(--border); box-shadow: var(--shadow-popup); display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transition: opacity .15s, transform .15s;
}
.side-panel.right { right: 14px; transform: translateX(10px); }
.side-panel.left { left: 14px; transform: translateX(-10px); }
.side-panel.in { opacity: 1; transform: none; }
.sp-bg { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.side-panel > * { position: relative; }
.sp-head { display: flex; align-items: center; gap: 4px; }
.grip { color: var(--muted-foreground); display: grid; place-items: center; cursor: grab; width: 18px; }
.title-input.pill { height: 34px; border-radius: 999px; font-weight: 500; padding: 0 12px; background: color-mix(in srgb, var(--card) 85%, transparent); }
.sp-foot { display: flex; justify-content: flex-end; gap: 6px; padding-top: 4px; }
.bform { display: flex; flex-direction: column; gap: 8px; }
.bform-modal .title-input { height: 44px; font-size: 15px; border-radius: 14px; }
.bform .notes { min-height: 38px; resize: none; overflow: hidden; }
.flabel { font-size: 12px; color: var(--muted-foreground); margin: 4px 2px -2px; }
.time-row { display: flex; align-items: center; gap: 8px; }
.time-pair { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2px; height: 38px; border-radius: 12px; background: var(--secondary); }
.dur { height: 38px; min-width: 56px; padding: 0 10px; border-radius: 12px; background: var(--secondary); display: grid; place-items: center; font-size: 12.5px; color: var(--muted-foreground); cursor: pointer; }
.dur:hover { color: var(--foreground); }
.field-card { border-radius: 14px; background: var(--secondary); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.fc-row { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.fc-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13px; }
.iv-body { display: flex; gap: 12px; padding: 4px 0 2px; }
.iv-body[hidden] { display: none; }
.iv-f { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-foreground); }
.iv-f .input { width: 56px; height: 30px; }
.mt-list { display: flex; flex-direction: column; }
.mt-row { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.mt-row .mt-text { flex: 1; border: 0; background: transparent; outline: none; font-size: 13.5px; padding: 4px 0; }
.mt-row.done .mt-text { text-decoration: line-through; color: var(--muted-foreground); }
.mt-check { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--foreground) 30%, transparent); display: grid; place-items: center; flex: none; color: #fff; transition: .15s; }
.mt-check.on { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.mt-check.ghost { border-style: dashed; }
.mt-del { opacity: 0; color: var(--muted-foreground); }
.mt-row:hover .mt-del { opacity: 1; }
.mode-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mode-dot.solid { background: var(--foreground); }
.mode-dot.ring { border: 1.5px solid var(--foreground); }
.mode-dot.dashed { border: 1.5px dashed var(--foreground); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ends[hidden] { display: none; }
.ends-wrap { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground); position: relative; }
.ends-in { border: 0; background: transparent; height: 34px; padding: 0; box-shadow: none !important; flex: 1; color: var(--foreground); }
.ends-ph { position: absolute; left: 34px; pointer-events: none; background: var(--card); padding-right: 40px; }
.side-panel .ends-ph { background: var(--popover); }

/* ---------- palette ---------- */
.modal.pal-modal { width: min(640px, 100%); align-self: start; margin-top: 72px; border-radius: 26px; overflow: hidden; padding: 4px; }
.palette { display: flex; flex-direction: column; max-height: 72vh; }
.pal-head { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 1px 6px 1px 12px; border-bottom: 1px solid var(--border); }
.pal-search { color: var(--muted-foreground); display: grid; }
.pal-input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; height: 44px; min-width: 0; }
.pal-ask { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); height: 32px; padding: 0 6px 0 12px; border-radius: 999px; white-space: nowrap; }
.pal-ask kbd { border-radius: 22px; padding: 3px 6px; }
.pal-ask:hover { background: var(--secondary); color: var(--foreground); }
.pal-list { overflow: auto; padding: 4px; flex: 1; }
.pal-group { font-size: 12px; font-weight: 500; color: var(--muted-foreground); padding: 8px 10px; }
.pal-item { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 18px; text-align: left; font-weight: 500; }
.pal-item.active { background: var(--secondary); }
.pal-item.check { cursor: pointer; }
.pal-ic { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; color: var(--foreground); background: var(--background); flex: none; }
.pal-label { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-sub { color: var(--muted-foreground); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-right { margin-left: auto; display: flex; gap: 8px; align-items: center; color: var(--muted-foreground); font-size: 12px; white-space: nowrap; padding-left: 8px; }
.pal-empty { padding: 24px; text-align: center; color: var(--muted-foreground); }
.pal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.pal-foot span { display: inline-flex; gap: 4px; align-items: center; }
.pal-foot .sep { width: 1px; height: 14px; background: var(--border); }
.chip-mode { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 6px 0 9px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--primary-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip-x { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; }
.chip-x:hover { background: color-mix(in srgb, var(--primary) 35%, transparent); }
.mood-face { font-size: 17px; }
.palette.chat-mode .pal-head, .palette.chat-mode .pal-foot { display: none; }
.palette.chat-mode .pal-list { padding: 0; }
.chat { display: flex; flex-direction: column; height: min(520px, 70vh); }
.chat-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.chat-top .muted { font-size: 12px; }
.chat-body { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 300px; }
.chat-empty p { margin: 0; font-size: 13px; }
.bubble { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: color-mix(in srgb, var(--primary) 40%, var(--card)); border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--secondary); border-bottom-left-radius: 6px; }
.bubble.pending { display: inline-flex; gap: 8px; align-items: center; color: var(--muted-foreground); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.ai-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; white-space: normal; }
.ai-act { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.ai-act-title { font-weight: 500; }
.ai-actions .all { align-self: flex-end; }
.chat-compose { margin: 8px; padding: 8px; border-radius: 18px; background: var(--secondary); display: flex; flex-direction: column; gap: 6px; }
.chat-compose .chip-mode { align-self: flex-start; }
.chat-input { flex: 1; border: 0; background: transparent; outline: none; resize: none; font-size: 14px; min-height: 40px; max-height: 140px; }
.send-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; flex: none; }
.send-btn .stop { width: 10px; height: 10px; border-radius: 2px; background: var(--primary-foreground); }
.hint { font-size: 11px; padding-left: 4px; }

/* ---------- list view ---------- */
.list-view { max-width: 720px; margin: 0 auto; }
.list-search { max-width: 720px; margin: 0 auto 8px; display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); }
.day-group { margin-bottom: 28px; }
.day-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px; border-bottom: 1px solid var(--border); }
.day-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.day-count { color: var(--muted-foreground); font-size: 12px; }
.day-chev { color: var(--muted-foreground); opacity: .6; }
.day-link:hover .day-chev { opacity: 1; }
.day-total { font-family: Fraunces, serif; font-style: italic; color: var(--muted-foreground); font-size: 12px; }
.day-rows { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.occ-row { display: flex; align-items: center; gap: 12px; }
.occ-time { width: 76px; text-align: right; font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; flex: none; white-space: nowrap; }
.occ-time sup { font-size: 9px; }
.occ-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background-color: var(--card); text-align: left; transition: border-color .15s, box-shadow .15s; background-size: auto; }
.occ-card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: var(--shadow-card); }
.occ-card.selected { border-color: var(--c); }
.occ-card.past { opacity: .6; }
.occ-card.mode-reference { border-style: dashed; }
.occ-title { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.occ-rep, .occ-mt { color: var(--muted-foreground); font-size: 11.5px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--foreground) 45%, transparent); flex: none; display: grid; place-items: center; color: #fff; transition: .15s; }
.status-dot:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.status-dot.done { background: var(--c); }
.row-empty { display: flex; align-items: center; gap: 6px; margin-left: 88px; height: 34px; padding: 0 12px; border-radius: 12px; border: 1px dashed var(--border); color: var(--muted-foreground); font-size: 13px; }
.row-empty:hover { color: var(--foreground); background: var(--card); }
.more-days { display: flex; margin: 10px auto 30px; }

/* ---------- timeline ---------- */
.tl-root { position: absolute; inset: 0 0 0 0; }
.tl-scroll { position: absolute; inset: 52px 0 0 0; overflow-x: auto; overflow-y: auto; cursor: grab; }
.tl-scroll.panning { cursor: grabbing; user-select: none; }
.tl-inner { position: relative; }
.tl-grid { position: absolute; left: 0; top: 0; pointer-events: none; }
.tl-midnight { stroke: var(--dial-line); stroke-dasharray: 3 4; }
.tl-sixh { stroke: var(--dial-line-soft); stroke-dasharray: 2 4; }
.tl-rule { stroke: var(--dial-line); stroke-dasharray: 4 4; }
.tl-head { position: absolute; top: 0; left: 0; height: 64px; }
.tl-month { position: absolute; top: 12px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); white-space: nowrap; }
.tl-day { position: absolute; top: 34px; transform: translateX(-18px); display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--foreground); white-space: nowrap; padding-left: 6px; }
.tl-day > span:last-child { padding-left: 14px; }
.tl-day.today { color: var(--now-indicator); }
.tl-wx { display: grid; }
.tl-hour { position: absolute; top: 36px; transform: translateX(-50%); font-size: 10.5px; color: var(--muted-foreground); white-space: nowrap; }
.tl-lane { position: absolute; left: 0; border-bottom: 1px dotted var(--dial-line-soft); }
.tl-lane-labels { position: absolute; left: 0; top: 52px; bottom: 0; width: 0; z-index: 6; pointer-events: none; }
.tl-lane-label { position: absolute; left: 8px; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); font-weight: 500; white-space: nowrap; }
.tl-block { position: absolute; height: 38px; border-radius: 999px; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 13px; background-color: var(--card); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); overflow: hidden; cursor: pointer; z-index: 2; transition: box-shadow .15s; touch-action: none; }
.tl-block:hover { box-shadow: var(--shadow-card); border-color: var(--c); }
.tl-block.selected { border-color: var(--c); border-width: 2px; }
.tl-block.compact { padding: 0; justify-content: center; }
.tl-block.dragging { box-shadow: var(--shadow-drag-lift); z-index: 5; cursor: grabbing; }
.tl-block.mode-reference { border-style: dashed; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--card); opacity: .7; }
.tl-title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-out-label { position: absolute; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 2; }
.tl-panel { position: absolute; left: 0; pointer-events: none; }
.tl-daylight { fill: color-mix(in srgb, var(--weather-comfort) 70%, transparent); }
.tl-golden { fill: color-mix(in srgb, var(--weather-golden) 70%, transparent); }
.tl-panel .energy { stroke-width: 3; }
.tl-now { position: absolute; width: 2px; margin-left: -1px; background: var(--now-indicator); z-index: 4; pointer-events: none; }
.tl-now::before { content: ''; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--now-indicator); }
.tl-zoom { position: absolute; right: 14px; bottom: 12px; z-index: 8; display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.tl-zoom .icon-btn { width: 30px; height: 30px; border-radius: 999px; }

/* ---------- focus ---------- */
.focus-root { position: absolute; inset: 0; display: flex; }
.focus-left { width: min(46%, 746px); padding: 0 24px 0 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; z-index: 2; }
.focus-right { flex: 1; position: relative; min-width: 0; }
.focus-right .dial { position: absolute; inset: 0; }
.focus-kicker { color: var(--primary-ink); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.focus-count { font-family: Fraunces, serif; font-size: clamp(64px, 9vw, 112px); line-height: .95; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: flex; align-items: flex-end; gap: 8px; }
.focus-count.paused { opacity: .5; }
.focus-left-l { font-family: Inter, sans-serif; font-size: 12px; color: var(--muted-foreground); letter-spacing: 0; padding-bottom: 12px; font-weight: 400; }
.focus-title { font-size: 28px; display: flex; align-items: center; gap: 10px; }
.focus-emoji { font-size: 26px; }
.focus-until { margin-top: -6px; }
.focus-mt { display: flex; flex-direction: column; gap: 2px; max-width: 380px; }
.fmt-row { display: flex; align-items: center; gap: 10px; min-height: 32px; text-align: left; border-radius: 8px; }
.fmt-row.done span:last-child { text-decoration: line-through; color: var(--muted-foreground); }
.fmt-add { flex: 1; border: 0; background: transparent; outline: none; padding: 6px 0; }
.upnext { display: flex; flex-direction: column; gap: 14px; }
.focus-kicker.muted-k { color: var(--muted-foreground); font-size: 16px; font-weight: 500; letter-spacing: .18em; }
.upnext-title { font-family: Fraunces, Georgia, serif; font-size: 44.7px; font-weight: 400; letter-spacing: -1.1px; line-height: 56px; text-align: left; align-self: flex-start; border-radius: 6.7px; }
.upnext-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.upnext-sub { display: flex; align-items: center; gap: 6px; font-size: 18px; color: var(--muted-foreground); margin-top: -8px; flex-wrap: wrap; }
.upnext-link { font-size: 14px; font-weight: 500; color: var(--primary-ink); }
.upnext-link:hover { text-decoration: underline; }
.split-btn { display: flex; width: min(384px, 100%); margin-top: 12px; }
.split-main { flex: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--primary-foreground); font-weight: 500; font-size: 14px; border-radius: 26px 0 0 26px; }
.split-caret { width: 44px; height: 40px; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); border-radius: 0 26px 26px 0; border-left: 1px solid color-mix(in srgb, var(--primary-foreground) 18%, transparent); }
.split-main:hover, .split-caret:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.dark .split-main, .dark .split-caret { color: #2b1a00; }
.upnext-note { font-size: 12px; color: var(--muted-foreground); margin: -4px 0 0; }
.next-chip { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background-color: var(--card); font-size: 13px; margin-top: 8px; }

/* ---------- insights ---------- */
.ins-view { max-width: 1080px; margin: 0 auto; }
.ins-lead { font-size: 17px; margin: 18px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.area-tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 8px; background: var(--secondary); font-weight: 600; }
.ins-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 30px; }
.ins-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow-card); }
.ins-card.act { gap: 6px; }
.ins-card.act.hl { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 20%, var(--card)), color-mix(in srgb, var(--primary) 8%, var(--card))); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.ins-card.act .btn { margin-top: 6px; }
.act-t { display: flex; gap: 7px; align-items: center; font-weight: 600; }
.act-s { color: var(--muted-foreground); font-size: 13px; }
.ins-section { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); margin: 26px 0 12px; }
.ins-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ins-title { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: 6px; }
.ins-sub { font-size: 12px; color: var(--muted-foreground); opacity: .8; }
.ins-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ins-big .big { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-col { display: flex; flex-direction: column; gap: 8px; }
.stat { background: var(--secondary); border-radius: 14px; padding: 10px 14px; }
.stat-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-foreground); }
.stat-v { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.alloc-rows { display: flex; flex-direction: column; gap: 10px; }
.alloc-top { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin-bottom: 5px; }
.alloc-bar { position: relative; height: 7px; border-radius: 4px; background: var(--secondary); }
.alloc-bar.thin { height: 5px; }
.alloc-fill { height: 100%; border-radius: 4px; }
.alloc-fill.hatch { background: repeating-linear-gradient(-45deg, var(--dial-line) 0 1.5px, transparent 1.5px 6px); opacity: .7; }
.alloc-bar.open { background: transparent; }
.alloc-tick { position: absolute; top: -3px; width: 0; height: 13px; border-left: 1.5px dashed var(--foreground); opacity: .55; }
.alloc-tick.usual { border-left-style: solid; opacity: .25; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted-foreground); align-items: center; }
.legend-row.center { justify-content: center; }
.legend-row span { display: inline-flex; align-items: center; gap: 5px; }
.lg-pill { width: 14px; height: 6px; border-radius: 3px; background: var(--muted-foreground); display: inline-block; opacity: .6; }
.lg-tick { width: 0; height: 10px; border-left: 1.5px solid var(--muted-foreground); display: inline-block; }
.lg-tick.dashed { border-left-style: dashed; }
.lg-line { width: 16px; height: 2px; background: var(--energy-awake); display: inline-block; }
.lg-band { width: 16px; height: 8px; background: color-mix(in srgb, var(--primary) 25%, transparent); display: inline-block; border-radius: 2px; }
.lg-sq { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.lg-sq.rev { background: var(--primary); } .lg-sq.todo { background: color-mix(in srgb, var(--primary) 40%, var(--card)); } .lg-sq.ahead { background: color-mix(in srgb, var(--foreground) 25%, var(--card)); }
.ins-tip { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, var(--card)); font-size: 13px; }
.ins-tip .ic { color: var(--primary-ink); margin-top: 1px; }
.ins-cta { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); font-weight: 500; margin-top: auto; }
.ins-cta:hover { background: var(--secondary); }
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.ins-grid > .ins-card:nth-child(4) { grid-column: 1; }
.ins-grid.two-one { grid-template-columns: 1fr 2fr; }
.ins-grid.two-one > .ins-card:nth-child(4) { grid-column: auto; }
.ins-grid.two { grid-template-columns: 1fr 1fr; }
.ins-grid.two > .ins-card:nth-child(4) { grid-column: auto; }
.ins-card.wide { margin-top: 0; }
.week-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: var(--secondary); }
.wb-planned { background: var(--primary); }
.wb-ref { background: color-mix(in srgb, var(--primary) 45%, var(--card)); }
.wb-open { background: repeating-linear-gradient(-45deg, var(--dial-line-soft) 0 1.5px, transparent 1.5px 6px); }
.rhythm svg { display: block; margin: 0 auto; max-width: 240px; }
.rh-l { font-size: 9px; fill: var(--muted-foreground); }
.ins-note { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.chart { display: block; overflow: visible; }
.ax { font-size: 9px; fill: var(--muted-foreground); }
.type-bars { display: flex; flex-direction: column; gap: 8px; }
.tb-row { display: grid; grid-template-columns: 100px 1fr; gap: 8px; align-items: center; }
.tb-l { display: flex; justify-content: flex-end; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; }
.tb-bar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; }
.e-band { fill: color-mix(in srgb, var(--primary) 18%, transparent); }
.e-line { fill: none; stroke: var(--energy-awake); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.e-peak { stroke: var(--energy-awake); stroke-dasharray: 3 4; opacity: .6; vector-effect: non-scaling-stroke; }
.gauge { display: grid; place-items: center; }
.g-track { fill: none; stroke: color-mix(in srgb, var(--primary) 22%, var(--card)); stroke-width: 16; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--primary); stroke-width: 16; stroke-linecap: round; }
.g-mark { stroke: var(--primary); stroke-width: 3; }
.g-bead { fill: var(--primary); stroke: var(--card); stroke-width: 2; }
.g-v { font-size: 22px; font-weight: 600; fill: var(--foreground); }
.g-s { font-size: 9px; fill: var(--muted-foreground); }
.logged { display: flex; flex-direction: column; gap: 10px; }
.lg-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--secondary); }
.lg-name { font-weight: 500; font-size: 13px; }
.lg-n { font-size: 22px; font-weight: 600; }
.spark { display: flex; gap: 3px; align-items: flex-end; height: 32px; }
.spark i { width: 5px; border-radius: 2px; background: color-mix(in srgb, var(--primary) 70%, var(--weather-golden)); }
.mood-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.mood-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: color-mix(in srgb, var(--primary) 20%, var(--card)); font-size: 13px; }
.rd-bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--primary) 18%, var(--card)); overflow: hidden; }
.rd-bar > div { height: 100%; background: var(--primary); border-radius: 5px; }
.rd-row { margin-top: 8px; }
.dot-chart { display: flex; gap: 6px; align-items: flex-end; justify-content: space-between; min-height: 110px; }
.dc-col { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; font-size: 9px; color: var(--muted-foreground); }
.dc-col i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--foreground) 18%, transparent); }
.dc-col i.on { background: var(--primary); }
.showup { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 4px; }
.su-cell { aspect-ratio: 1; border-radius: 3px; min-width: 0; }
.su-cell.none { background: color-mix(in srgb, var(--foreground) 6%, transparent); }
.su-cell.rev { background: var(--primary); }
.su-cell.todo { background: color-mix(in srgb, var(--primary) 40%, var(--card)); }
.su-cell.ahead { background: color-mix(in srgb, var(--foreground) 22%, var(--card)); }
.su-cell.today { outline: 1.5px solid var(--foreground); outline-offset: 1px; }
.su-cell:hover { filter: brightness(.92); }
.recent-days { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ins-preview { position: relative; border-radius: 14px; overflow: hidden; min-height: 150px; }
.ins-preview-inner { filter: blur(1.2px); opacity: .35; pointer-events: none; user-select: none; }
.ins-preview-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 12px; }
.ins-preview-over p { margin: 0; max-width: 300px; font-size: 13px; font-weight: 500; }
.pv-badge { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--secondary); color: var(--muted-foreground); }

/* ---------- inbox / integrations / review ---------- */
.inbox-panel { position: fixed; top: 62px; right: 14px; width: 330px; max-height: min(560px, calc(100vh - 80px)); z-index: 30; display: flex; flex-direction: column; background: var(--popover); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-popup); opacity: 0; transform: translateY(-6px); transition: .15s; }
.inbox-panel.in { opacity: 1; transform: none; }
.inbox-panel.expanded { width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 80px); }
.ip-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 12px; }
.ip-title { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; }
.inbox-body { flex: 1; overflow: auto; padding: 0 10px; display: flex; flex-direction: column; gap: 6px; min-height: 180px; }
.ib-item { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 6px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border)); background-color: var(--card); cursor: grab; }
.ib-item.dragging { opacity: .5; }
.ib-title { font-weight: 500; }
.ip-foot { display: flex; align-items: center; gap: 6px; margin: 10px; padding: 0 6px 0 12px; height: 40px; border-radius: 999px; background: var(--secondary); }
.inbox-input { flex: 1; border: 0; background: transparent; outline: none; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-drag-lift); font-weight: 500; font-size: 13px; }
.integ-pop { width: 320px; padding: 12px; }
.integ { display: flex; flex-direction: column; gap: 10px; }
.integ-l { display: flex; align-items: center; gap: 5px; font-weight: 500; font-size: 13px; }
.integ-list { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.integ-item { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.shortcuts { padding-bottom: 20px; }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; padding: 6px 22px; }
.sc-t { font-size: 12px; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.sc-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px dashed var(--border); }
.about { padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.about.left { align-items: stretch; text-align: left; padding-top: 6px; }
.about.left .ne-head { padding: 14px 0 0; }
.about h2 { margin: 0; }
.about-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: #1a1406; }
.about-list { text-align: left; margin: 0; padding-left: 18px; color: var(--muted-foreground); }
.cl ul { margin: 6px 0 0; padding-left: 18px; }
.review-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 22; width: min(430px, calc(100% - 28px)); padding: 14px 16px; border-radius: 22px; background: var(--popover); border: 1px solid var(--border); box-shadow: var(--shadow-popup); display: flex; flex-direction: column; gap: 10px; }
.rb-title { font-weight: 600; font-size: 15px; }
.rb-close { position: absolute; top: 8px; right: 8px; }
.rb-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, var(--card)); font-size: 12px; color: var(--muted-foreground); }
.rb-note .ic { color: var(--primary-ink); flex: none; }
.rb-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--primary-ink); }
.rb-progress { height: 5px; border-radius: 3px; background: var(--secondary); overflow: hidden; }
.rb-progress > div { height: 100%; background: var(--primary); border-radius: 3px; transition: width .2s; }
.review-card { position: absolute; top: 64px; right: 14px; z-index: 24; width: 280px; padding: 10px; border-radius: 22px; background: var(--popover); border: 1px solid var(--border); box-shadow: var(--shadow-popup); display: flex; flex-direction: column; gap: 8px; }
.rc-head { display: flex; align-items: center; gap: 6px; }
.rc-block { padding: 8px 10px; border-radius: 12px; font-weight: 500; }
.rc-opt { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); text-align: left; font-weight: 500; }
.rc-opt span { flex: 1; }
.rc-opt:hover { background: var(--secondary); }
.rc-opt.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--card)); }

/* ---------- settings ---------- */
.modal.settings-modal { width: min(820px, 100%); height: min(720px, calc(100vh - 32px)); overflow: hidden; }
.settings { display: flex; height: 100%; }
.set-side { width: 220px; flex: none; border-right: 1px solid var(--border); padding: 12px 10px; overflow: auto; }
.set-search-wrap { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); margin-bottom: 10px; }
.set-search { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; color: var(--foreground); }
.set-group { font-size: 11.5px; color: var(--muted-foreground); padding: 10px 10px 4px; }
.set-link { width: 100%; display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 9px; color: var(--muted-foreground); font-size: 13.5px; }
.set-link:hover { background: var(--secondary); color: var(--foreground); }
.set-link.active { background: var(--secondary); color: var(--foreground); font-weight: 500; }
.set-main { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.set-main > .close-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.set-content { overflow: auto; padding: 22px 28px 40px; flex: 1; }
.set-h { margin: 0 0 18px; font-size: 19px; }
.set-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.set-l { font-weight: 500; }
.set-d { font-size: 12.5px; color: var(--muted-foreground); margin-top: 2px; }
.set-sub { font-size: 11.5px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }
.set-indent { padding-left: 16px; border-left: 2px solid var(--border); }
.set-indent[hidden] { display: none; }
.set-content .input + .set-d { margin-top: 6px; }
.set-content .input, .set-content .ic-input { margin-top: 6px; }
.set-intro { max-width: 380px; margin: 24px auto; display: flex; flex-direction: column; gap: 8px; }
.set-intro p { margin: 0 0 6px; }
.set-intro .btn { align-self: flex-start; }
.ed-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.ed-row { display: flex; align-items: center; gap: 8px; }
.ed-row .input { margin-top: 0 !important; height: 36px; border-radius: 999px; background: var(--secondary); border-color: transparent; }
.ed-row.dragging { opacity: .4; }
.ed-row.drop { box-shadow: 0 -2px 0 var(--primary); }
.ed-row .del { opacity: .4; }
.ed-row:hover .del { opacity: 1; }
.color-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px #0000001f; }
.pat-btn { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--secondary); }
.tgt { display: flex; align-items: center; gap: 4px; flex: none; }
.tgt .input { width: 56px; }
.plan-card { padding: 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); background: color-mix(in srgb, var(--primary) 10%, var(--card)); }
.integ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.integ-card { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); display: flex; flex-direction: column; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tagline { display: none; }
}
@media (max-width: 900px) {
  .ins-grid, .ins-grid.two-one, .ins-grid.two { grid-template-columns: 1fr 1fr; }
  .ins-grid > .ins-card:nth-child(4) { grid-column: auto; }
  .ins-actions { grid-template-columns: 1fr; }
  .focus-root { flex-direction: column; }
  .focus-left { width: 100%; padding: 76px 20px 10px; justify-content: flex-start; }
  .focus-right { min-height: 260px; }
}
@media (max-width: 760px) {
  .topbar { padding: 10px; gap: 6px; }
  .brand-name, .brand-pro { display: none; }
  .seg-pill span, .create-btn span:not(.kbd-chip), .kbd-chip { display: none; }
  .create-btn { padding: 0 10px; }
  .seg-pill { padding: 0 9px; }
  .tb-right { gap: 6px; }
  .tb-right .icon-btn[data-tip="Integrationen"] { display: none; }
  .side-panel { left: 8px !important; right: 8px !important; width: auto; top: auto; bottom: 8px; max-height: 70%; transform: translateY(16px); }
  .side-panel.in { transform: none; }
  .review-card { left: 8px; right: 8px; width: auto; top: 58px; }
  .inbox-panel { left: 8px; right: 8px; width: auto; top: 56px; }
  .ins-grid, .ins-grid.two-one, .ins-grid.two, .stat-row { grid-template-columns: 1fr; }
  .settings { flex-direction: column; }
  .set-side { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); max-height: 38%; }
  .set-content { padding: 18px 16px 32px; }
  .sc-grid { grid-template-columns: 1fr; }
  .occ-time { width: 56px; font-size: 11.5px; }
  .modal { border-radius: 22px; }
  .page-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
