/* cc-styles.css — Personal Command Centre
   Two directions share warm-paper DNA; .dir-horizon vs .dir-almanac reshape it. */

/* Self-hosted fonts (privacy: no Google Fonts hot-link). Latin subset only.
   Hanken Grotesk is a variable font (one file covers 400–700). */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --paper: #f4f1ea;
  --paper-2: #ece6d9;
  --card: #fffdf8;
  --ink: #2a2723;
  --ink-2: #6f695e;
  --ink-3: #9b9388;
  --hair: #e4ddce;
  --hair-2: #efe9dc;
  --ember: #bd6a3c;
  --accent: #3d5a4c;
  --accent-deep: #2f4a3d;
  --accent-tint: #e7eee9;
  --accent-tint2: #eef3ee;
  --fs: 1;
  --dens: 1;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow-card: 0 1px 2px rgba(42,39,35,0.05), 0 10px 30px -16px rgba(42,39,35,0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

/* ───────────────────────── STAGE ───────────────────────── */
.cc-stage {
  min-height: 100%;
  display: flex; flex-direction: column;
  transition: background 1.2s ease;
}
.cc-stage-scroll {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 32px 24px 56px;
  overflow: auto;
}
.cc-device-wrap { display: flex; align-items: center; justify-content: center; }

/* ───────────────── PRESENTATION BAR ───────────────── */
.cc-presbar {
  display: flex; align-items: center; gap: 24px;
  padding: 13px 22px;
  background: rgba(28,26,23,0.74);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: #f3efe7; position: sticky; top: 0; z-index: 50;
}
.cc-presbar-left { display: flex; flex-direction: column; line-height: 1.15; }
.cc-pres-title { font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }
.cc-pres-sub { font-size: 11px; color: rgba(243,239,231,0.55); }
.cc-presbar-mid { display: flex; gap: 12px; margin: 0 auto; }
.cc-presbar-right { display: flex; align-items: center; gap: 14px; }

.cc-pseg { display: flex; background: rgba(255,255,255,0.08); border-radius: 9px; padding: 3px; gap: 2px; }
.cc-pseg-btn {
  font-size: 12.5px; font-weight: 500; color: rgba(243,239,231,0.62);
  padding: 6px 14px; border-radius: 7px; transition: all 0.2s ease; white-space: nowrap;
}
.cc-pseg-btn.on { background: rgba(255,255,255,0.92); color: #2a2723; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }

.cc-timescrub { display: flex; align-items: center; gap: 10px; }
.cc-timescrub-sun { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 10px currentColor; transition: background 0.6s; flex-shrink: 0; }
.cc-timeslider { -webkit-appearance: none; appearance: none; width: 150px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #2a3142, #e7b48c, #bcd4e4, #e2a06a, #222a3c); outline: none; }
.cc-timeslider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); cursor: grab; }
.cc-timeslider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.4); cursor: grab; }
.cc-timescrub-label { font-size: 11.5px; color: rgba(243,239,231,0.7); font-variant-numeric: tabular-nums; min-width: 116px; }

/* ───────────────── MAC FRAME ───────────────── */
.cc-macwin {
  border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(42,39,35,0.12), 0 30px 80px -20px rgba(40,36,28,0.55);
  display: flex; flex-direction: column;
}
.cc-mac-bar {
  height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: var(--paper-2); border-bottom: 1px solid var(--hair); position: relative; flex-shrink: 0;
}
.cc-tl { width: 12px; height: 12px; border-radius: 50%; }
.cc-tl-r { background: #e0a097; } .cc-tl-y { background: #ddc18a; } .cc-tl-g { background: #a9c2a0; }
.cc-mac-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--ink-3); font-weight: 500; pointer-events: none; }
.cc-mac-body { flex: 1; min-height: 0; display: flex; }

/* ───────────────── APP SHELL ───────────────── */
.cc-app { display: flex; width: 100%; height: 100%; background: var(--paper); color: var(--ink); font-size: calc(15px * var(--fs)); }
.cc-app.plat-ios { flex-direction: column; position: relative; }

/* sidebar (mac) */
.cc-sidebar {
  width: 224px; flex-shrink: 0; background: var(--paper-2);
  border-right: 1px solid var(--hair); display: flex; flex-direction: column;
  padding: 22px 14px 16px;
}
.cc-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.cc-brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent);
  position: relative; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.cc-brand-mark::after { content: ''; position: absolute; left: 5px; right: 5px; top: 14px; height: 6px;
  border-radius: 0 0 8px 8px; background: radial-gradient(ellipse at 50% 0, rgba(255,255,255,0.85), transparent 70%); }
.cc-brand-name { font-size: 14px; font-weight: 600; line-height: 1.05; letter-spacing: 0.2px; }
.cc-nav { display: flex; flex-direction: column; gap: 2px; }
.cc-nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px;
  color: var(--ink-2); font-size: 14px; font-weight: 500; transition: all 0.16s ease; text-align: left; }
.cc-nav-item:hover { background: rgba(42,39,35,0.04); color: var(--ink); }
.cc-nav-item.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); }
.cc-nav-item.is-on .cc-nav-ic { color: var(--accent); }
.cc-nav-ic { display: flex; color: var(--ink-3); }
.cc-nav-label { flex: 1; }
.cc-nav-badge { font-size: 11px; font-weight: 600; background: var(--accent); color: #fff;
  min-width: 19px; height: 19px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.cc-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding-top: 16px; }
.cc-side-action { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); background: rgba(42,39,35,0.035); transition: all 0.16s; }
.cc-side-action:hover { background: rgba(42,39,35,0.07); color: var(--ink); }
.cc-side-triage { background: var(--accent); color: #fff; }
.cc-side-triage:hover { background: var(--accent-deep); color: #fff; }
.cc-side-triage:disabled { opacity: 0.4; cursor: default; background: rgba(42,39,35,0.06); color: var(--ink-3); }
.cc-spark-mini { display: flex; }
.cc-side-badge { margin-left: auto; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.22); border-radius: 8px; padding: 1px 7px; }

/* capture */
.cc-capture-btn { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px dashed var(--hair); transition: all 0.16s; width: 100%; }
.cc-capture-btn:hover { border-color: var(--accent); color: var(--accent); }
.cc-capture-btn.ios { width: 56px; height: 56px; border-radius: 50%; justify-content: center; padding: 0;
  background: var(--accent); color: #fff; border: none; box-shadow: 0 6px 20px -6px var(--accent); }
.cc-capture-open { display: flex; gap: 6px; align-items: center; }
.cc-capture-input { flex: 1; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--card); font-size: 13px; outline: none; color: var(--ink); }
.cc-capture-save { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* main */
.cc-main { flex: 1; min-height: 0; overflow: auto; }
.cc-main-ios { width: 100%; height: 100%; overflow: auto; }

/* ───────────────── iOS TABBAR + TOOLBAR ───────────────── */
.cc-tabbar { position: absolute; left: 12px; right: 12px; bottom: 26px; height: 60px; z-index: 30;
  display: flex; background: rgba(252,250,245,0.86); backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%); border-radius: 22px; padding: 6px;
  box-shadow: 0 8px 30px -8px rgba(40,36,28,0.3), inset 0 0 0 1px rgba(255,255,255,0.6); }
.cc-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; justify-content: center;
  border-radius: 16px; color: var(--ink-3); position: relative; transition: all 0.16s; }
.cc-tab.is-on { color: var(--accent); background: rgba(61,90,76,0.08); }
.cc-tab-ic { display: flex; }
.cc-tab-label { font-size: 10.5px; font-weight: 600; }
.cc-tab-badge { position: absolute; top: 5px; right: 50%; margin-right: -22px; min-width: 16px; height: 16px;
  background: var(--ember); color: #fff; border-radius: 8px; font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cc-ios-refresh { position: absolute; left: 18px; bottom: 104px; z-index: 31; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(252,250,245,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px -4px rgba(40,36,28,0.3), inset 0 0 0 1px rgba(255,255,255,0.6); }
.cc-ios-capture { position: absolute; right: 18px; bottom: 100px; z-index: 31; }
.cc-ios-capture .cc-capture-open { width: 300px; background: rgba(252,250,245,0.96); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); padding: 7px; border-radius: 16px; box-shadow: 0 8px 28px -6px rgba(40,36,28,0.35), inset 0 0 0 1px rgba(255,255,255,0.6); }
.plat-ios .cc-capture-btn.ios { box-shadow: 0 6px 20px -6px var(--accent), inset 0 0 0 1px rgba(255,255,255,0.2); }

/* ───────────────── VIEW SCAFFOLD ───────────────── */
.cc-view { padding: calc(26px * var(--dens)) calc(30px * var(--dens)) 60px; max-width: 760px; margin: 0 auto; }
.plat-ios .cc-view { padding: 0 16px 170px; max-width: none; }
.plat-ios .cc-view:not(.cc-today) { padding-top: 58px; }
.cc-view-title { font-size: calc(27px * var(--fs)); font-weight: 600; letter-spacing: -0.4px; margin: 0; }
.cc-view-sub { font-size: 14px; color: var(--ink-2); margin: 5px 0 0; }
.cc-soon { color: var(--ink-3); font-style: italic; }
.cc-tasks-head { margin-bottom: 20px; }
.plat-mac .cc-today, .plat-mac .cc-tasks, .plat-mac .cc-content { padding-top: 0; }

/* ───────────────── HORIZON SKY ───────────────── */
.cc-sky { position: relative; overflow: hidden; transition: background 1.2s ease, color 1.2s ease; }
.plat-mac .cc-sky { margin: 0; min-height: 230px; }
.plat-ios .cc-sky { min-height: 250px; }
.cc-sky-grain { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 4px 4px; }
.cc-sun-track { position: absolute; transition: left 1.2s ease, bottom 1.2s ease; transform: translate(-50%, 50%); z-index: 1; }
.cc-sun { position: relative; display: flex; align-items: center; justify-content: center; }
.cc-sun-halo { position: absolute; inset: -120%; border-radius: 50%; }
.cc-sun-disc { width: 100%; height: 100%; border-radius: 50%; }
.cc-sky-inner { position: relative; z-index: 2; padding: 30px 34px 26px; }
.plat-ios .cc-sky-inner { padding: 64px 22px 24px; }
.cc-sky-meta { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; opacity: 0.82; font-variant-numeric: tabular-nums; }
.cc-sky-dot { opacity: 0.5; }
.cc-greeting { font-size: calc(34px * var(--fs)); font-weight: 600; letter-spacing: -0.6px; margin: 14px 0 6px; }
.plat-ios .cc-greeting { font-size: calc(30px * var(--fs)); margin-top: 10px; }
.cc-status-line { font-size: calc(16px * var(--fs)); font-weight: 400; opacity: 0.9; margin: 0; max-width: 30ch; text-wrap: pretty; }
.cc-today-body { padding: calc(24px * var(--dens)) calc(30px * var(--dens)) 60px; max-width: 760px; margin: 0 auto; }
.plat-ios .cc-today-body { padding: 18px 16px 170px; }

/* ───────────────── ALMANAC HEADER ───────────────── */
.cc-almheader { padding: 30px 34px 22px; border-bottom: 1px solid var(--ink); position: relative; }
.plat-ios .cc-almheader { padding: 60px 20px 18px; }
.cc-alm-top { display: flex; align-items: baseline; justify-content: space-between; }
.cc-alm-greeting { font-size: calc(30px * var(--fs)); font-weight: 600; letter-spacing: -0.6px; }
.plat-ios .cc-alm-greeting { font-size: calc(25px * var(--fs)); }
.cc-alm-clock { font-family: var(--mono); font-size: calc(26px * var(--fs)); font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.cc-dayarc { position: relative; height: 26px; margin: 22px 0 14px; }
.cc-dayarc-line { position: absolute; top: 13px; left: 0; right: 0; height: 1px; background: var(--ink); opacity: 0.25; }
.cc-dayarc-tick { position: absolute; top: 9px; width: 1px; height: 9px; background: var(--ink); opacity: 0.3; transform: translateX(-50%); }
.cc-dayarc-tick::after { content: attr(data-l); position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.cc-dayarc-sun { position: absolute; top: 7px; width: 13px; height: 13px; border-radius: 50%; transform: translateX(-50%);
  box-shadow: 0 0 12px currentColor; transition: left 1.2s ease, background 1.2s ease; }
.cc-alm-meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.3px; }
.cc-alm-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.cc-alm-status { font-size: calc(16px * var(--fs)); color: var(--ink); margin: 12px 0 0; max-width: 36ch; text-wrap: pretty; }
.dir-almanac .cc-today-body { padding-top: calc(20px * var(--dens)); }

/* ───────────────── SECTIONS ───────────────── */
.cc-section { margin-bottom: calc(26px * var(--dens)); }
.cc-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: calc(12px * var(--dens)); }
.cc-section-title { font-size: calc(13px * var(--fs)); font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; color: var(--ink-2); margin: 0; white-space: nowrap; }
.cc-section-count { font-size: 11px; font-weight: 600; color: var(--ink-3); background: rgba(42,39,35,0.06); border-radius: 9px; padding: 1px 8px; }
.cc-section-hint { font-size: 12px; color: var(--ink-3); font-style: italic; margin-left: auto; }
.cc-section-body { display: flex; flex-direction: column; gap: calc(11px * var(--dens)); }
.dir-almanac .cc-section-body { gap: 0; }
.dir-almanac .cc-section-decide .cc-section-title { color: var(--accent); }

/* ───────────────── CARD (shared) ───────────────── */
.cc-card { position: relative; }
.cc-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.cc-kind { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-3); white-space: nowrap; }
.cc-decide-mark { font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-tint); padding: 2px 8px; border-radius: 7px; text-transform: uppercase; letter-spacing: 0.4px; }
.cc-spacer { flex: 1; }
.cc-age { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cc-card-index { display: none; }

.cc-plight { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cc-plight-high { background: var(--ember); box-shadow: 0 0 0 3px rgba(189,106,60,0.16); }
.cc-plight-med { background: var(--accent); box-shadow: 0 0 0 3px rgba(61,90,76,0.13); }
.cc-plight-low { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

.cc-card-body { display: flex; flex-direction: column; gap: 8px; }
.cc-sender-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cc-sender { font-size: calc(15px * var(--fs)); font-weight: 600; white-space: nowrap; }
.cc-tag { font-size: 10.5px; font-weight: 500; color: var(--ink-2); background: rgba(42,39,35,0.05); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.cc-subject { font-size: calc(15.5px * var(--fs)); font-weight: 500; line-height: 1.35; }
.cc-gist { font-size: calc(14px * var(--fs)); color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.cc-meta-mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* actions */
.cc-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.cc-actions-inline { margin-top: 0; flex-wrap: nowrap; }
.cc-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  padding: 8px 13px; border-radius: 9px; transition: all 0.15s ease; white-space: nowrap; color: var(--ink); background: rgba(42,39,35,0.05); }
.cc-btn:hover { background: rgba(42,39,35,0.1); }
.cc-btn-primary { background: var(--accent); color: #fff; }
.cc-btn-primary:hover { background: var(--accent-deep); }
.cc-btn-ic { display: flex; }
.cc-btn-full { width: 100%; justify-content: center; }
.cc-iconbtn { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); transition: all 0.15s; }
.cc-iconbtn:hover { background: rgba(42,39,35,0.07); color: var(--ink); }

/* reply (triaged email state) */
.cc-reply-head { display: flex; align-items: center; justify-content: space-between; }
.cc-reply-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cc-reply-badge { font-size: 10.5px; color: var(--ink-3); font-style: italic; }
.cc-reply-text { width: 100%; border: 1px solid var(--hair); border-radius: 11px; background: var(--accent-tint2);
  padding: 13px 15px; font-size: 13.5px; line-height: 1.6; color: var(--ink); resize: none; outline: none; }
.cc-reply-text:focus { border-color: var(--accent); }
.cc-refine-box { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.cc-refine-input { width: 100%; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-tint2);
  padding: 10px 13px; font-size: 13.5px; line-height: 1.5; color: var(--ink); outline: none; }
.cc-refine-hint { font-size: 11.5px; color: var(--ink-3); font-style: italic; }

/* calendar */
.cc-agenda { margin-bottom: 8px; }
.cc-agenda-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-3); margin-bottom: 6px; }
.cc-evt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.cc-evt-time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); min-width: 42px; }
.cc-evt-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cc-evt-practice { background: var(--accent); } .cc-evt-work { background: #8a7fb0; } .cc-evt-personal { background: var(--ember); }
.cc-evt-title { flex: 1; }
.cc-evt-conflict .cc-evt-title { color: var(--ember); }
.cc-conflict-flag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ember);
  border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; }

/* at-risk */
.cc-atrisk-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc-atrisk-event { font-size: calc(15.5px * var(--fs)); font-weight: 600; }
.cc-atrisk-weeks { font-size: 11.5px; font-weight: 600; color: var(--ember); background: rgba(189,106,60,0.1); padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.cc-atrisk-plan { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.cc-atrisk-note { font-size: 12px; color: var(--ink-2); font-style: italic; }

/* draft — Claude wrote it, David approves it */
.cc-draft-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cc-draft-channel { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-tint2); padding: 2px 9px; border-radius: 7px; }
.cc-draft-for { font-size: 12.5px; color: var(--ink-2); }
.cc-draft-subject { font-size: 13px; font-weight: 600; color: var(--ink); }
.cc-draft-text { font-size: calc(14px * var(--fs)); color: var(--ink); line-height: 1.55; white-space: pre-wrap;
  text-wrap: pretty; background: var(--accent-tint2); border: 1px solid var(--hair); border-radius: 11px;
  padding: 12px 14px; max-height: 320px; overflow: auto; }
.cc-draft-words { font-size: 11.5px; color: var(--ink-3, var(--ink-2)); }
.dir-almanac .cc-draft-text { border-radius: 4px; }

/* triage view (run-from-Claude first, manual fallback, read-only queue) */
.cc-triage-card { background: var(--card, #fff); border: 1px solid var(--hair); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; position: relative; }
.cc-triage-primary { border-color: var(--accent); background: var(--accent-tint2); }
.cc-triage-badge { position: absolute; top: -9px; left: 16px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: var(--accent); padding: 2px 9px; border-radius: 7px; }
.cc-triage-h { font-size: calc(16px * var(--fs)); font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.cc-triage-p { font-size: calc(13.5px * var(--fs)); color: var(--ink-2); line-height: 1.55; margin: 0; }
.cc-tq-count { font-size: 12px; font-weight: 600; color: var(--ink-2); background: rgba(42,39,35,0.06); padding: 1px 8px; border-radius: 7px; margin-left: 4px; }
.cc-tq-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.cc-tq-row { display: flex; align-items: baseline; gap: 10px; font-size: calc(13px * var(--fs)); }
.cc-tq-kind { flex-shrink: 0; width: 46px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent); padding-top: 1px; }
.cc-tq-main { min-width: 0; color: var(--ink); }
.cc-tq-who { font-weight: 600; margin-right: 6px; }
.cc-tq-what { color: var(--ink-2); }
.dir-almanac .cc-triage-card { border-radius: 4px; }

/* weekly brief card */
.cc-brief-sec { margin-top: 4px; }
.cc-brief-head { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 3px; }
.cc-brief-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-brief-list li { font-size: calc(13.5px * var(--fs)); color: var(--ink); line-height: 1.45; padding-left: 12px; position: relative; }
.cc-brief-list li::before { content: '·'; position: absolute; left: 2px; color: var(--ink-2); }

/* finish-setup checklist (Settings) */
.cc-setup-list { display: flex; flex-direction: column; gap: 9px; }
.cc-setup-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; background: var(--card, #fff);
  border: 1px solid var(--hair); border-radius: 12px; }
.cc-setup-row.is-blocked { opacity: 0.72; }
.cc-setup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); margin-top: 6px; flex-shrink: 0; }
.cc-setup-main { flex: 1; min-width: 0; }
.cc-setup-title { font-size: calc(14px * var(--fs)); font-weight: 600; color: var(--ink); }
.cc-setup-why { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.cc-setup-hint { font-size: 11.5px; color: var(--ink-2); font-style: italic; margin-top: 3px; }
.cc-setup-done { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--accent); font-weight: 500; }
.dir-almanac .cc-setup-row { border-radius: 4px; }

/* task */
.cc-task-body { flex-direction: row; align-items: center; gap: 12px; }
.cc-tick { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--hair); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.18s ease; }
.cc-tick:hover { border-color: var(--accent); }
.cc-tick-on { background: var(--accent); border-color: var(--accent); }
.cc-task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-task-title { font-size: calc(15px * var(--fs)); font-weight: 500; }
.cc-task-title-done { color: var(--ink-3); text-decoration: line-through; }
.cc-task-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-source { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.cc-reminder { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--accent); font-weight: 500; white-space: nowrap; }
.cc-snoozed-til { font-size: 11.5px; color: var(--ink-3); font-style: italic; white-space: nowrap; }
.cc-task-inline { display: flex; gap: 2px; }

/* suggestion */
.cc-sugg-prompt { font-size: calc(15px * var(--fs)); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.cc-sugg-title { font-size: calc(15.5px * var(--fs)); font-weight: 600; color: var(--ink); line-height: 1.4; text-wrap: pretty; }
.cc-sugg-action { font-size: calc(14px * var(--fs)); line-height: 1.5; color: var(--accent); font-weight: 500; text-wrap: pretty; }
.cc-reply-queued { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--accent); font-weight: 500; }
/* portal/action email: Claude's "what to do" line + the real link button(s) */
.cc-email-action { font-size: calc(13.5px * var(--fs)); color: var(--ink); line-height: 1.5; padding: 8px 11px;
  background: var(--accent-tint2); border: 1px solid var(--hair); border-radius: 10px; }
.cc-action-links { margin-top: 2px; }
.dir-almanac .cc-email-action { border-radius: 4px; }
.cc-card-suggestion .cc-kind { color: var(--accent); }
.cc-card-mailbatch .cc-kind { color: var(--accent); }

/* mark-read roll-up: the filed-FYI emails, listed for one-tap approval */
.cc-batch-list { list-style: none; margin: 10px 0 4px; padding: 0; max-height: 280px; overflow-y: auto;
  border-top: 1px solid var(--hair); }
.cc-batch-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px;
  border-bottom: 1px solid var(--hair); }
.cc-batch-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.cc-batch-subj { font-size: calc(13.5px * var(--fs)); color: var(--ink); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-batch-from { font-size: calc(11.5px * var(--fs)); color: var(--ink-3); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-batch-keep { flex: none; font-size: calc(12px * var(--fs)); color: var(--accent-deep);
  background: var(--accent-tint2); border: 1px solid var(--hair); border-radius: 7px;
  padding: 4px 10px; cursor: pointer; }
.cc-batch-keep:hover { background: var(--accent-tint); }

/* resolve veil (motion / delight) */
.cc-resolve-veil { position: absolute; inset: 0; background: var(--accent-tint); border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 5;
  animation: veilIn 0.3s ease both; }
.cc-resolve-check { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; animation: pop 0.45s cubic-bezier(0.34,1.56,0.64,1) both; }
.cc-resolve-note { font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.cc-resolving { animation: settle 0.64s ease forwards; }

/* ───────── DIRECTION: HORIZON (soft paper cards) ───────── */
.dir-horizon .cc-card { background: var(--card); border-radius: 16px; padding: calc(17px * var(--dens)) calc(18px * var(--dens));
  box-shadow: var(--shadow-card); border: 1px solid var(--hair-2); }
.dir-horizon .cc-card-email.cc-lane-decide, .dir-horizon .cc-card-atrisk { border-left: 3px solid transparent; }
.dir-horizon .cc-pri-high.cc-lane-decide { border-left: 3px solid var(--ember); }
.dir-horizon .cc-card-suggestion { background: linear-gradient(180deg, var(--accent-tint2), var(--card)); border-color: var(--accent-tint); }
.dir-horizon .cc-card[data-motion] {}
.dir-horizon .cc-section-aware .cc-card { background: transparent; box-shadow: none; border: 1px solid var(--hair); }

/* ───────── DIRECTION: ALMANAC (editorial ledger) ───────── */
.dir-almanac .cc-card { background: transparent; border-radius: 0; padding: calc(15px * var(--dens)) 0 calc(15px * var(--dens)) 40px;
  border-top: 1px solid var(--hair); }
.dir-almanac .cc-section-body > .cc-card:first-child { border-top: 1px solid var(--ink); }
.dir-almanac .cc-card-index { display: block; position: absolute; left: 13px; top: calc(15px * var(--dens));
  font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.dir-almanac .cc-pri-high::before { content: ''; position: absolute; left: 0; top: calc(15px * var(--dens)); width: 3px; height: 22px; background: var(--ember); }
.dir-almanac .cc-pri-med::before { content: ''; position: absolute; left: 0; top: calc(17px * var(--dens)); width: 3px; height: 14px; background: var(--accent); }
.dir-almanac .cc-plight { display: none; }
.dir-almanac .cc-subject, .dir-almanac .cc-atrisk-event, .dir-almanac .cc-sugg-prompt { font-weight: 600; letter-spacing: -0.2px; }
.dir-almanac .cc-btn { background: transparent; border: 1px solid var(--hair); border-radius: 6px; }
.dir-almanac .cc-btn:hover { border-color: var(--ink-2); background: transparent; }
.dir-almanac .cc-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.dir-almanac .cc-btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.dir-almanac .cc-card-suggestion .cc-card-index::after { content: ' ✦'; }
.dir-almanac .cc-card-index { display: block; }
.dir-almanac .cc-resolve-veil { background: var(--paper); border-radius: 0; align-items: flex-start; padding-left: 40px; flex-direction: row; }
.dir-almanac .cc-reply-text { border-radius: 4px; }
.dir-almanac .cc-decide-mark { background: transparent; padding: 0; }
.dir-almanac .cc-decide-mark::before { content: '— '; }

/* ───────────────── TRIAGE ───────────────── */
.cc-triage { display: flex; flex-direction: column; min-height: 480px; }
.plat-ios .cc-triage { min-height: 560px; }
.cc-triage-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.cc-triage-progress { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-triage-of { color: var(--ink-3); }
.cc-triage-dots { display: flex; gap: 5px; flex: 1; flex-wrap: wrap; }
.cc-triage-dotmark { width: 7px; height: 7px; border-radius: 50%; background: var(--hair); }
.cc-triage-dotmark.is-done { background: var(--accent); }
.cc-triage-dotmark.is-cur { background: var(--ember); transform: scale(1.3); }
.cc-deck { position: relative; flex: 1; min-height: 320px; }
.cc-deck-slot { position: absolute; left: 0; right: 0; top: 0; transition: transform 0.45s cubic-bezier(0.22,0.61,0.36,1), opacity 0.45s; }
.cc-deck-0 { transform: translateY(0) scale(1); }
.cc-deck-1 { transform: translateY(14px) scale(0.965); opacity: 0.6; }
.cc-deck-2 { transform: translateY(28px) scale(0.93); opacity: 0.3; }
.cc-deck-ghost { height: 150px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); border: 1px solid var(--hair-2); }
.dir-almanac .cc-deck-ghost { background: var(--paper); box-shadow: none; border: 1px solid var(--hair); }
.cc-deck-slot .cc-card { animation: deckIn 0.5s cubic-bezier(0.22,0.61,0.36,1); }
.dir-horizon .cc-deck-0 .cc-card { box-shadow: 0 2px 6px rgba(42,39,35,0.06), 0 24px 50px -22px rgba(42,39,35,0.4); }
.dir-almanac .cc-deck-0 .cc-card { background: var(--card); padding: 20px 22px 20px 50px; border: 1px solid var(--hair); box-shadow: 0 20px 50px -24px rgba(42,39,35,0.4); }
.dir-almanac .cc-deck-0 .cc-card-index { left: 22px; top: 20px; }
.cc-triage-foot { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.cc-skip { font-size: 13px; color: var(--ink-3); padding: 8px 16px; border-radius: 9px; }
.cc-skip:hover { background: rgba(42,39,35,0.05); color: var(--ink-2); }
.cc-triage-nav { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3); padding: 8px 14px; border-radius: 9px; transition: background 0.18s, color 0.18s, opacity 0.18s; }
.cc-triage-nav:hover:not(:disabled) { background: rgba(42,39,35,0.05); color: var(--ink); }
.cc-triage-nav:disabled { opacity: 0.3; cursor: default; }
.cc-triage-nav-ic { display: inline-flex; }
.cc-triage-nav-ic.cc-flip { transform: scaleX(-1); }

/* processing */
.cc-triage-processing { align-items: center; justify-content: center; }
.cc-processing { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cc-processing-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--accent-tint); border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin-bottom: 14px; }
.cc-processing-text { font-size: 17px; font-weight: 600; margin: 0; }
.cc-processing-sub { font-size: 14px; color: var(--ink-2); margin: 0; }

/* triage done */
.cc-triage-done { text-align: center; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cc-triage-done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.cc-triage-done-mark svg { width: 26px; height: 26px; }
.cc-triage-done-title { font-size: 24px; font-weight: 600; margin: 0; }
.cc-triage-done-sub { font-size: 15px; color: var(--ink-2); margin: 0 0 20px; max-width: 34ch; text-wrap: pretty; }
.cc-bigbtn { background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 12px 26px; border-radius: 12px; transition: all 0.15s; }
.cc-bigbtn:hover { background: var(--accent-deep); }
.cc-bigbtn:disabled { opacity: 0.45; cursor: default; }
.cc-ghostbtn { background: transparent; color: var(--accent-deep); border: 1px solid var(--hair); font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 12px; transition: all 0.15s; }
.cc-ghostbtn:hover { background: var(--accent-tint); border-color: var(--accent); }

/* triage: how-to-run guide */
.cc-triage-guide { background: var(--accent-tint2); border: 1px solid var(--hair); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 22px; }
.cc-triage-guide-title { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.cc-triage-guide-lead { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; text-wrap: pretty; }
.cc-triage-steps { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.cc-triage-steps li { font-size: 14px; color: var(--ink-1); }
.cc-triage-guide-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cc-triage-guide-or { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }

/* ───────────────── FILTERS (tasks) ───────────────── */
.cc-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.cc-seg { display: inline-flex; background: var(--paper-2); border-radius: 10px; padding: 3px; gap: 2px; }
.dir-almanac .cc-seg { background: transparent; border: 1px solid var(--hair); border-radius: 8px; }
.cc-seg-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 12px; border-radius: 8px; transition: all 0.15s; }
.cc-seg-btn.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(42,39,35,0.1); }
.dir-almanac .cc-seg-btn.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
.cc-seg-count { font-size: 10.5px; color: var(--ink-3); }
.cc-seg-btn.is-on .cc-seg-count { color: inherit; opacity: 0.6; }
.cc-task-list { display: flex; flex-direction: column; gap: calc(10px * var(--dens)); }
.dir-almanac .cc-task-list { gap: 0; }
.dir-almanac .cc-task-list > .cc-card:first-child { border-top: 1px solid var(--ink); }
.cc-empty-soft { padding: 50px 20px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ── Tasks: time-bucket sections ── */
.cc-task-section { margin-bottom: calc(22px * var(--dens)); }
.cc-task-section-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 11px; }
.cc-task-section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--ink-2); }
.cc-task-section-count { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink); background: var(--paper-2);
  min-width: 19px; text-align: center; padding: 1px 6px; border-radius: 7px; }
.cc-task-section-note { font-size: 12px; color: var(--ink-3); font-style: italic; margin-left: auto; }
.dir-almanac .cc-task-section-head { border-bottom: 1px solid var(--ink); padding-bottom: 5px; }

/* due-date chip — warm, never alarm */
.cc-due { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cc-due-overdue { color: #b5743f; }
.cc-due-soon { color: var(--accent); }
.cc-due-normal { color: var(--ink-2); font-weight: 500; }

/* gentle Monday/Saturday rest note */
.cc-rest-banner { background: var(--accent-tint2); border: 1px solid var(--accent-tint); color: var(--accent-deep);
  font-size: 13.5px; line-height: 1.5; padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; }

/* "show everything" affordance */
.cc-link-btn { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 0; }
.cc-link-btn:hover { color: var(--accent-deep); text-decoration: underline; }
.cc-show-all { display: block; margin: 4px auto 0; text-align: center; }

/* ───────────────── CONTENT ───────────────── */
.cc-content-list { display: flex; flex-direction: column; gap: 12px; }
.cc-content-card { background: var(--card); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); border: 1px solid var(--hair-2); }
.dir-almanac .cc-content-card { background: transparent; border-radius: 0; box-shadow: none; border: none; border-top: 1px solid var(--hair); padding: 20px 0; }
.dir-almanac .cc-content-list > .cc-content-card:first-child { border-top: 1px solid var(--ink); }
.cc-content-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cc-content-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); }
.cc-content-channel { font-size: 12px; color: var(--ink-3); }
.cc-content-badge { font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.cc-badge-awaiting { background: var(--accent-tint); color: var(--accent-deep); }
.cc-badge-draft { background: rgba(42,39,35,0.06); color: var(--ink-2); }
.cc-content-title { font-size: calc(19px * var(--fs)); font-weight: 600; margin: 0 0 7px; letter-spacing: -0.3px; }
.cc-content-excerpt { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; text-wrap: pretty; }
.cc-content-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cc-content-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ───────────────── ALL CLEAR ───────────────── */
.cc-allclear { text-align: center; padding: 50px 20px 40px; display: flex; flex-direction: column; align-items: center; }
.cc-allclear-mini { padding: 60px 20px; }
.cc-allclear-sun { margin-bottom: 22px; animation: floaty 5s ease-in-out infinite; }
.cc-allclear-title { font-size: calc(26px * var(--fs)); font-weight: 600; margin: 0 0 10px; letter-spacing: -0.4px; }
.cc-allclear-sub { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.cc-allclear-rule { width: 40px; height: 1px; background: var(--hair); margin: 28px 0; }
.cc-allclear-haiku { font-size: 15px; line-height: 1.9; color: var(--accent); font-style: italic; margin: 0; }

/* ───────────────── TOAST ───────────────── */
.cc-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 500; padding: 11px 20px;
  border-radius: 12px; box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4); animation: toastIn 0.3s ease both; }

.cc-tweak-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; padding: 0 2px 6px; }

/* ───────────────── KEYFRAMES ───────────────── */
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes settle { 0% { transform: scale(1); } 35% { transform: scale(0.985); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes deckIn { from { transform: translateY(10px); } to { transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes viewIn { from { transform: translateY(6px); } to { transform: translateY(0); } }

.cc-stage[data-motion="on"] .cc-main { animation: viewIn 0.4s ease; }
.cc-stage[data-motion="on"] .cc-section-body > .cc-card { animation: deckIn 0.45s cubic-bezier(0.22,0.61,0.36,1); }
.cc-stage[data-motion="off"] * { animation: none !important; transition: none !important; }
.cc-triage-prompt + * { } 

/* triage prompt strip */
.cc-triage-prompt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: linear-gradient(100deg, var(--accent-tint), var(--accent-tint2)); border: 1px solid var(--accent-tint);
  border-radius: 14px; padding: 14px 18px; margin-bottom: calc(24px * var(--dens)); transition: all 0.18s; }
.cc-triage-prompt:hover { box-shadow: 0 6px 20px -10px var(--accent); transform: translateY(-1px); }
.dir-almanac .cc-triage-prompt { background: transparent; border: 1px solid var(--ink); border-radius: 0; }
.cc-triage-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; position: relative; }
.cc-triage-pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: ripple 2.4s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }
.cc-triage-text { flex: 1; font-size: 14px; color: var(--ink); }
.cc-triage-text strong { font-weight: 700; }
.cc-triage-cta { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   ADDED SURFACES — overlay, calendar, content studio, playbook
   ═══════════════════════════════════════════════════════════ */

/* ── card expand affordances ── */
.cc-card-expand { width: 26px; height: 26px; border-radius: 7px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; opacity: 0.5; transition: all 0.15s; }
.cc-card-expand:hover { background: rgba(42,39,35,0.07); color: var(--ink); opacity: 1; }
.cc-task-open { cursor: pointer; border-radius: 8px; }

/* ── DETAIL OVERLAY ── */
.cc-app { position: relative; }
.cc-overlay { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 26px; background: rgba(28,26,23,0.44); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.plat-ios .cc-overlay { padding: 0; align-items: flex-end; }
.cc-sheet { position: relative; width: 560px; max-width: 100%; max-height: 100%; background: var(--card);
  border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(40,36,28,0.6); display: flex; flex-direction: column;
  overflow: hidden; animation: sheetIn 0.26s cubic-bezier(0.22,0.61,0.36,1); }
.cc-sheet-wide { width: 740px; }
.cc-sheet-narrow { width: 440px; }
.plat-ios .cc-sheet, .plat-ios .cc-sheet-wide, .plat-ios .cc-sheet-narrow { width: 100%; max-height: 90%; border-radius: 24px 24px 0 0; }
.cc-sheet-scroll { overflow: auto; padding: 26px 28px 24px; }
.plat-ios .cc-sheet-scroll { padding: 24px 18px 40px; }
.cc-sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(42,39,35,0.06); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.cc-sheet-close:hover { background: rgba(42,39,35,0.12); color: var(--ink); }
@keyframes sheetIn { from { transform: translateY(16px); } to { transform: translateY(0); } }
.dir-almanac .cc-sheet { background: var(--paper); border-radius: 4px; }

.cc-d-head { margin-bottom: 18px; padding-right: 34px; }
.cc-d-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); }
.cc-d-title { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; margin: 8px 0 0; line-height: 1.25; }
.cc-d-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair-2); }

/* email thread */
.cc-thread { display: flex; flex-direction: column; gap: 13px; }
.cc-msg { border: 1px solid var(--hair-2); border-radius: 14px; padding: 14px 16px; background: var(--paper); }
.cc-msg-me { background: var(--accent-tint2); border-color: var(--accent-tint); }
.cc-msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.cc-msg-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.cc-msg-me .cc-msg-avatar { background: var(--ember); }
.cc-msg-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cc-msg-from { font-weight: 600; font-size: 13.5px; }
.cc-msg-addr { font-size: 11.5px; color: var(--ink-3); }
.cc-msg-time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.cc-msg-body { font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; text-wrap: pretty; }
.cc-d-reply { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.cc-d-reply .cc-reply-label { margin-bottom: 0; }

/* task record */
.cc-d-titlefield { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.25; border: none; background: transparent; resize: none; outline: none; width: 100%; color: var(--ink); margin-top: 8px; font-family: inherit; overflow: hidden; }
.cc-d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cc-d-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cc-d-flabel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.5px; }
.cc-d-flabel svg { color: var(--ink-3); }
.cc-d-input { border: 1px solid var(--hair); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; background: var(--paper); color: var(--ink); outline: none; font-family: inherit; }
.cc-d-input:focus { border-color: var(--accent); }
.cc-d-notes { border: 1px solid var(--hair); border-radius: 12px; padding: 11px 13px; font-size: 13.5px; line-height: 1.6; background: var(--paper); color: var(--ink); outline: none; resize: vertical; font-family: inherit; }
.cc-d-notes:focus { border-color: var(--accent); }
.cc-d-seg { display: inline-flex; background: var(--paper-2); border-radius: 10px; padding: 3px; gap: 2px; width: fit-content; }
.cc-d-segbtn { font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 7px 16px; border-radius: 8px; }
.cc-d-segbtn.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(42,39,35,0.1); }
.cc-d-stepcount { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.cc-substeps { display: flex; flex-direction: column; gap: 2px; }
.cc-substep { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.cc-tick-sm { width: 20px; height: 20px; border-radius: 6px; }
.cc-substep-label { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: var(--ink); font-family: inherit; padding: 4px 0; min-width: 0; }
.cc-substep-label.is-done { color: var(--ink-3); text-decoration: line-through; }
.cc-substep-x { width: 24px; height: 24px; border-radius: 6px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; opacity: 0; flex-shrink: 0; }
.cc-substep:hover .cc-substep-x { opacity: 1; }
.cc-substep-x:hover { background: rgba(42,39,35,0.07); color: var(--ink); }
.cc-substep-add { color: var(--ink-3); }
.cc-substep-plus { display: flex; width: 20px; justify-content: center; color: var(--ink-3); }
.cc-d-source { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--accent); background: var(--accent-tint); padding: 9px 13px; border-radius: 10px; }
.cc-d-source:hover { background: var(--accent-tint2); }
.cc-d-links { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cc-d-links-head { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.cc-d-link { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; background: var(--accent-tint); text-decoration: none; }
.cc-d-link:hover { background: var(--accent-tint2); }
.cc-d-link-label { font-size: 13px; font-weight: 600; color: var(--accent); }
.cc-d-link-url { font-family: var(--mono, monospace); font-size: 11px; color: var(--ink-3); word-break: break-all; }

/* event detail */
.cc-d-eventmeta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cc-d-eventrow { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.cc-d-eventrow svg { color: var(--ink-3); }
.cc-d-desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.cc-d-desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cc-d-reschedule { display: flex; gap: 8px; }
.cc-d-reschedule .cc-d-input { flex: 1; min-width: 0; }
.cc-d-reschedule input[type="time"] { flex: 0 0 auto; width: 110px; }
.cc-d-clash { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ember); background: rgba(189,106,60,0.08); border: 1px solid rgba(189,106,60,0.25); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }

/* ── CALENDAR ── */
.cc-cal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.plat-ios .cc-cal-head { margin-bottom: 12px; }
.cc-cal-nav { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cc-cal-arrow { width: 30px; height: 30px; border-radius: 9px; background: rgba(42,39,35,0.05); font-size: 18px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.cc-cal-arrow:hover { background: rgba(42,39,35,0.1); color: var(--ink); }
.cc-cal-range { font-size: 15.5px; font-weight: 600; min-width: 108px; text-align: center; }
.cc-cal-today { font-size: 12.5px; font-weight: 600; color: var(--accent); padding: 6px 12px; border-radius: 8px; background: var(--accent-tint); }
.cc-cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair-2); }
.cc-cal-legitem { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.cc-cal-taskmark { width: 11px; height: 11px; border-radius: 4px; border: 1.6px solid var(--ink-3); flex-shrink: 0; }

/* month */
.cc-month { border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.cc-month-dow { display: grid; grid-template-columns: repeat(7,1fr); background: var(--paper-2); border-bottom: 1px solid var(--hair); }
.cc-month-dow span { padding: 8px 10px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--ink-3); }
.cc-month-weeks { display: flex; flex-direction: column; }
.cc-mweek { position: relative; }
.cc-mweek-cells { display: grid; grid-template-columns: repeat(7,1fr); }
/* spanning bars for multi-day all-day events, overlaid below the day number */
.cc-mweek-spans { position: absolute; top: 30px; left: 0; right: 0; pointer-events: none; }
.cc-mcell-spanpad { flex: none; }
.cc-mspan { position: absolute; box-sizing: border-box; height: 16px; border-radius: 5px;
  border-left: 2px solid transparent; border-right: 2px solid transparent; background-clip: padding-box;
  background: color-mix(in oklab, var(--cc, var(--accent)) 20%, var(--card));
  box-shadow: inset 3px 0 0 -1px var(--cc, var(--accent));
  color: var(--ink); font-size: 11px; padding-left: 7px; display: flex; align-items: center; overflow: hidden; cursor: pointer; pointer-events: auto; }
.cc-mspan-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-mspan.is-contl { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-width: 0; box-shadow: none; padding-left: 5px; }
.cc-mspan.is-contr { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-width: 0; }
.cc-mcell { min-height: 92px; border-right: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: background 0.15s; overflow: hidden; }
.cc-mcell:nth-child(7n) { border-right: none; }
.cc-mcell:hover { background: var(--paper); }
.cc-mcell.is-out { background: rgba(42,39,35,0.018); }
.cc-mcell.is-out .cc-mcell-num { opacity: 0.45; }
.cc-mcell-num { font-size: 12.5px; font-weight: 600; color: var(--ink-2); align-self: flex-start; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.cc-mcell.is-today .cc-mcell-num { background: var(--accent); color: #fff; border-radius: 50%; }
.cc-mcell-evs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-mev { display: flex; align-items: center; gap: 4px; font-size: 11px; text-align: left; padding: 2px 5px; border-radius: 5px; border-left: 2.5px solid var(--cc, var(--accent)); background: color-mix(in oklab, var(--cc, var(--accent)) 13%, var(--card)); color: var(--ink); width: 100%; overflow: hidden; }
.cc-mev-time { font-family: var(--mono); font-size: 9px; color: var(--ink-3); flex-shrink: 0; }
.cc-mev-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-mev-task { border-left-color: var(--ink-3); background: rgba(42,39,35,0.05); }
.cc-mev-task .cc-cal-taskmark { width: 8px; height: 8px; border-width: 1.4px; }
.cc-mev-clash { box-shadow: inset 0 0 0 1px rgba(189,106,60,0.55); }
.cc-mev-more { font-size: 10px; color: var(--ink-3); padding-left: 5px; }

/* week */
.cc-week { border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.cc-week-head { display: grid; grid-template-columns: 50px repeat(7,1fr); }
.cc-week-allday { display: grid; grid-template-columns: 50px 1fr; }
.cc-week-adgrid { position: relative; display: grid; grid-template-columns: repeat(7,1fr); }
.cc-week-adgrid > .cc-mspan { margin-top: 3px; }
.cc-adspanpad { flex: none; }
.cc-week-head { background: var(--paper-2); border-bottom: 1px solid var(--hair); }
.cc-week-daylabel { padding: 7px 2px; text-align: center; border-left: 1px solid var(--hair-2); display: flex; flex-direction: column; gap: 0; }
.cc-wd-dow { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--ink-3); letter-spacing: 0.4px; }
.cc-wd-num { font-size: 15px; font-weight: 600; }
.cc-week-daylabel.is-today .cc-wd-num { color: var(--accent); }
.cc-week-allday { border-bottom: 1px solid var(--hair); min-height: 26px; }
.cc-allday-lbl { font-size: 8.5px; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; letter-spacing: 0.4px; }
.cc-week-adcell { border-left: 1px solid var(--hair-2); padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-adchip { font-size: 10px; padding: 2px 5px; border-radius: 5px; background: color-mix(in oklab, var(--cc, var(--accent)) 16%, var(--card)); border-left: 2.5px solid var(--cc, var(--accent)); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-adchip-task { background: rgba(42,39,35,0.05); border-left-color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.cc-week-body { display: grid; grid-template-columns: 50px repeat(7,1fr); position: relative; max-height: 462px; overflow-y: auto; }
.plat-ios .cc-week-body { max-height: 380px; }
.cc-week-times { display: flex; flex-direction: column; }
.cc-week-hour { height: 38px; position: relative; }
.cc-week-hour span { position: absolute; top: -7px; left: 0; width: 44px; text-align: right; padding-right: 6px; white-space: nowrap; font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.cc-week-col { position: relative; border-left: 1px solid var(--hair-2); cursor: pointer; }
.cc-week-col.is-today { background: rgba(61,90,76,0.035); }
.cc-week-slot { height: 38px; border-bottom: 1px solid var(--hair-2); }
.cc-wev { position: absolute; left: 1px; right: 1px; border-radius: 6px; padding: 2px 6px; text-align: left; overflow: hidden; background: color-mix(in oklab, var(--cc, var(--accent)) 17%, var(--card)); border-left: 2.5px solid var(--cc, var(--accent)); display: flex; flex-direction: column; gap: 1px; }
.cc-wev-t { font-size: 10.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.cc-wev-time { font-family: var(--mono); font-size: 8.5px; color: var(--ink-2); display: flex; gap: 4px; align-items: center; }
.cc-wev-clash { box-shadow: inset 0 0 0 1.5px var(--ember); }
.cc-wev-clashflag { color: var(--ember); font-weight: 700; text-transform: uppercase; }

/* agenda */
.cc-agenda-view { display: flex; flex-direction: column; }
.cc-agday { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair-2); }
.cc-agday:first-child { border-top: none; }
.cc-agday-date { width: 46px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.cc-agday-dow { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--ink-3); }
.cc-agday-num { font-size: 20px; font-weight: 600; line-height: 1.1; }
.cc-agday.is-today .cc-agday-num { color: var(--accent); }
.cc-agday-today { font-size: 8.5px; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: 0.4px; }
.cc-agday-list { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cc-agday-empty { font-size: 13px; color: var(--ink-3); font-style: italic; padding: 8px 2px; cursor: pointer; }
.cc-agday-empty span { color: var(--accent); font-style: normal; font-weight: 600; }
.cc-agrow { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 11px; text-align: left; background: var(--card); border: 1px solid var(--hair-2); box-shadow: var(--shadow-card); width: 100%; }
.dir-almanac .cc-agrow { box-shadow: none; border-radius: 0; border: none; border-bottom: 1px solid var(--hair); }
.cc-agrow:hover { border-color: var(--hair); }
.cc-agrow-time { font-family: var(--mono); font-size: 12px; color: var(--ink-2); min-width: 50px; flex-shrink: 0; }
.cc-agrow-title { flex: 1; font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-agrow-clash .cc-agrow-title { color: var(--ember); }
.cc-agrow-task { background: transparent; border-style: dashed; box-shadow: none; }
.cc-agrow-tasktag { font-size: 10px; text-transform: uppercase; color: var(--ink-3); letter-spacing: 0.4px; white-space: nowrap; }

/* ── CONTENT STUDIO ── */
.cc-pipeline { display: flex; align-items: center; gap: 4px; margin-bottom: 20px; padding: 12px 14px; background: var(--paper-2); border-radius: 14px; }
.dir-almanac .cc-pipeline { background: transparent; border: 1px solid var(--hair); border-radius: 0; }
.cc-pipe { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 10px; transition: all 0.15s; }
.cc-pipe:hover { background: rgba(42,39,35,0.04); }
.cc-pipe.is-on { background: var(--card); box-shadow: var(--shadow-card); }
.cc-pipe-n { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-pipe-l { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); }
.cc-pipe-arrow { color: var(--ink-3); font-size: 13px; flex-shrink: 0; }
.cc-studio-stages, .cc-drafts-filter { margin-bottom: 18px; }
.cc-stage-body { animation: viewIn 0.3s ease; }
.cc-stage-intro { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 0 18px; max-width: 56ch; text-wrap: pretty; }

.cc-source-list { display: flex; flex-direction: column; gap: 12px; }
.cc-source-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--hair-2); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-card); }
.dir-almanac .cc-source-card { box-shadow: none; border-radius: 0; border: none; border-top: 1px solid var(--hair); }
.cc-source-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-tint); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-source-main { flex: 1; min-width: 0; }
.cc-source-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.cc-source-kind { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); }
.cc-source-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.cc-source-title { font-size: 16px; font-weight: 600; margin: 0 0 5px; letter-spacing: -0.2px; }
.cc-source-detail { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0; text-wrap: pretty; }
.cc-source-used { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-tint2); padding: 2px 8px; border-radius: 6px; }
.cc-source-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cc-source-tag { font-size: 10.5px; color: var(--ink-2); background: var(--accent-tint); padding: 2px 9px; border-radius: 7px; }

/* teaching ideas (backburner) */
.cc-idea-add { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.cc-idea-input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--hair-2); border-radius: 11px; padding: 10px 13px; }
.cc-idea-input:focus { outline: none; border-color: var(--accent); }
.cc-idea-addmore { font-size: 12px; color: var(--ink-3); background: none; border: none; cursor: pointer; white-space: nowrap; padding: 4px 6px; }
.cc-idea-addmore:hover { color: var(--accent); }
.cc-idea-note-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--card); border: 1px solid var(--hair-2); border-radius: 11px; padding: 9px 13px; margin-bottom: 14px; resize: vertical; line-height: 1.5; }
.cc-idea-note-input:focus { outline: none; border-color: var(--accent); }
.cc-idea-list { display: flex; flex-direction: column; gap: 10px; }
.cc-idea-card { display: flex; align-items: flex-start; gap: 14px; background: var(--card); border: 1px solid var(--hair-2); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-card); }
.dir-almanac .cc-idea-card { box-shadow: none; border-radius: 0; border: none; border-top: 1px solid var(--hair); }
.cc-idea-card.is-editing { flex-direction: column; align-items: stretch; gap: 9px; }
.cc-idea-card.is-done { opacity: 0.62; }
.cc-idea-main { flex: 1; min-width: 0; }
.cc-idea-title { font-size: 15.5px; font-weight: 600; margin: 0; letter-spacing: -0.2px; line-height: 1.35; }
.cc-idea-card.is-done .cc-idea-title { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.cc-idea-note { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 4px 0 0; text-wrap: pretty; }
.cc-idea-acts { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.cc-idea-act { font-size: 12px; color: var(--ink-2); background: none; border: 1px solid transparent; border-radius: 8px; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.cc-idea-act:hover { color: var(--accent); background: var(--accent-tint); }
.cc-idea-del { font-size: 17px; line-height: 1; color: var(--ink-3); padding: 2px 8px; }
.cc-idea-del:hover { color: #b4452f; background: color-mix(in oklab, #b4452f 12%, var(--card)); }
.cc-idea-done-group { margin-top: 18px; }
.cc-idea-done-toggle { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: none; border: none; cursor: pointer; padding: 6px 0; margin-bottom: 8px; }
.cc-idea-done-toggle:hover { color: var(--accent); }

/* content folders (Settings): one row per picked Drive folder + per-account add */
.cc-drive-folder { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-top: 8px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 10px; }
.cc-drive-folder-main { flex: 1; min-width: 0; }
.cc-drive-folder-name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-drive-folder-acct { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); margin-top: 2px; }
.cc-drive-accounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cc-drive-accounts .cc-conn-btn:disabled { opacity: .5; cursor: not-allowed; }
.cc-source-quotes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cc-source-quote { margin: 0; padding: 8px 14px; border-left: 2px solid var(--accent); font-size: 13.5px; font-style: italic; color: var(--ink); background: var(--accent-tint2); border-radius: 0 8px 8px 0; line-height: 1.5; }

.cc-sugg-list { display: flex; flex-direction: column; gap: 14px; }
.cc-suggcard { background: linear-gradient(180deg, var(--accent-tint2), var(--card)); border: 1px solid var(--accent-tint); border-radius: 16px; padding: 18px 20px; }
.dir-almanac .cc-suggcard { background: transparent; border-radius: 0; border: none; border-top: 1px solid var(--ink); }
.cc-suggcard-head { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); margin-bottom: 9px; }
.cc-suggcard-prompt { font-size: 16.5px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.35; margin-bottom: 6px; }
.cc-suggcard-rationale { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 13px; text-wrap: pretty; }
.cc-suggcard-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cc-chanchip { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; color: var(--cc, var(--accent)); background: color-mix(in oklab, var(--cc, var(--accent)) 14%, var(--card)); white-space: nowrap; }

.cc-draft-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.plat-ios .cc-draft-grid { grid-template-columns: 1fr; }
.cc-draftcard { text-align: left; background: var(--card); border: 1px solid var(--hair-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.cc-draftcard:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(42,39,35,0.06), 0 18px 40px -20px rgba(42,39,35,0.45); }
.cc-draftcard-thumb { position: relative; height: 148px; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--hair-2); }
.cc-draftcard-thumb .cc-prev { transform: scale(0.6); transform-origin: top left; width: 166.6%; pointer-events: none; border: none; }
.cc-draftcard-veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, var(--card)); pointer-events: none; }
.cc-draftcard-foot { display: flex; align-items: center; gap: 8px; padding: 11px 13px 2px; }
.cc-draftcard-status { font-size: 11px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.cc-dstatus-scheduled { color: var(--accent); font-weight: 600; }
.cc-draftcard-title { padding: 4px 13px 14px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.3; }

/* channel previews */
.cc-prev { font-family: var(--sans); background: #fff; color: #1c1a17; }
.cc-prev-ig, .cc-prev-fb { border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.cc-ig-top { display: flex; align-items: center; gap: 8px; padding: 9px 11px; }
.cc-ig-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--ember), var(--accent)); flex-shrink: 0; }
.cc-ig-handle { font-size: 13px; font-weight: 600; }
.cc-ig-more { margin-left: auto; color: var(--ink-3); letter-spacing: 1px; }
.cc-ig-actions { display: flex; gap: 14px; padding: 9px 12px 4px; font-size: 17px; color: #1c1a17; }
.cc-ig-caption { font-size: 13px; line-height: 1.5; padding: 2px 12px 13px; white-space: pre-wrap; text-wrap: pretty; }
.cc-fb-top { display: flex; align-items: center; gap: 9px; padding: 11px; }
.cc-fb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.cc-fb-id { display: flex; flex-direction: column; line-height: 1.25; }
.cc-fb-id strong { font-size: 13.5px; font-weight: 600; }
.cc-fb-id span { font-size: 11px; color: var(--ink-3); }
.cc-fb-text { font-size: 13.5px; line-height: 1.5; padding: 0 12px 11px; white-space: pre-wrap; text-wrap: pretty; }
.cc-fb-actions { display: flex; justify-content: space-around; padding: 9px; border-top: 1px solid var(--hair-2); font-size: 12px; color: var(--ink-2); }
.cc-prev-nl { border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.cc-nl-bar { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--hair); font-size: 11.5px; }
.cc-nl-from { font-weight: 600; }
.cc-nl-via { color: var(--ink-3); font-family: var(--mono); }
.cc-nl-subject { font-size: 17px; font-weight: 600; padding: 16px 16px 4px; letter-spacing: -0.2px; }
.cc-nl-body { padding: 4px 16px 4px; }
.cc-nl-body p { font-size: 13.5px; line-height: 1.6; margin: 0 0 11px; color: #2a2723; }
.cc-nl-foot { padding: 12px 16px; border-top: 1px solid var(--hair-2); font-size: 10.5px; color: var(--ink-3); text-align: center; }
.cc-prev-blog { background: #fff; border: 1px solid var(--hair); border-radius: 8px; padding: 20px 22px; }
.cc-blog-eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.cc-blog-title { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; margin: 8px 0 6px; line-height: 1.2; }
.cc-blog-byline { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.cc-blog-body p { font-size: 14px; line-height: 1.65; margin: 0 0 12px; color: #2a2723; }
.cc-media-slot { background-image: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 9px, var(--paper) 9px, var(--paper) 18px); display: flex; align-items: center; justify-content: center; width: 100%; }
.cc-media-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: rgba(255,253,248,0.82); padding: 3px 8px; border-radius: 6px; }

/* draft workspace */
.cc-draftws-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.plat-ios .cc-draftws-cols { grid-template-columns: 1fr; gap: 18px; }
.cc-draftws-preview .cc-prev { width: 100%; }
.cc-draftws-side { display: flex; flex-direction: column; gap: 16px; }
.cc-fed { background: var(--paper); border: 1px solid var(--hair-2); border-radius: 14px; padding: 15px; }
.cc-fed-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-3); margin-bottom: 11px; }
.cc-fed-item { display: flex; gap: 10px; margin-bottom: 11px; }
.cc-fed-ic { color: var(--accent); margin-top: 1px; flex-shrink: 0; }
.cc-fed-t { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cc-fed-m { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.cc-fed-empty { font-size: 13px; color: var(--ink-3); font-style: italic; }
.cc-fed-playbook { display: flex; gap: 7px; font-size: 12px; color: var(--accent); align-items: center; padding-top: 10px; border-top: 1px solid var(--hair-2); }
.cc-draftws-actions { display: flex; flex-direction: column; gap: 9px; }
.cc-draftws-status { font-size: 13px; font-weight: 600; color: var(--accent); text-align: center; padding: 10px; background: var(--accent-tint); border-radius: 10px; }

/* ── PLAYBOOK ── */
.cc-pb-letter { margin-bottom: 24px; }
.cc-pb-intro { width: 100%; border: none; background: transparent; resize: none; outline: none; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--ink); letter-spacing: -0.2px; overflow: hidden; text-wrap: pretty; }
.cc-pb-principles { display: flex; flex-direction: column; gap: 1px; }
.cc-pb-rule { display: flex; align-items: flex-start; gap: 14px; padding: 11px 12px; border-radius: 12px; transition: background 0.15s; }
.cc-pb-rule:hover { background: var(--paper-2); }
.cc-pb-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); padding-top: 2px; min-width: 22px; flex-shrink: 0; display: flex; }
.cc-pb-ruletext { flex: 1; border: none; background: transparent; resize: none; outline: none; font-family: var(--sans); font-size: 15.5px; line-height: 1.55; color: var(--ink); overflow: hidden; text-wrap: pretty; padding: 0; min-width: 0; }
.cc-pb-remove { width: 24px; height: 24px; border-radius: 6px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; opacity: 0; flex-shrink: 0; }
.cc-pb-rule:hover .cc-pb-remove { opacity: 1; }
.cc-pb-remove:hover { background: rgba(42,39,35,0.08); color: var(--ember); }
.cc-pb-add { color: var(--ink-3); }
.cc-pb-dials { display: flex; flex-wrap: wrap; gap: 24px; }
.cc-pb-dial { display: flex; flex-direction: column; gap: 9px; }
.cc-pb-dial-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }

.cc-conn-list { display: flex; flex-direction: column; gap: 8px; }
.cc-conn { display: flex; align-items: center; gap: 13px; background: var(--card); border: 1px solid var(--hair-2); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow-card); }
.dir-almanac .cc-conn { box-shadow: none; border-radius: 0; border: none; border-top: 1px solid var(--hair); }
.cc-conn.is-attention { border-color: rgba(189,106,60,0.4); }
.cc-conn-ic { width: 34px; height: 34px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-conn-main { flex: 1; min-width: 0; }
.cc-conn-name { font-size: 14px; font-weight: 600; }
.cc-conn-kind { font-size: 12px; color: var(--ink-3); }
.cc-conn-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.cc-conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cc-conn-btn { font-size: 12.5px; font-weight: 600; color: var(--ember); padding: 7px 13px; border-radius: 9px; background: rgba(189,106,60,0.1); white-space: nowrap; }
.cc-conn-btn:hover { background: rgba(189,106,60,0.18); }
.cc-conn-relink { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--ember); padding: 3px 9px; border-radius: 7px; background: rgba(189,106,60,0.1); white-space: nowrap; }
.cc-conn-relink:hover { background: rgba(189,106,60,0.18); }

/* ───────────────── LIVE SHELL OVERRIDES ─────────────────
   The prototype centred a device frame inside .cc-stage-scroll.
   The live app drops the frames: .cc-app mounts straight into the
   full-viewport stage and fills it (desktop sidebar / mobile tabbar
   are still driven by the .plat-mac / .plat-ios classes). */
.cc-stage-live { height: 100vh; height: 100dvh; }
.cc-stage-live > .cc-app { flex: 1; min-height: 0; height: auto; }

/* ───────────────── LOGIN GATE (server-rendered, pre-React) ───────────────── */
.cc-login-wrap {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: linear-gradient(170deg, #e7d9c2 0%, #cabfa9 55%, #b3a892 100%);
}
.cc-login {
  width: 100%; max-width: 360px; background: var(--paper, #f6f1e7); border-radius: 18px;
  padding: 36px 30px 30px; box-shadow: 0 30px 80px -20px rgba(40,36,28,0.45), 0 0 0 1px rgba(42,39,35,0.06);
  display: flex; flex-direction: column; align-items: stretch; text-align: center;
}
.cc-login-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent, #3d5a4c);
  margin: 0 auto 16px; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.cc-login-mark::after {
  content: ''; position: absolute; left: 8px; right: 8px; top: 22px; height: 9px;
  border-radius: 0 0 12px 12px; background: radial-gradient(ellipse at 50% 0, rgba(255,255,255,0.85), transparent 70%);
}
.cc-login-title { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--ink, #2a2723); margin: 0 0 18px; }
.cc-login-error { font-size: 13px; color: #b3503c; margin: 0 0 14px; }
.cc-login-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--hair, rgba(42,39,35,0.14)); background: #fff; font-size: 15px; color: var(--ink, #2a2723);
  outline: none; margin-bottom: 12px;
}
.cc-login-input:focus { border-color: var(--accent, #3d5a4c); }
.cc-login-btn {
  width: 100%; padding: 12px; border-radius: 11px; background: var(--accent, #3d5a4c); color: #fff;
  font-size: 15px; font-weight: 600;
}
.cc-login-btn:hover { background: var(--accent-deep, #2f4a3d); }

/* ───────────────── BOOT / ERROR SPLASH (live mode) ───────────────── */
.cc-boot { display: flex; align-items: center; justify-content: center; }
.cc-boot-inner { text-align: center; max-width: 360px; padding: 24px; }
.cc-boot-msg { font-size: 17px; font-weight: 500; color: #3a3325; opacity: .82; }
.cc-boot-sub { margin: 10px 0 18px; font-size: 12px; color: #5a513f; opacity: .6; word-break: break-word; }

/* ───────────────── PROJECT CHIP (card "Part of: X") ───────────────── */
.cc-project-chip {
  font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-tint);
  padding: 2px 8px; border-radius: 6px; white-space: nowrap; letter-spacing: 0.2px;
}

/* ───────────────── WHAT CLAUDE REMEMBERS (memory panel) ───────────────── */
.cc-mem-block { margin-top: 12px; }
.cc-mem-subhead { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.9px; color: var(--ink-2); margin: 0 0 8px; }
.cc-mem-project {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-bottom: 7px;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 11px;
}
.cc-mem-project-main { flex: 1; min-width: 0; }
.cc-mem-project-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.cc-mem-project-summary { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.cc-mem-project-acts { flex-shrink: 0; }
.cc-mem-factgroup { margin-bottom: 10px; }
.cc-mem-factscope { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--ink-3); margin-bottom: 4px; }
.cc-mem-fact {
  display: flex; align-items: center; gap: 8px; padding: 7px 11px; margin-bottom: 5px;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 9px;
}
.cc-mem-fact.is-pinned { border-color: var(--accent); background: var(--accent-tint2); }
.cc-mem-fact-body { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); }
.cc-mem-fact-acts { flex-shrink: 0; display: flex; gap: 5px; }
.cc-mem-btn {
  font-size: 11px; font-weight: 500; color: var(--ink-2); background: rgba(42,39,35,0.05);
  padding: 3px 9px; border-radius: 7px; white-space: nowrap; transition: all 0.14s;
}
.cc-mem-btn:hover { background: rgba(42,39,35,0.1); }
.cc-mem-fact.is-pinned .cc-mem-btn { color: var(--accent); }
.cc-mem-forget:hover { background: rgba(179,80,60,0.12); color: #b3503c; }

/* ── Newsletter stage (the monthly roundup) ── */
.cc-nl-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cc-nl-chip { font-size: 12px; font-weight: 500; color: var(--accent); background: var(--accent-tint2);
  padding: 4px 11px; border-radius: 8px; white-space: nowrap; }
.cc-nl-chip-quiet { color: var(--ink-3); background: rgba(42,39,35,0.05); }
.cc-nl-start { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cc-nl-start p { max-width: 48ch; margin: 0; }
.cc-nl-issue { display: flex; flex-direction: column; gap: 12px; }
.cc-nl-waiting { font-size: 14px; color: var(--ink-2); background: var(--accent-tint2); border-radius: 11px;
  padding: 14px 16px; line-height: 1.5; }
.cc-nl-label { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.cc-nl-subject { width: 100%; border: 1px solid var(--hair); border-radius: 10px; padding: 11px 14px;
  font-size: 16px; font-weight: 500; color: var(--ink); background: #fff; box-sizing: border-box; }
.cc-nl-subject:focus { border-color: var(--accent); outline: none; }
.cc-nl-intro { width: 100%; border: 1px solid var(--hair); border-radius: 11px; background: var(--accent-tint2);
  padding: 14px 16px; font-size: 15px; line-height: 1.6; color: var(--ink); resize: vertical; box-sizing: border-box;
  font-family: inherit; }
.cc-nl-intro:focus { border-color: var(--accent); outline: none; }
.cc-nl-contents { border: 1px solid var(--hair); border-radius: 13px; padding: 6px 18px 14px; background: #fff; }
.cc-nl-block { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.cc-nl-block:last-child { border-bottom: none; }
.cc-nl-block h4 { font-size: 15px; color: var(--accent); margin: 4px 0 10px; }
.cc-nl-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 5px; }
.cc-nl-res { display: block; font-size: 14px; color: var(--ink); text-decoration: none; padding: 4px 0; font-weight: 500; }
.cc-nl-res:hover { color: var(--accent); }
.cc-nl-ev { padding: 7px 0; }
.cc-nl-ev-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cc-nl-ev-avail { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--accent);
  background: var(--accent-tint2); padding: 2px 8px; border-radius: 6px; margin-left: 8px; }
.cc-nl-ev-blurb { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: 3px; }
.cc-nl-camp { font-size: 13px; color: var(--ink-2); }
.cc-nl-camp a { color: var(--accent); }
.cc-nl-actions { margin-top: 6px; }
.cc-nl-guide { margin: 0 0 20px; padding: 14px 18px 14px 34px; background: var(--accent-tint2); border-radius: 12px;
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.cc-nl-guide li { margin: 0 0 6px; }
.cc-nl-guide li:last-child { margin-bottom: 0; }
.cc-nl-guide b { color: var(--accent); }
/* newsletter event rows (checkbox select) + resource duration */
.cc-nl-res-detail { color: var(--ink-3); font-weight: 500; }
.cc-nl-hint { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.cc-nl-ev { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--hair); cursor: pointer; }
.cc-nl-ev:last-child { border-bottom: none; }
.cc-nl-ev.is-off { opacity: 0.5; }
.cc-nl-check { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.cc-nl-ev-main { display: flex; flex-direction: column; gap: 4px; }
.cc-nl-ev-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-nl-ev-fmt { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cc-nl-ev-dur { font-size: 11px; font-weight: 600; color: var(--ink-2); background: rgba(42,39,35,0.05); padding: 1px 7px; border-radius: 6px; }

/* ── Newsletter: split editor + live preview ── */
.cc-nl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 980px) { .cc-nl-split { grid-template-columns: 1fr; } }
.cc-nl-editor { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cc-nl-preview { position: sticky; top: 16px; }
.cc-nl-preview-head { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.cc-nl-frame { width: 100%; height: 760px; border: 1px solid var(--hair); border-radius: 12px; background: #f1ede4; box-shadow: 0 2px 14px rgba(42,39,35,0.07); }
.cc-nl-frame-stub { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-3); font-size: 14px; padding: 30px; box-sizing: border-box; }

/* image picker */
.cc-nl-img { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0 2px; }
.cc-nl-img.is-compact { padding: 4px 0 0; }
.cc-nl-img-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hair); flex: none; }
.cc-nl-img-none { width: 96px; height: 64px; border-radius: 8px; border: 1px dashed var(--hair); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-3); flex: none; }
.cc-nl-img-ctrls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-nl-img-src { font-size: 11px; color: var(--ink-3); width: 100%; }
.cc-nl-img-btn { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-tint2); border: none; cursor: pointer; padding: 4px 10px; border-radius: 7px; }
.cc-nl-img-btn:hover { background: rgba(61,90,76,0.16); }
.cc-nl-img-url { flex: 1; min-width: 130px; border: 1px solid var(--hair); border-radius: 7px; padding: 5px 9px; font-size: 12px; color: var(--ink); }

/* per-event blurb editor */
.cc-nl-blurb { width: 100%; border: 1px solid var(--hair); border-radius: 9px; background: var(--accent-tint2); padding: 9px 11px; font-size: 13.5px; line-height: 1.5; color: var(--ink); resize: vertical; box-sizing: border-box; font-family: inherit; margin-top: 6px; }
.cc-nl-blurb:focus { border-color: var(--accent); outline: none; }
/* resource rows with featured thumbnail */
.cc-nl-resrow { display: flex; gap: 12px; align-items: center; padding: 7px 0; }
.cc-nl-res-thumb { width: 60px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hair); flex: none; }
.cc-nl-res-thumb-none { background: repeating-linear-gradient(45deg, rgba(42,39,35,0.03), rgba(42,39,35,0.03) 6px, transparent 6px, transparent 12px); }
.cc-nl-resrow .cc-nl-res { padding: 0; }
.cc-nl-standing { display: flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 2px; cursor: pointer; }
.cc-nl-standing input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ── Emails hub: event-email cards + editor ── */
.cc-emails-sub { margin-bottom: 18px; }
.cc-ee-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 16px; }
.cc-ee-select { border: 1px solid var(--hair); border-radius: 9px; padding: 8px 11px; font-size: 14px; color: var(--ink); background: #fff; font-family: inherit; max-width: 260px; }
.cc-ee-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cc-ee-card { display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.cc-ee-card:hover { border-color: var(--accent); }
.cc-ee-stage { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint2); padding: 2px 9px; border-radius: 6px; }
.cc-ee-stage-last_call { color: #b3503c; background: rgba(179,80,60,0.1); }
.cc-ee-stage-reminder { color: #b07d1e; background: rgba(176,125,30,0.1); }
.cc-ee-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.cc-ee-meta { font-size: 12.5px; color: var(--ink-3); }
.cc-ee-back { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0 0 6px; align-self: flex-start; }
.cc-ee-editor { margin-top: 4px; }
.cc-nl-sentnote { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.cc-nl-history { margin-top: 26px; }
.cc-nl-hist-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--ink-2); }
.cc-nl-hist-row:last-child { border-bottom: none; }
.cc-nl-hist-date { color: var(--ink-3); white-space: nowrap; }
