/* hidden dashboard — scoped under #dash so nothing leaks into the page */
#dash {
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #fff;
  --card: #fff;
  --fg: #0a0a0a;
  --muted: #737373;
  --muted2: rgba(115,115,115,.5);
  --border: rgba(229,229,229,1);
  --border50: rgba(0,0,0,.08);
  --primary: #171717;
  --primary-fg: #fafafa;
  --hover: rgba(0,0,0,.05);
  --active: rgba(0,0,0,.06);
  --wash: rgba(0,0,0,.02);
  --input: rgba(0,0,0,.04);
  --shadow: 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px -10px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05);
  --ring: rgba(23,23,23,.25);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px #a3a3a3;
  --accent: #4568ff; --accent-bg: rgba(69,104,255,.08);
  --bsoft: #e7e5e4; --field: rgba(245,245,244,.7); --field-inset: inset 0 1px 2px rgba(28,25,23,.07);
  --green: #16a34a; --green-bg: rgba(34,197,94,.1);
  --blue: #2563eb;  --blue-bg: rgba(59,130,246,.1);
  --amber: #d97706; --amber-bg: rgba(245,158,11,.12);
  --violet: #7c3aed; --violet-bg: rgba(139,92,246,.12);
  --red: #dc2626;   --red-bg: rgba(239,68,68,.1);
  --c-zinc: #71717a; --c-red: #ef4444; --c-orange: #f97316; --c-amber: #f59e0b; --c-green: #22c55e; --c-teal: #14b8a6; --c-blue: #3b82f6; --c-violet: #8b5cf6; --c-pink: #ec4899;

  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 14px; line-height: 1.5; font-weight: 400;
  text-transform: none; letter-spacing: 0; text-align: left;
  -webkit-font-smoothing: antialiased;
}
#dash[data-theme="dark"] {
  --bg: #0a0a0a;
  --card: #0f0f0f;
  --fg: #fafafa;
  --muted: #a3a3a3;
  --muted2: rgba(163,163,163,.5);
  --border: #262626;
  --border50: rgba(255,255,255,.08);
  --primary: #fafafa;
  --primary-fg: #171717;
  --hover: rgba(255,255,255,.05);
  --active: rgba(255,255,255,.1);
  --wash: rgba(255,255,255,.02);
  --input: rgba(255,255,255,.05);
  --shadow: 0 1px 2px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 30px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  --ring: rgba(250,250,250,.3);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px #525252;
  --accent: #7b93ff; --accent-bg: rgba(123,147,255,.12);
  --bsoft: rgba(255,255,255,.12); --field: rgba(255,255,255,.05); --field-inset: inset 0 1px 2px rgba(0,0,0,.45);
  --green: #4ade80; --blue: #60a5fa; --amber: #fbbf24; --violet: #a78bfa; --red: #f87171;
}
#dash *, #dash *::before, #dash *::after { box-sizing: border-box; }
:where(#dash) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
:where(#dash) input, :where(#dash) textarea, :where(#dash) select { font: inherit; color: inherit; background: none; border: 0; outline: none; }
:where(#dash) ::placeholder { color: var(--muted2); }
:where(#dash) a { color: inherit; }
:where(#dash) kbd { font-family: var(--mono); }
.s-i { width: 16px; height: 16px; flex: none; }

/* ── primitives ────────────────────────────── */
.s-card { background: var(--card); border: 1px solid var(--border50); border-radius: 14px; box-shadow: var(--shadow); }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--bsoft); background: var(--card); font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s, border-color .15s; }
.s-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.s-btn:hover { background: var(--hover); }
.s-btn-on { background: var(--active); }
.s-btn.s-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.s-btn.s-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.s-btn.s-ghost:hover { background: var(--hover); color: var(--fg); }
.s-btn.s-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.s-btn.s-primary:hover { opacity: .92; }
.s-btn.s-block { width: 100%; height: 48px; }
.s-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: var(--muted); transition: background .15s, color .15s; }
.s-iconbtn:hover { background: var(--hover); color: var(--fg); }
.s-input { height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--bsoft); background: var(--field); box-shadow: var(--field-inset); font-size: 15px; width: 100%; transition: border-color .15s, background .15s; }
.s-input:focus { outline: none; border-color: var(--accent); background: var(--card); }
.s-fl { position: relative; margin-top: 14px; flex: 1; min-width: 0; }
.s-fl .s-input, .s-fl .s-textarea { padding-top: 22px; padding-bottom: 8px; height: 56px; }
.s-fl .s-textarea { height: auto; min-height: 96px; padding-top: 26px; }
.s-fl select.s-input { padding-top: 20px; }
.s-fl label { position: absolute; left: 16px; top: 9px; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; pointer-events: none; transition: color .15s; }
.s-fl:focus-within label { color: var(--accent); }
.s-fl .s-input::placeholder, .s-fl .s-textarea::placeholder { color: transparent; }
select.s-input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; text-overflow: ellipsis; }
input[type=date].s-input, input[type=time].s-input { -webkit-appearance: none; }
.s-input::-webkit-calendar-picker-indicator { opacity: .6; }
.s-textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--bsoft); background: var(--field); box-shadow: var(--field-inset); font-size: 15px; line-height: 1.5; resize: none; display: block; transition: border-color .15s, background .15s; }
.s-textarea:focus { outline: none; border-color: var(--accent); background: var(--card); }
.s-inline { flex: 1; min-width: 0; padding: 0; line-height: 24px; }
.s-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; line-height: 1; margin: 22px 0 10px; }
.s-help { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.s-muted { color: var(--muted); }
.s-xs { font-size: 12px; }
.s-strong { font-weight: 600; }
.s-pad { padding: 6px 0; }
.s-warn { color: var(--amber); font-weight: 500; }
.s-link { color: var(--muted); font-size: 13px; padding: 6px 0; }
.s-link:hover { color: var(--fg); text-decoration: underline; }
.s-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--border50); background: var(--input); font-size: 10px; font-weight: 500; color: var(--muted); }
.s-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.s-badge-red { background: var(--red-bg); color: var(--red); height: 18px; padding: 0 6px; font-size: 11px; }
.s-badge-blue { background: var(--blue-bg); color: var(--blue); }
.s-status { cursor: pointer; }
.s-status-active   { background: var(--green-bg);  color: var(--green);  border-color: rgba(34,197,94,.35); }
.s-status-launched { background: var(--blue-bg);   color: var(--blue);   border-color: rgba(59,130,246,.35); }
.s-status-paused   { background: var(--amber-bg);  color: var(--amber);  border-color: rgba(245,158,11,.35); }
.s-status-idea     { background: var(--violet-bg); color: var(--violet); border-color: rgba(139,92,246,.35); }
.s-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--input); border: 1px solid var(--border); font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.s-dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.s-c-zinc { --c: var(--c-zinc); } .s-c-red { --c: var(--c-red); } .s-c-orange { --c: var(--c-orange); } .s-c-amber { --c: var(--c-amber); } .s-c-green { --c: var(--c-green); } .s-c-teal { --c: var(--c-teal); } .s-c-blue { --c: var(--c-blue); } .s-c-violet { --c: var(--c-violet); } .s-c-pink { --c: var(--c-pink); }
.s-dot { background: var(--c); }
.s-ava { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; flex: none; background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.s-ava-lg { width: 56px; height: 56px; font-size: 28px; border-radius: 12px; cursor: pointer; transition: transform .15s; }
.s-ava-lg:hover { transform: scale(1.04); }
.s-progress-row { margin: 14px 0; }
.s-progress-lbl { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.s-progress { height: 6px; border-radius: 999px; background: var(--active); overflow: hidden; }
.s-progress i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .3s; }
.s-project .s-progress i { background: var(--c, var(--primary)); }

/* ── login ─────────────────────────────────── */
#dash.s-login-mode { display: grid; place-items: center; background: var(--wash); }
.s-login { width: 100%; max-width: 360px; padding: 28px; }
.s-login-h { margin-bottom: 8px; }
.s-login-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.s-err { color: var(--red); font-size: 12px; margin: 8px 0 0; }
.s-err:empty { display: none; }
.s-login .s-btn { margin-top: 18px; }
.s-hint { text-align: center; color: var(--muted2); font-size: 11px; margin: 14px 0 0; }

/* ── shell ─────────────────────────────────── */
.s-app { display: flex; height: 100%; }
.s-side {
  width: 260px; flex: none; display: flex; flex-direction: column; padding: 12px; overflow: hidden;
  background: color-mix(in srgb, var(--card) 50%, var(--bg)); border-right: 1px solid var(--border50);
  transition: width .3s ease, opacity .3s ease, padding .3s ease; opacity: 1;
}
.s-side-closed .s-side { width: 0; padding: 12px 0; opacity: 0; border-right-color: transparent; }
.s-side > * { min-width: 236px; }
.s-side-scrim { display: none; }
.s-content { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--wash); }
.s-top { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--border50); }
.s-crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.s-crumb-ws { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-crumb-cur { color: var(--fg); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-top-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.s-searchbox { display: flex; align-items: center; gap: 8px; width: 256px; height: 36px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--bsoft); background: var(--field); color: var(--muted2); font-size: 13px; }
.s-searchbox:hover { background: var(--hover); color: var(--muted); }
.s-searchbox span { flex: 1; }
.s-main { flex: 1; overflow-y: auto; padding: 32px; scrollbar-width: none; }
.s-main::-webkit-scrollbar { display: none; }

/* sidebar */
.s-ws { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; margin-bottom: 16px; cursor: pointer; user-select: none; transition: background .15s; }
.s-ws:hover { background: var(--hover); }
.s-ws .s-i { color: var(--muted2); margin-left: auto; }
.s-ws-ava { width: 32px; height: 32px; border-radius: 6px; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-weight: 600; font-size: 13px; box-shadow: var(--shadow); flex: none; }
.s-ws-txt { display: flex; flex-direction: column; min-width: 0; }
.s-ws-name { font-size: 13px; font-weight: 500; line-height: 1; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-ws-sub { font-size: 11px; color: var(--muted); line-height: 1; }
.s-nav-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; margin-top: 4px; }
.s-nav-scroll::-webkit-scrollbar { display: none; }
.s-nav-group { display: flex; flex-direction: column; gap: 2px; }
.s-nav-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); }
.s-nav-plus { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; color: var(--muted2); opacity: 0; transition: opacity .15s, background .15s; }
.s-nav-plus .s-i { width: 14px; height: 14px; }
.s-nav-heading:hover .s-nav-plus { opacity: 1; }
.s-nav-plus:hover { background: var(--hover); color: var(--fg); }
.s-nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; letter-spacing: .01em; transition: background .2s, color .2s; user-select: none; }
.s-nav .s-i { color: var(--muted2); transition: color .2s; }
.s-nav:hover { background: var(--hover); color: var(--fg); }
.s-nav:hover .s-i { color: var(--muted); }
.s-nav-on { background: var(--active); color: var(--fg); font-weight: 500; }
.s-nav-on .s-i { color: var(--fg); }
.s-nav-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-nav-emoji { width: 16px; text-align: center; font-size: 14px; flex: none; line-height: 1; }
.s-nav .s-kbd { opacity: 0; }
.s-nav:hover .s-kbd { opacity: 1; }
.s-nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-size: 10px; font-weight: 500; }
.s-nav-chev { display: grid; place-items: center; transition: transform .2s; }
.s-nav-chev .s-i { width: 14px; height: 14px; }
.s-nav-chev.s-open { transform: rotate(90deg); }
.s-nav-children { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .3s ease; }
.s-nav-children.s-open { grid-template-rows: 1fr; opacity: 1; }
.s-nav-children > div { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 2px; position: relative; margin-top: 2px; }
.s-nav-children > div::before { content: ''; position: absolute; top: 0; bottom: 0; left: 17.5px; border-left: 1px solid var(--border50); }
.s-nav-sub { padding-left: 22px; }
.s-nav-empty { padding: 6px 10px; font-size: 12px; color: var(--muted2); }
.s-nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border50); display: flex; flex-direction: column; gap: 2px; }

/* ── home ──────────────────────────────────── */
.s-hero { margin-bottom: 24px; }
.s-h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 4px; }
.s-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.s-stat { background: var(--card); border: 1px solid var(--border50); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; }
.s-stat-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; }
.s-stat-sub { font-size: 11px; font-weight: 500; color: var(--muted); }
.s-stat-steps { position: relative; padding-right: 72px; }
.s-steps-ring { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted);
  background: conic-gradient(var(--c-green) calc(var(--p) * 1%), var(--active) 0); }
.s-steps-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 999px; background: var(--card); }
.s-steps-ring span { position: relative; }
.s-steps-at { margin-top: 2px; }
.s-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-tiles .s-stat { padding: 12px 14px; box-shadow: none; }
.s-tiles .s-stat-v { font-size: 20px; }
.s-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 20px; grid-auto-flow: dense; }
.s-span-1 { grid-column: span 1; } .s-span-2 { grid-column: span 2; } .s-span-3 { grid-column: span 3; } .s-span-4 { grid-column: span 4; }
.s-span-full { grid-column: 1 / -1; }
.s-grid .s-stats { margin: 0; }
.s-project { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.s-project:hover { box-shadow: 0 4px 14px -6px rgba(0,0,0,.15); }
.s-dragging { opacity: .5; }
.s-drag-over { outline: 2px solid var(--ring); outline-offset: 2px; }
.s-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px 12px; cursor: grab; }
.s-card-h:active { cursor: grabbing; }
.s-card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
button.s-card-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.s-tabs { display: inline-flex; height: 38px; padding: 3px; border-radius: 10px; background: var(--input); border: 2px solid var(--bsoft); gap: 2px; }
.s-tab { display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.s-tab:hover { color: var(--fg); }
.s-tab-on { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.s-card-b { padding: 4px 20px 16px; flex: 1; }
.s-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border50); }
.s-row { display: flex; align-items: center; gap: 12px; }
.s-row-box { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border50); background: var(--wash); flex-wrap: wrap; }
.s-row-sm { padding: 8px 12px; justify-content: space-between; margin-bottom: 6px; }
.s-row-txt { flex: 1; min-width: 0; }
.s-row-txt .s-strong { font-size: 14px; }
.s-row-txt .s-xs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-card-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; border-style: dashed; border-color: var(--border); background: transparent; box-shadow: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.s-card-new:hover { background: var(--hover); color: var(--fg); border-color: var(--muted2); }
.s-new-plus { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border50); display: grid; place-items: center; font-size: 22px; background: var(--card); }
.s-empty { color: var(--muted); padding: 24px 0; grid-column: 1 / -1; }

/* ── tasks ─────────────────────────────────── */
.s-tasks { display: flex; flex-direction: column; }
.s-task { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; transition: background .15s; }
.s-task:hover, .s-task:focus-within { background: var(--hover); }
.s-check { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer; border: 2px solid var(--bsoft); border-radius: 6px; background: var(--card); position: relative; transition: background .15s, border-color .15s, box-shadow .15s; }
.s-check:focus-visible { outline: none; box-shadow: var(--focus); }
.s-check:checked { background: var(--accent); border-color: var(--accent); }
.s-check:checked::after { content: ''; position: absolute; left: 4.5px; top: 1px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.s-task-text { font-size: 14px; }
.s-task-img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: none; cursor: zoom-in; border: 1px solid var(--border50); }
.s-rep { font-size: 12px; opacity: .7; flex: none; }
.s-prio { width: 8px; height: 8px; border-radius: 999px; flex: none; display: inline-block; }
.s-prio-high { background: var(--c-red); box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.s-prio-medium { background: var(--c-amber); box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.s-prio-low { background: var(--c-blue); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.s-seg-prio .s-seg-b { display: inline-flex; align-items: center; gap: 6px; }
.s-dlg-lg { max-width: 512px; max-height: 92vh; overflow-y: auto; }
.s-ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s-ed-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s-ed-photo .s-btn { position: relative; overflow: hidden; }
.s-ed-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border50); }
.s-dlg-b-spread { justify-content: flex-start; }
.s-dlg-b-spread > span { flex: 1; }
.s-tool .s-i { width: 14px; height: 14px; }
.s-li { width: 16px; height: 16px; flex: none; }
.s-item-icon { color: var(--muted); }
.s-nav-icon { color: var(--muted2); }
.s-ava .s-li { width: 18px; height: 18px; color: var(--c); }
.s-ava-lg .s-li { width: 26px; height: 26px; }
.s-ava-sm .s-li { width: 15px; height: 15px; }
.s-ws-ava-xs { width: 20px; height: 20px; font-size: 11px; border-radius: 5px; }
.s-icon-grid { display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; }
.s-icon-grid button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; padding: 0; color: var(--muted); }
.s-icon-grid button:hover { background: var(--hover); color: var(--fg); }
.s-ed-emoji .s-li { width: 16px; height: 16px; }
.s-callout-ico .s-li { width: 18px; height: 18px; color: var(--muted); }
.s-pbadge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; flex: none; }
.s-pbadge-high { background: var(--red-bg); color: var(--red); }
.s-pbadge-medium { background: var(--amber-bg); color: var(--amber); }
.s-pbadge-low { background: var(--input); color: var(--muted); }
.s-seg-prio .s-pbadge { height: 16px; }
.s-chip .s-i { width: 12px; height: 12px; }
.s-task { flex-wrap: wrap; row-gap: 2px; }
.s-task-text { flex: 1 1 45%; min-width: 0; line-height: 24px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-task-open .s-task-text { white-space: normal; }
.s-task-chev { display: grid; place-items: center; color: var(--muted2); opacity: 0; transition: opacity .15s, transform .2s; flex: none; }
.s-task-chev .s-i { width: 14px; height: 14px; }
.s-task:hover .s-task-chev { opacity: 1; }
.s-task-open { background: var(--hover); border-radius: 8px 8px 0 0; }
.s-task-open .s-task-chev { opacity: 1; transform: rotate(180deg); }
.s-detail { display: flex; gap: 14px; padding: 4px 12px 12px 34px; margin: 0 -8px 6px; background: var(--hover); border-radius: 0 0 8px 8px; animation: s-fade .15s ease; }
.s-detail-img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border50); cursor: zoom-in; flex: none; }
.s-detail-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.s-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.s-detail-meta:empty { display: none; }
.s-detail-notes { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fg); white-space: pre-wrap; }
.s-detail-cl { display: flex; flex-direction: column; }
.s-task-sub { min-height: 28px; padding: 2px 6px; margin: 0 -6px; cursor: pointer; }
.s-task-sub .s-task-text { font-size: 13px; cursor: pointer; }
.s-detail-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--blue); text-decoration: none; }
.s-detail-link:hover { text-decoration: underline; }
.s-detail-actions { display: flex; gap: 6px; margin-top: 2px; }
.s-detail-actions .s-btn { gap: 6px; }
.s-detail-actions .s-btn .s-i { width: 13px; height: 13px; }
.s-chip-time { color: var(--fg); }
.s-chip-link { text-decoration: none; padding: 0 5px; }
.s-chip-link .s-i { width: 12px; height: 12px; }
.s-ed-emojis { display: flex; flex-wrap: wrap; gap: 4px; }
.s-ed-emoji { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 17px; border: 2px solid transparent; color: var(--muted); }
.s-ed-emoji:hover { background: var(--hover); }
.s-ed-emoji.s-on { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.s-ed-checklist .s-task { margin: 0; padding: 2px 4px; min-height: 30px; }
.s-ed-checklist .s-addrow { margin: 0 -4px; padding: 2px 4px; min-height: 30px; }
.s-ed-checklist .s-del { opacity: 1; }
.s-ed-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.s-add-proj { max-width: 150px; font-size: 12px; color: var(--muted2); cursor: pointer; opacity: 0; transition: opacity .15s; }
.s-addrow:hover .s-add-proj, .s-addrow:focus-within .s-add-proj { opacity: 1; }
.s-lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 24px; cursor: zoom-out; animation: s-fade .15s ease; }
.s-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.s-task-done .s-task-text { color: var(--muted2); text-decoration: line-through; }
.s-due { font-size: 11px; font-weight: 500; color: var(--muted); padding: 1px 7px; border-radius: 6px; background: var(--input); white-space: nowrap; }
.s-late { color: var(--red); background: var(--red-bg); }
.s-task-tools { display: none; align-items: center; gap: 2px; }
.s-task:hover .s-task-tools, .s-task:focus-within .s-task-tools { display: flex; }
.s-tool { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; font-size: 13px; }
.s-tool:hover { background: var(--active); }
.s-hidden { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.s-del { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--muted2); font-size: 12px; opacity: 0; transition: opacity .15s, background .15s, color .15s; flex: none; }
.s-task:hover .s-del, .s-task:focus-within .s-del, .s-linkrow:hover .s-del, .s-habits tr:hover .s-del { opacity: 1; }
.s-del:hover { background: var(--red-bg); color: var(--red); }
.s-addrow { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 8px; margin: 2px -8px 0; border-radius: 8px; color: var(--muted2); transition: background .15s; }
.s-addrow:hover, .s-addrow:focus-within { background: var(--hover); }
.s-addrow > span { width: 16px; text-align: center; font-size: 16px; line-height: 1; }
.s-addrow .s-inline { color: var(--fg); font-size: 14px; }
.s-addrow-2 .s-inline + .s-inline { flex: 1.4; border-left: 1px solid var(--border50); padding-left: 12px; }
.s-group { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 18px 0 6px; padding: 2px 0; }
button.s-group:hover { color: var(--fg); }

/* ── links ─────────────────────────────────── */
.s-links { display: flex; flex-direction: column; }
.s-linkrow { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; }
.s-linkrow:hover { background: var(--hover); }
.s-fav { width: 18px; height: 18px; border-radius: 4px; flex: none; background: var(--input); }
.s-link-t { font-weight: 500; text-decoration: none; }
.s-link-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.s-link-u { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

/* ── project page ──────────────────────────── */
.s-ph { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.s-ph-txt { flex: 1; min-width: 240px; }
.s-ph-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.s-title-in { display: block; width: 100%; font-size: 24px; font-weight: 600; letter-spacing: -.02em; padding: 0; line-height: 1.25; margin-bottom: 2px; }
.s-desc-in { display: block; width: 100%; color: var(--muted); font-size: 14px; padding: 0; }
.s-colors { display: flex; gap: 6px; }
.s-swatch { width: 18px; height: 18px; border-radius: 999px; background: var(--c); border: 2px solid transparent; transition: transform .15s; box-shadow: 0 0 0 1px var(--border50); }
.s-swatch:hover { transform: scale(1.15); }
.s-swatch-on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--c); }
.s-page-card { margin-top: 20px; }
.s-page-card .s-card-h { cursor: default; padding: 12px 20px; border-bottom: 1px solid var(--border50); }
.s-page-card .s-card-b { padding: 16px 20px 20px; }
.s-doc { min-height: 260px; font-size: 15px; }
.s-wknav { gap: 6px; }

/* ── week page ─────────────────────────────── */
.s-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.s-cols .s-card-h, .s-days .s-card-h { cursor: default; padding: 14px 20px 8px; }
.s-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.s-card-today { box-shadow: 0 0 0 2px var(--c-blue); }
.s-habits { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.s-habits th { font-weight: 500; color: var(--muted); font-size: 11px; text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--border50); }
.s-habits th:first-child { text-align: left; padding-left: 0; }
.s-habits td { padding: 2px 2px; border-bottom: 1px solid var(--border50); }
.s-habits td:first-child { padding-left: 0; min-width: 150px; }
.s-habits td:first-child .s-inline { width: 100%; font-size: 13px; }
.s-hcell { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; color: var(--muted2); transition: background .15s, color .15s; }
.s-hcell:hover { background: var(--hover); color: var(--fg); }
.s-hcell-on { background: var(--primary); color: var(--primary-fg); font-weight: 600; }
.s-hcell-today { box-shadow: inset 0 0 0 1px var(--muted2); }
.s-habits-mini { display: flex; flex-direction: column; gap: 4px; }
.s-habit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-habit-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-habit-days { display: flex; gap: 2px; }
.s-habit-days .s-hcell { width: 22px; height: 22px; font-size: 10px; }

/* ── overlays ──────────────────────────────── */
.s-overlay { position: fixed; inset: 0; z-index: 26; }
.s-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: s-fade .15s ease; }
.s-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 94vw); background: var(--card); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 22px 24px 32px; overflow-y: auto; animation: s-slide .25s cubic-bezier(.2,.8,.2,1); }
.s-sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-size: 18px; letter-spacing: -.01em; }
.s-sheet-d { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.s-set { padding: 18px 0; border-top: 1px solid var(--border); }
.s-set:first-of-type { border-top: 0; }
.s-set-t { font-size: 15px; font-weight: 600; }
.s-set-d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.s-set .s-label { margin-top: 14px; }
.s-seg { display: inline-flex; height: 42px; padding: 3px; border-radius: 10px; background: var(--input); border: 2px solid var(--bsoft); gap: 2px; }
.s-seg-b { display: inline-flex; align-items: center; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.s-seg-on { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.s-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-top: 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.s-switchrow > span { display: flex; flex-direction: column; gap: 2px; }
.s-switch { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--active); position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0; }
.s-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.s-switch:checked { background: var(--accent); }
.s-switch:checked::after { transform: translateX(18px); }
.s-sheet-tip { margin-top: 24px; }
.s-menu { position: fixed; z-index: 30; min-width: 190px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-lg); animation: s-pop .12s ease; }
.s-menu-lbl { padding: 6px 10px 4px; font-size: 11px; font-weight: 500; color: var(--muted2); text-transform: uppercase; letter-spacing: .06em; }
.s-menu > button { display: flex; align-items: center; gap: 4px; width: 100%; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.s-menu > button:hover { background: var(--hover); }
.s-menu > button.s-danger { color: var(--red); }
.s-emoji-grid { display: grid; grid-template-columns: repeat(6, 34px); gap: 2px; }
.s-emoji-grid button { width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; border-radius: 6px; padding: 0; }
.s-emoji-grid button:hover { background: var(--hover); }

/* dialogs */
.s-dlg-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.s-dlg { position: relative; width: 100%; max-width: 440px; padding: 26px 24px 22px; border-radius: 16px; border: 1px solid var(--border50); box-shadow: 0 20px 50px -30px rgba(28,25,23,.35); animation: s-pop .2s cubic-bezier(.2,.8,.2,1); }
.s-dlg-t { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 4px; padding-right: 28px; }
.s-dlg-x { font-size: 14px; margin-bottom: 4px; }
.s-dlg-close { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center; color: var(--muted); opacity: .7; }
.s-dlg-close:hover { opacity: 1; background: var(--hover); }
.s-dlg-in { margin: 14px 0 4px; }
.s-dlg-b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.s-btn-danger { background: transparent; border-color: transparent; color: var(--red); padding-left: 6px; }
.s-btn-danger:hover { opacity: .9; }

/* command palette */
.s-pal-wrap { display: flex; align-items: flex-start; justify-content: center; padding: 15vh 16px 0; }
.s-pal { position: relative; width: 100%; max-width: 600px; background: var(--card); border: 1px solid var(--border50); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; animation: s-pop .18s ease; }
.s-pal-h { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border50); color: var(--muted); }
.s-pal-in { flex: 1; height: 52px; font-size: 14px; color: var(--fg); }
.s-pal-h .s-kbd { cursor: pointer; }
.s-pal-b { max-height: 55vh; overflow-y: auto; padding: 6px; }
.s-pal-lbl { padding: 8px 10px 4px; font-size: 11px; font-weight: 500; color: var(--muted2); }
.s-pal-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.s-pal-row:hover, .s-pal-row:first-of-type { background: var(--hover); }
.s-pal-row .s-i { color: var(--muted); }
.s-pal-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-pal-m { font-size: 12px; color: var(--muted2); }
.s-pal-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 0; color: var(--muted); font-size: 13px; }
.s-pal-empty .s-i { width: 24px; height: 24px; color: var(--muted2); }

/* ── hero + calendar ───────────────────────── */
.s-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 12px 4px 0; margin-bottom: 28px; flex-wrap: wrap; }
.s-hero-l { flex: 1 1 320px; }
.s-hero-date { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.s-hero-h1 { font-size: 32px; margin: 8px 0 6px; }
.s-upnext { flex: 0 1 460px; min-width: 260px; padding-top: 4px; }
.s-upnext-lbl { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); margin-bottom: 4px; }
.s-upnext-late { color: var(--red); margin-top: 4px; }
.s-cal { padding: 12px 14px 10px; }
.s-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.s-cal-title { font-weight: 600; font-size: 13px; }
.s-cal-nav { display: flex; gap: 2px; }
.s-iconbtn.s-sm { width: 24px; height: 24px; }
.s-cal-dot { width: 5px; height: 5px; border-radius: 999px; background: currentColor; display: block; }
.s-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.s-cal-w { text-align: center; font-size: 10px; font-weight: 500; color: var(--muted2); padding: 2px 0 4px; }
.s-cal-c { position: relative; height: 28px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; color: var(--fg); transition: background .15s; }
.s-cal-c:hover { background: var(--hover); }
.s-cal-pad { pointer-events: none; }
.s-cal-today { font-weight: 700; color: var(--blue); }
.s-cal-sel { background: var(--primary) !important; color: var(--primary-fg) !important; }
.s-cal-dots { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.s-cal-c i { width: 4px; height: 4px; border-radius: 999px; background: var(--blue); }
.s-cal-c i.s-late-dot { background: var(--red); }
.s-cal-c i.s-ev-dot { background: var(--muted2); }
.s-cal-sel i { background: var(--primary-fg) !important; }
.s-events { display: flex; flex-direction: column; margin-bottom: 6px; }
.s-event { display: flex; align-items: baseline; gap: 10px; min-height: 30px; padding: 3px 8px 3px 6px; margin: 0 -8px; border-left: 3px solid var(--c-violet); border-radius: 4px; font-size: 13px; }
.s-event + .s-event { margin-top: 2px; }
.s-ev-c0 { border-left-color: var(--c-violet); } .s-ev-c1 { border-left-color: var(--c-teal); } .s-ev-c2 { border-left-color: var(--c-orange); } .s-ev-c3 { border-left-color: var(--c-pink); } .s-ev-c4 { border-left-color: var(--c-blue); }
.s-ev-time { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; min-width: 58px; }
.s-ev-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-ev-loc { font-size: 11px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.s-cal-sel-lbl { font-size: 12px; font-weight: 600; margin: 12px 0 2px; padding-top: 10px; border-top: 1px solid var(--border50); }
.s-cal-list .s-task { min-height: 30px; }
.s-cal-list .s-task-text { font-size: 13px; }

/* ── collapsed project cards ───────────────── */
.s-card-hr { display: flex; align-items: center; gap: 4px; }
.s-fold { width: 28px; height: 28px; color: var(--muted2); }
.s-fold .s-i { width: 14px; height: 14px; transition: transform .2s; }
.s-project:not(.s-collapsed) .s-fold .s-i { transform: rotate(180deg); }
.s-collapsed { display: flex; align-items: center; gap: 4px; padding: 8px 10px 8px 12px; min-height: 0; align-self: start; }
.s-collapsed-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.s-collapsed-row:hover .s-strong { text-decoration: underline; text-underline-offset: 3px; }
.s-ava-sm { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.s-collapsed-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.s-collapsed-txt .s-strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-mini-bar { width: 64px; flex: none; }
.s-collapsed .s-badge { flex: none; }
.s-collapsed .s-card-rs { display: none; }

/* ── "Today in" page ───────────────────────── */
.s-today { display: flex; flex-direction: column; gap: 28px; }
.s-news-jump { gap: 6px; }
.s-news-chip { text-decoration: none; height: 26px; padding: 0 10px; font-size: 12px; color: var(--fg); background: var(--card); gap: 6px; }
.s-news-chip:hover { background: var(--hover); }
.s-news-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.s-news-h-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.s-news-t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.s-news-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.s-news-empty { padding: 24px; background: var(--card); border: 1px solid var(--border50); border-radius: 14px; grid-column: 1 / -1; }
.s-news-lead { position: relative; display: flex; align-items: flex-end; min-height: 320px; border-radius: 14px; overflow: hidden; text-decoration: none; background: color-mix(in srgb, var(--c) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.s-news-lead:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.s-news-lead-img { background-size: cover; background-position: center; color: #fff; }
.s-news-lead-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.05) 100%); }
.s-news-lead-txt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; }
.s-news-kicker { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.s-news-lead:not(.s-news-lead-img) .s-news-kicker { color: var(--c); opacity: 1; }
.s-news-lead-t { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.s-news-lead-s { font-size: 13px; line-height: 1.55; opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-news-list { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border50); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.s-news-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; min-width: 0; }
.s-news-row + .s-news-row { border-top: 1px solid var(--border50); border-radius: 0 0 10px 10px; }
.s-news-row:hover { background: var(--hover); }
.s-news-thumb { width: 60px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; border: 1px solid var(--border50); }
.s-news-thumb-ph { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, var(--card)); color: var(--c); }
.s-news-thumb-ph .s-li { width: 18px; height: 18px; }
.s-news-row-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-news-row .s-hl-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .s-news-grid { grid-template-columns: 1fr; } .s-news-lead { min-height: 240px; } }
.s-daily { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 18px; align-items: start; }
.s-daily-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.s-daily-side .s-tabs { height: 30px; }
.s-daily-side .s-tab { padding: 0 10px; font-size: 11px; }
.s-daily-src { display: inline-flex; align-items: center; gap: 4px; }
.s-daily-src .s-iconbtn { width: 22px; height: 22px; font-size: 13px; }
.s-daily-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; min-height: 64px; }
.s-hl3 { display: flex; gap: 10px; padding: 8px 10px; margin: -8px -10px; border-radius: 10px; text-decoration: none; min-width: 0; }
.s-hl3:hover { background: var(--hover); }
.s-hl3-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; border: 1px solid var(--border50); }
.s-hl3-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.s-hl3 .s-hl-t { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-hl3 .s-hl-s { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .s-daily { grid-template-columns: 1fr; } .s-daily-items { grid-template-columns: 1fr; gap: 4px; } .s-hl3 { margin: 0 -10px; } }
.s-headlines { display: flex; flex-direction: column; }
.s-hl { display: flex; flex-direction: column; gap: 2px; padding: 8px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; border-top: 1px solid var(--border50); }
.s-hl:first-child, .s-lead + .s-headlines .s-hl:first-child { border-top: 0; }
.s-hl:hover { background: var(--hover); }
.s-hl-t { font-size: 14px; font-weight: 500; line-height: 1.35; }
.s-hl-first .s-hl-t { font-size: 16px; font-weight: 600; }
.s-hl-s { font-size: 13px; color: var(--muted); line-height: 1.5; }
.s-hl-m { font-size: 11px; color: var(--muted2); }
.s-lead { display: flex; gap: 14px; text-decoration: none; padding: 4px 0 10px; border-radius: 8px; }
.s-lead-img { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; border: 1px solid var(--border50); }
.s-lead-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.s-learn-t { font-size: 16px; font-weight: 600; line-height: 1.3; }
.s-learn-p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.s-lead:hover .s-learn-t { text-decoration: underline; text-underline-offset: 3px; }

/* ── cards: resize ─────────────────────────── */
.s-seg-menu { margin: 2px 6px 6px; display: flex; }
.s-seg-menu .s-seg-b { flex: 1; text-align: center; padding: 4px 6px; }
.s-card-rs { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted2); cursor: nwse-resize; opacity: 0; transition: opacity .15s; border-radius: 4px; }
.s-card-rs .s-i { width: 13px; height: 13px; }
.s-project { position: relative; }
.s-project:hover .s-card-rs { opacity: 1; }
.s-card-rs:hover { background: var(--hover); color: var(--fg); }
.s-resizing { outline: 2px dashed var(--ring); outline-offset: 2px; }
.s-card-f .s-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; }

/* ── tabs bar extras ───────────────────────── */
.s-tabs-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.s-tabs-scroll::-webkit-scrollbar { display: none; }
.s-tab-add { padding: 0 8px; }
.s-tab-add .s-i { width: 14px; height: 14px; }
.s-page-card .s-card-h { justify-content: space-between; }
.s-page-body { padding: 20px 24px 28px; }

/* ── blocks ────────────────────────────────── */
.s-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.s-blk { grid-column: span 2; position: relative; padding: 2px 0 2px 32px; border-radius: 8px; min-width: 0; }
.s-blk.s-half { grid-column: span 1; }
.s-blk:hover, .s-blk:focus-within { background: var(--wash); }
.s-blk::before { content: ''; position: absolute; background: var(--blue); border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .1s; }
.s-drop-top::before    { opacity: 1; left: 32px; right: 8px; top: -4px; height: 3px; }
.s-drop-bottom::before { opacity: 1; left: 32px; right: 8px; bottom: -4px; height: 3px; }
.s-drop-left::before   { opacity: 1; top: 4px; bottom: 4px; left: 26px; width: 3px; }
.s-drop-right::before  { opacity: 1; top: 4px; bottom: 4px; right: -10px; width: 3px; }
.s-blk.s-drag-over { outline: none; }
.s-blk-tools { position: absolute; left: -2px; top: 2px; display: flex; flex-direction: column; gap: 0; opacity: 0; transition: opacity .15s; }
.s-blk:hover .s-blk-tools, .s-blk:focus-within .s-blk-tools { opacity: 1; }
.s-blk-grip { width: 24px; height: 24px; display: grid; place-items: center; color: var(--muted2); cursor: grab; border-radius: 4px; }
.s-blk-grip:hover { background: var(--hover); color: var(--fg); }
.s-blk-grip:active { cursor: grabbing; }
.s-blk-tb { width: 24px; height: 22px; display: grid; place-items: center; color: var(--muted2); border-radius: 4px; }
.s-blk-tb .s-i { width: 13px; height: 13px; }
.s-blk-tb:hover { background: var(--hover); color: var(--fg); }
.s-blk-del:hover { color: var(--red); background: var(--red-bg); }
.s-blk-c { min-width: 0; padding-right: 8px; }
.s-blk-text { display: block; width: 100%; font-size: 15px; line-height: 1.65; padding: 4px 0; resize: none; }
.s-blk-h1 { display: block; width: 100%; font-size: 24px; font-weight: 700; letter-spacing: -.02em; padding: 8px 0 2px; }
.s-blk-h2 { display: block; width: 100%; font-size: 18px; font-weight: 600; letter-spacing: -.01em; padding: 6px 0 2px; }
.s-blk-hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.s-blk-empty { grid-column: span 2; color: var(--muted); font-size: 13px; padding: 12px 0 8px 32px; }
.s-blk-hint { grid-column: span 2; color: var(--muted2); font-size: 11px; padding: 6px 0 0 32px; }
.s-addblock { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0 32px; padding: 6px 10px; border-radius: 8px; color: var(--muted2); font-size: 13px; }
.s-addblock:hover { background: var(--hover); color: var(--fg); }
.s-fig { position: relative; margin: 6px 0 2px; max-width: 100%; }
.s-fig img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border50); }
.s-img-rs { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 10px; height: 44px; border-radius: 6px; background: var(--fg); opacity: 0; cursor: ew-resize; box-shadow: 0 0 0 2px var(--card); transition: opacity .15s; }
.s-fig:hover .s-img-rs { opacity: .7; }
.s-blk-cap { display: block; width: 100%; font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.s-img-empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; background: var(--wash); font-size: 13px; }
.s-img-empty .s-i { color: var(--muted2); }
.s-img-empty .s-btn { position: relative; overflow: hidden; }
.s-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.s-sm-in { flex: 1; min-width: 200px; height: 30px; font-size: 13px; }
.s-callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--input); border: 1px solid var(--border50); margin: 4px 0; }
.s-callout-ico { font-size: 18px; line-height: 24px; width: 26px; text-align: center; border-radius: 6px; }
.s-callout-ico:hover { background: var(--hover); }
.s-callout textarea { flex: 1; resize: none; font-size: 14px; line-height: 1.6; }
.s-bm { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border50); border-radius: 10px; text-decoration: none; margin: 4px 0; transition: background .15s; }
.s-bm:hover { background: var(--hover); }
.s-bm-t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-bm-u { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.s-menu-blocks { min-width: 240px; max-height: 60vh; overflow-y: auto; }
.s-menu-blk { gap: 10px !important; }
.s-menu-blk .s-i { color: var(--muted); }
.s-menu-blk span { display: flex; flex-direction: column; line-height: 1.25; }
.s-menu-blk small { font-size: 11px; color: var(--muted); font-weight: 400; }
.s-menu-blk b { font-weight: 500; }
.s-menu-ws { min-width: 230px; }
.s-menu-check { margin-left: auto; color: var(--muted); }
.s-menu-sep { height: 1px; background: var(--border50); margin: 4px 6px; }
.s-ws-ava-btn { cursor: pointer; font-size: 16px; }
.s-danger-link { color: var(--red); }
.s-danger-link:hover { color: var(--red); }
.s-card-title.s-inline { flex: 1; min-width: 120px; }

@keyframes s-fade { from { opacity: 0; } }
@keyframes s-slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes s-pop { from { transform: scale(.97); opacity: 0; } }

/* ── projects list (mobile-first page) ─────── */
.s-plist { display: flex; flex-direction: column; gap: 10px; }
.s-prow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left; }
.s-prow:hover { background: var(--hover); }
.s-prow-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-prow-txt .s-strong { font-size: 15px; }
.s-prow-txt .s-xs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-prow-bar { width: 120px; margin-top: 6px; }
.s-prow > .s-i { color: var(--muted2); }
.s-back { display: none; }
.s-tabbar { display: none; }
.s-fab { display: none; position: absolute; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 23; width: 54px; height: 54px; border-radius: 999px; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); }
.s-fab .s-i { width: 22px; height: 22px; }
.s-fab:active { transform: scale(.96); }
.s-sheet-b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 22px 22px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: s-up .22s cubic-bezier(.2,.8,.2,1); }
.s-sheet-grab { width: 36px; height: 4px; border-radius: 999px; background: var(--active); margin: 0 auto 12px; }
.s-qa-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 0; }
.s-qa-row .s-btn { height: 56px; margin-top: 14px; border-radius: 12px; }
.s-qa-row .s-input { flex: 1; }
.s-qa-opts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.s-qa-opt { height: 34px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--bsoft); font-size: 12px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.s-qa-opt.s-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.s-main { animation: s-fade .18s ease; }
@keyframes s-up { from { transform: translateY(24px); opacity: 0; } }
.s-content { position: relative; }

/* ── responsive ────────────────────────────── */
@media (max-width: 1100px) { .s-main { padding: 24px; } .s-cols { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .s-blk.s-half { grid-column: span 2; } }
@media (max-width: 767px) {
  #dash input:not([type=checkbox]):not([type=file]), #dash textarea, #dash select { font-size: 16px; }
  .s-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 25; width: min(288px, 88vw) !important; opacity: 1 !important; padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)) !important; background: var(--card); transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
  .s-mobile-nav .s-side { transform: translateX(0); }
  .s-mobile-nav .s-side-scrim { display: block; position: fixed; inset: 0; z-index: 24; }
  .s-side-closed .s-side { border-right-color: var(--border50); }
  .s-top { height: auto; min-height: 52px; padding: env(safe-area-inset-top) 12px 0 16px; }
  .s-toggle { display: none; }
  .s-back { display: inline-flex; margin-left: -8px; }
  .s-searchbox { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .s-searchbox span, .s-searchbox .s-kbd { display: none; }
  .s-crumb-ws, .s-crumb-sep { display: none; }
  .s-crumb-cur { font-size: 16px; }
  .s-main { padding: 16px 16px calc(80px + env(safe-area-inset-bottom)); }
  .s-tabbar { display: flex; position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; background: var(--card); border-top: 1px solid var(--border50); padding-bottom: env(safe-area-inset-bottom); }
  .s-tb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; font-size: 10px; font-weight: 500; color: var(--muted); }
  .s-tb .s-i { width: 22px; height: 22px; }
  .s-tb-on { color: var(--fg); }
  .s-hero { padding-top: 4px; margin-bottom: 20px; gap: 16px; }
  .s-hero-h1 { font-size: 26px; }
  .s-upnext { flex-basis: 100%; }
  .s-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .s-stat { padding: 12px 14px; }
  .s-stat-v { font-size: 20px; }
  .s-h1 { font-size: 24px; }
  .s-sheet { width: 100vw; border-left: 0; padding-top: calc(20px + env(safe-area-inset-top)); }
  .s-pal-wrap { padding-top: calc(8vh + env(safe-area-inset-top)); }
  .s-menu { max-width: calc(100vw - 16px); }
  .s-grid { grid-template-columns: 1fr !important; }
  .s-grid > * { grid-column: span 1 !important; }
  .s-card-h { padding: 14px 16px 10px; }
  .s-card-b { padding: 4px 16px 14px; }
  .s-card-f { padding: 10px 16px; }
  .s-nav-plus { opacity: 1; }
  .s-task-tools { display: none !important; }
  .s-task .s-del { display: none; }
  .s-task { min-height: 44px; padding: 6px 8px; }
  .s-task-text { font-size: 15px; }
  .s-task-chev { opacity: .5; }
  .s-add-proj { opacity: 0; max-width: 0; padding: 0; }
  .s-addrow:focus-within .s-add-proj { opacity: 1; max-width: 130px; }
  .s-addrow { min-height: 44px; }
  .s-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .s-tb { position: relative; }
  .s-tb-on::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
  .s-tabbar { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .s-fab { display: grid; }
  .s-hero-date { font-size: 11px; }
  .s-hero-h1 { font-size: 28px; }
  .s-hero-sub { font-size: 13px; }
  .s-upnext .s-event { min-height: 40px; }
  .s-card-h { padding: 14px 16px 8px; }
  .s-tabs { height: 32px; }
  .s-tab { padding: 0 10px; font-size: 12px; }
  .s-cal-c { height: 36px; font-size: 13px; }
  .s-stats { gap: 10px; }
  .s-news-lead { min-height: 220px; }
  .s-news-lead-t { font-size: 19px; }
  .s-add-proj { max-width: 110px; }
  .s-days { grid-template-columns: 1fr; }
}

/* ── home meta line (due / habits / steps) ── */
.s-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.s-meta > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.s-meta .s-li { width: 15px; height: 15px; color: var(--muted2); }
.s-meta b { color: var(--fg); font-weight: 600; }
.s-meta-ring { width: 15px; height: 15px; border-radius: 999px; position: relative; flex: none; background: conic-gradient(var(--c-green) calc(var(--p) * 1%), var(--bsoft) 0); }
.s-meta-ring::after { content: ''; position: absolute; inset: 3px; border-radius: 999px; background: var(--bg); }

/* ═════ modern shell: floating pills, black pill actions, soft motion ═════ */
#dash { --pill-shadow: 0 10px 30px -12px rgba(28,25,23,.22), 0 2px 6px -2px rgba(28,25,23,.06); --ink: #111110; }
#dash[data-theme="dark"] { --pill-shadow: 0 10px 30px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); --ink: #fafafa; }
.s-app-mode .s-app { background: var(--bg); }
.s-content { background: transparent; }
.s-side { margin: 12px 0 12px 12px; height: calc(100% - 24px); border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--pill-shadow); }
.s-side-closed .s-side { margin-left: 0; box-shadow: none; }
.s-top { height: 58px; margin: 12px 12px 0; padding: 0 10px 0 14px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--pill-shadow); position: relative; z-index: 6; }
.s-main { padding-top: 28px; }
.s-orb { width: 30px; height: 30px; border-radius: 999px; flex: none; background: linear-gradient(135deg, #ff9966, #ff5e62); box-shadow: inset 0 -2px 6px rgba(0,0,0,.12), 0 4px 12px -4px rgba(255,94,98,.6); transition: transform .3s; }
.s-orb:hover { transform: rotate(10deg) scale(1.05); }
.s-ws-ava { border-radius: 999px; background: linear-gradient(135deg, #ff9966, #ff5e62); color: #fff; box-shadow: 0 4px 12px -4px rgba(255,94,98,.6); }
.s-searchbox { border-radius: 999px; border: 0; background: var(--input); height: 38px; }
.s-iconbtn { border-radius: 999px; }
.s-btn { border-radius: 999px; }
.s-btn.s-sm { border-radius: 999px; }
.s-btn.s-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.s-btn.s-primary:hover { opacity: .88; }
.s-fab { background: var(--ink); color: var(--bg); }
.s-qa-opt.s-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.s-nav { border-radius: 999px; padding: 8px 12px; }
.s-nav-on { background: var(--ink); color: var(--bg); }
.s-nav-on .s-i, .s-nav-on .s-li { color: var(--bg) !important; }
.s-nav-on .s-nav-badge { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.s-nav:not(.s-nav-on):hover { transform: translateX(2px); }
.s-nav { transition: background .2s, color .2s, transform .2s; }
.s-tabs, .s-seg { border-radius: 999px; border: 0; background: var(--input); }
.s-tab, .s-seg-b { border-radius: 999px; }
.s-tab-on, .s-seg-on { background: var(--card); box-shadow: 0 1px 3px rgba(28,25,23,.12); }
.s-card { border-radius: 20px; border-color: transparent; box-shadow: var(--pill-shadow); }
.s-card-new { box-shadow: none; border-color: var(--bsoft); }
.s-dlg { border-radius: 24px; }
.s-menu { border-radius: 16px; border: 0; box-shadow: var(--pill-shadow); }
.s-menu > button { border-radius: 10px; }
.s-main > * { animation: s-rise .45s cubic-bezier(.2,.8,.2,1) both; }
.s-main > *:nth-child(2) { animation-delay: .05s; }
.s-main > *:nth-child(3) { animation-delay: .1s; }
.s-grid > * { animation: s-rise .45s cubic-bezier(.2,.8,.2,1) both; }
.s-grid > *:nth-child(2) { animation-delay: .06s; } .s-grid > *:nth-child(3) { animation-delay: .12s; } .s-grid > *:nth-child(4) { animation-delay: .18s; } .s-grid > *:nth-child(n+5) { animation-delay: .24s; }
.s-project { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.s-project:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(28,25,23,.3); }
@keyframes s-rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .s-main > *, .s-grid > * { animation: none; } }

@media (max-width: 767px) {
  .s-side { margin: 0; height: auto; border-radius: 0 22px 22px 0; }
  .s-top { margin: calc(8px + env(safe-area-inset-top)) 10px 0; padding: 0 8px 0 14px; min-height: 52px; height: 52px; position: sticky; top: calc(8px + env(safe-area-inset-top)); border-radius: 999px; }
  .s-main { padding-top: 20px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .s-tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--card) 90%, transparent); box-shadow: var(--pill-shadow); gap: 2px; }
  .s-tb { height: 52px; border-radius: 999px; transition: background .2s, color .2s; }
  .s-tb-on { background: var(--ink); color: var(--bg); }
  .s-tb-on::before { display: none; }
  .s-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* ── project meta + kind pill ─────────────── */
.s-meta-proj { margin: 4px 0 18px; align-items: center; }
.s-kind { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 9px; border-radius: 999px; background: var(--card); box-shadow: var(--pill-shadow); font-size: 12.5px; font-weight: 600; color: var(--fg); }
.s-kind .s-li, .s-kind .s-i { width: 14px; height: 14px; color: var(--muted); }

/* ── stepper ──────────────────────────────── */
.s-stepper { display: grid; grid-template-columns: repeat(var(--n), minmax(120px, 1fr)); gap: 0; margin: 0 0 18px; padding: 18px 18px 16px; background: var(--card); border-radius: 20px; box-shadow: var(--pill-shadow); overflow-x: auto; scrollbar-width: none; }
.s-stepper::-webkit-scrollbar { display: none; }
.s-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 12px; text-align: left; min-width: 0; }
.s-step-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 600; border: 2px solid var(--bsoft); background: var(--card); color: var(--muted); transition: all .2s; }
.s-step-dot .s-i { width: 14px; height: 14px; }
.s-step-line { position: absolute; top: 13px; left: 34px; right: 6px; height: 2px; border-radius: 2px; background: var(--bsoft); }
.s-step-done .s-step-dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.s-step-done .s-step-line { background: var(--ink); opacity: .35; }
.s-step-cur .s-step-dot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.s-step-t { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--fg); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.s-step-todo .s-step-t { color: var(--muted); font-weight: 500; }
.s-step-d { font-size: 11.5px; color: var(--muted2); }
.s-ms-empty { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; border: 2px dashed var(--bsoft); color: var(--muted); font-size: 13.5px; }
.s-ms-empty span { flex: 1; }
.s-ms-empty:hover { color: var(--fg); border-color: var(--muted2); }

/* ── timeline ─────────────────────────────── */
.s-tl { position: relative; padding: 4px 0 4px; }
.s-tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.s-tl-item:last-child { padding-bottom: 8px; }
.s-tl-item::before { content: ''; position: absolute; left: 12px; top: 30px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--bsoft); }
.s-tl-item:last-child::before { display: none; }
.s-tl-done::before { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.s-tl-dot { flex: none; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--bsoft); background: var(--card); color: var(--bg); transition: all .2s; }
.s-tl-dot .s-i { width: 13px; height: 13px; }
.s-tl-dot:hover { border-color: var(--ink); }
.s-tl-done .s-tl-dot { background: var(--ink); border-color: var(--ink); }
.s-tl-cur .s-tl-dot { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.s-tl-body { flex: 1; min-width: 0; padding-top: 2px; }
.s-tl-date { font-size: 12px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.s-tl-now { font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-bg); padding: 1px 8px; border-radius: 999px; }
.s-tl-title { display: block; width: 100%; font-size: 15px; font-weight: 600; line-height: 24px; }
.s-tl-todo .s-tl-title { color: var(--muted); font-weight: 500; }
.s-tl-notes { display: block; width: 100%; font-size: 13px; line-height: 1.5; color: var(--muted); resize: none; }
.s-tl-item .s-del { opacity: 0; }
.s-tl-item:hover .s-del { opacity: 1; }
.s-ms-add { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; align-items: end; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border50); }
.s-ms-add .s-fl { margin-top: 0; }
.s-ms-add .s-btn { height: 56px; }

/* ── progress chart ───────────────────────── */
.s-prog-head { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 14px; }
.s-prog-n { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.s-chart { position: relative; height: 200px; padding-bottom: 22px; }
.s-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.s-chart-grid { stroke: var(--border50); stroke-width: 1; stroke-dasharray: 3 4; }
.s-chart-area { fill: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }
.s-chart-line { fill: none; stroke: var(--c, var(--accent)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.s-chart-dots { position: absolute; inset: 0 0 22px 0; pointer-events: none; }
.s-chart-dots span { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 999px; background: var(--card); border: 2px solid var(--c, var(--accent)); pointer-events: auto; }
.s-chart-x { position: absolute; left: 4%; right: 4%; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted2); }
@media (max-width: 767px) {
  .s-ms-add { grid-template-columns: 1fr; }
  .s-ms-add .s-btn { height: 46px; }
  .s-chart-x span:nth-child(even) { visibility: hidden; }
  .s-stepper { grid-template-columns: repeat(var(--n), 132px); }
  .s-tl-item .s-del { opacity: 1; }
}

/* ── project header polish ─────────────────── */
.s-ph { gap: 14px; }
.s-ava-lg { width: 52px; height: 52px; border-radius: 16px; border: 0; background: color-mix(in srgb, var(--c) 10%, var(--card)); box-shadow: var(--pill-shadow); }
.s-ava-lg .s-li { width: 22px; height: 22px; }
.s-ava-lg:hover { transform: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent), var(--pill-shadow); }
.s-title-in { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.s-desc-in { font-size: 14px; }
.s-ph-r { gap: 6px; }
.s-stpill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--card); box-shadow: var(--pill-shadow); font-size: 13px; font-weight: 500; color: var(--fg); }
.s-stpill i { width: 7px; height: 7px; border-radius: 999px; background: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 20%, transparent); }
.s-stpill .s-i { width: 13px; height: 13px; color: var(--muted2); }
.s-st-active { --sc: var(--c-green); } .s-st-launched { --sc: var(--c-blue); } .s-st-paused { --sc: var(--c-amber); } .s-st-idea { --sc: var(--c-violet); }
.s-ph-more { width: 32px; height: 32px; background: var(--card); box-shadow: var(--pill-shadow); }
.s-colorrow { display: flex; gap: 6px; padding: 2px 6px 8px; }
.s-cdot { width: 22px; height: 22px; border-radius: 999px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s; }
.s-cdot:hover { transform: scale(1.12); }
.s-cdot.s-on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--c); }
@media (max-width: 767px) { .s-title-in { font-size: 22px; } .s-ava-lg { width: 46px; height: 46px; } }
.s-pimg { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.s-ava:has(.s-pimg) { padding: 0; overflow: hidden; border: 0; }
.s-nav .s-pimg { width: 18px; height: 18px; border-radius: 999px; flex: none; }
.s-chip .s-pimg, .s-pal-row .s-pimg, .s-row .s-pimg:not(.s-ava *) { width: 16px; height: 16px; border-radius: 999px; }
.s-photorow { display: flex; gap: 6px; padding: 2px 6px 8px; }
.s-photorow .s-btn { position: relative; overflow: hidden; }
.s-add-due { max-width: 110px; font-size: 12px; color: var(--muted); cursor: pointer; flex: none; }
.s-add-due:hover { color: var(--fg); }

/* ── task rows v2: spacing, arrow-only expand, calm detail ── */
.s-tasks { gap: 4px; }
.s-task { flex-wrap: nowrap !important; align-items: flex-start; gap: 12px; padding: 9px 6px 9px 10px; margin: 0 -10px; border-radius: 12px; min-height: 44px; }
.s-task > .s-check { margin-top: 3px; }
.s-task-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.s-task-main .s-task-text { flex: 1 1 auto; min-width: 40%; cursor: default; white-space: normal; line-height: 24px; }
.s-task-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.s-task-tags:empty { display: none; }
.s-task-chev { flex: none; width: 32px; height: 32px; margin: -4px 0; border-radius: 999px; display: grid; place-items: center; color: var(--muted2); opacity: 1 !important; transition: background .15s, transform .2s, color .15s; }
.s-task-chev .s-i { width: 16px; height: 16px; }
.s-task-chev:hover { background: var(--hover); color: var(--fg); }
.s-task-open { background: var(--hover); border-radius: 12px 12px 0 0; }
.s-task-open .s-task-chev { transform: rotate(180deg); color: var(--fg); }
.s-task-sub { margin: 0; padding: 4px 6px; min-height: 30px; }
.s-detail { margin: -4px -10px 4px; padding: 2px 16px 14px 40px; border-radius: 0 0 12px 12px; }
.s-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-detail-sum { font-size: 12.5px; color: var(--muted); }
.s-detail-acts { display: flex; gap: 2px; }
.s-detail-acts .s-iconbtn { width: 30px; height: 30px; }
.s-detail-acts .s-i { width: 15px; height: 15px; }
.s-detail-del:hover { color: var(--red); background: var(--red-bg); }
.s-task-tools { display: none !important; }
@media (max-width: 767px) { .s-task { margin: 0 -8px; padding: 10px 4px 10px 8px; } }

/* ── collapsed project rows v2 ── */
#dash .s-project.s-collapsed { flex-direction: row; align-items: center; gap: 6px; padding: 10px 8px 10px 14px; min-height: 0; }
#dash .s-collapsed-row { gap: 12px; padding: 2px 0; text-align: left; justify-content: flex-start; }
#dash .s-collapsed-row:hover .s-strong { text-decoration: none; }
#dash .s-collapsed .s-ava-sm { width: 36px; height: 36px; border-radius: 10px; }
#dash .s-collapsed-txt { gap: 2px; align-items: flex-start; }
#dash .s-collapsed-txt .s-strong { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
#dash .s-collapsed .s-mini-bar { width: 72px; height: 4px; }
#dash .s-collapsed .s-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
#dash .s-collapsed .s-status::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
#dash .s-collapsed .s-status-active::before { background: var(--green); }
#dash .s-collapsed .s-status-launched::before { background: var(--blue); }
#dash .s-collapsed .s-status-paused::before { background: var(--amber); }
#dash .s-collapsed .s-status-idea::before { background: var(--violet); }
#dash .s-collapsed .s-fold { flex: none; width: 32px; height: 32px; border-radius: 999px; color: var(--muted); }
#dash .s-collapsed .s-fold:hover { background: var(--bsoft, rgba(0,0,0,.05)); color: var(--fg); }
@media (max-width: 600px) { #dash .s-collapsed .s-mini-bar { display: none; } }

/* ── photo galleries (tasks + projects) ── */
#dash .s-detail { flex-direction: column; }
#dash .s-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; width: 100%; }
#dash .s-gal-i { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bsoft, rgba(0,0,0,.04)); }
#dash .s-gal-i img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
#dash .s-gal-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }
#dash .s-gal-x .s-i { width: 13px; height: 13px; }
#dash .s-ed-photo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
#dash .s-card-b > .s-gal { margin-bottom: 12px; }
#dash .s-card-b > .s-gal { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
#dash .s-gal-add { margin-top: 4px; }
#dash .s-detail .s-gal { grid-template-columns: repeat(auto-fill, 64px); gap: 6px; }
#dash .s-detail .s-gal-i { border-radius: 8px; }

/* ── Today card "coming up" + grouped all tasks + mobile week ── */
#dash .s-ahead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, rgba(0,0,0,.06)); }
#dash .s-ahead-l { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
#dash .s-ahead-b { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line, rgba(0,0,0,.08)); font-size: 12.5px; color: var(--muted); background: transparent; }
#dash .s-ahead-b b { color: var(--fg); font-weight: 600; margin-left: 3px; }
#dash .s-ahead-b:hover { background: var(--bsoft, rgba(0,0,0,.04)); color: var(--fg); }

#dash .s-kf { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 14px; padding-bottom: 2px; }
#dash .s-kf::-webkit-scrollbar { display: none; }
#dash .s-kf-b { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); }
#dash .s-kf-b.s-on { background: var(--ink, #1c1917); color: #fff; border-color: transparent; }

#dash .s-tg { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 4px 8px; font-size: 13px; font-weight: 600; color: var(--fg); text-align: left; background: none; border: 0; }
#dash .s-tg .s-i { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
#dash .s-tg-open .s-i { transform: rotate(90deg); }
#dash .s-tg-n { font-weight: 500; color: var(--muted); font-size: 12px; }
#dash .s-tg-late span:not(.s-tg-n) { color: #dc2626; }
#dash .s-tg + .s-tg { border-top: 1px solid var(--line, rgba(0,0,0,.05)); }

#dash .s-dstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 0 14px; padding: 6px; background: var(--card, #fff); border-radius: 18px; box-shadow: var(--pill-shadow, 0 1px 3px rgba(0,0,0,.06)); }
#dash .s-dstrip-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 12px; background: none; border: 0; color: var(--muted); }
#dash .s-dstrip-b span { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
#dash .s-dstrip-b b { font-size: 16px; font-weight: 600; color: var(--fg); }
#dash .s-dstrip-b i { width: 4px; height: 4px; border-radius: 999px; background: var(--accent, #4568ff); }
#dash .s-dstrip-b i.s-nodot { background: transparent; }
#dash .s-dstrip-b.s-today b { color: var(--accent, #4568ff); }
#dash .s-dstrip-b.s-on { background: var(--ink, #1c1917); }
#dash .s-dstrip-b.s-on span, #dash .s-dstrip-b.s-on b { color: #fff; }
#dash .s-dstrip-b.s-on i:not(.s-nodot) { background: #fff; }
#dash .s-wk-m { display: flex; flex-direction: column; gap: 14px; }
#dash .s-wk-m .s-card-h { padding: 14px 18px 6px; cursor: default; }
#dash .s-hm { padding: 8px 0; }
#dash .s-hm + .s-hm { border-top: 1px solid var(--line, rgba(0,0,0,.05)); }
#dash .s-hm-top { display: flex; align-items: center; gap: 8px; }
#dash .s-hm-name { flex: 1; min-width: 0; font-size: 14px; }
#dash .s-hm-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 6px; }
#dash .s-hm-days .s-hcell { width: 100%; height: 30px; border-radius: 9px; font-size: 11px; }
#dash .s-hm-days .s-hcell:not(.s-hcell-on) { background: var(--bsoft, rgba(0,0,0,.04)); }
@media (max-width: 767px) {
  #dash .s-addrow:has(.s-add-due, .s-add-proj) { flex-wrap: wrap; row-gap: 6px; }
  #dash .s-addrow:has(.s-add-due, .s-add-proj) > .s-inline { flex: 1 1 calc(100% - 30px); }
  #dash .s-addrow .s-add-due, #dash .s-addrow .s-add-proj { display: none; margin-left: 22px; }
  #dash .s-addrow .s-add-proj { margin-left: 0; }
  #dash .s-addrow:focus-within .s-add-due, #dash .s-addrow:focus-within .s-add-proj { display: block; }
}
#dash .s-dstrip-b { height: 62px; min-height: 0; justify-content: center; } #dash .s-dstrip { grid-auto-rows: 62px; align-items: start; }
#dash .s-detail-proj { align-self: flex-start; cursor: pointer; }

/* ── week / month / year zoom ── */
#dash .s-zoom { display: inline-flex; gap: 2px; padding: 4px; margin: 0 0 14px; background: var(--card, #fff); border-radius: 999px; box-shadow: var(--pill-shadow, 0 1px 3px rgba(0,0,0,.06)); }
#dash .s-zoom-b { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; }
#dash .s-zoom-b.s-on { background: var(--ink, #1c1917); color: #fff; }
#dash .s-zoom-hint { margin: 10px 4px 0; }

#dash .s-mz { padding: 10px; }
#dash .s-mz-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
#dash .s-mz-w { text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--muted); padding: 4px 0 6px; }
#dash .s-mz-c { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 108px; padding: 7px; border-radius: 12px; background: var(--bsoft, rgba(0,0,0,.03)); border: 0; text-align: left; min-width: 0; overflow: hidden; }
#dash .s-mz-c:hover { background: rgba(69,104,255,.08); }
#dash .s-mz-pad { background: none; }
#dash .s-mz-n { font-size: 13px; font-weight: 600; color: var(--fg); }
#dash .s-past .s-mz-n { color: var(--muted); }
#dash .s-mz-c.s-today { box-shadow: inset 0 0 0 1.5px var(--accent, #4568ff); }
#dash .s-mz-c.s-today .s-mz-n { color: var(--accent, #4568ff); }
#dash .s-mz-t { font-size: 11.5px; line-height: 1.3; padding: 2px 6px; border-radius: 6px; background: var(--card, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dash .s-mz-t.s-late { color: #dc2626; }
#dash .s-mz-more { font-size: 11px; color: var(--muted); padding: 0 6px; }
#dash .s-mz-dots { display: flex; gap: 3px; justify-content: center; }
#dash .s-mz-dots i { width: 5px; height: 5px; border-radius: 999px; background: var(--accent, #4568ff); }
#dash .s-mz-dots i.s-late-dot { background: #dc2626; }
#dash .s-mz-dots i.s-ev-dot { background: #22c55e; }
@media (max-width: 767px) {
  #dash .s-mz { padding: 8px; }
  #dash .s-mz-grid { gap: 3px; }
  #dash .s-mz-c { min-height: 52px; align-items: center; padding: 7px 2px; border-radius: 10px; }
}

#dash .s-yz { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
#dash .s-yz-m { display: flex; flex-direction: column; gap: 8px; padding: 14px; text-align: left; border: 0; cursor: pointer; }
#dash .s-yz-m:hover { transform: translateY(-1px); }
#dash .s-yz-cur { box-shadow: inset 0 0 0 1.5px var(--accent, #4568ff), var(--pill-shadow, 0 1px 3px rgba(0,0,0,.06)); }
#dash .s-yz-h { display: flex; justify-content: space-between; align-items: baseline; }
#dash .s-yz-h b { font-size: 15px; font-weight: 600; }
#dash .s-yz-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
#dash .s-yz-g i { font-style: normal; font-size: 10px; text-align: center; line-height: 20px; border-radius: 6px; color: var(--muted); }
#dash .s-yz-g i.s-yz-1 { background: rgba(69,104,255,.14); color: var(--fg); font-weight: 600; }
#dash .s-yz-g i.s-yz-3 { background: var(--accent, #4568ff); color: #fff; font-weight: 600; }
#dash .s-yz-g i.s-yz-late { background: rgba(220,38,38,.12); color: #dc2626; font-weight: 600; }
#dash .s-yz-g i.s-yz-today { box-shadow: inset 0 0 0 1.5px var(--ink, #1c1917); color: var(--fg); font-weight: 700; }
@media (max-width: 767px) {
  #dash .s-yz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #dash .s-yz-m { padding: 11px 10px; gap: 6px; }
  #dash .s-yz-g i { font-size: 8.5px; line-height: 16px; border-radius: 4px; }
}
#dash .s-mz-c:not(.s-mz-pad) { background: rgba(28,25,23,.035); } #dash .s-mz-c:not(.s-mz-pad):hover { background: rgba(69,104,255,.09); }
#dash .s-ed-dated { display: contents; } #dash .s-ed-dated.s-hide { display: none; }

/* ── full-width calendar: month left, day agenda right ── */
@media (max-width: 899px) { #dash .s-cal-r-default { display: none; } }
@media (min-width: 900px) {
  #dash .s-cal { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; column-gap: 32px; align-items: start; }
  #dash .s-cal-r { border-left: 1px solid var(--line, rgba(0,0,0,.06)); padding-left: 28px; min-height: 100%; }
  #dash .s-cal-r .s-cal-sel-lbl { margin-top: 2px; padding-top: 0; border-top: 0; }
  #dash .s-cal .s-cal-c { height: 34px; font-size: 12.5px; }
}
@media (min-width: 900px) {
  #dash .s-cal { grid-template-columns: 1fr minmax(300px, 380px); }
  #dash .s-cal-r { order: -1; border-left: 0; padding-left: 0; border-right: 1px solid var(--line, rgba(0,0,0,.06)); padding-right: 28px; }
}

/* ── lifestyle ── */
#dash .s-meta-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
#dash .s-lf-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-align: left; border: 0; width: 100%; }
#dash .s-lf-link > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
#dash .s-lf-link .s-i { width: 18px; height: 18px; color: var(--muted); }

#dash .s-lf-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#dash .s-lf-day-t { display: flex; flex-direction: column; align-items: center; gap: 1px; }
#dash .s-lf-day-t b { font-size: 16px; font-weight: 600; }
#dash .s-lf-day .s-iconbtn[disabled] { opacity: .3; pointer-events: none; }
#dash .s-lf-steps { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 12px; font-size: 14px; }
#dash .s-lf-steps .s-meta-ring { width: 22px; height: 22px; }
#dash .s-lf-list { padding: 6px 8px; }
#dash .s-lf-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 14px; }
#dash .s-lf-row + .s-lf-row { border-top: 1px solid var(--line, rgba(0,0,0,.05)); }
#dash .s-lf-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(28,25,23,.05); color: var(--fg); }
#dash .s-lf-ico .s-li, #dash .s-lf-ico svg { width: 17px; height: 17px; }
#dash .s-lf-ok .s-lf-ico { background: rgba(34,197,94,.14); color: #15803d; }
#dash .s-lf-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#dash .s-lf-txt b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dash .s-lf-chk { width: 34px; height: 34px; flex: none; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid rgba(28,25,23,.18); background: none; color: transparent; }
#dash .s-lf-chk .s-i { width: 17px; height: 17px; }
#dash .s-lf-chk.s-on { background: #22c55e; border-color: #22c55e; color: #fff; }
#dash .s-lf-step { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(28,25,23,.05); flex: none; }
#dash .s-lf-step button { width: 30px; height: 30px; border-radius: 999px; border: 0; background: var(--card, #fff); font-size: 17px; line-height: 1; color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
#dash .s-lf-step b { min-width: 30px; text-align: center; font-size: 15px; font-weight: 600; }
#dash .s-lf-step b.s-none { color: var(--muted); font-weight: 500; }
#dash .s-good { color: #15803d; }
#dash .s-bad { color: #dc2626; }
#dash .s-lf-scale { display: inline-flex; gap: 4px; flex: none; }
#dash .s-lf-scale button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(28,25,23,.05); font-size: 11.5px; font-weight: 600; color: var(--muted); }
#dash .s-lf-scale button.s-on { background: #f59e0b; color: #fff; }
#dash .s-lf-edit { display: inline-flex; gap: 4px; flex: none; }
#dash .s-lf-add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 10px; border: 0; background: none; color: var(--accent, #4568ff); font-weight: 500; font-size: 14px; }
#dash .s-lf-add .s-i { width: 16px; height: 16px; }
#dash .s-lf-foot { display: flex; justify-content: center; margin: 14px 0 4px; }

#dash .s-lf-grid { padding: 14px 16px; margin-bottom: 14px; overflow-x: auto; }
#dash .s-lf-gh, #dash .s-lf-gr { display: grid; grid-template-columns: minmax(110px, 1fr) repeat(7, 26px) 38px; gap: 6px; align-items: center; }
#dash .s-lf-gh span { font-size: 10.5px; font-weight: 600; color: var(--muted); text-align: center; }
#dash .s-lf-gh span.s-today { color: var(--accent, #4568ff); }
#dash .s-lf-gr { padding: 6px 0; }
#dash .s-lf-gn { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
#dash .s-lf-gn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dash .s-lf-gn .s-li, #dash .s-lf-gn svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
#dash .s-lf-gr > i { width: 26px; height: 26px; border-radius: 8px; background: rgba(28,25,23,.05); }
#dash .s-lf-gr > i.s-ok { background: #22c55e; }
#dash .s-lf-gr > i.s-miss { background: rgba(220,38,38,.18); }
#dash .s-lf-gr > i.s-fut { background: transparent; box-shadow: inset 0 0 0 1px rgba(28,25,23,.06); }
#dash .s-lf-gs { font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }
#dash .s-lf-chart { padding: 14px 16px; }
#dash .s-lf-chart .s-kf { margin: 0 0 12px; }
#dash .s-lf-stats { display: flex; gap: 26px; margin-bottom: 10px; }
#dash .s-lf-stats > div { display: flex; flex-direction: column; gap: 1px; }
#dash .s-lf-stats b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
#dash .s-lf-svg { width: 100%; height: 150px; display: block; }
#dash .s-lf-svg rect.s-b-ok { fill: #22c55e; }
#dash .s-lf-svg rect.s-b-bad { fill: #f87171; }
#dash .s-lf-svg rect.s-b-miss { fill: #93a4ff; }
#dash .s-lf-svg rect.s-b-none { fill: rgba(28,25,23,.08); }
#dash .s-lf-svg .s-goal-line { stroke: #a8a29e; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
#dash .s-lf-svg text { font-size: 9px; fill: #a8a29e; }

#dash .s-map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
#dash .s-map-bar .s-btn { display: inline-flex; align-items: center; gap: 7px; }
#dash .s-lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
#dash .s-lg-habit { background: #1c1917; }
#dash .s-lg-result { background: #4568ff; }
#dash .s-lg-goal { background: linear-gradient(135deg, #ff9966, #ff5e62); }
#dash .s-map-z { margin-left: auto; display: inline-flex; gap: 4px; }
#dash .s-map-hint { margin: 0 2px 10px; line-height: 1.45; }
#dash .s-map-wrap { max-width: 100%; overflow: auto; border-radius: 20px; background: var(--card, #fff); box-shadow: var(--pill-shadow, 0 1px 3px rgba(0,0,0,.06)); -webkit-overflow-scrolling: touch; }
#dash .s-map-size { position: relative; }
#dash .s-map { position: absolute; left: 0; top: 0; transform-origin: 0 0; background-image: radial-gradient(rgba(28,25,23,.09) 1px, transparent 1px); background-size: 22px 22px; }
#dash .s-map-bg { position: absolute; inset: 0; }
#dash .s-map-svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
#dash .s-edge { fill: none; stroke: #c9c4bf; stroke-width: 2; }
#dash .s-edge.s-hot { stroke: #4568ff; }
#dash .s-edge-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
#dash .s-map-tmp { fill: none; stroke: #4568ff; stroke-width: 2; stroke-dasharray: 6 5; }
#dash .s-edge-x { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 999px; border: 0; display: grid; place-items: center; background: #dc2626; color: #fff; box-shadow: 0 4px 12px -3px rgba(220,38,38,.6); z-index: 5; }
#dash .s-edge-x .s-i { width: 14px; height: 14px; }
#dash .s-mn { position: absolute; z-index: 2; min-width: 150px; max-width: 220px; padding: 10px 14px 11px; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; box-shadow: 0 6px 20px -8px rgba(0,0,0,.25); transition: box-shadow .15s; }
#dash .s-mn:active { cursor: grabbing; }
#dash .s-mn-k { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
#dash .s-mn-t { font-size: 14px; font-weight: 600; line-height: 1.25; }
#dash .s-mn-s { font-size: 11.5px; opacity: .75; }
#dash .s-mn-habit { background: #1c1917; color: #fff; }
#dash .s-mn-result { background: #eef1ff; color: #1e2a78; box-shadow: inset 0 0 0 1.5px rgba(69,104,255,.35), 0 6px 20px -10px rgba(69,104,255,.4); }
#dash .s-mn-goal { background: linear-gradient(135deg, #ff9966, #ff5e62); color: #fff; box-shadow: 0 10px 26px -10px rgba(255,94,98,.7); }
#dash .s-mn.s-sel, #dash .s-mn.s-drop { outline: 3px solid #4568ff; outline-offset: 3px; }
#dash .s-mn.s-linking { outline: 3px dashed #4568ff; outline-offset: 3px; }
#dash .s-mn-dot { position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 999px; background: #fff; border: 2px solid #4568ff; cursor: crosshair; touch-action: none; }
#dash .s-mn-tools { position: absolute; left: 0; top: calc(100% + 10px); display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: #1c1917; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); z-index: 6; cursor: default; }
#dash .s-mn-tools button { border: 0; background: none; color: #fff; font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
#dash .s-mn-tools button:hover { background: rgba(255,255,255,.12); }
#dash .s-mn-tools button.s-danger { color: #fca5a5; }
#dash .s-lf-rings { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 20px; margin-bottom: 14px; }
#dash .s-rings { width: 150px; height: 150px; flex: none; transform: rotate(-90deg); overflow: visible; }
#dash .s-rings circle { filter: drop-shadow(0 0 4px rgba(0,0,0,.08)); }
#dash .s-ring-anim { animation: s-ring 1.6s cubic-bezier(.4,0,.2,1) both; }
@keyframes s-ring { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--o); } }
#dash .s-rings-info { display: flex; flex-direction: column; gap: 12px; }
#dash .s-rings-info span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#dash .s-rings-info b { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
#dash .s-rings-info small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
@media (max-width: 400px) { #dash .s-lf-rings { gap: 18px; padding: 18px 14px; } #dash .s-rings { width: 128px; height: 128px; } #dash .s-rings-info b { font-size: 18px; } }

/* ── workouts ── */
#dash .s-lf-h { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 10px; }
#dash .s-wk-create { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border: 0; border-radius: 22px; text-align: left; color: #fff; background: linear-gradient(135deg, #ff9966, #ff5e62); box-shadow: 0 14px 30px -14px rgba(255,94,98,.8); }
#dash .s-wk-create > span:last-child { display: flex; flex-direction: column; gap: 3px; }
#dash .s-wk-create b { font-size: 17px; font-weight: 600; }
#dash .s-wk-create span span { font-size: 13px; opacity: .9; }
#dash .s-wk-plus { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.22); }
#dash .s-wk-plus .s-i { width: 22px; height: 22px; }
#dash .s-wk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
#dash .s-wk-card { display: flex; gap: 14px; padding: 12px; align-items: center; }
#dash .s-wk-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 84px; height: 84px; flex: none; border-radius: 14px; overflow: hidden; background: #f5f5f4; }
#dash .s-wk-imgs img { width: 100%; height: 100%; object-fit: cover; }
#dash .s-wk-imgs img:first-child:nth-last-child(1) { grid-column: span 2; grid-row: span 2; }
#dash .s-wk-imgs img:first-child:nth-last-child(3), #dash .s-wk-imgs img:first-child:nth-last-child(2) { grid-row: span 2; }
#dash .s-wk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#dash .s-wk-body b { font-size: 15.5px; font-weight: 600; }
#dash .s-wk-acts { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
#dash .s-wk-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

#dash .s-wks { padding: 18px; border-radius: 24px; }
#dash .s-wks-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
#dash .s-wks-h > div { display: flex; flex-direction: column; gap: 2px; }
#dash .s-wks-h b { font-size: 16px; font-weight: 700; }
#dash .s-wks-big .s-wks-h b { font-size: 20px; }
#dash .s-wks-hero { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(28,25,23,.04); margin-bottom: 14px; }
#dash .s-wks-hero img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; }
#dash .s-wks-hero > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#dash .s-wks-hero b { font-size: 17px; font-weight: 600; }
#dash .s-wks-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#dash .s-wks-stats li { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(28,25,23,.04); font-size: 13.5px; font-weight: 500; animation: s-rise .4s ease both; }
#dash .s-wks-stats li:nth-child(2) { animation-delay: .06s; } #dash .s-wks-stats li:nth-child(3) { animation-delay: .12s; } #dash .s-wks-stats li:nth-child(4) { animation-delay: .18s; }
#dash .s-wks-stats li > span:nth-child(2) { flex: 1; }
#dash .s-wks-stats b { font-size: 17px; font-weight: 700; }
#dash .s-wks-stats small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
#dash .s-wks-i { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; flex: none; }
#dash .s-wks-i .s-li, #dash .s-wks-i svg { width: 15px; height: 15px; }
#dash .s-wks-green { background: #dcfce7; color: #16a34a; } #dash .s-wks-purple { background: #f3e8ff; color: #9333ea; }
#dash .s-wks-red { background: #fee2e2; color: #dc2626; } #dash .s-wks-amber { background: #fef3c7; color: #d97706; }

#dash .s-wk-wrap { z-index: 70; }
#dash .s-wk-sheet { position: relative; z-index: 1; width: min(760px, 100%); height: min(88vh, 900px); margin: auto; display: flex; flex-direction: column; background: var(--bg, #fafaf9); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
@media (max-width: 767px) { #dash .s-wk-wrap { padding: 0; align-items: stretch; } #dash .s-wk-sheet { width: 100%; height: 100dvh; max-height: none; border-radius: 0; } }
#dash .s-wk-top { display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; gap: 8px; padding: max(12px, env(safe-area-inset-top)) 14px 10px; background: var(--card, #fff); border-bottom: 1px solid var(--line, rgba(0,0,0,.06)); }
#dash .s-wk-top b { text-align: center; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dash .s-wk-clock { justify-self: end; font-variant-numeric: tabular-nums; font-weight: 600; color: #ff5e62; }
#dash .s-wk-filters { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 10px; background: var(--card, #fff); }
#dash .s-wk-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(28,25,23,.05); }
#dash .s-wk-search .s-i { width: 16px; height: 16px; color: var(--muted); }
#dash .s-wk-search input { flex: 1; font-size: 15px; }
#dash .s-wk-filters .s-kf { margin: 0; }
#dash .s-wk-eq { align-self: flex-start; }
#dash .s-wk-grid { flex: 1; overflow-y: auto; padding: 12px 14px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-content: start; -webkit-overflow-scrolling: touch; }
@media (max-width: 400px) { #dash .s-wk-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
#dash .s-ex { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 6px 6px 10px; border-radius: 18px; background: var(--card, #fff); box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer; transition: box-shadow .15s, transform .15s; }
#dash .s-ex.s-on { box-shadow: 0 0 0 2.5px #ff5e62, 0 8px 20px -10px rgba(255,94,98,.6); }
#dash .s-ex-img { position: relative; aspect-ratio: 4 / 3; border-radius: 13px; overflow: hidden; background: #f5f5f4; margin-bottom: 5px; }
#dash .s-ex-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#dash .s-ex-chk { position: absolute; top: 7px; left: 7px; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.9); color: transparent; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
#dash .s-ex-chk .s-i { width: 14px; height: 14px; }
#dash .s-ex.s-on .s-ex-chk { background: #ff5e62; color: #fff; }
#dash .s-ex-t { font-size: 13px; font-weight: 600; line-height: 1.25; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#dash .s-ex-s { font-size: 11.5px; color: var(--muted); padding: 0 4px; }
#dash .s-ex-info { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); font: italic 600 13px Georgia, serif; color: #1c1917; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
#dash .s-wk-more { grid-column: 1 / -1; justify-self: center; }
#dash .s-wk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--card, #fff); border-top: 1px solid var(--line, rgba(0,0,0,.06)); font-size: 14px; }
#dash .s-wk-bar .s-btn[disabled] { opacity: .4; pointer-events: none; }
#dash .s-ex-sheet { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; }
#dash .s-ex-card { position: relative; width: 100%; max-width: 560px; max-height: 88%; overflow-y: auto; padding: 16px 18px max(18px, env(safe-area-inset-bottom)); background: var(--card, #fff); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; gap: 10px; animation: s-rise .25s ease both; }
#dash .s-ex-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.9); }
#dash .s-ex-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#dash .s-ex-pics img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
#dash .s-ex-name { font-size: 18px; font-weight: 600; }
#dash .s-ex-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#dash .s-ex-tags span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(28,25,23,.06); color: var(--muted); }
#dash .s-ex-how { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: #44403c; display: flex; flex-direction: column; gap: 6px; }

#dash .s-wk-body2 { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
#dash .s-wk-ex { background: var(--card, #fff); border-radius: 20px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
#dash .s-wk-exh { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
#dash .s-wk-exh img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
#dash .s-wk-exh > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#dash .s-wk-exh b { font-size: 14.5px; font-weight: 600; }
#dash .s-wk-exa { display: flex; gap: 2px; }
#dash .s-wk-exa .s-iconbtn[disabled] { opacity: .25; }
#dash .s-sets { display: flex; flex-direction: column; gap: 6px; }
#dash .s-set-row { display: grid; grid-template-columns: 26px 1fr 1fr 34px; gap: 8px; align-items: center; padding: 4px; border-radius: 12px; transition: background .15s; }
#dash .s-set-row.s-done { background: rgba(34,197,94,.1); }
#dash .s-set-n { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: rgba(28,25,23,.06); }
#dash .s-set-row label { display: flex; align-items: center; gap: 6px; min-width: 0; }
#dash .s-set-row .s-input { height: 38px; padding: 0 10px; text-align: center; font-size: 15px; font-weight: 600; min-width: 0; width: 100%; }
#dash .s-set-row label span { font-size: 12px; color: var(--muted); }
#dash .s-set-chk { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid rgba(28,25,23,.18); background: none; color: transparent; }
#dash .s-set-chk .s-i { width: 16px; height: 16px; }
#dash .s-set-chk.s-on { background: #22c55e; border-color: #22c55e; color: #fff; }
#dash .s-wk-addmore { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#dash .s-rings-x { font-size: 12px; color: var(--muted); margin-top: -2px; max-width: 170px; line-height: 1.4; }
#dash .s-work { padding: 16px 18px; margin-bottom: 14px; }
#dash .s-work-h { display: flex; align-items: center; gap: 12px; }
#dash .s-work-live { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: #22c55e; margin-right: 6px; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: s-pulse 1.8s ease infinite; }
@keyframes s-pulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
#dash .s-work-stats { display: flex; gap: 26px; margin: 14px 0 12px; }
#dash .s-work-stats > div { display: flex; flex-direction: column; gap: 1px; }
#dash .s-work-stats b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
#dash .s-work-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 76px; align-items: end; }
#dash .s-work-bars span { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
#dash .s-work-bars i { width: 100%; max-width: 28px; min-height: 3px; border-radius: 6px; background: linear-gradient(180deg, #ff9966, #ff5e62); opacity: .55; }
#dash .s-work-bars i.s-today { opacity: 1; }
#dash .s-work-bars em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); }
#dash .s-work-miss { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; text-align: left; }
#dash .s-work-miss span { flex: 1; }
#dash .s-work-miss .s-li, #dash .s-work-miss svg { width: 16px; height: 16px; flex: none; }
#dash .s-work-list { border-top: 1px solid var(--line, rgba(0,0,0,.06)); padding-top: 6px; }
#dash .s-work-row { display: grid; grid-template-columns: 1fr auto auto 32px; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
#dash .s-work-row b { font-weight: 600; text-align: right; min-width: 52px; }
#dash .s-tdlg { max-width: 420px; }
#dash .s-td-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
#dash .s-td-q { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line, rgba(0,0,0,.08)); background: var(--card, #fff); font-size: 13px; font-weight: 500; color: var(--fg); }
#dash .s-td-q:hover { background: rgba(28,25,23,.04); }
#dash .s-td-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
#dash .s-td-row .s-fl { margin: 0; }
#dash .s-td-day { height: 52px; }
#dash .s-td-day .s-seg-b { padding: 0 14px; }
#dash .s-td-dayone { height: 52px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--input, rgba(0,0,0,.04)); font-size: 14px; font-weight: 500; }
#dash .s-td-time { font-size: 17px; font-weight: 600; }
#dash .s-td-sum { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(28,25,23,.04); font-size: 14px; }
#dash .s-td-sum .s-i { width: 14px; height: 14px; color: var(--muted); }
#dash .s-td-sum b { margin-left: auto; font-size: 16px; font-weight: 600; }
#dash .s-td-sum.s-bad b { color: #dc2626; }
#dash .s-tdlg .s-btn[disabled] { opacity: .4; pointer-events: none; }
@media (max-width: 420px) { #dash .s-td-row { grid-template-columns: 1fr; } }
#dash .s-td-quick { display: grid; grid-template-columns: repeat(4, 1fr); }
#dash .s-td-q { padding: 0 6px; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 420px) { #dash .s-td-row { grid-template-columns: auto 1fr; } }
@media (max-width: 340px) { #dash .s-td-row { grid-template-columns: 1fr; } }
/* keep hidden file inputs inside their own button (they were covering whole cards) */
#dash label:has(> input.s-file), #dash .s-gal-add, #dash .s-photorow .s-btn, #dash .s-work-up { position: relative; overflow: hidden; }

/* ── Lifestyle · layout A (refined) ── */
#dash .s-lfa-top { display: flex; gap: 12px; align-items: stretch; }
#dash .s-lfa-sum { flex: 1.35; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 16px; margin: 0; }
#dash .s-lfa-rings { width: 86px; height: 86px; flex: none; transform: rotate(-90deg); }
#dash .s-lfa-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#dash .s-lfa-info > div { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
#dash .s-lfa-info i { width: 7px; height: 7px; border-radius: 99px; align-self: center; flex: none; }
#dash .s-lfa-info b { font-size: 16px; font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
#dash .s-lfa-x { font-size: 11.5px !important; }
#dash .s-lfa-hrs { flex: 1; min-width: 0; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
#dash .s-lfa-hrs small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#dash .s-lfa-hrs b { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; margin-top: 2px; }
#dash .s-lfa-hrs > span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dash .s-lfa-hrs .s-work-live { margin-right: 0; flex: none; }
#dash .s-lfa-btn { margin-top: auto; height: 32px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; }
#dash .s-lfa-hrs .s-lfa-btn { margin-top: 10px; }
#dash .s-lfa-shifts { padding: 12px 16px; margin-top: 12px; }
#dash .s-lfa-sh { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--line, rgba(0,0,0,.06)); }
#dash .s-lfa-shifts .s-work-row { grid-template-columns: 1fr auto auto 32px; }
#dash .s-lfa-top + .s-work-miss { margin-top: 12px; }

#dash .s-lfa-h { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
#dash .s-lfa-h button { border: 0; background: none; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fg); }
#dash .s-lfa-habits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#dash .s-lfa-hab { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 0; border-radius: 18px; text-align: left; background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px -12px rgba(0,0,0,.14); transition: background .2s, color .2s, transform .1s; }
#dash .s-lfa-hab:active { transform: scale(.98); }
#dash .s-lfa-hab-top { display: flex; justify-content: space-between; align-items: center; }
#dash .s-lfa-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(28,25,23,.05); }
#dash .s-lfa-ico .s-li, #dash .s-lfa-ico svg { width: 17px; height: 17px; }
#dash .s-lfa-chk { width: 26px; height: 26px; border-radius: 99px; border: 1.5px solid rgba(28,25,23,.18); display: grid; place-items: center; color: transparent; }
#dash .s-lfa-chk .s-i { width: 14px; height: 14px; stroke-width: 2.5; }
#dash .s-lfa-hab-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#dash .s-lfa-hab-t b { font-size: 14px; font-weight: 600; line-height: 1.25; }
#dash .s-lfa-hab-t small { font-size: 12px; color: var(--muted); }
#dash .s-lfa-hab.s-on { background: var(--ink); color: var(--bg); }
#dash .s-lfa-hab.s-on .s-lfa-ico { background: rgba(255,255,255,.12); }
#dash .s-lfa-hab.s-on .s-lfa-chk { background: #22c55e; border-color: #22c55e; color: #fff; }
#dash .s-lfa-list { padding: 4px 16px; margin: 0; }
#dash .s-lfa-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
#dash .s-lfa-row + .s-lfa-row { border-top: 1px solid var(--line, rgba(0,0,0,.05)); }
#dash .s-lfa-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
#dash .s-lfa-rt b { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
#dash .s-lfa-rt b span { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
#dash .s-lfa-rt b span.s-bad { color: #dc2626; }
#dash .s-lfa-bar { height: 5px; border-radius: 99px; background: rgba(28,25,23,.06); overflow: hidden; }
#dash .s-lfa-bar i { display: block; height: 100%; border-radius: 99px; transition: width .3s; }
#dash .s-lfa-step { display: flex; gap: 4px; flex: none; }
#dash .s-lfa-step button { width: 32px; height: 32px; border: 0; border-radius: 99px; background: rgba(28,25,23,.06); font-size: 17px; line-height: 1; color: var(--fg); }
#dash .s-lfa-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
#dash .s-lfa-scale button { height: 34px; border: 0; border-radius: 10px; background: rgba(28,25,23,.05); font-size: 13px; font-weight: 600; color: var(--muted); }
#dash .s-lfa-scale button.s-on { background: #f59e0b; color: #fff; }

#dash .s-lfa-groups { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; }
#dash .s-lfa-groups::-webkit-scrollbar { display: none; }
#dash .s-lfa-grp { position: relative; flex: none; width: 128px; height: 168px; border: 0; padding: 0; border-radius: 20px; overflow: hidden; scroll-snap-align: start; background: #1c1917; }
#dash .s-lfa-grp img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
#dash .s-lfa-grp:hover img { transform: scale(1.05); }
#dash .s-lfa-grp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72)); }
#dash .s-lfa-grp span { position: absolute; left: 12px; bottom: 11px; z-index: 1; color: #fff; font-weight: 700; font-size: 14px; }
#dash .s-lfa-wks { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
#dash .s-lfa-wk { display: flex; gap: 12px; align-items: center; padding: 10px; margin: 0; }
#dash .s-lfa-wk > img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; background: #f5f5f4; }
#dash .s-lfa-wk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#dash .s-lfa-wk-t b { font-size: 15px; font-weight: 600; }
#dash .s-lfa-wk-t small { font-size: 12.5px; color: var(--muted); }
#dash .s-lfa-wk-a { display: flex; gap: 12px; margin-top: 4px; }
#dash .s-lfa-wk-a button { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
#dash .s-lfa-play { width: 42px; height: 42px; flex: none; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); display: grid; place-items: center; margin-right: 6px; }
#dash .s-lfa-play .s-li, #dash .s-lfa-play svg { width: 16px; height: 16px; margin-left: 2px; }
#dash .s-lfa-empty { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; margin: 0; border: 1.5px dashed rgba(28,25,23,.15); box-shadow: none; text-align: left; background: transparent; }
#dash .s-lfa-empty > span { display: flex; flex-direction: column; gap: 3px; }
#dash .s-lfa-empty small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 380px) { #dash .s-lfa-sum { gap: 10px; padding: 14px; } #dash .s-lfa-rings { width: 72px; height: 72px; } #dash .s-lfa-hrs { padding: 14px; } #dash .s-lfa-hrs b { font-size: 21px; } }
#dash .s-lfa-btn { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; }
#dash .s-lfa-step button, #dash .s-lfa-scale button { display: grid; place-items: center; padding: 0; text-align: center; }
#dash .s-lfa-shifts .s-work-row { grid-template-columns: 1fr auto auto auto; }
#dash .s-shift-acts { display: flex; gap: 2px; }
#dash div.s-work-miss { padding: 0; gap: 0; }
#dash div.s-work-miss > button:first-child { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; color: inherit; font-size: 13px; text-align: left; }
#dash div.s-work-miss > button:first-child span { flex: 1; }
#dash .s-miss-x { width: 38px; align-self: stretch; border: 0; background: none; color: inherit; display: grid; place-items: center; opacity: .6; }
#dash .s-miss-x .s-i { width: 15px; height: 15px; }
/* dark mode: selected pills sit on --ink (light in dark mode) → text must use --bg */
#dash .s-zoom-b.s-on, #dash .s-kf-b.s-on { color: var(--bg); }
#dash .s-dstrip-b.s-on span, #dash .s-dstrip-b.s-on b { color: var(--bg); }
#dash .s-dstrip-b.s-on i:not(.s-nodot) { background: var(--bg); }
#dash .s-lfa-addhrs { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; margin-top: 10px; border: 1.5px dashed var(--line, rgba(0,0,0,.12)); border-radius: 12px; background: none; font-size: 13px; font-weight: 600; color: var(--fg); }
#dash .s-lfa-addhrs .s-i { width: 15px; height: 15px; }
#dash .s-hd-mode { width: 100%; margin: 4px 0 14px; }
#dash .s-hd-mode .s-seg-b { flex: 1; justify-content: center; }
#dash .s-hd-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
#dash .s-hd-grid.s-hd-3 { grid-template-columns: 1.3fr 1fr 1fr; }
#dash .s-hd-grid .s-fl { margin: 0; }
@media (max-width: 420px) { #dash .s-hd-grid.s-hd-3 { grid-template-columns: 1fr 1fr; } #dash .s-hd-grid.s-hd-3 > .s-fl:first-child { grid-column: span 2; } }
#dash .s-ex-howh { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
#dash .s-wk-how { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--accent, #4568ff); }
#dash .s-wk-how .s-li, #dash .s-wk-how svg { width: 14px; height: 14px; }
#dash .s-lfa-more { display: inline-flex !important; align-items: center; gap: 2px; font-size: 11.5px !important; font-weight: 600; color: var(--fg) !important; }
#dash .s-lfa-more .s-i { width: 12px; height: 12px; transition: transform .2s; }
#dash .s-lfa-hrs.s-open .s-lfa-more .s-i { transform: rotate(90deg); }
#dash .s-lfa-btns { display: flex !important; gap: 6px; margin-top: 10px; overflow: visible !important; }
#dash .s-lfa-btns .s-lfa-btn { margin-top: 0; flex: 1; }
#dash .s-lfa-btn2 { flex: none !important; width: 32px; background: rgba(28,25,23,.07); color: var(--fg); }
#dash .s-lfa-btn2 .s-i { width: 15px; height: 15px; }
#dash .s-lfa-hrs .s-lfa-btn { margin-top: 0; }
#dash .s-map-box { position: relative; }
#dash .s-map-wrap { height: min(68vh, 640px); touch-action: pan-x pan-y; overscroll-behavior: contain; }
#dash .s-mapz { position: absolute; right: 10px; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card, #fff); box-shadow: 0 6px 20px -6px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04); }
#dash .s-mapz button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: none; font-size: 18px; line-height: 1; color: var(--fg); display: grid; place-items: center; }
#dash .s-mapz button:hover { background: rgba(28,25,23,.06); }
#dash .s-mapz .s-li, #dash .s-mapz svg { width: 16px; height: 16px; }
#dash .s-mapz-v { min-width: 44px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
#dash .s-hdlg .s-hd-mode { display: flex; width: 100%; margin: 6px 0 4px; }
#dash .s-hd-lbl { margin: 14px 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#dash .s-hd-days { display: grid; grid-template-columns: repeat(5, auto); gap: 6px; }
#dash .s-hd-days .s-td-q, #dash .s-hd-quick .s-td-q { padding: 0 8px; }
#dash .s-td-q.s-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#dash .s-hd-date { margin-top: 8px; width: 100%; }
#dash .s-hd-big { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 20px; background: rgba(28,25,23,.04); }
#dash .s-hd-big > button { width: 48px; height: 48px; flex: none; border: 0; border-radius: 999px; background: var(--card, #fff); box-shadow: 0 1px 3px rgba(0,0,0,.1); font-size: 22px; color: var(--fg); display: grid; place-items: center; }
#dash .s-hd-big > span { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; }
#dash .s-hd-big input { width: 110px; border: 0; background: none; outline: none; text-align: right; font: inherit; font-size: 44px; font-weight: 700; letter-spacing: -.03em; color: var(--fg); -moz-appearance: textfield; }
#dash .s-hd-big input::-webkit-inner-spin-button, #dash .s-hd-big input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#dash .s-hd-big em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--muted); }
#dash .s-hd-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
#dash .s-hd-times { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
#dash .s-hd-times .s-fl { margin: 0; }
#dash .s-hd-arrow { color: var(--muted); display: grid; place-items: center; }
#dash .s-hd-arrow .s-i { width: 16px; height: 16px; }
#dash .s-hdlg .s-td-sum { margin-top: 16px; }
#dash .s-hd-days .s-td-q, #dash .s-hd-quick .s-td-q { display: flex; align-items: center; justify-content: center; text-align: center; }
#dash .s-hd-big > span { flex-direction: column; align-items: center; gap: 0; flex: 1; }
#dash .s-hd-big input { width: 100%; text-align: center; font-size: 42px; line-height: 1.1; }
#dash .s-hd-big em { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#dash .s-hd-times { grid-template-columns: 1fr 1fr; gap: 10px; }
#dash .s-hd-times .s-td-time { font-size: 15.5px; padding-right: 8px; min-width: 0; width: 100%; }
#dash .s-hd-times .s-td-time::-webkit-calendar-picker-indicator { margin-left: 2px; opacity: .5; }
#dash .s-hd-big input { font-size: 42px !important; height: 50px; }

#dash .s-wk-tr { justify-self: end; display: flex; align-items: center; gap: 8px; }
#dash .s-wk-pause { width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
#dash .s-wk-pause .s-li, #dash .s-wk-pause svg { width: 15px; height: 15px; }
#dash .s-wk-clock.s-paused { color: var(--muted); animation: s-blink 1.4s ease infinite; }
@keyframes s-blink { 50% { opacity: .35; } }
#dash .s-wk-top { grid-template-columns: 44px 1fr auto; }
#dash .s-wk-paused { margin: 14px 14px 0; padding: 18px; border-radius: 20px; background: var(--card, #fff); box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
#dash .s-wk-paused b { font-size: 17px; }
#dash .s-wk-paused > span { font-size: 13px; color: var(--muted); }
#dash .s-wk-paused > div { display: flex; gap: 8px; margin-top: 12px; }
#dash .s-wk-discard { margin-top: 8px; color: #dc2626 !important; }
#dash .s-wk-body2.s-dim { opacity: .45; pointer-events: none; }
#dash .s-lfa-active { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin: 14px 0 0; border: 1.5px solid #ff9966; }
#dash .s-lfa-active-i { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #ff9966, #ff5e62); color: #fff; }
#dash .s-lfa-active-i .s-li, #dash .s-lfa-active-i svg { width: 16px; height: 16px; }

/* ── Lifestyle check-in · B (time of day) ── */
#dash .s-bh-sec { padding: 2px 16px; margin: 0; transition: box-shadow .2s; }
#dash .s-bh-sec.s-now { box-shadow: 0 0 0 2px #ff9966, 0 10px 26px -14px rgba(255,94,98,.5); }
#dash .s-bh-now { font-style: normal; color: #ff5e62; letter-spacing: .08em; }
#dash .s-bh-cnt { font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
#dash .s-bh-add { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px !important; border-radius: 99px; background: var(--ink) !important; color: var(--bg) !important; font-size: 12.5px !important; }
#dash .s-bh-add .s-i { width: 14px; height: 14px; }
#dash .s-bh-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
#dash .s-bh-row + .s-bh-row { border-top: 1px solid var(--line, rgba(0,0,0,.06)); }
#dash .s-bh-wrap { flex-wrap: wrap; }
#dash .s-bh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#dash .s-bh-t b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; min-width: 0; }
#dash .s-bh-t b > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dash .s-bh-t small { font-size: 12px; color: var(--muted); }
#dash .s-bh-t small .s-bad { color: #dc2626; font-weight: 600; }
#dash .s-bh-row.s-done .s-bh-t b > span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
#dash .s-bh-row.s-rest .s-bh-t b { color: var(--muted); }
#dash .s-bh-circ { width: 32px; height: 32px; flex: none; border-radius: 99px; border: 1.5px solid rgba(28,25,23,.2); background: none; display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s, transform .1s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
#dash .s-bh-circ:active { transform: scale(.92); }
#dash .s-bh-circ .s-li, #dash .s-bh-circ svg { width: 16px; height: 16px; stroke-width: 2.5; }
#dash .s-bh-row.s-done .s-bh-circ { background: #22c55e; border-color: #22c55e; color: #fff; }
#dash .s-bh-row.s-rest .s-bh-circ { border-style: dashed; color: var(--muted); }
#dash .s-bstreak { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 99px; background: #fff4ec; color: #ea580c; font-size: 11px; font-weight: 700; flex: none; }
#dash .s-bstreak .s-li, #dash .s-bstreak svg { width: 12px; height: 12px; }
#dash .s-bstreak.s-bwk { background: #eef2ff; color: #4f46e5; }
#dash .s-bh-log { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; flex: none; }
#dash .s-bh-log .s-i { width: 14px; height: 14px; }
#dash .s-bh-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 48px; }
#dash .s-bh-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 5px 0 10px; border-radius: 99px; background: rgba(28,25,23,.05); font-size: 12.5px; font-weight: 500; }
#dash .s-bh-chip .s-li, #dash .s-bh-chip svg { width: 13px; height: 13px; color: var(--muted); }
#dash .s-bh-chip button { width: 20px; height: 20px; border: 0; border-radius: 99px; background: none; display: grid; place-items: center; color: var(--muted); }
#dash .s-bh-chip button .s-i { width: 12px; height: 12px; }
#dash .s-bh-glasses { display: flex; gap: 4px; margin-top: 4px; }
#dash .s-bh-glasses button { width: 14px; height: 19px; padding: 0; border: 0; border-radius: 3px 3px 5px 5px; background: rgba(28,25,23,.08); }
#dash .s-bh-glasses button.s-on { background: #04C7DD; }
#dash .s-bh-num { font-size: 13px; font-weight: 600; color: var(--muted); }
#dash .s-bh-plus { width: 34px; height: 34px; flex: none; border: 0; border-radius: 99px; background: rgba(28,25,23,.06); font-size: 18px; color: var(--fg); display: grid; place-items: center; }
#dash .s-bh-step { display: flex; gap: 4px; flex: none; }
#dash .s-bh-step button { width: 32px; height: 32px; border: 0; border-radius: 99px; background: rgba(28,25,23,.06); font-size: 17px; color: var(--fg); display: grid; place-items: center; }
#dash .s-bh-scale { flex-basis: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-left: 48px; }
#dash .s-bh-scale button { height: 34px; border: 0; border-radius: 10px; background: rgba(28,25,23,.05); font-size: 13px; font-weight: 600; color: var(--muted); display: grid; place-items: center; }
#dash .s-bh-scale button.s-on { background: #f59e0b; color: #fff; }
#dash .s-bh-auto { display: inline-flex; align-items: center; gap: 5px; color: #16a34a !important; font-weight: 600; }
#dash .s-bh-auto .s-li, #dash .s-bh-auto svg { width: 13px; height: 13px; }
#dash .s-bh-val { font-size: 15px; font-weight: 700; }
#dash .s-bh-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 4px 0; }
#dash .s-bh-foot button { border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--fg); }
#dash .s-lf-gr > i.s-rest { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(28,25,23,.18); }
/* add-habit bottom sheet */
#dash .s-bsheet-wrap { align-items: flex-end; padding: 0; }
#dash .s-bsheet { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; max-height: 88vh; overflow-y: auto; background: var(--card, #fff); border-radius: 26px 26px 0 0; padding: 10px 18px max(20px, env(safe-area-inset-bottom)); animation: s-sheetup .28s cubic-bezier(.3,.8,.3,1); }
@keyframes s-sheetup { from { transform: translateY(100%); } }
#dash .s-bsheet-grab { width: 38px; height: 5px; border-radius: 99px; background: rgba(28,25,23,.12); margin: 0 auto 14px; }
#dash .s-tpl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
#dash .s-tp { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line, rgba(0,0,0,.07)); text-align: left; color: var(--fg); }
#dash .s-tp > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#dash .s-tp b { font-size: 13.5px; font-weight: 600; }
#dash .s-tp small { font-size: 11px; color: var(--muted); }
#dash .s-tp.s-added { background: #f0fdf4; box-shadow: inset 0 0 0 1.5px #22c55e; }
#dash .s-tp.s-added small { color: #16a34a; font-weight: 600; }
#dash .s-tp-custom { margin-top: 14px; }
/* ── Home: habits for this time of day ── */
#dash .s-hh { margin: 4px 0 18px; }
#dash .s-hh-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#dash .s-hh-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff9966, #ff5e62); }
#dash .s-hh-ico .s-li, #dash .s-hh-ico svg { width: 17px; height: 17px; }
#dash .s-hh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#dash .s-hh-t b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
#dash .s-hh-t small { font-size: 12px; color: var(--muted); }
#dash .s-hh-all { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
#dash .s-hh-all .s-i { width: 13px; height: 13px; }
#dash .s-hh-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
#dash .s-hh-row::-webkit-scrollbar { display: none; }
#dash .s-hh-chip { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 7px; border: 0; border-radius: 999px; background: var(--card, #fff); color: var(--fg); font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 16px -10px rgba(0,0,0,.18); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: background .2s, color .2s, transform .1s; }
#dash .s-hh-chip:active { transform: scale(.97); }
#dash .s-hh-c { width: 30px; height: 30px; border-radius: 99px; border: 1.5px solid rgba(28,25,23,.2); display: grid; place-items: center; color: transparent; }
#dash .s-hh-c .s-li, #dash .s-hh-c svg { width: 15px; height: 15px; stroke-width: 2.5; }
#dash .s-hh-chip.s-done { background: var(--ink); color: var(--bg); }
#dash .s-hh-chip.s-done .s-hh-c { background: #22c55e; border-color: #22c55e; color: #fff; }
#dash .s-hh-chip.s-rest { color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(28,25,23,.12); background: transparent; }
#dash .s-hh-chip.s-rest .s-hh-c { border-style: dashed; color: var(--muted); }
#dash .s-hh-add { padding-left: 14px; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(28,25,23,.12); background: transparent; }
#dash .s-hh-add .s-i { width: 15px; height: 15px; }
@media (min-width: 768px) { #dash .s-hh-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 6px; } }
#dash .s-meta-home em { font-style: normal; }
@media (max-width: 767px) {
  #dash .s-meta-home { flex-wrap: nowrap; gap: 12px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 12.5px; }
  #dash .s-meta-home::-webkit-scrollbar { display: none; }
  #dash .s-meta-home em { display: none; }
  #dash .s-meta-home > * { flex: none; gap: 5px; }
  #dash .s-meta-home .s-li, #dash .s-meta-home svg { width: 14px; height: 14px; }
}
/* home stat line: always one row, short labels everywhere */
#dash .s-meta-home { flex-wrap: nowrap; gap: 14px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
#dash .s-meta-home::-webkit-scrollbar { display: none; }
#dash .s-meta-home em { display: none; }
#dash .s-meta-home > * { flex: none; }
#dash .s-hh-when { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(28,25,23,.05); flex: none; }
#dash .s-hh-when button { width: 30px; height: 30px; border: 0; border-radius: 99px; background: none; color: var(--muted); display: grid; place-items: center; }
#dash .s-hh-when button.s-on { background: var(--card, #fff); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
#dash .s-hh-when .s-li, #dash .s-hh-when svg { width: 15px; height: 15px; }
#dash .s-hh-chip small { font-size: 12px; font-weight: 600; color: var(--muted); }
#dash .s-hh-chip.s-done small { color: rgba(255,255,255,.6); }
#dash .s-hh-cnt { padding-right: 6px; }
#dash .s-hh-i { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: rgba(28,25,23,.05); }
#dash .s-hh-i .s-li, #dash .s-hh-i svg { width: 15px; height: 15px; }
#dash .s-hh-chip.s-done .s-hh-i { background: #22c55e; color: #fff; }
#dash .s-hh-plus { height: 30px; min-width: 30px; padding: 0 10px; border-radius: 99px; display: grid; place-items: center; background: rgba(28,25,23,.06); font-size: 13px; font-weight: 700; }
#dash .s-hh-chip.s-done .s-hh-plus { background: rgba(255,255,255,.14); }
#dash .s-hh-chip.s-over small { color: #dc2626; }
#dash .s-hh-add { padding: 0 14px; }
#dash .s-hh-all { display: none; }
/* switch + toast */
#dash .s-sw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--input, rgba(0,0,0,.04)); cursor: pointer; }
#dash .s-sw-row > span { display: flex; flex-direction: column; gap: 2px; }
#dash .s-sw-row b { font-size: 14px; font-weight: 600; }
#dash .s-sw-row small { font-size: 12px; color: var(--muted); }
#dash .s-sw { -webkit-appearance: none; appearance: none; flex: none; width: 46px; height: 28px; border-radius: 99px; background: rgba(28,25,23,.18); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
#dash .s-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
#dash .s-sw:checked { background: #22c55e; }
#dash .s-sw:checked::after { transform: translateX(18px); }
#dash .s-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 99px; background: #1c1917; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 14px 34px -10px rgba(0,0,0,.45); animation: s-rise .25s ease both; white-space: nowrap; }
#dash .s-toast button { height: 32px; padding: 0 14px; border: 0; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 700; }
@media (min-width: 768px) { #dash .s-toast { bottom: 28px; } }

/* ── reminders ── */
#dash .s-redbadge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #ef4444 !important; color: #fff !important; font-size: 11px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--card); }
#dash .s-nav .s-redbadge { margin-left: auto; }
#dash .s-bell { position: relative; flex: none; }
#dash .s-bell > .s-redbadge { position: absolute; top: -3px; right: -4px; pointer-events: none; }
#dash .s-bell.s-on { background: var(--ink); color: var(--bg); }
#dash .s-rm-add { padding: 14px 16px 12px; margin: 0 0 6px; }
#dash .s-rm-in { width: 100%; min-height: 28px; font-size: 17px; font-weight: 500; line-height: 1.4; resize: none; color: var(--fg); }
#dash .s-rm-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 2px; }
#dash .s-dlg .s-rm-chips { margin: 0; padding: 0; flex-wrap: wrap; }
#dash .s-rm-chips::-webkit-scrollbar { display: none; }
#dash .s-rm-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 99px; background: var(--card); color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
#dash .s-rm-chip.s-on { background: var(--ink); border-color: transparent; color: var(--bg); }
#dash .s-rm-chip .s-li, #dash .s-rm-chip svg { width: 14px; height: 14px; }
#dash .s-rm-pick { position: relative; overflow: hidden; }
#dash .s-rm-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
#dash .s-rm-addb { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, rgba(0,0,0,.06)); }
#dash .s-rm-list { padding: 2px 14px; margin: 0; }
#dash .s-rm-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
#dash .s-rm-row + .s-rm-row { border-top: 1px solid var(--line, rgba(0,0,0,.06)); }
#dash .s-rm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; background: none; text-align: left; color: var(--fg); }
#dash .s-rm-t b { font-size: 14.5px; font-weight: 500; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
#dash .s-rm-t small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
#dash .s-rm-t small .s-li, #dash .s-rm-t small svg { width: 12px; height: 12px; }
#dash .s-rm-row.s-late .s-rm-t small { color: #dc2626; font-weight: 600; }
#dash .s-rm-row.s-done .s-bh-circ { background: #22c55e; border-color: #22c55e; color: #fff; }
#dash .s-rm-row.s-done .s-rm-t b { color: var(--muted); text-decoration: line-through; }
#dash .s-rm-lateh { color: #dc2626; }
#dash .s-forgot { display: block; width: 100%; text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
#dash .s-forgot:disabled { color: var(--green); text-decoration: none; cursor: default; }
#dash .s-nav-headlink { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; border-radius: 6px; }
#dash .s-nav-headlink:hover, #dash .s-nav-headlink.s-on { color: var(--fg); }
#dash .s-grid-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin: 10px 4px -6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); animation: none !important; }
#dash .s-grid-h button { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fg); }
#dash .s-grid-h button .s-i { width: 13px; height: 13px; }
#dash .s-plist { display: flex; flex-direction: column; gap: 10px; }
#dash .s-lfa-h button .s-i { width: 13px; height: 13px; }
/* ── projects page views ── */
#dash .s-pview { margin: -6px 0 16px; }
#dash .s-pview .s-zoom-b { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; }
#dash .s-pview .s-zoom-b .s-li, #dash .s-pview .s-zoom-b svg { width: 15px; height: 15px; }
@media (max-width: 420px) { #dash .s-pview .s-zoom-b span { display: none; } #dash .s-pview .s-zoom-b { padding: 0 14px; } }
#dash .s-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
#dash .s-ptile { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; overflow: hidden; text-align: left; border: 0; color: var(--fg); transition: transform .2s, box-shadow .2s; }
#dash .s-ptile:hover { transform: translateY(-2px); }
#dash .s-ptile-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
#dash .s-ptile-ico { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 34px; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); }
#dash .s-ptile-ico .s-li, #dash .s-ptile-ico svg { width: 34px; height: 34px; }
#dash .s-ptile-b { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
#dash .s-ptile-b b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
#dash .s-ptile-b small { font-size: 12px; color: var(--muted); }
#dash .s-ptile-bar { margin: 4px 0 8px; height: 4px; }
#dash .s-ptile .s-badge { align-self: flex-start; }
#dash .s-pboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x mandatory; }
#dash .s-pboard::-webkit-scrollbar { display: none; }
#dash .s-pcol { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 20px; background: var(--input); scroll-snap-align: start; min-height: 160px; }
#dash .s-pcol-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
#dash .s-pcol-h small { font-size: 12px; font-weight: 600; color: var(--muted); }
#dash .s-pcol-empty { font-size: 12px; color: var(--muted2); text-align: center; padding: 18px 0; }
#dash .s-pmini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0; text-align: left; border: 0; color: var(--fg); }
#dash .s-pmini-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#dash .s-pmini-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dash .s-pmini-t small { font-size: 11.5px; color: var(--muted); }
@media (min-width: 768px) { #dash .s-pboard { margin: 0; padding: 0 0 10px; grid-auto-columns: minmax(0, 1fr); overflow: visible; } }
/* drag-to-reorder */
#dash [data-sort] > * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#dash .s-sorting .s-tab, #dash .s-sorting .s-nav { transition: none; }
#dash .s-lifting { position: relative; z-index: 5; opacity: .9; transform: scale(1.04); box-shadow: var(--pill-shadow); background: var(--card); cursor: grabbing; }
#dash .s-nav.s-lifting { background: var(--input); }
#dash .s-nav-on.s-lifting { background: var(--ink); }
#dash .s-nav-sort { display: flex; flex-direction: column; }
#dash .s-hd-mode .s-seg-b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
#dash .s-hd-mode .s-seg-b .s-li, #dash .s-hd-mode .s-seg-b svg { width: 15px; height: 15px; }
#dash .s-map-wrap { width: 100%; }
#dash .s-map-wrap { cursor: grab; }
#dash .s-map-wrap.s-panning { cursor: grabbing; }
#dash .s-map-wrap.s-panning .s-mn { pointer-events: none; }
/* ── brainstorm board ── */
#dash .s-map-bar .s-btn .s-li, #dash .s-map-bar .s-btn svg { width: 15px; height: 15px; }
#dash .s-bn { min-width: 0; max-width: none; padding: 0; gap: 0; cursor: grab; }
#dash .s-bn-edit { outline: none; white-space: pre-wrap; word-break: break-word; cursor: text; min-width: 40px; }
#dash .s-bn-edit:empty::before { content: attr(data-ph); color: var(--muted2); pointer-events: none; }
#dash .s-bn-h1 { background: transparent; color: var(--fg); box-shadow: none; min-width: 160px; max-width: 700px; padding: 6px 10px; border-radius: 10px; }
#dash .s-bn-h1 .s-bn-edit { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
#dash .s-bn-h1.s-sel { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 2px; }
#dash .s-bn-text { background: var(--card); color: var(--fg); width: 260px; padding: 12px 14px; border-radius: 14px; box-shadow: var(--tile-shadow, 0 1px 2px rgba(0,0,0,.04), 0 6px 18px -12px rgba(0,0,0,.14)); }
#dash .s-bn-text .s-bn-edit { font-size: 14px; line-height: 1.5; }
#dash .s-bn-sticky { width: 200px; min-height: 120px; padding: 14px 14px 18px; border-radius: 6px; color: #1c1917; box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); transform: rotate(-.6deg); }
#dash .s-bn-sticky .s-bn-edit { font-size: 14px; line-height: 1.45; font-weight: 500; }
#dash .s-bn-sticky.s-bn-c-yellow { background: #fef08a; } #dash .s-bn-sticky.s-bn-c-pink { background: #fbcfe8; } #dash .s-bn-sticky.s-bn-c-blue { background: #bfdbfe; }
#dash .s-bn-sticky.s-bn-c-green { background: #bbf7d0; } #dash .s-bn-sticky.s-bn-c-orange { background: #fed7aa; } #dash .s-bn-sticky.s-bn-c-white { background: #fff; }
#dash .s-bn-image { background: transparent; box-shadow: none; padding: 0; border-radius: 14px; overflow: visible; }
#dash .s-bn-image img { display: block; width: 100%; border-radius: 14px; box-shadow: 0 10px 28px -14px rgba(0,0,0,.35); pointer-events: none; }
#dash .s-bn.s-sel, #dash .s-bn.s-drop { outline: 2px solid var(--accent); outline-offset: 3px; }
#dash .s-bn-grip { position: absolute; left: -2px; top: -30px; width: 26px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 14px; cursor: grab; z-index: 6; }
#dash .s-bn .s-mn-tools { top: calc(100% + 10px); }
#dash .s-bn .s-mn-dot { right: -9px; }
/* brainstorm v2: shapes, colors, sizes */
#dash .s-bn-edit { font-size: var(--fs, 14px); color: var(--tc, inherit); }
#dash .s-bn-h1 .s-bn-edit { font-size: var(--fs, 28px); }
#dash .s-bn-text { width: auto; min-width: 120px; }
#dash .s-bn-text:not([style*="width"]) { width: 260px; }
#dash .s-bn-sticky { background: var(--fill, #fef08a); color: var(--tc, #1c1917); }
#dash .s-bn-shape { display: grid; place-items: center; text-align: center; padding: 16px; background: var(--fill, #bfdbfe); color: var(--tc, #1c1917); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
#dash .s-bn-shape .s-bn-edit { font-weight: 600; width: 100%; }
#dash .s-shape-circle { aspect-ratio: 1; border-radius: 50%; }
#dash .s-shape-rect { border-radius: 16px; min-height: 90px; }
#dash .s-shape-pill { border-radius: 999px; min-height: 56px; padding: 12px 22px; }
#dash .s-shape-diamond { aspect-ratio: 1; border-radius: 18px; transform: rotate(45deg); }
#dash .s-shape-diamond .s-bn-edit { transform: rotate(-45deg); }
#dash .s-shape-diamond .s-mn-dot { transform: rotate(-45deg); }
#dash .s-bn-x { position: absolute; top: -12px; right: -12px; width: 26px; height: 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); display: grid; place-items: center; z-index: 6; cursor: pointer; }
#dash .s-bn-x .s-i { width: 13px; height: 13px; }
#dash .s-shape-diamond .s-bn-x, #dash .s-shape-diamond .s-bn-grip, #dash .s-shape-diamond .s-mn-tools { transform: rotate(-45deg); }
#dash .s-bn-tools { flex-wrap: wrap; max-width: 360px; }
#dash .s-bn-tools button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; }
#dash .s-bn-tools button .s-li, #dash .s-bn-tools button svg { width: 14px; height: 14px; }
#dash .s-bn-tools small { font-size: 10px; margin-left: 1px; }
#dash .s-sw { width: 14px; height: 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); flex: none; }
#dash .s-menu-pal { padding: 10px 12px 12px; }
#dash .s-swatches { display: grid; grid-template-columns: repeat(7, 28px); gap: 6px; }
#dash .s-swatch { width: 28px; height: 28px; border: 0; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); display: grid; place-items: center; color: var(--muted); }
#dash .s-swatch.s-on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
#dash .s-swatch-none { background: var(--input); } #dash .s-swatch-none .s-i { width: 13px; height: 13px; }
#dash .s-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#dash .s-shapepick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font-size: 11.5px; color: var(--fg); cursor: pointer; }
#dash .s-shapepick.s-on, #dash .s-shapepick:hover { background: var(--hover); }
#dash .s-shp { display: block; width: 26px; height: 26px; background: var(--ink); }
#dash .s-shp-circle { border-radius: 50%; } #dash .s-shp-rect { border-radius: 7px; } #dash .s-shp-pill { width: 32px; height: 20px; border-radius: 99px; } #dash .s-shp-diamond { width: 20px; height: 20px; border-radius: 5px; transform: rotate(45deg); }
/* brainstorm toolbar v3: one compact bar above the item */
#dash .s-bn-tools { top: auto; bottom: calc(100% + 10px); left: 0; display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; max-width: none; padding: 4px; border-radius: 12px; background: var(--ink); color: var(--bg); white-space: nowrap; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); cursor: default; }
#dash .s-shape-diamond .s-bn-tools { transform: rotate(-45deg); }
#dash .s-bn-tools > button, #dash .s-bt-grip { height: 30px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: inherit; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
#dash .s-bn-tools > button:hover { background: color-mix(in srgb, var(--bg) 16%, transparent); }
#dash .s-bn-tools > button small { font-size: 11px; font-weight: 700; }
#dash .s-bn-tools .s-li, #dash .s-bn-tools svg { width: 15px; height: 15px; }
#dash .s-bt-grip { cursor: grab; font-size: 14px; padding: 0 6px; }
#dash .s-bt-sep { width: 1px; height: 18px; margin: 0 2px; background: color-mix(in srgb, var(--bg) 22%, transparent); }
#dash .s-swd { width: 16px; height: 16px; border-radius: 99px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bg) 70%, transparent); }
#dash .s-shp-sm { width: 16px; height: 16px; background: var(--bg); }
#dash .s-shp-sm.s-shp-pill { width: 20px; height: 12px; } #dash .s-shp-sm.s-shp-diamond { width: 12px; height: 12px; }
#dash .s-bt-del { color: #fca5a5; }
#dash .s-bt-del:hover { background: rgba(239,68,68,.25) !important; }
#dash .s-bn-grip, #dash .s-bn-x { display: none; }
#dash .s-bn .s-mn-tools.s-bn-tools { top: auto; bottom: calc(100% + 10px); }
#dash .s-bn .s-mn-tools.s-bn-tools { position: absolute; left: 0; right: auto; z-index: 7; }
#dash .s-swd-a { display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; background: transparent !important; box-shadow: none; }
#dash .s-shapes { grid-template-columns: repeat(5, 1fr); }
#dash .s-shp-none { width: 26px; height: 26px; border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted2); }
#dash .s-shp-sm.s-shp-none { display: none; }
#dash .s-swd-a { background: color-mix(in srgb, var(--bg) 22%, transparent) !important; }
/* shapes size to their text; corner resize handle */
#dash .s-bn-shape { width: max-content; min-width: 96px; max-width: 360px; padding: 14px 22px; }
#dash .s-bn-shape .s-bn-edit { width: auto; min-width: 40px; max-width: 100%; }
#dash .s-shape-circle { min-width: 110px; padding: 22px; }
#dash .s-shape-pill { min-height: 0; padding: 12px 24px; }
#dash .s-shape-rect { min-height: 0; padding: 16px 22px; }
#dash .s-shape-diamond { min-width: 120px; padding: 30px; }
#dash .s-bn-rs { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 4px; background: var(--card); box-shadow: 0 0 0 2px var(--accent); cursor: nwse-resize; z-index: 6; touch-action: none; }
#dash .s-shape-circle .s-bn-rs, #dash .s-shape-diamond .s-bn-rs { right: 6px; bottom: 6px; }

/* brainstorm: text + headings can be filled */
#dash .s-bn-text.s-bn-filled, #dash .s-bn-h1.s-bn-filled { background: var(--fill); color: var(--tc, #1c1917); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
#dash .s-bn-h1.s-bn-filled { padding: 10px 18px; border-radius: 14px; }
#dash .s-swd-none { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .55; }
#dash .s-swd-none::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%) rotate(-45deg); }
#dash .s-bn-tools button { position: relative; }
