/* Hayley Paige HQ — baby pink, gold & white */
:root {
  --bg: #fdf7f9; --bg2: #fff; --card: #ffffff; --ink: #3d2b35; --muted: #8f7a85; --line: #f2e2e8;
  --pink: #e8799f; --pink-2: #f4a9c2; --pink-soft: #fde8ef; --rose: #b8456f;
  --gold: #c9973f; --gold-2: #e2b867; --gold-soft: #f8ecd2;
  --grad: linear-gradient(120deg, #eb8fae 0%, #e4a5a0 45%, #d6a65a 100%);
  --forge: linear-gradient(120deg, #c8557f 0%, #db7e94 50%, #cf9a4a 100%);
  --shadow: 0 6px 24px rgba(184, 69, 111, .08), 0 1px 3px rgba(61, 43, 53, .05);
  --radius: 18px;
  --c-pink: #fde4ec; --c-pink-b: #e8799f; --c-lilac: #efe6fb; --c-lilac-b: #a283d6; --c-mint: #e2f5ee; --c-mint-b: #5fae93;
  --c-peach: #fdeee2; --c-peach-b: #e39466; --c-gold: #faf0d9; --c-gold-b: #c9973f; --c-sky: #e5f0fb; --c-sky-b: #6a9bd3;
  --serif: 'Playfair Display', Georgia, serif; --caps: 'Cinzel', 'Trajan Pro', Georgia, serif; --script: 'Pinyon Script', cursive; --sans: 'Inter', system-ui, sans-serif;
}
body[data-theme='champagne'] {
  --bg: #fbf8f1; --line: #efe4cf; --pink: #d98aa3; --rose: #9c6a2c; --grad: linear-gradient(120deg, #d6a65a 0%, #e6c58c 50%, #e8a7b9 100%);
  --forge: linear-gradient(120deg, #a87a33 0%, #c9973f 50%, #d98aa3 100%);
}
body[data-theme='midnight'] {
  --bg: #1b151c; --bg2: #221a24; --card: #2a2030; --ink: #f8eaf0; --muted: #b9a2ae; --line: #3c2f42; --pink-soft: #3a2533; --gold-soft: #3a3020;
  --rose: #f4a9c2; --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --c-pink: #3d2632; --c-lilac: #322a42; --c-mint: #213530; --c-peach: #3b2b22; --c-gold: #3a3120; --c-sky: #22303f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 14px/1.5 var(--sans); color: var(--ink); min-height: 100vh;
  background: radial-gradient(1200px 600px at 0% 0%, #fde3ec 0%, transparent 60%), radial-gradient(900px 600px at 100% 30%, #fbefd8 0%, transparent 55%), radial-gradient(800px 500px at 90% 100%, #e7f6ef 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
}
body[data-theme='midnight'] { background: radial-gradient(900px 600px at 0% 0%, #3a1f2e 0%, transparent 60%), radial-gradient(900px 600px at 100% 40%, #33281a 0%, transparent 55%), var(--bg); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0 0 .4em; color: var(--ink); }
h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 13px; letter-spacing: .04em; }
h2 small, h3 small { font: 400 12px var(--sans); color: var(--muted); margin-left: 6px; }
em { font-style: italic; color: var(--rose); }
a { color: var(--rose); }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 9px 12px; width: 100%; outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink-2); box-shadow: 0 0 0 3px var(--pink-soft); }
input[type='checkbox'], input[type='radio'] { width: auto; accent-color: var(--pink); }
input[type='color'] { padding: 2px; height: 40px; width: 64px; }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
label.cb { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); cursor: pointer; }
.muted { color: var(--muted); } .sm { font-size: 12px; } .err { color: #c0392b; min-height: 1em; margin: 0; }
.grow { flex: 1; }
.boot, .loading { display: grid; place-items: center; min-height: 50vh; font-family: var(--serif); font-size: 20px; color: var(--muted); }
.loading { font-size: 32px; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; transform: scale(.9); } }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--card); padding: 9px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform .1s, box-shadow .15s, background .15s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 4px 14px rgba(232, 121, 159, .35); }
.btn.gold { background: linear-gradient(120deg, #d6a65a, #c9973f); color: #fff; border: 0; }
.btn.ghost { background: transparent; }
.btn.danger { background: #d95c7c; color: #fff; border: 0; }
.danger-text { color: #c23b62 !important; }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn.wide { width: 100%; justify-content: center; }
.link { background: none; border: 0; color: var(--rose); cursor: pointer; font-weight: 600; font-size: 12px; text-decoration: none; padding: 0; }
.mini { border: 0; background: transparent; cursor: pointer; font-size: 13px; padding: 3px 5px; border-radius: 8px; opacity: .55; transition: opacity .15s, background .15s; }
.mini:hover { opacity: 1; background: var(--pink-soft); }
.x { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 11px; padding: 2px 6px; border-radius: 6px; opacity: .5; }
.x:hover { opacity: 1; color: #c23b62; background: var(--pink-soft); }
.icon-btn { border: 1px solid var(--line); background: var(--card); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }

/* chips, pills, avatars */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chips.center, .row.center { justify-content: center; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.chip.on { background: var(--pink-soft); border-color: var(--pink-2); }
.chip.on.dark { background: var(--ink); color: var(--bg2); border-color: var(--ink); }
.chip.cb { font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--pink-soft); color: var(--rose); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill.ok { background: var(--c-mint); color: #2f7d63; } .pill.warnp { background: var(--gold-soft); color: #94661c; }
.av { --c: #e8a0b4; display: inline-grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, white); border: 2px solid color-mix(in srgb, var(--c) 70%, white); flex: none; line-height: 1; }
.av-xs { width: 26px; height: 26px; font-size: 13px; border-width: 1.5px; } .av-sm { width: 34px; height: 34px; font-size: 17px; }
.av-md { width: 46px; height: 46px; font-size: 22px; } .av-lg { width: 76px; height: 76px; font-size: 34px; }
[data-av] { cursor: zoom-in; transition: box-shadow .15s; } [data-av]:hover { box-shadow: 0 0 0 3px var(--gold-2); }
/* hover pop-out for team photos */
.av-pop { position: fixed; z-index: 3000; width: 180px; padding: 12px 12px 10px; border-radius: 22px; background: var(--card); border: 2px solid var(--gold-2); box-shadow: 0 18px 40px rgba(61, 43, 53, .28);
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; opacity: 0; transform: scale(.85) translateY(6px); transition: opacity .15s, transform .18s; }
.av-pop.on { opacity: 1; transform: none; }
.av-pop img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-soft); margin-bottom: 6px; }
.av-pop-em { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font-size: 72px; background: color-mix(in srgb, var(--c) 30%, white); margin-bottom: 6px; }
.av-pop b { font-family: var(--serif); font-size: 16px; } .av-pop small { color: var(--muted); font-size: 12px; }
.badge { background: #e0517f; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 1px 6px; margin-left: 4px; }
.count { background: var(--pink-soft); color: var(--rose); border-radius: 999px; font: 700 11px var(--sans); padding: 1px 8px; }
.due { font-size: 11px; color: var(--muted); white-space: nowrap; } .due.today { color: #b8862f; font-weight: 700; } .due.overdue { color: #c23b62; font-weight: 700; }
.urgent { color: #c23b62; font-size: 11px; font-weight: 700; }

/* layout */
.page { max-width: 1320px; margin: 0 auto; padding: 0 24px 80px; }
.page-inner > section, .page-inner > .card, .page-inner > div { margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card.warn { background: var(--gold-soft); border-color: #ecd6a6; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: flex-end; } .row.end { justify-content: flex-end; align-items: center; } .row.wrap { flex-wrap: wrap; }
.row > label { flex: 1; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 10px; }
.display { font-size: 34px; font-weight: 600; margin: 0; }
.sec-h { font-size: 24px; margin: 26px 0 10px; }
.empty { color: var(--muted); font-style: italic; text-align: center; padding: 12px; margin: 0; }
.empty.sm { font-size: 12px; padding: 6px; }
.list { display: flex; flex-direction: column; gap: 6px; }
.row-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); flex-wrap: wrap; }
.row-item.done s { color: var(--muted); }

/* header */
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; max-width: 1320px; margin: 0 auto; padding: 18px 24px 12px; }
.wordmark { font: 600 30px/1 var(--caps); letter-spacing: .08em; white-space: nowrap;
  background: linear-gradient(100deg, #9a6b1f 0%, #d9b465 22%, #f3dc9b 38%, #b8862f 55%, #e8c77e 72%, #a8741f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark span { letter-spacing: .14em; }
.wordmark.big { font-size: clamp(20px, 6.4vw, 28px); text-align: center; display: block; padding-right: .14em; }
body[data-theme='midnight'] .wordmark { background-image: linear-gradient(100deg, #c99a45 0%, #f3dc9b 35%, #d4a85a 60%, #fbe8b6 80%, #c4913c 100%); }
.hdr-date { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.tagline { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.week-banner { background: var(--grad); color: #fff; border-radius: 20px; padding: 12px 22px; box-shadow: 0 8px 26px rgba(214, 120, 140, .3); display: flex; flex-direction: column; min-width: 320px; max-width: 400px; }
.week-banner small { font-size: 10px; letter-spacing: .18em; opacity: .9; font-weight: 700; }
.week-banner b { font-family: var(--serif); font-size: 21px; }
.week-banner span { font-size: 11px; opacity: .88; }
.user-bar { justify-self: end; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 10px; box-shadow: var(--shadow); }
.news-wrap { position: relative; }
.news-btn { border: 1px solid #ecd6a6; background: var(--gold-soft); color: #94661c; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
body[data-theme='midnight'] .news-btn { color: #f3dc9b; border-color: #5a4a2a; }
.news-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 360px; max-height: 70vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(61, 43, 53, .2); z-index: 45; padding: 8px; }
.news-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 8px; } .news-h b { font-family: var(--serif); font-size: 17px; }
.news-item { display: flex; gap: 10px; padding: 9px 8px; border-radius: 12px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.news-item:hover { background: var(--pink-soft); } .news-item.unread { background: var(--gold-soft); }
.news-ic { flex: none; font-size: 18px; } .news-body { display: flex; flex-direction: column; font-size: 13px; } .news-body small { color: var(--muted); font-size: 11px; }
.me-av { position: relative; display: inline-flex; } .online { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #3cbf7f; border: 2px solid var(--card); }
.me-txt small { display: block; font-size: 9px; letter-spacing: .14em; color: var(--muted); } .me-txt b { font-family: var(--serif); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; max-width: 1272px; margin: 4px auto 22px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; transition: background .15s; }
.nav a:hover { background: var(--pink-soft); }
.nav a.on { background: var(--grad); color: #fff; }
.subtabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.subtabs a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.subtabs a.on { background: var(--ink); color: var(--bg2); border-color: var(--ink); }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px 36px; width: min(480px, 100%); box-shadow: var(--shadow); text-align: center; }
.auth-card .tagline { text-align: center; } .auth-card form { text-align: left; margin-top: 16px; }
.hint { font-size: 12px; color: var(--muted); text-align: center; }

/* quests: today + week */
.view-as { margin-top: 0; }
.banner-ro { background: var(--gold-soft); border-radius: 12px; padding: 8px 14px; font-weight: 600; }
.today-card .card-h h2 em { font-size: 15px; margin-left: 6px; }
.day-note { display: flex; gap: 10px; background: #fff8df; border: 1px dashed #e9cf8d; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; transform: rotate(-.4deg); }
body[data-theme='midnight'] .day-note { background: #3a3120; }
.day-note small { color: #94661c; font-weight: 700; } .day-note p { margin: 2px 0 0; white-space: pre-wrap; } .day-note .pin { font-size: 18px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wday { border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-height: 110px; background: var(--bg2); overflow: hidden; }
.wday.is-today { border-color: var(--pink); background: var(--pink-soft); }
.wd-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; } .wd-h b { font-family: var(--serif); color: var(--ink); font-size: 15px; }
.ev { font-size: 11px; padding: 2px 6px; border-radius: 6px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-left: 3px solid; }
.ev.done { opacity: .5; text-decoration: line-through; }
.ev-pink { background: var(--c-pink); border-color: var(--c-pink-b); } .ev-lilac { background: var(--c-lilac); border-color: var(--c-lilac-b); }
.ev-mint { background: var(--c-mint); border-color: var(--c-mint-b); } .ev-peach { background: var(--c-peach); border-color: var(--c-peach-b); }
.ev-gold { background: var(--c-gold); border-color: var(--c-gold-b); } .ev-sky { background: var(--c-sky); border-color: var(--c-sky-b); }

.hero-card { display: flex; justify-content: space-between; align-items: center; }
.hero-card .display em { font-weight: 600; }
.hero-count { text-align: center; } .hero-count b { font: 600 34px var(--serif); color: var(--pink); display: block; line-height: 1; } .hero-count span { font-size: 11px; color: var(--muted); }

/* forge */
.forge { background: var(--forge); border-radius: 22px; padding: 18px 20px; color: #fff; box-shadow: 0 10px 30px rgba(200, 85, 127, .3); transition: outline .15s; }
.forge h2 { color: #fff; font-size: 24px; } .forge h2 small { color: #ffe9f0; }
.forge.drop-on { outline: 3px dashed #fff; outline-offset: 3px; }
.forge-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.forge-slot { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 16px; padding: 14px; display: flex; gap: 10px; align-items: center; min-height: 74px; }
body[data-theme='midnight'] .forge-slot { background: var(--card); }
.forge-slot.empty { background: rgba(255, 255, 255, .18); color: #fff; border: 2px dashed rgba(255, 255, 255, .6); justify-content: center; font-size: 12px; }
.forge-emoji { font-size: 22px; } .forge-slot .q-main { flex: 1; }

/* quests */
.tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--pink-2); background: var(--bg2); cursor: pointer; flex: none; transition: all .15s; position: relative; padding: 0; }
.tick:hover { background: var(--pink-soft); border-color: var(--pink); }
.tick:hover::after, .tick.ticked::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--pink); font-weight: 700; }
.tick.ticked { background: var(--pink); border-color: var(--pink); } .tick.ticked::after { color: #fff; }
.tick.ro { cursor: default; }
.q-main { flex: 1; min-width: 0; cursor: pointer; }
.q-title { font-weight: 500; word-break: break-word; }
.q-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.q-meta:empty { display: none; }
.q-notes { font-size: 12px; color: var(--muted); margin: 4px 0 0; white-space: pre-wrap; }
.from { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.q-acts { display: flex; opacity: 0; transition: opacity .15s; } .quest:hover .q-acts { opacity: 1; }
.repeating h3 { font-size: 18px; }
.rep-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rep { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative; box-shadow: var(--shadow); }
.rep b { font-size: 12px; font-weight: 600; } .rep .x { position: absolute; top: 2px; right: 2px; }
.rep.done { background: var(--c-mint); } .rep.off { opacity: .5; }
.rep-tick { font-size: 22px; border: 0; background: none; cursor: pointer; transition: transform .15s; } .rep-tick:hover:not(:disabled) { transform: scale(1.2); }
.rep .pill { white-space: normal; font-size: 10px; line-height: 1.3; } .rep b[data-a] { cursor: pointer; } .rep b[data-a]:hover { text-decoration: underline dotted; }
.rep-from { position: absolute; top: 6px; left: 6px; }
.rep.add { justify-content: center; border-style: dashed; cursor: pointer; font: 600 12px var(--sans); color: var(--muted); box-shadow: none; } .rep.add span { font-size: 22px; }
.rep.add:hover { color: var(--ink); border-color: var(--gold-2); }
.cbchip { cursor: pointer; } .cbchip input { margin: 0; accent-color: var(--gold); } .cbchip:has(input:checked) { background: var(--gold-soft); border-color: var(--gold-2); }
.rp-opt[hidden] { display: none !important; }
.handed-item.rep-given { background: var(--gold-soft); }
.subtabs button { font: 600 13px var(--sans); color: var(--ink); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.subtabs button.on { background: var(--ink); color: var(--bg2); border-color: var(--ink); }
.quote-tags { display: flex; flex-wrap: wrap; gap: 4px; } .pill.tagp { background: var(--gold-soft); color: #7a5a1e; }
.field { display: flex; flex-direction: column; gap: 6px; } .field .lbl { font-weight: 600; font-size: 12px; color: var(--muted); }

/* delegate */
.deleg-form { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: end; margin: 10px 0 14px; }
.field-sm { font-size: 11px; } .field-sm select, .field-sm input { padding: 7px 9px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.person { border: 2px dashed var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: all .15s; position: relative; background: var(--bg2); }
.person:hover { border-color: var(--pink-2); }
.person.drop-on { border-color: var(--pink); background: var(--pink-soft); transform: scale(1.03); }
.person b { font-family: var(--serif); } .person small { color: var(--muted); font-size: 11px; }
.note-btn { position: absolute; top: 6px; right: 6px; } .note-btn.has { opacity: 1; background: var(--gold-soft); }
.handed { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.handed-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 12px; display: grid; grid-template-columns: 1fr auto; gap: 0 4px; }
.handed-item small { color: var(--muted); font-size: 10px; grid-column: 1; } .handed-item .x { grid-row: 1 / 3; grid-column: 2; }
.handed-item.done { background: var(--c-mint); }
body.is-dragging .person { border-color: var(--pink-2); }

/* boards */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.board { background: var(--c-pink); border-radius: 18px; padding: 12px; border-top: 4px solid var(--c-pink-b); transition: outline .1s; }
.board.drop-on { outline: 2px dashed var(--pink); outline-offset: 2px; }
.board-lilac { background: var(--c-lilac); border-color: var(--c-lilac-b); } .board-mint { background: var(--c-mint); border-color: var(--c-mint-b); }
.board-peach { background: var(--c-peach); border-color: var(--c-peach-b); } .board-gold { background: var(--c-gold); border-color: var(--c-gold-b); }
.board-sky { background: var(--c-sky); border-color: var(--c-sky-b); }
.board-inbox { background: var(--c-sky); border-color: var(--c-sky-b); }
.board-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.board-h h3 { margin: 0; flex: 1; font-size: 16px; cursor: text; }
.board-acts { display: flex; opacity: .6; } .board:hover .board-acts { opacity: 1; }
.handle { cursor: grab; color: var(--muted); user-select: none; }
.board-body { display: flex; flex-direction: column; gap: 7px; min-height: 30px; }
.quest { background: var(--card); border-radius: 12px; padding: 9px 10px; display: flex; gap: 9px; align-items: flex-start; box-shadow: 0 1px 3px rgba(61, 43, 53, .06); border-left: 3px solid transparent; cursor: grab; }
.quest.is-urgent { border-left-color: #e0517f; }
.quest.dragging { opacity: .4; }
.add-quest { margin-top: 8px; } .add-quest input { background: rgba(255, 255, 255, .7); border-style: dashed; font-size: 13px; padding: 7px 10px; }
.add-more { display: none; gap: 6px; margin-top: 6px; align-items: center; } .add-quest:focus-within .add-more { display: flex; }
.add-more input { padding: 5px 8px; font-size: 12px; }
.board-new { background: transparent; border: 2px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.board-new p { margin: 0; text-align: center; font-size: 12px; }

/* tally & trophies */
.tally { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 6px 0 12px; }
.tally div { border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 6px 0; background: var(--bg2); }
.tally b { display: block; font: 600 22px var(--serif); color: var(--muted); } .tally span { font-size: 10px; color: var(--muted); }
.tally .has b { color: var(--pink); } .tally .is-today { border-color: var(--pink); background: var(--pink-soft); }
.done-list { max-height: 260px; overflow: auto; }
.trophy-h { color: var(--muted); font: 700 11px var(--sans); letter-spacing: .16em; margin-top: 14px; }
.trophies { display: flex; flex-wrap: wrap; gap: 6px; }
.trophy { background: var(--gold-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 12px; font-weight: 600; }

/* notes */
.stickies { display: flex; flex-wrap: wrap; gap: 14px; }
.sticky { width: 180px; min-height: 150px; background: #fff6c4; padding: 18px 14px 12px; border-radius: 3px; box-shadow: 0 6px 14px rgba(0, 0, 0, .08); position: relative; transform: rotate(-1.5deg); color: #4b3b16; }
.sticky:nth-child(2n) { transform: rotate(1.2deg); background: #ffe1ea; } .sticky:nth-child(3n) { background: #e6f4ea; transform: rotate(-.6deg); }
.sticky::before { content: ''; position: absolute; top: -8px; left: 50%; width: 60px; height: 18px; margin-left: -30px; background: rgba(255, 255, 255, .6); transform: rotate(-3deg); }
.sticky p { margin: 0; white-space: pre-wrap; font-size: 13px; } .sticky .x { position: absolute; top: 4px; right: 4px; }
.sticky.new { border: 2px dashed #e6cf73; background: #fffbe3; } .sticky.new textarea { border: 0; background: transparent; height: 120px; resize: none; padding: 0; font-size: 13px; color: #4b3b16; } .sticky.new textarea:focus { box-shadow: none; }

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.proj { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--c-pink-b); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.proj:hover { transform: translateY(-2px); } .proj.dragging { opacity: .4; }
.proj-lilac { border-top-color: var(--c-lilac-b); } .proj-mint { border-top-color: var(--c-mint-b); } .proj-peach { border-top-color: var(--c-peach-b); } .proj-gold { border-top-color: var(--c-gold-b); } .proj-sky { border-top-color: var(--c-sky-b); }
.proj-top { display: flex; justify-content: space-between; align-items: center; }
.proj-emoji { font-size: 26px; } .proj-emoji.big { font-size: 40px; }
.rank { background: var(--pink); color: #fff; border-radius: 999px; font-weight: 700; font-size: 12px; padding: 2px 9px; }
.proj h3 { font-size: 19px; margin: 6px 0 10px; }
.bar { height: 7px; background: var(--pink-soft); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.bar span { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }
.proj-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.stage { font-size: 12px; color: var(--muted); margin: 6px 0; }
.avs { display: flex; gap: 2px; min-height: 26px; }
.pd-h { display: flex; gap: 14px; align-items: center; } .pd-h h2 { margin: 0; font-size: 26px; }
.pd-desc { white-space: pre-wrap; color: var(--muted); }
.stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 14px 0; }
.stage-col { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.stage-col.complete { background: var(--c-mint); }
.stage-col h4 { display: flex; justify-content: space-between; font-size: 14px; }
.ptask { display: grid; grid-template-columns: auto 1fr 1fr auto; grid-template-areas: 'tick title title x' '. who due due'; gap: 4px 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ptask .tick { grid-area: tick; } .ptask .pt-title { grid-area: title; } .ptask .x { grid-area: x; }
.ptask select { grid-area: who; } .ptask input { grid-area: due; }
.ptask select, .ptask input { padding: 3px 6px; font-size: 11px; border-radius: 8px; min-width: 0; }
.ptask.done .pt-title { text-decoration: line-through; color: var(--muted); }
.pt-title { cursor: text; font-size: 13px; }
.add-ptask input { margin-top: 6px; border-style: dashed; font-size: 12px; padding: 6px 9px; }
.pd-edit { margin: 10px 0; } .pd-edit summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.pd-actions { margin-top: 12px; }

/* calendar */
.cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; } .cal-nav h2 { margin: 0 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; font-size: 11px; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dh { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .1em; padding: 4px; }
.cal-cell { min-height: 112px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--bg2); overflow: hidden; }
.cal-cell.other { opacity: .45; } .cal-cell.weekend { background: transparent; }
.cal-cell.is-today { border: 2px solid var(--pink); background: var(--pink-soft); }
.cal-num { font: 600 13px var(--serif); display: block; margin: 0 0 3px 3px; }

/* chat */
.chat { display: grid; grid-template-columns: 240px 1fr; gap: 16px; height: calc(100vh - 200px); min-height: 480px; }
.chat-side { overflow: auto; padding: 12px; }
.chat { height: calc(100vh - 250px); }
.chat-side h4 { font: 700 10px var(--sans); color: var(--muted); letter-spacing: .14em; margin: 12px 6px 6px; display: flex; justify-content: space-between; }
.chan { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.chan:hover { background: var(--pink-soft); } .chan.on { background: var(--grad); color: #fff; } .chan.muted { color: var(--muted); }
.chan .badge { margin-left: auto; }
.chat-main { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-h { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.msgs { flex: 1; overflow: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.msg { display: flex; gap: 10px; padding: 4px 6px; border-radius: 10px; position: relative; }
.msg:hover { background: var(--bg2); } .msg .x { position: absolute; right: 4px; top: 4px; display: none; } .msg:hover .x { display: block; }
.msg.cont { padding-top: 0; } .av-gap { width: 26px; flex: none; }
.msg small { color: var(--muted); } .msg small b { color: var(--ink); margin-right: 4px; }
.msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.msg.mine small b { color: var(--rose); }
.day-sep { text-align: center; font-size: 11px; color: var(--muted); margin: 10px 0; font-weight: 600; }
.composer { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; } .composer textarea { resize: none; }

/* content kanban */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.kcol { background: var(--c-pink); border-radius: 18px; padding: 12px; min-height: 200px; }
.kcol:nth-child(2) { background: var(--c-lilac); } .kcol:nth-child(3) { background: var(--c-gold); } .kcol:nth-child(4) { background: var(--c-mint); }
.kcol.drop-on { outline: 2px dashed var(--pink); }
.kcol h3 { display: flex; justify-content: space-between; }
.kcard { background: var(--card); border-radius: 12px; padding: 10px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); display: flex; flex-direction: column; gap: 4px; }
.kcard b { font-weight: 600; } .pill.plat { align-self: flex-start; }

/* vault */
.vault-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .vault-tools input { max-width: 320px; }
.vault { display: grid; gap: 16px; }
.vault-books { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px; }
/* Library books: pastel cloth, gilt page edges, gold frame and corners, cream title plate */
.book { --spine: #f2c4d8; --gilt: #b8893a; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; color: #4a3340; padding: 22px 18px 24px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; cursor: pointer; position: relative; transition: transform .2s, box-shadow .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(90deg, rgba(0, 0, 0, .10) 0 11px, rgba(255, 255, 255, .55) 11px 12px, rgba(0, 0, 0, .04) 12px 14px, transparent 14px), linear-gradient(115deg, rgba(255, 255, 255, .45), transparent 38%, transparent 70%, rgba(0, 0, 0, .06)), var(--spine);
  box-shadow: 2px 0 0 #fbf3e2, 4px 0 0 #e9d6a8, 6px 0 0 #cfa752, 7px 1px 0 #a87d32, 8px 10px 18px rgba(61, 43, 53, .22), inset 0 0 0 1px rgba(0, 0, 0, .05); }
.book:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 2px 0 0 #fbf3e2, 4px 0 0 #e9d6a8, 6px 0 0 #cfa752, 7px 1px 0 #a87d32, 10px 16px 24px rgba(61, 43, 53, .28), inset 0 0 0 1px rgba(0, 0, 0, .05); }
.book::after { content: ''; position: absolute; inset: 9px 9px 9px 19px; border: 3px double var(--gilt); border-radius: 3px 7px 7px 3px; pointer-events: none; }
.book::before { content: ''; position: absolute; inset: 15px 15px 15px 25px; pointer-events: none; background: linear-gradient(#b8893a,#b8893a) top left/16px 2px, linear-gradient(#b8893a,#b8893a) top left/2px 16px, linear-gradient(#b8893a,#b8893a) top right/16px 2px, linear-gradient(#b8893a,#b8893a) top right/2px 16px, linear-gradient(#b8893a,#b8893a) bottom left/16px 2px, linear-gradient(#b8893a,#b8893a) bottom left/2px 16px, linear-gradient(#b8893a,#b8893a) bottom right/16px 2px, linear-gradient(#b8893a,#b8893a) bottom right/2px 16px; background-repeat: no-repeat; }
.book-cat { font: 600 9px/1.3 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: #8a6424; margin-top: 4px; }
.book-orn { color: var(--gilt); font-size: 11px; letter-spacing: .3em; line-height: 1; }
.book-orn:first-of-type { margin-top: auto; }
.book-plate { background: linear-gradient(#fffaf0, #f7ecd6); border: 1.5px solid var(--gilt); outline: 1px solid rgba(184, 137, 58, .45); outline-offset: 2px; border-radius: 4px; padding: 8px 10px; width: 100%; box-shadow: 0 1px 3px rgba(61, 43, 53, .12); }
.book-plate b { font-family: var(--serif); font-size: 14px; line-height: 1.25; color: #3d2b35; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.book-foot { margin-top: auto; font-size: 10px; display: flex; align-items: center; gap: 4px; color: #5c4450; }
.book-pin { position: absolute; top: 2px; right: 6px; z-index: 1; }
.shelf small { font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--muted); }
.shelf-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0 10px; border-bottom: 8px solid #d9b98a; border-radius: 0 0 4px 4px; }
.shelf-book { --spine: #f2c4d8; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(90deg, rgba(0, 0, 0, .08) 0 8px, rgba(255, 255, 255, .5) 8px 9px, transparent 9px), var(--spine); color: #3d2b35; border: 0; border-radius: 3px 8px 8px 3px; padding: 14px 18px 14px 20px; font: 600 14px var(--serif); cursor: pointer; min-width: 150px; text-align: left; box-shadow: 2px 0 0 #e9d6a8, 4px 0 0 #cfa752, 4px 5px 10px rgba(0, 0, 0, .15), inset 0 0 0 2px rgba(184, 137, 58, .55); }
.colour-pick { display: flex; align-items: center; gap: 8px; } .colour-pick select { flex: 1; }
.colour-swatch { width: 28px; height: 28px; border-radius: 6px; border: 2px solid #b8893a; flex: none; }
.vault-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s; } .tile:hover { transform: translateY(-2px); }
.tile-img { aspect-ratio: 4 / 3; background: var(--pink-soft); display: grid; place-items: center; font-size: 40px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; } .tile-body .pill { align-self: flex-start; }
.vault-quotes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.quote-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 10px; position: relative; }
.quote-card::before { content: '“'; position: absolute; top: -6px; left: 12px; font: 60px var(--serif); color: var(--pink-2); opacity: .5; }
.quote-card img { width: 100%; border-radius: 10px; max-height: 220px; object-fit: cover; }
.quote { font: italic 16px/1.5 var(--serif); margin: 0; white-space: pre-wrap; }
.quote-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .quote-foot b { font-family: var(--serif); margin-right: auto; }
.preview { max-width: 100%; max-height: 60vh; border-radius: 12px; display: block; margin: 10px 0; }
.item-body { white-space: pre-wrap; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; max-height: 50vh; overflow: auto; }
.item-body.quote { font: italic 16px/1.6 var(--serif); }

/* wins */
.win-form { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: end; }
.wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.win p { font-size: 15px; white-space: pre-wrap; }
.win.shout { background: linear-gradient(135deg, var(--card) 60%, var(--gold-soft)); border-color: #ecd6a6; }
.win-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .win-h .sm { margin-left: auto; }
.win-f { display: flex; align-items: center; gap: 8px; } .win-f .x { margin-left: auto; }
.heart { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.heart.on { background: var(--pink-soft); border-color: var(--pink-2); }

/* time & leave */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat small { font-size: 10px; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
.stat b { display: block; font: 600 38px/1.1 var(--serif); color: var(--rose); } .stat span { font-size: 12px; color: var(--muted); }
.approvals { border: 2px solid var(--gold-2); }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tbl th { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.member { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; } .member h3 { margin: 6px 0 0; } .member p { margin: 0; }
.member.inactive { opacity: .5; }
.av-pick input { display: none; } .av-pick { font-size: 18px; padding: 4px 8px; } .av-pick:has(input:checked) { background: var(--pink-soft); border-color: var(--pink); }
.copy-row { display: flex; gap: 8px; margin: 12px 0; }

/* modal, toast, radio */
.modal-back { position: fixed; inset: 0; background: rgba(61, 43, 53, .35); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .15s; }
.modal { background: var(--card); border-radius: 22px; padding: 26px; width: min(520px, 100%); max-height: 90vh; overflow: auto; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); animation: pop .2s; }
.modal.wide { width: min(980px, 100%); }
.modal-x { position: absolute; top: 14px; right: 14px; border: 0; background: var(--pink-soft); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: scale(.95); opacity: 0; } }
#toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 70; align-items: center; }
.toast { background: var(--ink); color: var(--bg2); padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); animation: pop .2s; transition: opacity .4s, transform .4s; }
.toast.error { background: #c23b62; color: #fff; } .toast.win { background: var(--grad); color: #fff; }
.toast.out { opacity: 0; transform: translateY(10px); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.emoji-pop { position: fixed; font-size: 24px; pointer-events: none; z-index: 81; animation: floatup 1.3s ease-out forwards; }
@keyframes floatup { to { transform: translateY(-120px) scale(1.4); opacity: 0; } }
.stamp { position: fixed; top: 38%; left: 50%; z-index: 82; pointer-events: none; font: 700 42px var(--serif); color: var(--rose); border: 6px double var(--gold); border-radius: 16px; padding: 10px 28px; background: rgba(255, 255, 255, .92); transform: translate(-50%, -50%) rotate(-8deg) scale(2.4); opacity: 0; animation: stampin 1.9s forwards; white-space: nowrap; }
@keyframes stampin { 18% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } 80% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(.95); } }

.radio { position: fixed; left: 0; top: 50%; z-index: 40; display: flex; align-items: center; transform: translate(-300px, -50%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.radio.open { transform: translate(0, -50%); }
.radio-panel { width: 300px; background: var(--forge); color: #fff; padding: 16px; border-radius: 0 20px 20px 0; transition: box-shadow .35s; }
.radio.open .radio-panel { box-shadow: 0 14px 40px rgba(120, 40, 80, .3); }
.radio-h { display: flex; justify-content: space-between; align-items: center; }
.radio-close { border: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; font-size: 16px; cursor: pointer; }
.radio-tab { writing-mode: vertical-rl; transform: rotate(180deg); background: linear-gradient(180deg, #e9a1c4, #b98ad8); color: #fff; border: 0; border-radius: 12px 0 0 12px; padding: 16px 8px; font-weight: 700; letter-spacing: .16em; font-size: 11px; cursor: pointer; box-shadow: 0 6px 18px rgba(150, 90, 170, .3); display: flex; align-items: center; gap: 6px; }
.radio-tab .grip { letter-spacing: 0; font-size: 14px; }
.radio-panel small { font-size: 10px; letter-spacing: .16em; font-weight: 700; opacity: .9; }
.radio-panel h3 { color: #fff; margin: 8px 0 0; font-size: 22px; }
.radio-sub { color: #ffe7ef; font-size: 12px; margin: 2px 0 8px; }
.radio-panel .chip { background: rgba(255, 255, 255, .2); border-color: transparent; color: #fff; } .radio-panel .chip.on { background: #fff; color: var(--rose); }
.radio-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.radio-bar span { display: block; height: 100%; width: 0; background: #fff; } .radio-bar span.on { width: 100%; animation: livebar 2.4s ease-in-out infinite alternate; }
@keyframes livebar { from { opacity: .45; } to { opacity: 1; } }
.radio-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 8px; }
.rbtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); color: #fff; cursor: pointer; font-size: 13px; }
.play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--rose); font-size: 17px; cursor: pointer; flex: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.radio-vol { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.radio-vol input { accent-color: #fff; padding: 0; border: 0; background: none; }
@media (prefers-reduced-motion: reduce) { .radio { transition: none; } .radio-bar span.on { animation: none; } }
.live { color: #fff; font-weight: 700; }

@media (max-width: 1100px) {
  .hdr { grid-template-columns: 1fr auto; } .week-banner { grid-column: 1 / -1; order: 3; max-width: none; }
  .grid-2, .kanban, .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid-2, .kanban, .stat-row, .forge-slots, .deleg-form, .win-form { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; height: auto; } .hello { display: none; }
}

/* home calendar */
.day-note.big { transform: none; font-size: 15px; padding: 14px 18px; }
.cal-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .cal-title h2 { margin: 0; }
.cal-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--pink-soft); display: grid; place-items: center; font-size: 18px; }
.home-cal { background: linear-gradient(180deg, var(--pink-soft) 0, var(--card) 90px); }
.cal-nav h3 { margin: 0 6px; font-size: 16px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-weight: 600; font-size: 12px; cursor: pointer; color: var(--ink); }
.seg button.on { background: var(--grad); color: #fff; }
.cal-grid.week .cal-cell { min-height: 150px; }
.cal-num small { font: 600 10px var(--sans); color: var(--muted); letter-spacing: .08em; margin-right: 6px; text-transform: uppercase; }
.cal-grid.week .cal-num { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin: 2px 4px 6px; }
.ev { display: flex; align-items: center; gap: 5px; }
.cal-grid.week .ev { white-space: normal; padding: 4px 6px; font-size: 11.5px; line-height: 1.3; }
.ev-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ev-tick { flex: none; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; background: var(--card); padding: 0; font-size: 10px; line-height: 1; cursor: pointer; color: #6a4f9b; display: grid; place-items: center; }
.ev-tick.on { background: #3cbf7f; border-color: #3cbf7f; color: #fff; }
.ev.done .ev-t { text-decoration: line-through; } .ev.done { text-decoration: none; }
.ev-em { flex: none; }

/* AI team */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ai-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ai-face { width: 76px; height: 76px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 36px; box-shadow: 0 8px 20px rgba(214, 120, 140, .3); }
.ai-card h3 { margin: 6px 0 0; font-size: 19px; } .ai-card p { margin: 6px 0; color: var(--muted); font-size: 13px; }
.soon { font-size: 11px; font-weight: 700; color: #94661c; background: var(--gold-soft); border-radius: 999px; padding: 3px 10px; }

/* compact "My calendar" */
.cal-grid.compact .cal-cell { min-height: 74px; padding: 4px 5px; }
.cal-grid.compact.week .cal-num { font-size: 15px; margin: 0 2px 4px; }
.cal-grid.compact .ev { font-size: 11px; padding: 2px 6px; }
.cal-grid.compact .cal-dh { display: none; }
.home-cal { padding: 14px 18px; } .home-cal .cal-title { margin-bottom: 4px; } .home-cal .cal-title h2 { font-size: 18px; }
.home-cal .cal-nav { margin-bottom: 8px; } .home-cal .cal-ic { width: 32px; height: 32px; font-size: 16px; }
.more { font-size: 10px; color: var(--muted); margin-left: 4px; }
.preview.pdf { width: 100%; height: 70vh; border: 1px solid var(--line); }
audio.preview { width: 100%; }

/* money */
.note { background: var(--gold-soft); border: 1px dashed #e2c98f; border-radius: 12px; padding: 8px 14px; font-size: 12px; color: #7a5618; margin: 0 0 14px; }
body[data-theme='midnight'] .note { color: #f3dc9b; border-color: #5a4a2a; }
.filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; } .filters .field-sm select { min-width: 170px; }
.stat-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat span i { font-style: normal; opacity: .8; }
.chg { font-weight: 700; } .chg.up { color: #2f8a5f; } .chg.down { color: #c23b62; }
.vbars { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding-top: 18px; }
.vbars.dense { gap: 3px; }
.vbar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default; }
.vbar-plot { flex: 1; width: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.vbar-plot .fill { width: 70%; max-width: 34px; background: #d9628c; border-radius: 4px 4px 0 0; min-height: 0; position: relative; z-index: 1; }
.vbar-plot .ghost { position: absolute; bottom: 0; width: 70%; max-width: 34px; border: 1.5px dashed #c9973f; border-bottom: 0; border-radius: 4px 4px 0 0; }
.vbar-plot em { position: absolute; top: -18px; font: 700 11px var(--sans); font-style: normal; color: var(--ink); white-space: nowrap; z-index: 2; }
.vbar small { font-size: 10px; color: var(--muted); height: 14px; }
.vbars.dense .vbar:nth-child(even) small { visibility: hidden; }
.vbar.future .fill { background: var(--line); } .vbar:hover .fill { background: #b8456f; }
.legend-line { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } .sw.pink { background: #d9628c; } .sw.ghost { border: 1.5px dashed #c9973f; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(0, 150px) 1fr auto 40px; gap: 10px; align-items: center; font-size: 13px; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 12px; background: var(--pink-soft); border-radius: 6px; overflow: hidden; } .hb-track span { display: block; height: 100%; background: #d9628c; border-radius: 0 6px 6px 0; }
.hbar b { font-weight: 700; text-align: right; } .hbar small { color: var(--muted); text-align: right; }
.mt { margin-top: 18px; }
.aud-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.aud { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg2); display: flex; flex-direction: column; }
.aud small { font-size: 11px; font-weight: 700; color: var(--muted); } .aud b { font: 600 28px var(--serif); color: var(--rose); } .aud span { font-size: 11px; color: var(--muted); }
.spark { width: 100%; height: 34px; margin-top: 6px; } .spark polyline { fill: none; stroke: #d9628c; stroke-width: 2; vector-effect: non-scaling-stroke; }
.r { text-align: right !important; white-space: nowrap; }
.tip { position: absolute; z-index: 90; background: var(--ink); color: var(--bg2); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.fstep { display: grid; grid-template-columns: 180px 1fr 50px 170px; gap: 12px; align-items: center; }
.ftrack { height: 26px; background: var(--pink-soft); border-radius: 8px; overflow: hidden; } .ftrack span { display: block; height: 100%; background: var(--grad); border-radius: 8px; }
.fstep b { font: 600 20px var(--serif); text-align: right; } .fstep small { color: var(--muted); font-size: 12px; }
.kanban.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kanban.six .kcol:nth-child(5) { background: var(--c-peach); } .kanban.six .kcol:nth-child(6) { background: var(--c-sky); }
.kcard.lead b { font-family: var(--serif); }
@media (max-width: 1100px) { .stat-row.five, .kanban.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fstep { grid-template-columns: 140px 1fr 40px; } .fstep small { display: none; } }
#money-body > *, #team-body > .page-inner > * { margin-bottom: 18px; }

/* profile photos */
.av.photo { overflow: hidden; padding: 0; background: var(--pink-soft); }
.av.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av-xl { width: 84px; height: 84px; font-size: 40px; border-width: 3px; }
.photo-row { display: flex; align-items: center; gap: 14px; }
.file-btn { cursor: pointer; flex-direction: row; color: var(--ink); font-weight: 600; }

.note.synced { background: var(--c-mint); border-color: #bfe3d3; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.n8n-box pre { max-height: 360px; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 12px; }

/* money: donut, product list, ads */
.stat-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sec-h.nomargin { margin: 0; }
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut { width: 200px; height: 200px; flex: none; } .donut circle { cursor: default; transition: stroke-width .15s; } .donut circle:hover { stroke-width: 26; }
.donut-total { font: 600 24px var(--serif); fill: var(--ink); } .donut-sub { font: 500 11px var(--sans); fill: var(--muted); }
.donut-legend { display: flex; flex-direction: column; gap: 8px; min-width: 200px; flex: 1; }
.donut-legend div { display: grid; grid-template-columns: 12px 1fr auto 70px; gap: 8px; align-items: center; font-size: 13px; }
.donut-legend i { width: 12px; height: 12px; border-radius: 50%; } .donut-legend small { color: var(--muted); text-align: right; }
.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; }
.prow b { font-weight: 600; font-size: 13px; } .prow .hb-track { display: block; margin-top: 5px; height: 10px; }
.rank-n { width: 24px; height: 24px; border-radius: 50%; background: var(--pink-soft); color: var(--rose); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.pval { white-space: nowrap; font-size: 13px; } .pval small { color: var(--muted); }
.vbars.gold .vbar-plot .fill { background: #c9973f; } .vbars.gold .vbar:hover .fill { background: #a8741f; }
@media (max-width: 1100px) { .stat-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* quest boards: rows of four, compact */
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .sec-row .sec-h { margin-bottom: 10px; }
.boards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.board { padding: 10px; border-radius: 16px; }
.board-h h3 { font-size: 15px; }
.board-body { gap: 5px; }
.quest { padding: 7px 8px; gap: 7px; font-size: 13px; border-radius: 10px; }
.quest .tick { width: 18px; height: 18px; }
.add-quest input { font-size: 12px; padding: 6px 9px; }
@media (max-width: 1100px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-chips { margin-top: 0; } .type-chips .chip { font-size: 12px; }
.proj-group { margin-bottom: 22px; } .group-h { font-size: 20px; margin: 8px 0 10px; }

/* project page */
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-size: 13px; }
.pd-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; border-left: 6px solid var(--c-pink-b); padding: 22px 24px; }
.pd-head.proj-lilac { border-left-color: var(--c-lilac-b); } .pd-head.proj-mint { border-left-color: var(--c-mint-b); } .pd-head.proj-peach { border-left-color: var(--c-peach-b); }
.pd-head.proj-gold { border-left-color: var(--c-gold-b); } .pd-head.proj-sky { border-left-color: var(--c-sky-b); }
.pd-emoji { font-size: 54px; }
.pd-title { font-size: 32px; line-height: 1.15; margin: 0 0 10px; } .pd-title span { cursor: text; }
.pd-main .bar { max-width: 420px; }
.pd-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin: 4px 0 10px; } .pd-meta b { color: var(--ink); }
.pd-people { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pd-person { position: relative; display: inline-flex; } .pd-person .x { position: absolute; top: -6px; right: -8px; display: none; background: var(--card); } .pd-person:hover .x { display: block; }
.chip-select { width: auto; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.pd-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 220px; }
.pd-links { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
.holding { background: var(--gold-soft); border: 1px solid #ecd6a6; border-radius: 14px; padding: 10px 16px; margin: 14px 0; }
.holding summary { cursor: pointer; font-weight: 700; } .holding.clear { background: var(--c-mint); border-color: #bfe3d3; }
.hold-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; } .hold-list div { display: flex; align-items: center; gap: 6px; }
.stage-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.sstep { background: var(--c-lilac); border-radius: 10px; padding: 7px 14px; font-weight: 600; font-size: 13px; } .sstep small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.sstep.now { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px #e2c98f; } .sstep.done { background: var(--c-mint); }
.chev { color: var(--muted); }
.stage-cols { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; }
.scol { flex: 0 0 290px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c-lilac-b); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.scol.now { border-color: #e2c98f; border-top-color: var(--gold); box-shadow: 0 0 0 2px #f2e2bb, var(--shadow); }
.scol.drop-on { outline: 2px dashed var(--pink); }
.scol-h { display: flex; align-items: center; gap: 8px; } .scol-h h3 { margin: 0; flex: 1; font-size: 17px; } .mood { font-size: 18px; }
.bar.thin { height: 5px; margin: 8px 0 10px; }
.scol-body { display: flex; flex-direction: column; gap: 8px; }
.stask { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--bg2); cursor: grab; }
.stask.done .pt-title { text-decoration: line-through; color: var(--muted); }
.stask-top { display: flex; align-items: flex-start; gap: 6px; } .stask-top input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.stask-top .pt-title { flex: 1; font-weight: 600; font-size: 13px; min-width: 0; word-break: break-word; } .stask-top .pt-title input { padding: 3px 6px; font-size: 13px; }
.stask-meta { display: flex; gap: 6px; margin: 6px 0 0 22px; } .stask-meta select, .stask-meta input { padding: 3px 6px; font-size: 11px; border-radius: 8px; min-width: 0; }
.stask-meta input.late { border-color: #e7a0b4; color: #c23b62; }
.add-ptask { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; } .add-ptask input { font-size: 12px; padding: 7px 9px; border-style: dashed; }
.add-ptask .row { align-items: center; gap: 6px; } .paste-tip { font-size: 11px; color: var(--muted); margin: 0; }
.add-stage { border: 2px dashed var(--c-lilac-b); border-top-width: 2px; background: transparent; box-shadow: none; }
.add-stage input { border: 0; background: transparent; }
@media (max-width: 1100px) { .pd-head { grid-template-columns: auto 1fr; } .pd-side { grid-column: 1 / -1; } }
