/* Studio Desk theme: warm ivory pages and a plum sidebar. Dark mode is the "After Hours" palette. */
:root { --bg: #F7F2EC; --surface: #FFFDFA; --surface-2: #F8EEEE; --surface-3: #F1E3E6; --line: #EADDDC; --line-2: #DCC8CB;
  --accent: #B8195F; --accent-strong: #8E1048; --accent-soft: #F7DDE7;
  --plum: #2B1220; --plum-2: #3E1A2F; --plum-ink: #F6E7ED; --plum-muted: #B9969F; --hero: #F5D9E3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #17101A; --surface: #20161F; --surface-2: #281C27; --surface-3: #31222F; --line: #362633; --line-2: #4A3445;
  --accent: #FF6FAE; --accent-strong: #FF9CC6; --accent-soft: #3D1A2E; --plum: #1F1019; --plum-2: #33192A; --hero: #2E1828; } }
:root[data-theme="dark"] { --bg: #17101A; --surface: #20161F; --surface-2: #281C27; --surface-3: #31222F; --line: #362633; --line-2: #4A3445;
  --accent: #FF6FAE; --accent-strong: #FF9CC6; --accent-soft: #3D1A2E; --plum: #1F1019; --plum-2: #33192A; --hero: #2E1828; }

/* Sidebar colors are variables so each color theme (themes.css) can restyle it */
:root { --side-strong: #fff; --side-text: #E4CFD8; --side-pop: #FF8DBE; --side-hover: rgba(255,255,255,.06); --side-line: rgba(255,255,255,.1); --pill-a: #4E1A6E; --pill-b: #E8265E; --alt-tint: #7B61FF; }
.side { background: var(--plum); border-right-color: transparent; color: var(--plum-ink); }
.side .brand .wordmark { color: var(--side-strong); }
.side .brand .wordmark i, .side .brand .poweredby i { color: var(--side-pop); }
.side .brand .poweredby { color: var(--plum-muted); }
.side .brand .poweredby span { color: var(--plum-ink); }
.side .brand .beta-pill { color: var(--side-pop); background: color-mix(in srgb, var(--side-pop) 14%, transparent); border-color: color-mix(in srgb, var(--side-pop) 40%, transparent); }
.side .navgroup { color: var(--plum-muted); }
.side .navbtn { color: var(--side-text); position: relative; }
.side .navbtn:hover { background: var(--side-hover); color: var(--side-strong); }
.side .navbtn.on { background: var(--plum-2); color: var(--side-strong); }
.side .navbtn.on::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--side-pop); }
.side .navbtn.locked { color: var(--plum-muted); }
.side .foot { border-top-color: var(--side-line); color: var(--plum-ink); }
.side .foot .muted, .side .foot .tiny { color: var(--plum-muted); }
.side .foot .input { background: var(--side-hover); border-color: var(--side-line); color: var(--plum-ink); }
.side .foot .input option { color: #222; }

/* Home */
.home { gap: 22px; max-width: 1120px; }
.eyebrow.accent { color: var(--accent); }
.home-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.01em; line-height: 1.05; margin: 6px 0 4px; }
.serif-h { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.005em; }
.priority { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-left: 4px solid var(--accent); }
.priority-ic { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent-ink); background: var(--accent); flex: none; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: 16px; }
.launch { display: flex; align-items: center; gap: 20px; padding: 24px 26px; border-radius: var(--r); background: var(--hero); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.launch-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.launch-sub { font-size: 14px; }
.countdown { position: relative; width: 136px; height: 136px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.countdown svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cd-track { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: color-mix(in srgb, var(--accent) 22%, transparent); stroke-width: 6; }
.cd-fill { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.cd-num { font-family: var(--f-display); font-weight: 700; font-size: 54px; line-height: 1; color: var(--accent); position: relative; }
.cd-lab { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--accent); position: relative; margin-top: 4px; }
.week-card { display: flex; flex-direction: column; gap: 10px; }
.week-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.wkstat { display: flex; flex-direction: column; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.wkstat:nth-last-child(-n+2) { border-bottom: 0; }
.wkstat .v { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.wkstat .l { font-size: 11.5px; color: var(--muted); }
.wkstat.hot .v { color: var(--accent); }
.wkstat.ok .v { color: var(--ok); }
.home-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; font-size: 12px; cursor: pointer; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); }
button.list-row:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.list-row .grow { display: flex; flex-direction: column; }
.list-row b { font-size: 13.5px; }
.list-row .tag { font-size: 11.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.list-row .tag.warn { color: var(--warn); }
.hdot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; background: var(--muted); }
.hdot.warn { background: var(--warn); }
.hdot.bad { background: var(--bad); }
.plan-cta { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); text-align: left; color: var(--accent); }
.status-t td { vertical-align: middle; }
.status-t .bar { width: 120px; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.status-t .bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
@media (max-width: 900px) { .home-hero, .home-two { grid-template-columns: 1fr; } .launch { flex-direction: column-reverse; align-items: flex-start; } }
.todo-mini { align-items: flex-start; padding: 9px 2px; }
.todo-mini input { margin-top: 3px; accent-color: var(--accent); }
.qa-input { resize: none; min-height: 32px; line-height: 1.4; padding-top: 6px; }
.qa-preview { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); }
.qa-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.qa-title { font-weight: 600; margin-right: 2px; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rt-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; color: var(--ink); }
.rt-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.rt-card.paused { opacity: .55; }
.rt-tag { color: var(--accent); font-weight: 700; }
.peek-check { display: flex; flex-direction: column; }
.pc-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pc-row:last-child { border-bottom: 0; }
.pc-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; border: 2px solid var(--line-2); }
.pc-dot.ok { background: var(--ok); border-color: var(--ok); }
.pc-dot.warn { border-color: var(--warn); }
.pc-owner { width: 72px; }
.pc-status { font-size: 11.5px; font-weight: 700; white-space: nowrap; min-width: 130px; text-align: right; color: var(--muted); }
.pc-status.ok { color: var(--ok); } .pc-status.warn { color: var(--warn); }
.pc-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.pc-bar span { display: block; height: 100%; background: var(--accent); }
.peek-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pt-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.pt-tile span:last-child { color: var(--muted); font-size: 11.5px; }
.pt-ic { color: var(--accent); margin-bottom: 4px; display: inline-flex; }

/* Tasks board */
.tb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tb-people { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tb-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.tb-chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.tb-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tb-person { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; background: none; border-radius: 999px; padding: 2px 8px 2px 2px; font-size: 12px; color: var(--ink-2); }
.tb-person:hover { background: var(--surface-2); }
.tb-person.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--ink); }
.tb-person b { font-size: 10.5px; color: var(--muted); }
.tb-group { --g: var(--accent); }
.tb-ghead { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 2px 8px; color: var(--g); }
.tb-caret { font-size: 11px; }
.tb-gname { font-weight: 800; font-size: 15px; }
.tb-gcount { font-size: 12px; color: var(--muted); font-weight: 600; }
.tb-table { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--g); border-radius: 10px; overflow: hidden; }
.tb-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px 132px 100px; align-items: stretch; border-bottom: 1px solid var(--line); min-height: 42px; }
.tb-row:last-child { border-bottom: 0; }
.tb-row > * { border-right: 1px solid var(--line); }
.tb-row > *:last-child { border-right: 0; }
.tb-th { min-height: 32px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
.tb-th > span { display: flex; align-items: center; padding: 0 12px; }
.tb-th > span:not(:first-child) { justify-content: center; }
.tb-title { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 8px 12px; color: var(--ink); min-width: 0; }
.tb-title:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.tb-tname { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-meta { display: flex; gap: 8px; font-size: 11px; color: var(--muted); flex: none; margin-left: auto; }
.tb-row.is-done .tb-tname { color: var(--muted); text-decoration: line-through; }
.tb-cell { display: flex; align-items: stretch; justify-content: center; min-width: 0; }
.tb-cell > span { display: flex; width: 100%; }
.tb-avatars { display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; border: 0; background: none; padding: 0 6px; }
.tb-avatars .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.tb-avatars .avatar:first-child { margin-left: 0; }
.tb-pill { width: 100%; border: 0; background: var(--c); color: #fff; font-weight: 700; font-size: 12px; padding: 0 8px; min-height: 42px; white-space: nowrap; }
.tb-pill:hover { filter: brightness(1.06); }
.tb-pill.empty { color: var(--muted); background: transparent; }
.tb-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: middle; }
.tb-date { border: 0; background: none; width: 100%; text-align: center; font: inherit; font-size: 12.5px; color: var(--ink); padding: 0 6px; }
.tb-date.late { color: var(--bad); font-weight: 700; }
.tb-empty { padding: 12px; }
@media (max-width: 860px) { .tb-row { grid-template-columns: minmax(0, 1fr) 90px 120px; } .tb-row > :nth-child(4), .tb-row > :nth-child(5) { display: none; } }

/* Task page */
.tp-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(20, 8, 14, .28); display: flex; justify-content: flex-end; }
.tp { width: min(560px, 100vw); height: 100%; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-lg); padding: 16px 22px 40px; display: flex; flex-direction: column; gap: 16px; animation: tpIn .18s ease-out; }
.tp.over { outline: 3px dashed var(--accent); outline-offset: -8px; }
@keyframes tpIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.tp-top { display: flex; align-items: center; gap: 6px; }
.tp-title { border: 0; background: none; resize: none; font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--ink); padding: 0; }
.tp-title:focus { outline: none; box-shadow: 0 2px 0 var(--accent); }
.tp-props { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; align-items: center; }
.tp-props .tb-pill { min-height: 30px; border-radius: 6px; width: auto; padding: 0 14px; }
.tp-k { font-size: 12px; color: var(--muted); font-weight: 600; }
.tp-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.tp-h { font-weight: 800; font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.tp-step { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tp-step input { accent-color: var(--accent); width: 16px; height: 16px; }
.tp-step .done { color: var(--muted); text-decoration: line-through; }
.tp-step .btn { margin-left: auto; }
.tp-link { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.tp-kind { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--ink-2); flex: none; }
.tp-drop { display: flex; flex-direction: column; gap: 3px; align-items: center; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 13px; }
.tp-drop:hover { border-color: var(--accent); }
.input.needs { border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.qa-input[rows="1"] { height: 34px; min-height: 34px; overflow: hidden; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.swatch.on { border-color: var(--ink); }
.paypal-btn { background: #FFC439; border-color: #FFC439; color: #111; font-weight: 800; }
.paypal-btn:hover { background: #F2B728; border-color: #F2B728; }
/* Ideas board */
.tb-chip.kind { border-color: color-mix(in srgb, var(--k) 45%, transparent); color: var(--k); }
.tb-chip.kind.on { background: var(--k); border-color: var(--k); color: #fff; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.idea-card { display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--k); box-shadow: var(--shadow); }
.idea-kind { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--k); }
.idea-due { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.idea-due.soon { background: color-mix(in srgb, #F2A93B 22%, var(--surface)); color: #9A5B00; }
.idea-due.late { background: color-mix(in srgb, #E2445C 18%, var(--surface)); color: #B42339; }
.idea-title { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.3; }
.idea-title:hover { color: var(--accent); }
.idea-notes { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-actions { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); justify-content: flex-end; }
/* Day view */
.day-ch { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--ink); }
.day-ch span { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.day-ch b { font-size: 11px; color: var(--muted); }
.day-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--surface); text-align: left; color: var(--ink); }
.day-row:hover { box-shadow: var(--shadow); }
.day-time { width: 52px; flex: none; font-size: 12px; color: var(--muted); padding-top: 2px; }
.day-thumb { width: 64px; height: 80px; border-radius: 8px; object-fit: cover; flex: none; }
.day-thumb.empty { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.day-title { font-size: 14px; }
.day-cap { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
/* Reports: weekly uploads checklist */
.wk-up.over { outline: 3px dashed var(--accent); outline-offset: -6px; }
.wk-up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.wk-up-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.wk-up-row.ok { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
/* Daily planner */
.pl { display: flex; flex-direction: column; gap: 12px; }
.pl-day { border-radius: 16px; padding: 10px 12px 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.pl-day.alt { background: color-mix(in srgb, var(--alt-tint) 16%, var(--surface)); border-color: color-mix(in srgb, var(--alt-tint) 24%, transparent); }
.pl-day.today { box-shadow: 0 0 0 2px var(--accent); }
.pl-head { display: flex; align-items: center; gap: 12px; padding: 2px 2px 10px; flex-wrap: wrap; }
.pl-pill { background: var(--pill-a); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border-radius: 10px; min-width: 72px; text-align: center; }
.pl-pill.pink { background: var(--pill-b); }
.pl-title { border: 0; background: none; padding: 0; font-weight: 800; font-size: 15.5px; color: var(--ink); text-align: left; }
.pl-title.empty { color: var(--muted); font-weight: 600; font-style: italic; }
.pl-edit { max-width: 520px; font-weight: 700; }
.pl-body { background: var(--surface); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.pl-line { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.pl-ch { flex: none; min-width: 78px; font-size: 11px; font-weight: 800; color: var(--c); }
.pl-ch::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 6px; }
.pl-items { min-width: 0; }
.pl-item { border: 0; background: none; padding: 0; color: var(--ink); text-align: left; font-size: 13px; }
.pl-item:hover { color: var(--accent); text-decoration: underline; }
.pl-day.big .pl-title { font-size: 19px; }
.pl-day.big .pl-line { font-size: 14px; }
.avatar.photo { object-fit: cover; padding: 0; background: var(--surface-3); }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.photo-pick .avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.photo-pick span { font-size: 11px; font-weight: 700; color: var(--accent); }
.tb-row.idea-row { grid-template-columns: minmax(0, 1fr) 112px 190px 140px 80px 150px; }
.idea-row .tb-title { border-left: 4px solid var(--k); }
.idea-row.tb-th .tb-title, .idea-row.tb-th > span:first-child { border-left: 0; }
.idea-camp { align-items: center; padding: 0 6px; }
.idea-camp select { width: 100%; }
.idea-act { align-items: center; justify-content: flex-end; gap: 4px; padding: 0 8px; }
@media (max-width: 960px) { .tb-row.idea-row { grid-template-columns: minmax(0, 1fr) 100px 140px; } .idea-row > :nth-child(4), .idea-row > :nth-child(5) { display: none; } }
/* Home: team calendar */
.home-hero { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
.tw-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tw-day { min-height: 110px; border-radius: 10px; background: var(--surface-2); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tw-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.tw-dh { display: flex; align-items: baseline; gap: 5px; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.tw-dh b { font-size: 15px; color: var(--ink); }
.tw-ev { border: 0; text-align: left; font-size: 11.5px; line-height: 1.3; padding: 4px 6px; border-radius: 6px; color: var(--ink); background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-left: 3px solid var(--c); display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.tw-ev span { overflow-wrap: anywhere; }
.tw-ppl { display: inline-flex; margin-left: auto; }
.tw-ppl .avatar { width: 16px; height: 16px; font-size: 7px; margin-left: -4px; box-shadow: 0 0 0 1.5px var(--surface); }
@media (max-width: 900px) { .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.email-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.email-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.email-row:last-child { border-bottom: 0; }
.email-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.email-row.dim { opacity: .5; }
.accent-txt { color: var(--accent); font-weight: 700; }
/* Calendar reviews */
.rv-chip { --c: var(--accent); display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-radius: 999px; padding: 4px 12px 4px 8px; font-size: 12.5px; color: var(--ink); }
.rv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.rv-days { gap: 10px; max-height: 55vh; overflow-y: auto; padding-right: 4px; }
.rv-day { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.rv-head { font-weight: 700; }
.rv-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-row select { width: 150px; }
/* Status / type editor */
.opt-row { padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.opt-pill { min-width: 110px; text-align: center; color: #fff; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 6px; }
.opt-color { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: none; }
.opt-sw { width: 18px; height: 18px; border-radius: 4px; border: 2px solid transparent; }
.opt-sw.on { border-color: var(--ink); }
.menu-item.muted { color: var(--muted); }
/* My notes (private) */
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.note-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.note-item input { accent-color: var(--accent); }
.note-item.done .grow { text-decoration: line-through; color: var(--muted); }
.note-item.due { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 6px; }
.note-item.due .tiny { color: var(--accent); font-weight: 700; }
.notepad { min-height: 150px; resize: vertical; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 900px) { .notes-grid { grid-template-columns: 1fr; } }
/* Break room */
.br-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 12px; justify-content: start; }
.org-card { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 150px; height: 150px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-align: center; overflow: hidden; }
.org-card b { max-width: 100%; }
.org-card .oc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; min-height: 2.6em; }
.org-card .oc-from { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.3em; }
.org-card:hover { border-color: var(--accent); }
.org-card .avatar.lg { width: 54px; height: 54px; font-size: 18px; }
.pf-row { display: grid; grid-template-columns: 22px 110px 1fr; gap: 6px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); }
.so { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.heart { border: 0; background: none; font-size: 13px; padding: 2px 6px; border-radius: 999px; color: var(--ink); }
.heart.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.qotw-q { font-family: var(--f-display); font-size: 20px; line-height: 1.25; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pet { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; }
.pet img, .pet .pet-ph { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 22px; }
.pet.add { cursor: pointer; color: var(--accent); }
.pet.add .pet-ph { border: 2px dashed var(--line-2); font-size: 15px; }
.up-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.up-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
@media (max-width: 900px) { .br-two { grid-template-columns: 1fr; } }
.chat-photo { max-width: 260px; max-height: 260px; border-radius: 12px; object-fit: cover; display: block; }
.chat-photo.sm { max-width: 90px; max-height: 90px; }
.tw-grid.month .tw-day { min-height: 84px; }
.tw-grid.month .tw-day.out { opacity: .45; }
@media (max-width: 900px) { .tw-grid.month { grid-template-columns: repeat(7, minmax(0, 1fr)); } .tw-grid.month .tw-ev { font-size: 0; padding: 3px; } .tw-grid.month .tw-dh span { display: none; } }
/* Fonts inspired by glissnhair.com. The site's own Liter and Michroma (free Google Fonts) are used as-is.
   Its paid fonts are swapped for close free matches: PF Grand Gothik → Archivo (wide, heavy), Gotham → Montserrat. */
:root { --f-display: 'Archivo', 'Arial Black', Arial, sans-serif; --f-body: 'Montserrat', system-ui, 'Segoe UI', sans-serif; --f-mono: 'Liter', 'Montserrat', sans-serif; --f-accent: 'Michroma', 'Archivo', sans-serif; }
body { font-size: 13.5px; }
.home-title, .serif-h, .launch-name, .cd-num, .wkstat .v, .tp-title, .qotw-q, .display, .brand .wordmark, .top h1, .panel-title h3, .mb-head h2, .wcol .wh .d, .mini h4, .stat .v, .modal-h h2, .loading .wordmark, .rw-title, .file-drop-overlay b, .tile .ph b, .brand .poweredby span
  { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; letter-spacing: -.015em; }
.home-title { font-weight: 900; letter-spacing: -.02em; }
.brand .wordmark { font-weight: 900; font-stretch: 108%; letter-spacing: -.01em; font-size: 23px; white-space: nowrap; }
.qotw-q, .tp-title { font-weight: 700; font-stretch: 105%; }
.btn, .tb-chip, .seg button { font-family: 'Liter', var(--f-body); font-weight: 400; letter-spacing: .01em; }
.btn.primary { font-weight: 400; }
.eyebrow, .navgroup, .beta-pill { font-family: var(--f-accent); font-weight: 400; font-size: 9.5px; letter-spacing: .14em; }
.mono, .pchip .tm, .mcell .dnum { font-variant-numeric: tabular-nums; }

/* Home: campaign card warning, Coming up tiles, collapsible notes */
.pencil { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: 11px; font-weight: 600; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-2); }
.launch-warn { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; border: 0; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--surface) 75%, transparent); margin-top: 4px; }
.launch-warn span { color: var(--accent); }
.launch-warn:hover { background: var(--surface); }
.up-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.up-tile { display: flex; gap: 10px; align-items: stretch; padding: 8px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); background: color-mix(in srgb, var(--c) 7%, var(--surface)); text-align: left; color: var(--ink); transition: transform .12s ease; }
.up-tile:hover { transform: translateY(-2px); }
.up-tile.today { background: color-mix(in srgb, var(--c) 16%, var(--surface)); box-shadow: 0 0 0 2px var(--c) inset; }
.up-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; padding: 4px 6px; border-radius: 10px; background: var(--c); color: #fff; line-height: 1; }
.up-dow { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.up-day { font-family: var(--f-display); font-weight: 900; font-size: 22px; margin: 2px 0; }
.up-mon { font-size: 9.5px; font-weight: 600; text-transform: uppercase; opacity: .85; }
.up-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; justify-content: center; }
.up-body b { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.up-emoji { font-size: 16px; line-height: 1; }
.up-body .tw-ppl { margin-left: 0; margin-top: 2px; }
.notes-head { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); width: 100%; }
.notes-head .chev { width: 14px; color: var(--muted); }
.my-notes.closed { padding-top: 14px; padding-bottom: 14px; }
/* Tips you can close */
.tip { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.tip.inline { flex: 1; min-width: 240px; }
.tip-x { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 0 2px; line-height: 1.4; }
.tip-x:hover { color: var(--ink); }
.my-cal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gcal-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.side .navgroup { white-space: nowrap; letter-spacing: .04em; font-size: 8.5px; overflow: hidden; text-overflow: ellipsis; }
.today-date { font-family: var(--f-accent); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; align-self: center; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
@media (max-width: 700px) { .today-date { display: none; } }
.tabs { overflow-y: hidden; }
/* Phones: task name gets the room (wraps instead of "Co…"), status stays; open a task to see people, date and priority */
@media (max-width: 560px) {
  .tb-row:not(.idea-row) { grid-template-columns: minmax(0, 1fr) 108px; }
  .tb-row:not(.idea-row) > :nth-child(2) { display: none; }
  .tb-tname { white-space: normal; overflow-wrap: anywhere; }
  .tb-title { flex-wrap: wrap; gap: 2px 8px; }
}

/* Content Calendar: compact toolbars, quiet partial weeks, Today marker */
.cc-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-month { width: auto; min-width: 150px; font-weight: 700; }
.cc .seg button { padding: 5px 11px; }
.cc-mi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; max-width: 300px; text-align: left; }
.cc-opts { padding: 12px; width: 300px; }
.cc-help p { font-size: 13.5px; line-height: 1.5; }
.chan-n { font-size: 11px; opacity: .7; margin-left: 2px; }
.seg button.on .chan-n { opacity: 1; font-weight: 800; }
.cc-chan-select { display: none; width: auto; }
@media (max-width: 1100px) { .cc-chan-seg { display: none; } .cc-chan-select { display: inline-block; } }
.wk-day.out { background: var(--surface-2); opacity: .55; }
.wk-day.out .dl .d { font-size: 10px; }
.wk.partial .wk-day { min-height: 56px; }
.wk.this-week { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.tw-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.today-pill { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.wk-day.today { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.mb-head { padding: 10px 14px; }
.mb-head h2 { font-size: 24px; }
/* sidebar: a touch tighter so the calendar gets more room */
@media (min-width: 900px) { .app { grid-template-columns: 220px minmax(0, 1fr); } .side .navbtn { padding-top: 7px; padding-bottom: 7px; } .side .navbtn.locked { padding-top: 5px; padding-bottom: 5px; font-size: 13px; } }

/* Post entries: title, then format · status · owner; ⇢ = Move to date */
.pc-wrap { position: relative; display: flex; align-items: stretch; gap: 2px; min-width: 0; }
.pc-wrap .pchip { flex: 1; min-width: 0; }
.pc-rich { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.pc-rich .t { font-weight: 600; font-size: 12px; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 3px 6px; font-size: 10px; color: var(--muted); line-height: 1.2; }
.pc-fmt { font-weight: 700; color: var(--c); }
.pc-st.over { color: var(--bad); font-weight: 700; }
.pc-st.review { color: var(--warn); }
.pc-st.done { color: var(--ok); font-weight: 700; }
.pc-who::before { content: "· "; }
.pc-move { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0 3px; border-radius: 6px; opacity: 0; }
.pc-wrap:hover .pc-move, .pc-move:focus-visible, .pc-wrap:focus-within .pc-move { opacity: 1; }
.pc-move:hover { background: var(--accent-soft); color: var(--accent); }
@media (hover: none) { .pc-move { opacity: .8; } }
/* Month header */
.mb-sum { font-size: 13px; color: var(--ink-2); }
.mb-bd { padding: 12px; width: 320px; display: flex; flex-direction: column; gap: 8px; }
.mb-bd .t td { padding: 6px 4px; }
/* Weekly planner */
.plw { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.plw-row { display: grid; grid-template-columns: 110px minmax(140px, 1.2fr) repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line); min-height: 64px; }
.plw-row:last-child { border-bottom: 0; }
.plw-row > * { padding: 8px; border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plw-row > *:last-child { border-right: 0; }
.plw-row.alt { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
.plw-row.today { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
.plw-th { min-height: 0; background: var(--surface-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.plw-day { font-size: 13px; position: relative; }
.plw-day .add { position: absolute; right: 6px; top: 6px; border: 0; background: none; color: var(--muted); font-size: 15px; opacity: 0; }
.plw-row:hover .plw-day .add, .plw-day .add:focus { opacity: 1; }
.plw-head .pl-title { font-size: 13px; text-align: left; }
@media (max-width: 760px) {
  .plw-th { display: none; }
  .plw-row { grid-template-columns: 1fr; }
  .plw-row > * { border-right: 0; padding: 6px 10px; }
  .plw-cell:empty { display: none; }
  .plw-cell::before { content: attr(data-label); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .plw-day .add { opacity: 1; }
}
.pc-wrap { position: relative; }
.pc-move { position: absolute; top: 2px; right: 2px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); line-height: 1.3; z-index: 1; }
.pc-rich .t { -webkit-line-clamp: 3; }
.plw-head { flex-direction: row !important; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; }
.plw-head .pl-title { flex-basis: 100%; padding: 0; }
.plw-head .chip { font-size: 10px; padding: 1px 7px; width: auto; max-width: 100%; }
.plw-row { min-height: 54px; }

/* Phones: stack the launch card and My tasks */
@media (max-width: 900px) { .home-hero { grid-template-columns: minmax(0, 1fr); } }
/* Profile photo in the top bar: opens the menu on phones / narrow windows, My settings on wide screens */
.me-btn { border: 0; background: none; padding: 0; border-radius: 50%; display: inline-flex; flex: none; cursor: pointer; }
.me-btn .avatar { width: 38px; height: 38px; font-size: 14px; border: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.me-btn:hover .avatar, .me-btn:focus-visible .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--c); }
/* Profile photos are framed in the person's chosen color ("Your color") */
.avatar.photo { border: 2px solid var(--c); box-sizing: border-box; }
.avatar.photo.lg { border-width: 2.5px; }
.tw-ppl .avatar.photo, .tb-avatars .avatar.photo { border-width: 1.5px; }
/* Top-bar photo: one outer ring in the person's color, no inner border or gap */
.me-btn .avatar, .me-btn .avatar.photo, .me-btn .avatar.photo.lg { border: 0; box-shadow: 0 0 0 3px var(--c); }
.me-btn:hover .avatar, .me-btn:focus-visible .avatar { box-shadow: 0 0 0 4px var(--c); }
.privacy-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
/* Home announcements: birthdays, bank holidays and other holidays (only shows when there's something to say) */
.announce { display: flex; flex-direction: column; gap: 8px; }
.ann-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.ann-ic { font-size: 22px; line-height: 1; flex: none; }
.ann-t { font-weight: 700; font-size: 14px; }
/* About me: Pets and Favorites side by side (stacked on phones) */
.about-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .about-extra, .fav-grid { grid-template-columns: minmax(0, 1fr); } }
.fav-row { gap: 6px; align-items: center; }
.fav-add { width: 38px; height: 38px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--surface-2); font-size: 15px; flex: none; cursor: pointer; }
.fav-add:hover { border-color: var(--accent); }
.fav-thumb { position: relative; flex: none; }
.fav-thumb img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; display: block; }
.fav-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--ink); color: var(--surface); font-size: 9px; line-height: 18px; padding: 0; cursor: pointer; }
.pf-fav-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
/* Privacy & accessibility: folded by default at the bottom of My settings */
.privacy-box summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; padding-left: 22px; position: relative; }
.privacy-box summary::-webkit-details-marker { display: none; }
.privacy-box summary::before { content: "▸"; position: absolute; left: 0; top: 2px; color: var(--muted); }
.privacy-box[open] summary::before { content: "▾"; }
.privacy-box[open] .privacy-list { margin-top: 10px; }
/* Sign in with Google */
.auth-shell { gap: 6px; }
.google-btn { justify-content: center; gap: 10px; padding: 11px 14px; font-size: 14.5px; font-weight: 600; background: #fff; color: #1F1F1F; border: 1px solid #747775; border-radius: 999px; }
.google-btn:hover { background: #F2F2F2; }

/* Terms & privacy */
.agree-row { align-items: flex-start; gap: 8px; line-height: 1.45; }
.agree-row input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.agree-row .linkbtn { font-size: inherit; }
.legal { gap: 12px; }
.legal article { max-width: 72ch; }
.legal h2 { font-size: 22px; margin: 6px 0 2px; }
.legal-sec { margin-top: 18px; }
.legal-sec h3 { font-size: 15px; margin: 0 0 6px; }
.legal-sec p, .legal-sec li { line-height: 1.6; }
.legal-sec ul { padding-left: 20px; margin: 6px 0; }
.side .foot .linkbtn { align-self: flex-start; }

/* Tasks & time tab in the post editor */
.pw-add { display: grid; grid-template-columns: minmax(0, 1fr) 140px 150px auto; gap: 6px; align-items: center; }
@media (max-width: 640px) { .pw-add { grid-template-columns: 1fr 1fr; } .pw-add > :first-child { grid-column: 1 / -1; } }

/* Public Terms / Privacy pages (no sign-in) */
.public-legal { max-width: 820px; margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-direction: column; gap: 18px; }
.public-legal header { text-align: center; }
.public-legal .wordmark { font-size: 28px; }
