@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --line: #d8d8d8;
  --muted: #686868;
  --blue: #000000;
  --blue-soft: #f0f0f0;
  --green: #000000;
  --green-soft: #eeeeee;
  --orange: #303030;
  --orange-soft: #eeeeee;
  --red: #000000;
  --red-soft: #e5e5e5;
  --radius: 18px;
  --layout-gap: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.045);
}

* { box-sizing: border-box; }

.health-update, .health-caption { color: var(--muted); font-size: 0.8rem; line-height: 1.65; }
.health-update { margin: 0 0 20px; }
.health-measurements { display: grid; grid-template-columns: 1fr 1fr; gap: var(--layout-gap); align-items: start; }
.health-card, .health-coaching { padding: 26px; }
.health-card h3 { margin: 0 0 20px; font-size: 1.3rem; }
.health-card p, .health-coaching p { line-height: 1.75; }
.health-metrics { margin: 0; }
.health-card h4 { margin: 24px 0 6px; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.health-card h3 + h4 { margin-top: 0; }
.health-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.health-metrics > div:last-child { border-bottom: 0; }
.health-metrics dt { font-size: 0.85rem; color: var(--muted); }
.health-metrics dd { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; font-weight: 500; text-align: right; white-space: nowrap; }
.health-coaching { margin-top: var(--layout-gap); }
.health-coaching h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); }
.health-reflection { max-width: 90ch; }
.health-advice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 24px 0; }
.health-advice-section h3 { font-size: 1rem; margin: 0 0 10px; }
.health-advice-section p { margin: 0; }
.health-details { border-top: 1px solid var(--line); padding-top: 16px; font-size: 0.85rem; overflow-wrap: anywhere; }
.health-details summary { cursor: pointer; font-weight: 500; }
.health-details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.health-details ul { padding-left: 20px; line-height: 1.8; }
.health-details .health-advice-section { margin-top: 20px; }
@media (max-width: 760px) {
  .health-measurements, .health-advice-grid { grid-template-columns: 1fr; }
  .health-card, .health-coaching { padding: 20px; }
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
}

body { margin: 0; min-width: 320px; background: var(--paper); font-weight: 300; }

button, select { font: inherit; }
a { color: inherit; }

svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 14px;
  top: -60px;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus { top: 14px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell { min-height: 100vh; }
.page { min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 88px;
  padding: 12px clamp(22px, 3.2vw, 52px);
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.topbar-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; }
.brand-mark img { width: 21px; height: 21px; display: block; object-fit: contain; }
.brand-copy { min-width: 0; display: grid; gap: 1px; }
.brand-copy strong { font: 520 14px/1.2 "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand-copy > span { max-width: 150px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }

.top-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
}
.top-nav-item {
  position: relative;
  min-width: 74px;
  min-height: 60px;
  padding: 8px 10px 7px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 12px;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 430;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}
.top-nav-item svg { width: 19px; height: 19px; }
.top-nav-item:hover, .top-nav-item:focus-visible { color: var(--ink); background: var(--blue-soft); }
.top-nav-item.is-active { color: white; background: var(--ink); }
.menu-notification-badge {
  position: absolute;
  top: 3px;
  right: 5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: 0 2px 7px rgba(22, 36, 56, .22);
  font: 720 9px/1 "Inter", sans-serif;
  letter-spacing: 0;
}
.menu-notification-badge[hidden] { display: none; }
.top-nav-item.is-active .menu-notification-badge { color: var(--ink); background: white; border-color: var(--ink); }

.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; justify-self: end; }
.utility-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.utility-button:hover, .utility-button:focus-visible, .utility-button.is-active { border-color: var(--ink); color: white; background: var(--ink); }
.utility-button svg { width: 19px; height: 19px; }
.theme-toggle[aria-pressed="true"] { border-color: var(--ink); color: white; background: var(--ink); }

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.utility-button:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, [data-card-href]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

main { padding: 34px clamp(22px, 4vw, 64px) 72px; }

h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
h1 { max-width: 720px; font-size: clamp(38px, 4.6vw, 68px); line-height: .92; }
h2 { font-size: clamp(34px, 3.3vw, 52px); line-height: .98; }
h3 { font-size: 25px; line-height: 1.08; }
h4 { font-weight: 300 !important; }

.dashboard-view[hidden] { display: none; }
.dashboard-view { width: min(100%, 1560px); margin: 0 auto; }
.view-heading {
  min-height: 112px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 8vw, 120px);
}
.view-heading h2 { font-size: clamp(48px, 5.8vw, 84px); letter-spacing: -.065em; }
.view-heading > p { max-width: 560px; margin: 0 0 7px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.today-grid { margin-top: var(--layout-gap); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: var(--layout-gap); }
.gmail-panels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.today-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow); }
.today-shortcuts a { min-height: 160px; padding: 22px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.today-shortcuts a:nth-child(odd) { border-right: 1px solid var(--line); }
.today-shortcuts a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.today-shortcuts a:hover, .today-shortcuts a:focus-visible { color: white; background: var(--ink); outline-offset: -3px; }
.today-shortcuts span { color: var(--muted); font: 500 11px/1 "Space Grotesk", sans-serif; letter-spacing: .12em; }
.today-shortcuts a:hover span, .today-shortcuts a:focus-visible span, .today-shortcuts a:hover small, .today-shortcuts a:focus-visible small { color: rgba(255,255,255,.65); }
.today-shortcuts strong { margin-top: auto; font: 560 22px/1.1 "Space Grotesk", sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.today-shortcuts small { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.today-shortcuts-wide { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.today-shortcuts-wide a { min-height: 132px; border-right: 1px solid var(--line); border-bottom: 0; }
.today-shortcuts-wide a:nth-child(odd), .today-shortcuts-wide a:nth-child(-n+2) { border-bottom: 0; }
.today-shortcuts-wide a:last-child { border-right: 0; }

.intel-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: var(--layout-gap); align-items: start; }
.workflow-panel { min-width: 0; padding: 30px; border: 1px solid var(--ink); border-radius: var(--radius); color: white; background: var(--ink); box-shadow: var(--shadow); }
.workflow-panel > .eyebrow { color: rgba(255,255,255,.58); }
.workflow-panel h3 { margin-top: 7px; font-size: clamp(30px, 3vw, 44px); }
.workflow-list { margin: 32px 0 0; padding: 0; list-style: none; }
.workflow-list li { padding: 20px 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.workflow-list li > span { color: rgba(255,255,255,.48); font: 500 11px/1.5 "Space Grotesk", sans-serif; letter-spacing: .1em; }
.workflow-list strong { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 540; text-transform: uppercase; }
.workflow-list p { margin: 7px 0 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.55; }
.placeholder-status { margin-top: 16px; padding-top: 18px; display: block; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.52); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.ai-intel-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: var(--layout-gap); align-items: start; }
.ai-intel-inbox-head { min-height: 102px; }
.ai-intel-head-stats { min-width: 150px; display: grid; justify-items: end; gap: 4px; text-align: right; }
.ai-intel-head-stats strong { color: white; font: 520 34px/.9 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.ai-intel-head-stats span { max-width: 210px; color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.35; }
.ai-intel-toolbar {
  margin: 0 calc(var(--panel-padding) * -1);
  padding: 15px var(--panel-padding);
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .65fr) minmax(150px, .65fr);
  grid-template-areas: "filters filters mark" "search source sort";
  align-items: stretch;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
}
.ai-intel-filter-group { grid-area: filters; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.ai-intel-filter-group button, .ai-intel-mark-all { min-height: 38px; padding: 8px 12px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.ai-intel-filter-group button { min-width: 0; overflow-wrap: anywhere; }
.ai-intel-filter-group button + button { border-left: 1px solid var(--line); }
.ai-intel-filter-group button[aria-pressed="true"] { color: white; background: var(--ink); }
.ai-intel-source-filter { min-width: 0; margin-left: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; }
.ai-intel-source-choice { grid-area: source; }
.ai-intel-sort-choice { grid-area: sort; }
.ai-intel-source-filter select { width: 100%; max-width: none; min-height: 38px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; text-overflow: ellipsis; }
.ai-intel-mark-all { grid-area: mark; min-width: max-content; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); background: white; white-space: nowrap; }
.ai-intel-mark-all:hover, .ai-intel-mark-all:focus-visible { color: white; background: var(--ink); }
.ai-intel-mark-all:disabled { opacity: .45; cursor: default; }

.ai-intel-feed { margin: 0 calc(var(--panel-padding) * -1) calc(var(--panel-padding) * -1); padding: 0; list-style: none; }
.ai-intel-feed > li { min-height: 164px; padding: 22px var(--panel-padding); display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 24px; border-bottom: 1px solid var(--line); transition: background 150ms ease, opacity 150ms ease; }
.ai-intel-feed > li:last-child { border-bottom: 0; }
.ai-intel-feed > li:hover { background: #fafafa; }
.ai-intel-feed > li.is-read { opacity: .55; }
.ai-intel-feed > li.empty-state { min-height: 250px; display: grid; grid-template-columns: 1fr; place-items: center; text-align: center; }
.ai-intel-item-copy { min-width: 0; }
.ai-intel-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.ai-intel-signal, .ai-intel-source-kind { padding: 5px 7px; border-radius: 999px; color: var(--ink); background: #ededed; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ai-intel-signal.is-capability { color: white; background: var(--ink); }
.ai-intel-first-party { font-weight: 700; color: var(--ink); }
.ai-intel-item-title { margin-top: 12px; font-size: clamp(20px, 1.65vw, 27px); line-height: 1.16; text-transform: none; }
.ai-intel-item-title a { text-decoration: none; }
.ai-intel-item-title a:hover, .ai-intel-item-title a:focus-visible { text-decoration: underline; }
.ai-intel-item-summary { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ai-intel-why { margin: 12px 0 0; display: flex; align-items: baseline; gap: 7px; color: var(--ink); font-size: 12px; line-height: 1.45; }
.ai-intel-why strong { flex: 0 0 auto; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ai-intel-item-actions { display: grid; align-content: center; gap: 9px; }
.ai-intel-item-actions button { min-height: 40px; padding: 9px 11px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); background: white; font-size: 12px; font-weight: 680; line-height: 1; text-align: center; cursor: pointer; }
.ai-intel-item-actions button[data-ai-intel-read] { color: white; background: var(--ink); }
.ai-intel-item-actions button[data-ai-intel-read]:hover, .ai-intel-item-actions button[data-ai-intel-read]:focus-visible { color: var(--ink); background: white; }
.ai-intel-reminder-button { display: flex !important; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.ai-intel-reminder-button:hover, .ai-intel-reminder-button:focus-visible { color: white; background: var(--ink); }
.ai-intel-reminder-button svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-intel-reminder-button:disabled { color: var(--muted); border-color: var(--line); background: #f2f2f2; }
.ai-intel-item-actions button:disabled { opacity: .45; cursor: wait; }
.ai-intel-reminder-button:disabled { opacity: 1 !important; cursor: default !important; }

.ai-intel-sources-panel { margin-top: 0; }
.ai-intel-sources { margin: 0 calc(var(--panel-padding) * -1) calc(var(--panel-padding) * -1); display: grid; grid-template-columns: minmax(0, 1fr); }
.ai-intel-source-card { min-height: 104px; padding: 18px var(--panel-padding); display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.ai-intel-source-card:last-child { border-bottom: 0; }
.ai-intel-source-card strong { font: 560 15px/1.3 "Space Grotesk", sans-serif; text-transform: uppercase; }
.ai-intel-source-card span { margin-top: 6px; color: var(--muted); font-size: 11px; }
.ai-intel-source-card small { margin-top: auto; padding-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ai-intel-source-card.is-error small { color: #8f1717; }

.placeholder-grid { margin-top: var(--layout-gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--layout-gap); }
.placeholder-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.placeholder-grid article { min-height: 220px; padding: 26px; display: flex; flex-direction: column; border: 1px dashed #bcbcbc; border-radius: var(--radius); background: #fafafa; }
.placeholder-grid article > span { color: var(--muted); font: 500 11px/1 "Space Grotesk", sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.placeholder-grid h3 { margin-top: 46px; font-size: 25px; }
.placeholder-grid p { max-width: 440px; margin: 12px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.placeholder-grid small { margin-top: auto; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }

.brain-audio-panel {
  min-height: 300px;
  padding: clamp(30px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.brain-audio-copy { max-width: 820px; }
.brain-audio-copy .eyebrow { color: rgba(255,255,255,.52); }
.brain-audio-copy h3 { margin-top: 10px; color: white; font-size: clamp(34px, 4.2vw, 64px); letter-spacing: -.055em; }
.brain-audio-copy > p:not(.eyebrow) { max-width: 700px; margin: 20px 0 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.65; }
.brain-audio-meta { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 9px; }
.brain-audio-meta span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.brain-play-button { width: 176px; height: 176px; padding: 19px; display: grid; place-items: center; align-content: center; gap: 13px; border: 0; border-radius: 50%; color: var(--ink); background: white; cursor: pointer; font: 590 11px/1.15 "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; transition: transform 180ms ease, color 180ms ease, background 180ms ease; }
.brain-play-button:not(:disabled):hover, .brain-play-button:not(:disabled):focus-visible { color: white; background: #252525; transform: scale(1.025); }
.brain-play-button:disabled { color: #888; background: #dedede; cursor: not-allowed; }
.brain-play-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.brain-play-icon svg { width: 22px; height: 22px; }
.brain-play-button.is-generating .brain-play-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; animation: brain-audio-spin 1s linear infinite; }
@keyframes brain-audio-spin { to { transform: rotate(360deg); } }
.brain-audio-panel audio { display: none; }

.brain-resurface-panel { margin-top: var(--layout-gap); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.brain-section-head { min-height: 132px; padding: 28px 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; border-bottom: 1px solid var(--line); }
.brain-section-head h3 { margin-top: 7px; font-size: clamp(28px, 2.6vw, 40px); }

.brain-resurface-head > p { max-width: 580px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.brain-resurface-list { margin: 0; padding: 0; list-style: none; }
.brain-resurface-item { min-height: 180px; padding: 30px; transition: opacity 180ms ease, background 180ms ease; }
.brain-resurface-item + .brain-resurface-item { border-top: 1px solid var(--line); }
.brain-resurface-item.is-updating { opacity: .66; }
.brain-resurface-empty { min-height: 220px; padding: 48px 30px; display: grid; place-content: center; gap: 9px; text-align: center; }
.brain-resurface-empty strong { font: 560 24px/1.2 "Space Grotesk", sans-serif; }
.brain-resurface-empty span { color: var(--muted); font-size: 13px; }
.brain-resurface-topline { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.brain-resurface-number { color: #a0a0a0; font: 500 12px/1 "Space Grotesk", sans-serif; letter-spacing: .1em; }
.brain-resurface-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.brain-resurface-tag { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 680; letter-spacing: .07em; text-transform: uppercase; }
.brain-noted-button { min-width: 88px; min-height: 38px; padding: 9px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; cursor: pointer; font: 650 10px/1 "Inter", sans-serif; letter-spacing: .04em; }
.brain-noted-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.brain-noted-button[aria-pressed="true"] { color: white; border-color: var(--ink); background: var(--ink); }
.brain-noted-button:disabled { cursor: not-allowed; opacity: .5; }
.brain-resurface-main { max-width: 980px; margin: 26px 0 0 58px; }
.brain-resurface-main h4 { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.06; letter-spacing: -.045em; text-transform: none; }
.brain-resurface-main > p { margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.68; }
.brain-reason-grid { margin: 28px 0 0 58px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brain-reason-card { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fafafa; }
.brain-reason-card strong { display: block; color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
.brain-reason-card p { margin: 11px 0 0; font-size: 12px; line-height: 1.6; }
.brain-reason-card.is-action { grid-column: 1 / -1; min-height: 0; border-color: var(--ink); background: white; }
.brain-reason-card.is-action strong::before { content: "→"; margin-right: 8px; color: var(--ink); }
.brain-resurface-footer { margin: 22px 0 0 58px; padding-top: 20px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.brain-source-links, .brain-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.brain-source-links > span, .brain-feedback > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.brain-source-links a { font-size: 10px; font-weight: 650; text-underline-offset: 3px; }
.brain-source-links em { color: var(--muted); font-size: 10px; font-style: normal; }
.brain-feedback { justify-content: flex-end; }
.brain-feedback > div { display: flex; flex-wrap: wrap; gap: 5px; }
.brain-feedback button { min-height: 30px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; cursor: pointer; font-size: 9px; font-weight: 650; }
.brain-feedback button[aria-pressed="true"] { color: white; border-color: var(--ink); background: var(--ink); }
.brain-feedback button:disabled { cursor: not-allowed; opacity: .5; }
.brain-resurface-item.is-pending .brain-resurface-main h4 { color: #676767; }
.brain-resurface-item.is-pending .brain-reason-card p { color: var(--muted); }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--layout-gap); }
.settings-card { min-height: 190px; padding: 26px; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.settings-card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--ink); }
.settings-card-icon svg { width: 21px; height: 21px; }
.settings-card h3 { font-size: 23px; }
.settings-card p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.settings-card code { padding: 2px 5px; border-radius: 5px; color: var(--ink); background: #f0f0f0; font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.preference-controls { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.preference-controls > div { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.preference-controls button { min-height: 34px; padding: 7px 10px; border: 0; color: var(--muted); background: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.preference-controls button + button { border-left: 1px solid var(--line); }
.preference-controls button[aria-pressed="true"] { color: white; background: var(--ink); }

html[data-dashboard-density="compact"] { --layout-gap: 12px; --radius: 14px; }
html[data-dashboard-density="compact"] main { padding-top: 22px; padding-bottom: 48px; }
html[data-dashboard-density="compact"] .view-heading { min-height: 82px; margin-bottom: 18px; }
html[data-dashboard-density="compact"] .panel { --panel-padding: 20px; }
html[data-dashboard-density="compact"] .panel-header { min-height: 72px; padding-top: 13px; padding-bottom: 13px; }
html[data-dashboard-density="compact"] .kpi-card { min-height: 138px; padding: 17px; }
html[data-dashboard-density="compact"] .kpi-value { margin-top: 16px; }
html[data-dashboard-density="compact"] .today-shortcuts a { min-height: 126px; padding: 17px; }
html[data-dashboard-density="compact"] .brand-mention-item,
html[data-dashboard-density="compact"] .brain-resurface-item { min-height: 0; padding-top: 19px; padding-bottom: 19px; }
html[data-dashboard-density="compact"] .reminder-card { padding-top: 18px; padding-bottom: 18px; }

/* Inverted surfaces need light native controls before the filter is applied;
   dark native calendar icons would otherwise be inverted into the dark field. */
html[data-dashboard-theme="dark"] { color-scheme: dark; background: #242424; }
html[data-dashboard-theme="dark"] body { background: #242424; }
html[data-dashboard-theme="dark"] .app-shell,
html[data-dashboard-theme="dark"] .task-organizer-dialog,
html[data-dashboard-theme="dark"] .task-edit-dialog,
html[data-dashboard-theme="dark"] .task-schedule-dialog,
html[data-dashboard-theme="dark"] .access-card,
html[data-dashboard-theme="dark"] .toast { color-scheme: light; filter: invert(.86) hue-rotate(180deg); }

@media (prefers-color-scheme: dark) {
  html[data-dashboard-theme="auto"] { color-scheme: dark; background: #242424; }
  html[data-dashboard-theme="auto"] body { background: #242424; }
  html[data-dashboard-theme="auto"] .app-shell,
  html[data-dashboard-theme="auto"] .task-organizer-dialog,
  html[data-dashboard-theme="auto"] .task-edit-dialog,
  html[data-dashboard-theme="auto"] .task-schedule-dialog,
  html[data-dashboard-theme="auto"] .access-card,
  html[data-dashboard-theme="auto"] .toast { color-scheme: light; filter: invert(.86) hue-rotate(180deg); }
}

.brand-monitor-hero { overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); color: white; background: var(--ink); box-shadow: var(--shadow); }
.brand-monitor-copy { padding: clamp(30px, 4vw, 54px); }
.brand-monitor-copy .eyebrow { color: rgba(255,255,255,.5); }
.brand-monitor-copy h3 { max-width: 920px; margin-top: 9px; color: white; font-size: clamp(34px, 4.2vw, 64px); letter-spacing: -.055em; }
.brand-monitor-copy > p:not(.eyebrow) { max-width: 700px; margin: 18px 0 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.65; }
.brand-term-list { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-term-list span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: rgba(255,255,255,.78); font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.brand-monitor-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.brand-monitor-stats div { min-height: 132px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.brand-monitor-stats div + div { border-left: 1px solid rgba(255,255,255,.18); }
.brand-monitor-stats dt { color: rgba(255,255,255,.52); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.brand-monitor-stats dd { margin: 0; color: white; font: 520 clamp(34px, 3vw, 48px)/.9 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.brand-monitor-source { min-height: 64px; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.66); font-size: 11px; }
.brand-monitor-source small { color: rgba(255,255,255,.42); font-size: 10px; text-align: right; }
.brand-mentions-panel { margin-top: var(--layout-gap); }
.brand-mentions-head { min-height: 102px; }
.brand-filter-group { display: inline-flex; overflow: hidden; border: 1px solid rgba(255,255,255,.34); border-radius: 10px; }
.brand-filter-group button { min-height: 38px; padding: 8px 12px; border: 0; color: rgba(255,255,255,.68); background: transparent; cursor: pointer; font-size: 11px; font-weight: 650; }
.brand-filter-group button + button { border-left: 1px solid rgba(255,255,255,.34); }
.brand-filter-group button[aria-pressed="true"] { color: var(--ink); background: white; }
.brand-filter-group span { margin-left: 5px; opacity: .7; }
.brand-mention-list { margin: 0 calc(var(--panel-padding) * -1) calc(var(--panel-padding) * -1); padding: 0; list-style: none; }
.brand-mention-item { min-height: 190px; padding: 26px var(--panel-padding); border-bottom: 1px solid var(--line); }
.brand-mention-item:last-child { border-bottom: 0; }
.brand-mention-item:hover { background: #fafafa; }
.brand-mention-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; }
.brand-mention-meta span:first-child { padding: 5px 7px; border-radius: 999px; color: var(--ink); background: #ededed; font-weight: 700; text-transform: uppercase; }
.brand-mention-meta span + span::before, .brand-mention-meta time::before { content: "·"; margin-right: 8px; }
.brand-mention-item h4 { max-width: 1000px; margin-top: 13px; font-size: clamp(22px, 2vw, 31px); line-height: 1.14; text-transform: none; }
.brand-mention-item h4 a { text-decoration: none; }
.brand-mention-item h4 a:hover, .brand-mention-item h4 a:focus-visible { text-decoration: underline; }
.brand-mention-item > p { max-width: 950px; margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.brand-mention-item footer { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-mention-item footer div { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-mention-item footer div span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 680; letter-spacing: .05em; }
.brand-mention-item footer > a { flex: 0 0 auto; font-size: 11px; font-weight: 700; text-decoration: none; }
.brand-mention-item footer > a:hover, .brand-mention-item footer > a:focus-visible { text-decoration: underline; }
.brand-mention-empty { min-height: 260px; padding: 46px 28px; display: grid; place-content: center; gap: 8px; text-align: center; }
.brand-mention-empty > span { font-size: 28px; }
.brand-mention-empty strong { font: 560 24px/1.2 "Space Grotesk", sans-serif; }
.brand-mention-empty p { margin: 0; color: var(--muted); font-size: 13px; }

.dashboard-view > .newsletter-overview-panel,
.dashboard-view > .publications-panel,
.dashboard-view > .backup-overview-panel { margin-top: 0; }
[data-audience-panel="sites"] > .publications-panel + .website-panel { margin-top: var(--layout-gap); }

/* Command Center v2: searchable histories, provenance and operational health. */
.dashboard-search { min-width: min(220px, 100%); display: block; }
.dashboard-search input { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.dashboard-search input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.list-search-row { padding: 14px var(--panel-padding); border-bottom: 1px solid var(--line); background: #f7f7f7; }
.list-search-row .dashboard-search { max-width: 430px; }
.reminder-search-row { padding: 18px 0 6px; border-bottom: 0; background: transparent; }
.reminder-search-row .dashboard-search { max-width: 430px; }
.ai-intel-toolbar .dashboard-search { grid-area: search; min-width: 0; }
.ai-intel-toolbar .ai-intel-source-filter { margin-left: 0; }
.ai-intel-coverage { margin-top: 13px; color: var(--muted); font-size: 11px; }
.ai-intel-coverage summary { width: fit-content; cursor: pointer; color: var(--ink); font-weight: 700; }
.ai-intel-coverage div { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-intel-coverage a { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.ai-intel-coverage a:hover, .ai-intel-coverage a:focus-visible { color: white; background: var(--ink); }

.brand-verification { padding: 5px 7px; border-radius: 999px; font-weight: 750; text-transform: uppercase; }
.brand-verification.is-verified { color: #fff; background: #185c3c; }
.brand-verification.is-review { color: #6e4700; background: #fff0c2; }
.brand-verification.is-rejected, .brand-verification.is-owned { color: #6f1d1d; background: #f7dddd; }
.brand-verification-reason { font-size: 11px !important; }
.brand-mention-actions, .brain-cross-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-mention-actions button, .brain-cross-actions button, .site-advice-item button, .task-restore-button { min-height: 36px; padding: 8px 11px; border: 1px solid var(--ink); border-radius: 9px; color: var(--ink); background: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.brand-mention-actions button:hover, .brand-mention-actions button:focus-visible, .brain-cross-actions button:hover, .brain-cross-actions button:focus-visible, .site-advice-item button:hover, .site-advice-item button:focus-visible, .task-restore-button:hover, .task-restore-button:focus-visible { color: white; background: var(--ink); }
.brand-mention-actions button:disabled { opacity: .55; cursor: default; }

.brain-view-switch, .history-range-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.brain-view-switch button, .history-range-switch button { min-height: 34px; padding: 7px 10px; border: 0; background: white; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.brain-view-switch button + button, .history-range-switch button + button { border-left: 1px solid var(--line); }
.brain-view-switch button[aria-pressed="true"], .history-range-switch button[aria-pressed="true"] { color: white; background: var(--ink); }
.brain-history-item { padding: 24px var(--panel-padding); display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brain-history-item span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.brain-history-item strong { margin-top: 6px; display: block; font: 560 20px/1.25 "Space Grotesk", sans-serif; }
.brain-history-item p { max-width: 850px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.audience-history-panel, .automation-overview-panel { margin-top: var(--layout-gap); }
.audience-history-grid { padding: var(--panel-padding); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.audience-history-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.audience-history-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.audience-history-card header div { display: grid; gap: 2px; }
.audience-history-card header span, .audience-history-card header small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.audience-history-card header strong { font: 560 28px/1 "Space Grotesk", sans-serif; }
.audience-history-card header b { font-size: 12px; }
.audience-history-card .is-positive { color: #185c3c; }
.audience-history-card .is-negative { color: #8f1717; }
.audience-sparkline { width: 100%; height: 88px; margin-top: 12px; overflow: visible; }
.audience-sparkline polyline { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.audience-history-card details { color: var(--muted); font-size: 10px; }
.audience-history-card summary { cursor: pointer; }
.audience-history-card ul { margin: 8px 0 0; padding: 0; list-style: none; }
.audience-history-card li { padding: 5px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.site-history-panel { overflow: hidden; }
.site-history-content { padding: 22px var(--panel-padding); }
.site-history-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.site-history-summary > div { display: grid; gap: 3px; }
.site-history-summary strong { font: 560 clamp(28px, 4vw, 44px)/1 "Space Grotesk", sans-serif; }
.site-history-summary span, .site-history-content summary { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.site-history-summary b { font-size: 13px; }
.site-history-summary .is-positive { color: #185c3c; }
.site-history-summary .is-negative { color: #8f1717; }
.site-history-chart { width: 100%; height: 88px; margin: 16px 0 4px; }
.site-history-content details { font-size: 11px; }
.site-history-content summary { cursor: pointer; }
.site-history-content ul { margin: 10px 0 0; padding: 0; list-style: none; }
.site-history-content li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }

.automation-overview { display: grid; }
.automation-row { min-height: 92px; padding: 17px var(--panel-padding); display: grid; grid-template-columns: 10px minmax(180px, 1fr) minmax(360px, 1.4fr); align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.automation-row:last-child { border-bottom: 0; }
.automation-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #27714e; }
.automation-row.is-failed .automation-status-dot { background: #a12626; }
.automation-row.is-partial .automation-status-dot, .automation-row.is-unconfigured .automation-status-dot { background: #b57a12; }
.automation-row strong { font: 560 15px/1.3 "Space Grotesk", sans-serif; }
.automation-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.automation-row dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.automation-row dl div { display: grid; gap: 3px; }
.automation-row dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.automation-row dd { margin: 0; font-size: 11px; font-weight: 700; }

.task-archive-column { grid-column: 1 / -1; }
.task-archive-column .task-organizer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.task-organizer-card.is-completed { opacity: .78; }
.task-completed-check { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); }
.site-advice-item { grid-template-columns: 118px minmax(0, 1fr) auto; align-items: start; }
.site-advice-item button { white-space: nowrap; }

@media (max-width: 980px) {
  .audience-history-grid { grid-template-columns: 1fr; }
  .automation-row { grid-template-columns: 10px minmax(0, 1fr); }
  .automation-row dl { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-archive-column .task-organizer-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .ai-intel-filter-group { max-width: 100%; overflow-x: auto; }
  .ai-intel-toolbar .dashboard-search, .ai-intel-toolbar .ai-intel-source-filter { flex: 1 1 100%; }
  .ai-intel-source-filter select { flex: 1; max-width: none; }
  .site-advice-item { grid-template-columns: 1fr; }
  .brand-mention-item footer { align-items: flex-start; flex-direction: column; }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi-card { min-height: 180px; padding: 24px 22px; border-right: 1px solid var(--line); }
.kpi-card:last-child { border-right: 0; }
.kpi-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }
.kpi-icon svg, .kpi-icon img { width: 20px; height: 20px; display: block; object-fit: contain; }
.kpi-icon .brand-icon { fill: currentColor; stroke: none; stroke-width: 0; }
.kpi-icon .brand-image { opacity: .82; filter: grayscale(1); }
.kpi-value { display: block; margin-top: 24px; font-size: clamp(32px, 2.5vw, 46px); font-weight: 560; letter-spacing: -.055em; line-height: .9; }
.kpi-label { display: block; margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.kpi-card.is-action .kpi-icon { color: var(--orange); background: var(--orange-soft); }
.kpi-card.is-action .kpi-value { font-size: 21px; letter-spacing: -.02em; line-height: 1.05; }

.planning-grid { margin-top: var(--layout-gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--layout-gap); }
.briefing-grid { margin-top: var(--layout-gap); display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--layout-gap); }
.insights-grid { margin-top: var(--layout-gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--layout-gap); }

.panel {
  --panel-padding: 26px;
  min-width: 0;
  padding: var(--panel-padding);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Keep the whole card as one hit target so the hand cursor stays stable over nested text and icons. */
[data-card-href], [data-card-href] * { cursor: pointer; }
[data-card-href] > * { pointer-events: none; }

.panel-header {
  min-height: 88px;
  margin: calc(var(--panel-padding) * -1) calc(var(--panel-padding) * -1) 0;
  padding: 18px var(--panel-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: white;
  background: var(--ink);
}
.panel-header .eyebrow { margin-bottom: 5px; color: rgba(255,255,255,.7); font-weight: 700; }
.panel-header h3 { color: white; font-weight: 620; letter-spacing: -.025em; }
.panel-header .source-badge, .panel-header .delta-pill, .panel-header .task-count { color: var(--ink); background: white; }
.source-badge, .delta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.source-badge.is-action, .delta-pill.is-negative { color: var(--orange); background: var(--orange-soft); }
.source-badge.is-error { color: var(--red); background: var(--red-soft); }
.source-badge.is-local { color: #555; background: #e9e9e9; }
.delta-pill.is-positive { color: var(--green); background: var(--green-soft); }

.timeline { margin-top: 20px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 68px 14px minmax(0,1fr); gap: 15px; min-height: 78px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 88px; top: 21px; bottom: -5px; width: 1px; background: var(--line); }
.timeline-time { padding-top: 2px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.timeline-dot { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--surface); background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.timeline-body strong { display: block; font-size: 17px; font-weight: 650; line-height: 1.35; }
.timeline-body span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.day-divider { margin: 10px 0 18px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.day-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.task-count { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 50%; color: white; background: var(--blue); font-size: 14px; font-weight: 700; }
.task-create-form { position: relative; margin-top: 18px; display: grid; gap: 9px; }
.task-create-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.task-create-form input { min-width: 0; width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fafafa; font: 440 14px/1 "Inter", sans-serif; outline: none; }
.task-create-form input:focus { border-color: var(--ink); background: white; }
.task-create-form button { height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ink); border-radius: 10px; color: white; background: var(--ink); font: 620 12px/1 "Inter", sans-serif; cursor: pointer; }
.task-create-form button:hover, .task-create-form button:focus-visible { color: var(--ink); background: white; }
.task-create-form button:disabled { opacity: .5; cursor: wait; }
.task-create-form button span:first-child { font-size: 20px; font-weight: 300; }
.task-create-error { min-height: 14px; margin: 0; color: #9f1d1d; background: white; font-size: 11px; font-weight: 650; }
.task-list { margin: 14px 0 0; padding: 0; list-style: none; }
.task-list > li { position: relative; border-top: 1px solid var(--line); }
.task-list > li:not(.task-list-item) { padding: 15px 0; display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; }
.task-row { min-height: 63px; padding: 15px 0; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 12px; align-items: start; }
.task-list-item.is-updating .task-row { opacity: .56; }
.fake-check { width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #999; border-radius: 5px; }
.task-checkbox {
  position: relative;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border: 1.5px solid #777;
  border-radius: 5px;
  background: white;
  cursor: pointer;
}
.task-checkbox::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg);
}
.task-checkbox[aria-checked="true"] { border-color: var(--ink); background: var(--ink); }
.task-checkbox[aria-checked="true"]::after { opacity: 1; }
.task-checkbox[disabled] { cursor: wait; }
.task-list li.is-completed .task-copy { opacity: .45; text-decoration: line-through; }
.task-copy strong { display: block; font-size: 16px; font-weight: 610; line-height: 1.4; }
.task-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.task-copy .task-notes { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.task-inline-link { color: inherit; text-decoration: underline; text-decoration-color: #8f8f8f; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.task-inline-link:hover, .task-inline-link:focus-visible { color: var(--blue); text-decoration-color: currentColor; }
.task-copy .task-sync-error { color: #9f1d1d; font-weight: 650; }
.task-copy .is-due { color: var(--red); }
.task-panel-footer { margin-top: 4px; padding-top: 15px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; border-top: 1px solid var(--line); }
.task-organize-button { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: 620 11px/1 "Inter", sans-serif; white-space: nowrap; cursor: pointer; }
.task-progress { min-width: 128px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 9px; color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.task-progress strong { color: var(--ink); font-size: 10px; }
.task-progress i { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: #e4e4e4; }
.task-progress b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ink); transition: width 180ms ease; }
.task-organize-button svg { width: 16px; height: 16px; }
.task-organize-button:hover, .task-organize-button:focus-visible { border-color: var(--ink); }

body.has-task-organizer, body.has-task-edit, body.has-task-schedule { overflow: hidden; }
.task-organizer-backdrop { position: fixed; z-index: 70; inset: 0; padding: clamp(18px, 4vw, 52px); display: grid; place-items: center; background: rgba(0,0,0,.48); backdrop-filter: blur(8px); }
.task-organizer-backdrop[hidden] { display: none; }
.task-organizer-dialog { width: min(1180px, 100%); max-height: calc(100vh - clamp(36px, 8vw, 104px)); padding: clamp(24px, 3.4vw, 42px); overflow: auto; border-radius: 20px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.27); outline: none; }
.task-organizer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.task-organizer-header h2 { margin: 4px 0 0; font: 430 clamp(34px, 4vw, 52px)/1 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.task-organizer-close { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; cursor: pointer; }
.task-organizer-close:hover, .task-organizer-close:focus-visible { border-color: var(--ink); }
.task-organizer-close svg { width: 18px; height: 18px; }
.task-organizer-intro { max-width: 690px; margin: 16px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.task-organizer-create-form { margin: 0 0 24px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7f7f7; }
.task-organizer-create-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 170px) auto; gap: 8px; }
.task-organizer-create-form input, .task-organizer-create-form select { min-width: 0; width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font: 440 13px/1 "Inter", sans-serif; outline: none; }
.task-organizer-create-form input:focus, .task-organizer-create-form select:focus { border-color: var(--ink); }
.task-organizer-create-form button { height: 44px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ink); border-radius: 10px; color: white; background: var(--ink); font: 620 12px/1 "Inter", sans-serif; cursor: pointer; }
.task-organizer-create-form button:hover, .task-organizer-create-form button:focus-visible { color: var(--ink); background: white; }
.task-organizer-create-form button:disabled { opacity: .5; cursor: wait; }
.task-organizer-create-form button span:first-child { font-size: 20px; font-weight: 300; }
.task-organizer-create-form .task-create-error { background: transparent; }
.task-organizer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.task-organizer-column { min-width: 0; min-height: 340px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f5f5f5; }
.task-organizer-column.is-drop-target { border-color: var(--ink); background: #ececec; }
.task-organizer-column-head { padding: 2px 2px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-organizer-column-head h3 { margin: 0; font: 570 19px/1.2 "Space Grotesk", sans-serif; }
.task-organizer-column-head span { min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; color: white; background: var(--ink); font-size: 11px; font-weight: 700; }
.task-organizer-list { min-height: 270px; display: grid; align-content: start; gap: 8px; }
.task-organizer-empty { margin: 0; padding: 34px 14px; border: 1px dashed #bcbcbc; border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.task-organizer-card { min-width: 0; padding: 13px 13px 12px; border: 1px solid #d5d5d5; border-radius: 10px; background: white; box-shadow: 0 5px 16px rgba(0,0,0,.035); cursor: grab; }
.task-organizer-card:active { cursor: grabbing; }
.task-organizer-card.is-dragging { opacity: .42; }
.task-organizer-card.is-drop-before { box-shadow: inset 0 3px 0 var(--ink), 0 5px 16px rgba(0,0,0,.035); }
.task-organizer-card.is-drop-after { box-shadow: inset 0 -3px 0 var(--ink), 0 5px 16px rgba(0,0,0,.035); }
.task-organizer-card.is-updating { opacity: .5; cursor: wait; }
.task-organizer-card.is-completed { opacity: .32; transform: translateY(2px); }
.task-organizer-card-row { min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.task-organizer-checkbox { flex: 0 0 auto; margin-top: 1px; }
.task-organizer-card-copy { min-width: 0; flex: 1; }
.task-organizer-card strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.42; }
.task-organizer-notes { margin: 6px 0 0; color: var(--ink); font-size: 11px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.task-organizer-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.task-organizer-card .task-sync-error { display: block; margin-top: 7px; color: #8b1e1e; font-size: 10px; line-height: 1.4; }
.task-item-actions { display: flex; align-items: center; gap: 6px; opacity: 0; pointer-events: none; transform: translateX(4px); transition: opacity .14s ease, transform .14s ease; }
.task-list-item:hover .task-item-actions, .task-list-item:focus-within .task-item-actions, .task-organizer-card:hover .task-item-actions, .task-organizer-card:focus-within .task-item-actions { opacity: 1; pointer-events: auto; transform: translateX(0); }
.task-action-toggle { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; transition: color .14s ease, background .14s ease, border-color .14s ease; cursor: pointer; }
.task-action-toggle:hover, .task-action-toggle:focus-visible { border-color: var(--ink); color: white; background: var(--ink); outline: none; }
.task-action-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.task-edit-backdrop { position: fixed; z-index: 92; inset: 0; padding: 18px; display: grid; place-items: center; background: rgba(0,0,0,.42); backdrop-filter: blur(7px); }
.task-edit-backdrop[hidden] { display: none; }
.task-edit-dialog { width: min(500px, 100%); padding: 26px; border-radius: 18px; background: white; box-shadow: 0 24px 80px rgba(0,0,0,.28); outline: none; }
.task-edit-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.task-edit-header h2 { margin: 4px 0 0; font: 470 31px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.task-edit-close { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; cursor: pointer; }
.task-edit-close:hover, .task-edit-close:focus-visible { border-color: var(--ink); }
.task-edit-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.task-edit-form { margin-top: 22px; display: grid; gap: 14px; }
.task-edit-form label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.task-edit-form input, .task-edit-form textarea { width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: 500 13px/1.5 "Inter", sans-serif; resize: vertical; }
.task-edit-form input { height: 42px; }
.task-edit-form textarea { min-height: 118px; }
.task-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.task-edit-actions button { min-height: 38px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 9px; color: var(--ink); background: white; font: 650 11px/1 "Inter", sans-serif; cursor: pointer; }
.task-edit-actions button[type="submit"] { color: white; background: var(--ink); }
.task-edit-actions button:disabled { opacity: .5; cursor: wait; }
.task-edit-form > p { min-height: 14px; margin: 0; color: #8b1e1e; font-size: 10px; font-weight: 650; line-height: 1.4; }
.task-schedule-backdrop { position: fixed; z-index: 90; inset: 0; padding: 18px; display: grid; place-items: center; background: rgba(0,0,0,.42); backdrop-filter: blur(7px); }
.task-schedule-backdrop[hidden] { display: none; }
.task-schedule-dialog { width: min(430px, 100%); padding: 26px; border-radius: 18px; background: white; box-shadow: 0 24px 80px rgba(0,0,0,.28); outline: none; }
.task-schedule-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.task-schedule-header h2 { margin: 4px 0 0; font: 470 31px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.task-schedule-close { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; cursor: pointer; }
.task-schedule-close:hover, .task-schedule-close:focus-visible { border-color: var(--ink); }
.task-schedule-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.task-schedule-task-title { margin: 18px 0; padding: 13px 14px; border-radius: 10px; color: var(--ink); background: #f3f3f3; font-size: 13px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.task-schedule-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.task-schedule-form > label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.task-schedule-form input, .task-schedule-form select { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: 500 12px/1 "Inter", sans-serif; }
.task-schedule-form select:disabled { color: #999; cursor: not-allowed; }
.task-schedule-weekdays { min-width: 0; margin: 0; padding: 0; border: 0; }
.task-schedule-weekdays[hidden] { display: none; }
.task-schedule-weekdays legend { margin: 0 0 8px 2px; padding: 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.task-weekday-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.task-weekday-options label { position: relative; min-width: 0; cursor: pointer; }
.task-weekday-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.task-weekday-options span { height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font: 700 11px/1 "Inter", sans-serif; transition: 140ms ease; }
.task-weekday-options label:hover span { border-color: var(--ink); color: var(--ink); }
.task-weekday-options input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.task-weekday-options input:checked + span { border-color: var(--ink); color: white; background: var(--ink); }
.task-schedule-actions { margin-top: 3px; display: flex; justify-content: flex-end; gap: 8px; }
.task-schedule-actions button { min-height: 38px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 9px; color: var(--ink); background: white; font: 650 11px/1 "Inter", sans-serif; cursor: pointer; }
.task-schedule-actions button[type="submit"] { color: white; background: var(--ink); }
.task-schedule-actions button:disabled { opacity: .5; cursor: wait; }
.task-schedule-form > p { min-height: 14px; margin: 0; color: #8b1e1e; font-size: 10px; font-weight: 650; line-height: 1.4; }

@media (hover: none) {
  .task-item-actions { opacity: 1; pointer-events: auto; transform: none; }
}

.reminder-workspace {
  min-height: 600px;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.reminder-sidebar { min-width: 0; padding: 26px 20px; color: white; background: var(--ink); }
.reminder-sidebar-head { padding: 0 8px 24px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid rgba(255,255,255,.17); }
.reminder-source-mark { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; }
.reminder-source-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.reminder-sidebar .eyebrow { margin-bottom: 4px; color: rgba(255,255,255,.57); }
.reminder-sidebar h3 { color: white; font-size: 23px; }
.reminder-folders { padding-top: 20px; display: grid; gap: 5px; }
.reminder-folders button {
  width: 100%; min-height: 45px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 0; border-radius: 10px; color: rgba(255,255,255,.72); background: transparent; font: 570 13px/1.2 "Inter", sans-serif; text-align: left; cursor: pointer;
}
.reminder-folders button:hover, .reminder-folders button:focus-visible { color: white; background: rgba(255,255,255,.1); }
.reminder-folders button.is-active { color: var(--ink); background: white; }
.reminder-folders b { min-width: 24px; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.reminder-connection { margin: 28px 8px 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.17); }
.reminder-connection .source-badge { color: var(--ink); background: white; }
.reminder-connection .source-badge.is-action { color: #694300; background: #ffe6ad; }
.reminder-connection .source-badge.is-error { color: #8f1717; background: #ffd9d9; }
.reminder-connection p { margin: 11px 0 0; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.55; }

.reminder-inbox { min-width: 0; padding: 28px 32px 34px; }
.reminder-inbox-head { min-height: 70px; padding-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.reminder-inbox-head .eyebrow { margin-bottom: 5px; }
.reminder-inbox-head h3 { font-size: 32px; letter-spacing: -.035em; }
.reminder-inbox-meta { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.reminder-inbox-meta strong { color: var(--ink); font-size: 13px; }
.reminder-list { display: grid; }
.reminder-card { min-width: 0; padding: 24px 0; border-bottom: 1px solid var(--line); transition: opacity .16s ease; }
.reminder-card.is-updating { opacity: .5; }
.reminder-card.is-loading { min-height: 116px; display: grid; align-content: center; gap: 12px; }
.reminder-card-main { display: block; color: var(--ink); text-decoration: none; }
.reminder-card-main:hover h4, .reminder-card-main:focus-visible h4 { text-decoration: underline; text-underline-offset: 3px; }
.reminder-card-kicker { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 680; letter-spacing: .07em; text-transform: uppercase; }
.reminder-card-kicker span:first-child { color: var(--ink); }
.reminder-card h4 { margin: 10px 0 0; max-width: 920px; font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -.022em; }
.reminder-card-excerpt { max-width: 940px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.reminder-note { margin-top: 16px; }
.reminder-note-display { max-width: 940px; padding: 13px 15px; border-left: 3px solid var(--ink); border-radius: 0 10px 10px 0; background: #f2f2f2; }
.reminder-note-display span, .reminder-note-form label > span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.reminder-note-display p { margin: 7px 0 0; color: var(--ink); font-size: 13px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.reminder-note-toggle { margin-top: 10px; padding: 0; display: inline-flex; align-items: center; gap: 7px; border: 0; color: var(--muted); background: transparent; font: 650 11px/1.2 "Inter", sans-serif; cursor: pointer; }
.reminder-note-toggle:hover, .reminder-note-toggle:focus-visible { color: var(--ink); }
.reminder-note-toggle svg { width: 15px; height: 15px; }
.reminder-note-form { max-width: 720px; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f7f7f7; }
.reminder-note-form[hidden] { display: none; }
.reminder-note-form textarea { width: 100%; min-height: 96px; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: 450 13px/1.5 "Inter", sans-serif; resize: vertical; }
.reminder-note-form textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.reminder-note-actions { margin-top: 9px; display: flex; justify-content: flex-end; gap: 7px; }
.reminder-note-actions button { min-height: 34px; padding: 0 11px; border: 1px solid var(--ink); border-radius: 8px; color: var(--ink); background: white; font: 650 11px/1 "Inter", sans-serif; cursor: pointer; }
.reminder-note-actions button[type="submit"] { color: white; background: var(--ink); }
.reminder-note-actions button:hover, .reminder-note-actions button:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.reminder-card-footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.reminder-card-source { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.reminder-source-chip { padding: 5px 8px; border-radius: 999px; color: var(--ink); background: #ededed; font-weight: 650; }
.reminder-card-source span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reminder-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.reminder-card-actions select, .reminder-action-button {
  min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: 580 11px/1 "Inter", sans-serif; cursor: pointer;
}
.reminder-card-actions select { max-width: 140px; padding-right: 28px; }
.reminder-action-button:hover, .reminder-action-button:focus-visible, .reminder-card-actions select:focus-visible { border-color: var(--ink); }
.reminder-date-wrap { position: relative; }
.reminder-date-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.reminder-card-error { margin: 12px 0 0; color: #9f1d1d; font-size: 12px; font-weight: 650; }
.reminder-empty { min-height: 320px; padding: 64px 24px; display: grid; place-items: center; align-content: center; border-bottom: 0; text-align: center; }
.reminder-empty span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #f0f0f0; font-size: 22px; }
.reminder-empty h4 { margin-top: 18px; }
.reminder-empty p { max-width: 480px; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }


.mail-report { margin-top: 18px; }
.mail-report-row { padding: 15px 0; border-top: 1px solid var(--line); }
.mail-report-address { display: block; font-size: 15px; font-weight: 670; }
.mail-report-counts { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mail-report-counts b { color: var(--ink); font-weight: 720; }
.mail-automation-summary { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #f0f0f0; }
.mail-automation-summary > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mail-automation-summary > header strong { color: var(--ink); font-size: 13px; font-weight: 720; }
.mail-automation-summary > header span { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .055em; }
.mail-automation-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mail-automation-row > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mail-automation-row strong { font-size: 13px; font-weight: 720; }
.mail-automation-row span { color: var(--muted); font-size: 11px; }
.mail-automation-row p, .mail-automation-empty { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.mail-automation-empty { margin-top: 12px; }
.gmail-live-header { align-items: flex-start; }
.gmail-live-status { max-width: 185px; color: var(--muted); font-size: 11px; font-weight: 620; line-height: 1.45; text-align: right; }
.gmail-live-report { margin-top: 18px; }
.gmail-live-row { padding: 15px 0; border-top: 1px solid var(--line); }
.gmail-live-metrics { margin-top: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gmail-live-metrics span { min-width: 0; padding: 10px 11px; border-radius: 9px; color: var(--muted); background: #f0f0f0; font-size: 11px; text-transform: uppercase; letter-spacing: .035em; }
.gmail-live-metrics b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 21px; font-weight: 670; line-height: 1; letter-spacing: -.04em; }

.website-total { margin: 32px 0 28px; display: flex; align-items: flex-end; gap: 10px; }
.website-total strong { font-size: clamp(58px, 6vw, 88px); font-weight: 520; letter-spacing: -.075em; line-height: .72; }
.website-total span { padding-bottom: 5px; color: var(--muted); font-size: 14px; }
.site-bars { display: grid; gap: 18px; }
.site-entry { min-width: 0; }
.site-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.site-row { margin-top: 10px; }
.site-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-track { height: 7px; overflow: hidden; border-radius: 8px; background: #e5e5e5; }
.site-chart { width: 100%; height: 7px; overflow: hidden; }
.site-fill { fill: var(--blue); stroke: none; transform-origin: left; animation: grow 700ms cubic-bezier(.2,.8,.2,1) both; }
.site-value { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-value b { color: var(--ink); font-size: 14px; }
.site-page-list, .site-advice-list { margin-top: 24px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; }
.site-page-list { background: #fafafa; }
.site-advice-list { background: #f2f2f2; }
.site-section-heading { margin: 0 0 12px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.site-page-items { display: grid; gap: 11px; }
.site-page-item { min-width: 0; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 13px; }
.site-page-item:not(:last-child) { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.site-page-item > strong { overflow: hidden; font-size: 12px; font-weight: 700; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.site-page-item b { display: -webkit-box; overflow: hidden; font-size: 12px; font-weight: 650; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.site-page-item small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.site-advice-items { display: grid; gap: 11px; }
.site-advice-item { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 13px; }
.site-advice-item:not(:last-child) { padding-bottom: 11px; border-bottom: 1px solid #d9d9d9; }
.site-advice-item strong { overflow: hidden; font-size: 12px; font-weight: 700; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.site-advice-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.metric-strip { margin-top: 24px; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 13px; background: #fafafa; }
.mini-metric:not(:first-child) { padding-left: 15px; border-left: 1px solid var(--line); }
.mini-metric strong { display: block; font-size: 22px; font-weight: 620; }
.mini-metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

.post-title { min-height: 62px; margin: 28px 0 20px; font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.social-number strong { display: block; font-size: clamp(48px, 4.7vw, 72px); font-weight: 520; letter-spacing: -.07em; line-height: .8; }
.social-number span { display: block; margin-top: 11px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.social-stats { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social-stat { padding: 12px 10px; border-radius: 11px; background: #f0f0f0; }
.social-stat strong { display: block; font-size: 20px; font-weight: 650; }
.social-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; }
.linkedin-analysis { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.linkedin-analysis-summary { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.6; }
.linkedin-scorecard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.linkedin-score { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafafa; }
.linkedin-score:last-child:nth-child(odd) { grid-column: 1 / -1; }
.linkedin-score span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.linkedin-score strong { display: block; color: var(--ink); font-size: 13px; font-weight: 570; line-height: 1.4; }
.linkedin-analysis-points { margin-top: 12px; display: grid; gap: 8px; }
.linkedin-analysis-point { padding: 13px 14px; border-radius: 11px; background: #f0f0f0; }
.linkedin-analysis-point > strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.linkedin-analysis-point p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.panel-footnote { margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.publications-panel { --panel-padding: 30px; grid-column: 1 / -1; }
.publication-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.publication-card {
  min-width: 0;
  min-height: 230px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f7f7f7;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.publication-card:hover, .publication-card:focus-visible { border-color: var(--ink); transform: translateY(-2px); outline: none; }
.publication-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.publication-card-head > span { padding-top: 4px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.publication-state { padding: 5px 8px; border-radius: 999px; color: var(--muted); background: #e7e7e7; font-size: 10px; font-weight: 750; letter-spacing: .055em; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.publication-state.is-published { color: var(--green); background: var(--green-soft); }
.publication-state.is-skipped { color: #555; background: #e9e9e9; }
.publication-state.is-waiting { color: var(--orange); background: var(--orange-soft); }
.publication-card h4 { margin: 26px 0 10px; font-size: 22px; font-weight: 640 !important; line-height: 1.25; letter-spacing: -.025em; }
.publication-card > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.publication-link { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.youtube-panel { --panel-padding: 30px; grid-column: 1 / -1; }
.youtube-content { margin-top: 28px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: stretch; gap: 24px; }
.youtube-overview { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; gap: 12px; }
.youtube-audience, .youtube-channel-stats > div, .youtube-latest { border: 1px solid var(--line); border-radius: 15px; background: #f7f7f7; }
.youtube-audience { padding: 24px; }
.youtube-audience > strong { display: block; font-size: clamp(52px, 5vw, 76px); font-weight: 520; letter-spacing: -.075em; line-height: .78; }
.youtube-audience > span { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.youtube-audience > p { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.youtube-channel-stats { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.youtube-channel-stats > div { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.youtube-channel-stats strong { display: block; font-size: 28px; font-weight: 620; letter-spacing: -.04em; }
.youtube-channel-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.youtube-latest { min-height: 180px; padding: 24px; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 20px; }
.youtube-play { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); }
.youtube-play > span { width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; }
.youtube-kicker { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.youtube-latest h4 { margin: 0; font-size: clamp(21px, 2.2vw, 30px); font-weight: 590; line-height: 1.2; letter-spacing: -.025em; }
.youtube-latest div > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.newsletter-overview-panel { --panel-padding: 30px; margin-top: var(--layout-gap); }
.audience-insights-grid { grid-template-columns: 1fr; }
.audience-insights-grid .newsletter-overview-panel { margin-top: 0; }
.newsletter-summary { margin: 28px 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.newsletter-summary > p { max-width: 440px; margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: right; }
.newsletter-total strong { display: block; font-size: clamp(54px, 5vw, 78px); font-weight: 520; letter-spacing: -.075em; line-height: .78; }
.newsletter-total span { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.backup-overview-panel { --panel-padding: 30px; margin-top: var(--layout-gap); }
.backup-overview { margin-top: 18px; }
.backup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.backup-card { min-width: 0; min-height: 132px; padding: 15px 16px; display: grid; align-content: start; gap: 7px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #f7f7f7; text-decoration: none; }
a.backup-card:hover, a.backup-card:focus-visible { border-color: var(--ink); outline: none; }
.backup-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.backup-check { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.backup-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.backup-card-count { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.backup-card-title { margin-top: 3px; font-size: 16px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.backup-card-destination { color: var(--ink); font-size: 10px; font-weight: 750; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.backup-card-time { margin-top: auto; color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.35; text-transform: capitalize; }
.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.campaign-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f7f7f7; }
.campaign-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.campaign-kicker > span { color: var(--blue); }
.campaign-card h4 { min-height: 58px; margin: 22px 0 20px; font-size: 22px; font-weight: 640; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.campaign-recipients strong { display: block; font-size: 36px; font-weight: 560; letter-spacing: -.055em; line-height: .9; }
.campaign-recipients span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.campaign-stats { margin-top: 20px; padding-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.campaign-stats > div:not(:first-child) { padding-left: 12px; border-left: 1px solid var(--line); }
.campaign-stats strong { display: block; font-size: 19px; font-weight: 650; }
.campaign-stats span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.action-box { margin-top: 28px; padding: 16px; border-radius: 13px; color: var(--ink); background: var(--orange-soft); }
.action-box strong { display: block; margin-bottom: 7px; font-size: 15px; }
.action-box p { margin: 0; font-size: 13px; line-height: 1.55; }

.empty-state { margin: 24px 0 0; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.error-banner { padding: 18px; border-radius: 12px; color: var(--red); background: var(--red-soft); font-size: 15px; line-height: 1.55; }

.footer { min-height: 82px; padding: 24px clamp(22px, 4vw, 64px); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.access-gate[hidden] { display: none; }
.access-card { width: min(100%, 480px); padding: clamp(28px, 5vw, 54px); border: 1px solid var(--ink); background: white; }
.access-card > p:not(.eyebrow):not(.access-error) { margin: 20px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.access-card label span { display: block; margin-bottom: 8px; font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; }
.access-card input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 0; background: white; font: 300 14px "Inter", sans-serif; }
.access-card button { width: 100%; height: 48px; margin-top: 12px; border: 1px solid var(--ink); border-radius: 0; color: white; background: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.access-card button:hover { color: var(--ink); background: white; }
.access-error { min-height: 18px; margin: 12px 0 0; color: var(--ink); font-size: 13px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 380px; padding: 15px 19px; border-radius: 12px; color: white; background: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.18); font-size: 14px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.skeleton-card, .skeleton-line { position: relative; overflow: hidden; background: #e8e8e8; }
.skeleton-card::after, .skeleton-line::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: shimmer 1.35s infinite; }
.skeleton-line { width: 62%; height: 12px; margin: 18px 0; border-radius: 8px; }
.skeleton-line.wide { width: 88%; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes grow { from { transform: scaleX(0); } }

@media (max-width: 1320px) {
  .topbar { grid-template-columns: minmax(56px, 1fr) auto minmax(108px, 1fr); }
  .top-nav-item { min-width: 70px; padding-left: 7px; padding-right: 7px; }
}

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .kpi-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .kpi-card:nth-child(4n) { border-right: 0; }
  .kpi-card:nth-child(n+5) { border-bottom: 0; }
  .kpi-card:last-child { border-right: 0; }
  .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-grid, .intel-grid, .ai-intel-layout { grid-template-columns: 1fr; }
  .today-shortcuts-wide { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-shortcuts-wide a:nth-child(n) { border-right: 0; border-bottom: 0; }
  .today-shortcuts-wide a:nth-child(odd) { border-right: 1px solid var(--line); }
  .today-shortcuts-wide a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ai-intel-sources-panel { margin-top: 0; }
  .ai-intel-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-intel-source-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .ai-intel-source-card:nth-child(3n) { border-right: 0; }
  .ai-intel-source-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .ai-intel-source-card:nth-last-child(-n+2) { border-bottom: 0; }
  .brain-resurface-footer { align-items: flex-start; flex-direction: column; }
  .brain-feedback { justify-content: flex-start; }
  .campaign-grid { grid-template-columns: 1fr 1fr; }
  .campaign-card:last-child { grid-column: 1 / -1; }
  .brand-monitor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-monitor-stats div:nth-child(3) { border-left: 0; }
  .brand-monitor-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav";
    gap: 8px 18px;
  }
  .topbar-brand { grid-area: brand; }
  .top-actions { grid-area: actions; }
  .top-nav { grid-area: nav; width: 100%; overflow-x: auto; justify-content: center; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav-item { flex: 0 0 76px; }
  .brand-copy { display: grid; }
}

@media (max-width: 760px) {
  .topbar { min-height: 0; padding: 10px 16px 8px; }
  .top-nav { justify-content: flex-start; }
  .top-nav-item { flex-basis: 72px; min-height: 56px; font-size: 10px; }
  .brand-copy > span { max-width: 126px; }
  main { padding-top: 24px; }
  .view-heading { min-height: 0; margin-bottom: 24px; display: block; }
  .view-heading h2 { font-size: clamp(46px, 14vw, 68px); }
  .view-heading > p { margin-top: 18px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .kpi-card:nth-child(2n) { border-right: 0; }
  .kpi-card:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .kpi-card:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .today-shortcuts, .placeholder-grid, .placeholder-grid-three, .settings-grid { grid-template-columns: 1fr; }
  .ai-intel-sources { grid-template-columns: 1fr; }
  .ai-intel-toolbar { grid-template-columns: 1fr; grid-template-areas: "filters" "search" "source" "sort" "mark"; align-items: stretch; }
  .ai-intel-filter-group { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-intel-filter-group button { width: 100%; min-width: 0; padding-left: 7px; padding-right: 7px; }
  .ai-intel-filter-group button + button { border-left: 0; }
  .ai-intel-filter-group button:not(:nth-child(2n + 1)) { border-left: 1px solid var(--line); }
  .ai-intel-filter-group button:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ai-intel-source-filter { width: 100%; margin-left: 0; }
  .ai-intel-source-filter select { width: 100%; max-width: none; }
  .ai-intel-mark-all { width: 100%; }
  .ai-intel-feed > li { min-height: 0; grid-template-columns: 1fr; gap: 18px; }
  .ai-intel-item-actions { grid-template-columns: 1fr 1fr; }
  .ai-intel-source-card, .ai-intel-source-card:nth-child(3n), .ai-intel-source-card:nth-child(4n), .ai-intel-source-card:nth-last-child(-n+2), .ai-intel-source-card:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .ai-intel-source-card:last-child { border-bottom: 0; }
  .today-shortcuts a:nth-child(odd) { border-right: 0; }
  .today-shortcuts a:not(:last-child) { border-bottom: 1px solid var(--line); }
  .brain-audio-panel { min-height: 0; padding: 28px 24px; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
  .brain-audio-copy h3 { font-size: clamp(31px, 8vw, 44px); }
  .brain-play-button { width: 116px; height: 116px; padding: 13px; gap: 9px; font-size: 9px; }
  .brain-play-icon { width: 36px; height: 36px; }
  .brain-section-head { min-height: 0; padding: 24px; display: block; }
  .brain-connection-count { display: inline-flex; margin-top: 19px; }
  .brain-resurface-head > p { margin-top: 16px; }
  .brain-resurface-item { min-height: 0; padding: 24px; }
  .brain-resurface-main, .brain-reason-grid, .brain-resurface-footer { margin-left: 0; }
  .brain-resurface-main { margin-top: 23px; }
  .planning-grid, .briefing-grid, .insights-grid { margin-top: 0; grid-template-columns: 1fr; }
  .task-organizer-backdrop { padding: 12px; place-items: stretch; }
  .task-organizer-dialog { width: 100%; max-height: calc(100vh - 24px); padding: 24px 18px; }
  .task-organizer-create-main { grid-template-columns: minmax(0, 1fr) 118px; }
  .task-organizer-create-main button { grid-column: 1 / -1; justify-content: center; }
  .task-organizer-columns { grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; }
  .task-organizer-column { scroll-snap-align: start; }
  .reminder-workspace { min-height: 0; grid-template-columns: 1fr; }
  .reminder-sidebar { padding: 18px 16px 15px; }
  .reminder-sidebar-head { padding: 0 4px 16px; }
  .reminder-folders { margin: 0 -4px; padding-top: 12px; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .reminder-folders::-webkit-scrollbar { display: none; }
  .reminder-folders button { flex: 0 0 auto; width: auto; min-width: 104px; }
  .reminder-connection { margin: 14px 4px 0; padding-top: 14px; }
  .reminder-connection p { margin-top: 8px; }
  .reminder-inbox { padding: 24px 20px 28px; }
  .reminder-card-footer { align-items: flex-start; flex-direction: column; }
  .reminder-card-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .publication-grid { grid-template-columns: 1fr; }
  .brand-monitor-source { align-items: flex-start; flex-direction: column; gap: 6px; }
  .brand-monitor-source small { text-align: left; }
  .brand-mentions-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .brand-filter-group { align-self: stretch; }
  .brand-filter-group button { flex: 1 1 0; }
  .brand-mention-item footer { align-items: flex-start; flex-direction: column; }
  .youtube-content { grid-template-columns: 1fr; }
  .newsletter-summary { display: block; }
  .newsletter-summary > p { margin-top: 18px; text-align: left; }
  .campaign-grid { grid-template-columns: 1fr; }
  .campaign-card:last-child { grid-column: auto; }
  .backup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer { padding-bottom: 28px; display: block; }
  .footer span { display: block; margin: 5px 0; }
}

@media (max-width: 430px) {
  .topbar, main { padding-left: 16px; padding-right: 16px; }
  .brand-copy strong { font-size: 12px; letter-spacing: .06em; }
  .brand-copy > span { display: none; }
  .top-nav-item { flex-basis: 68px; }
  .utility-button { width: 40px; height: 40px; }
  .kpi-card { min-height: 148px; padding: 18px 14px; }
  .panel { --panel-padding: 20px; }
  .panel-header { min-height: 80px; }
  .panel-header h3 { font-size: 21px; }
  .panel-header .source-badge, .panel-header .delta-pill { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .task-create-form button { width: 44px; padding: 0; justify-content: center; }
  .task-create-form button span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .task-panel-footer { align-items: stretch; flex-direction: column; }
  .task-organize-button { justify-content: center; }
  .reminder-inbox-head { align-items: flex-start; }
  .reminder-inbox-meta { padding-top: 4px; }
  .reminder-card { padding: 21px 0; }
  .reminder-card h4 { font-size: 19px; }
  .reminder-card-actions select { width: 100%; max-width: none; }
  .workflow-panel { padding: 24px; }
  .brain-audio-panel { display: block; }
  .brain-play-button { width: 112px; height: 112px; margin-top: 28px; }
  .brain-resurface-topline { grid-template-columns: 34px minmax(0, 1fr); }
  .brain-noted-button { grid-column: 1 / -1; width: 100%; }
  .brain-reason-grid { grid-template-columns: 1fr; }
  .brain-reason-card.is-action { grid-column: 1; }
  .settings-card { grid-template-columns: 1fr; }
  .youtube-overview { grid-template-columns: 1fr; }
  .youtube-channel-stats { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .youtube-latest { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }
  .youtube-play { width: 46px; height: 46px; }
  .backup-card { min-height: 124px; padding: 13px; }
  .backup-card-title { font-size: 15px; }
  .timeline-item { grid-template-columns: 54px 12px minmax(0,1fr); gap: 11px; }
  .timeline-item:not(:last-child)::after { left: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Arthur notes: a quiet writing surface beside the title list. */
.notes-app [hidden] { display: none !important; }
.notes-app { display: grid; grid-template-columns: 270px minmax(0,1fr); min-height: 660px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.notes-sidebar { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); padding: 22px 16px; background: #fafafa; }
.notes-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; font-size: 13px; }
.notes-app button { cursor: pointer; font: inherit; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease; }
.notes-sidebar-heading button { border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; background: white; color: var(--ink); font-size: 24px; }
.notes-sidebar input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 12px; }
.notes-list { flex: 1; margin: 16px -6px; overflow: auto; max-height: 580px; }
.note-list-item { display: flex; flex-direction: column; text-align: left; width: 100%; gap: 7px; border: 1px solid transparent; border-radius: 9px; padding: 14px 12px; background: transparent; color: var(--ink); }
.note-list-item strong { font-weight: 500; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.note-list-item span { color: var(--muted); font-size: 11px; }
.note-list-item.is-active { background: white; border-color: var(--line); box-shadow: 0 2px 5px #00000005; }
.note-list-item:hover { background: #eee; }
.notes-brain-hint { color: var(--muted); font-size: 11px; line-height: 1.75; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.notes-retry { border: 0; color: var(--muted); background: transparent; text-align: left; font-size: 11px !important; }
.notes-workspace { min-width: 0; display: flex; flex-direction: column; }
.notes-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 30px; text-align: center; flex: 1; }
.notes-empty > span { font-size: 52px; font-weight: 300; }
.notes-empty h3 { font-size: 24px; font-weight: 400; margin: 0; }
.notes-empty p { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.notes-empty button { background: black; color: white; border: 1px solid black; border-radius: 8px; padding: 12px 18px; font-size: 13px; }
.notes-empty-list { padding: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.note-page { padding: 24px 38px 0; flex: 1; min-width: 0; }
.note-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 35px; }
.note-actions-secondary { display: flex; gap: 6px; flex-wrap: wrap; }
.note-actions button, .note-footer button { border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: white; color: var(--ink); font-size: 11px; white-space: nowrap; }
.note-actions > button { background: black; color: white; border-color: black; }
.note-actions button:disabled { opacity: .6; cursor: wait; }
.note-title { font-family: 'Space Grotesk',sans-serif; font-size: clamp(24px,2.6vw,38px); font-weight: 400; border: 0; outline: 0; background: white; color: var(--ink); width: 100%; padding: 5px 0 24px; }
.note-title::placeholder { color: #aaa; }
.note-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-toolbar button { padding: 7px 8px; min-height: 32px; border: 0; border-radius: 5px; background: white; color: #555; font-size: 12px; }
.note-toolbar button:hover, .note-toolbar button[aria-pressed="true"] { background: #eee; color: black; }
.notes-prose { min-height: 380px; padding: 22px 0; outline: none; color: var(--ink); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.notes-prose h1, .notes-prose h2, .notes-prose h3, .notes-prose h4, .notes-prose h5, .notes-prose h6 { text-transform: none; letter-spacing: normal; font-family: 'Space Grotesk',sans-serif; font-weight: 500; line-height: 1.3; margin: 1.2em 0 .55em; }
.notes-prose h1 { font-size: 32px; }.notes-prose h2 { font-size: 26px; }.notes-prose h3 { font-size: 21px; }
.notes-prose p { margin: .55em 0; }.notes-prose strong { font-weight: 650; }.notes-prose ul, .notes-prose ol { padding-left: 24px; margin: .65em 0; }
.notes-prose li { margin: .15em 0; line-height: 1.55; }
.notes-prose li > p, .notes-prose li > div > p { margin: .12em 0; }
.notes-prose li ul, .notes-prose li ol { margin: .2em 0; }
.notes-prose blockquote { margin: 20px 0; border-left: 3px solid black; padding-left: 20px; color: #555; }
.notes-prose pre { background: #f4f4f4; padding: 20px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.65; }
.notes-prose code { background: #f4f4f4; padding: 2px 4px; border-radius: 3px; }.notes-prose pre code { padding: 0; }
.notes-prose ul[data-type="taskList"] { list-style: none; padding: 0; }.notes-prose ul[data-type="taskList"] li { display: flex; gap: 12px; align-items: start; }.notes-prose ul[data-type="taskList"] li > div { flex: 1; min-width: 0; }.notes-prose ul[data-type="taskList"] label { padding-top: 2px; }.notes-prose input[type="checkbox"] { accent-color: black; }
.notes-prose table { border-collapse: collapse; width: 100%; table-layout: fixed; }.notes-prose td, .notes-prose th { border: 1px solid var(--line); padding: 8px; vertical-align: top; }.notes-prose th { background: #f4f4f4; }
.notes-prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.notes-prose .is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; height: 0; color: #aaa; pointer-events: none; }
.note-source { width: 100%; min-height: 430px; margin-top: 20px; padding: 15px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; font: 13px/1.8 monospace; color: black; background: #fafafa; }
.note-footer { display: flex; gap: 15px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; line-height: 1.8; border-top: 1px solid var(--line); padding: 16px 0 0; }
.note-status { padding: 16px 38px 20px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.note-delete-dialog { border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: min(460px,90vw); background: white; color: black; }.note-delete-dialog::backdrop { background: #0008; }.note-delete-dialog p { line-height: 1.7; font-size: 14px; }.note-delete-dialog > div { display: flex; gap: 10px; justify-content: flex-end; }.note-delete-dialog button { padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; background: white; }
@media (max-width: 1000px) { .notes-app { grid-template-columns: 215px minmax(0,1fr); }.note-page { padding: 20px 24px 0; }.note-actions { align-items: start; flex-wrap: wrap; margin-bottom: 25px; }.note-status { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 650px) { .notes-app { grid-template-columns: minmax(0,1fr); }.notes-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }.notes-sidebar-heading { margin-bottom: 12px; }.notes-list { max-height: 175px; margin: 12px -4px 0; }.notes-brain-hint { margin-top: 12px; padding-top: 12px; }.notes-retry { margin-top: 12px; }.note-page { padding: 20px 18px 0; }.note-status { padding: 16px 18px; }.notes-prose { min-height: 320px; }.note-actions button { font-size: 10px; }.notes-empty { padding: 45px 20px; } }

/* Clear feedback for mouse, keyboard, touch and confirmed note saves. */
.notes-app button:not(.note-list-item):not(:disabled):is(:hover, :focus-visible) { background: #e6e6e6; color: #000; border-color: #000; box-shadow: 0 2px 5px #00000012; }
.notes-app button:not(:disabled):active { transform: translateY(1px); box-shadow: none; }
.notes-app button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.note-actions [data-note-save] { min-width: 108px; }
.note-actions [data-note-save][data-save-state="saved"] { background: #000; color: #fff; border-color: #000; }
.note-actions [data-note-save][data-save-state="saved"]:is(:hover, :focus-visible) { background: #333; color: #fff; }
@media (prefers-reduced-motion: reduce) { .notes-app button { transition: none; } }

/* Audience channels and X Studio share the dashboard's light/dark tokens. */
.audience-layout { display:grid; grid-template-columns:170px minmax(0,1fr); gap:32px; align-items:start; }
.audience-sidebar { position:sticky; top:115px; padding-top:8px; }
.audience-sidebar > .eyebrow { font-size:10px; padding:0 12px; margin-bottom:18px; }
.audience-sidebar nav { display:grid; gap:5px; }
.audience-sidebar a { display:flex; align-items:center; gap:12px; padding:12px; border-radius:10px; text-decoration:none; font-size:13px; color:var(--muted); }
.audience-sidebar a > span { font-size:21px; width:23px; text-align:center; line-height:1; }
.audience-sidebar a > .audience-letter { font-size:17px; font-weight:700; }
.audience-sidebar a:hover, .audience-sidebar a.is-active { background:var(--blue-soft); color:var(--ink); }
.audience-sidebar a.is-active { font-weight:600; }
.audience-sidebar-hint { font-size:11px; line-height:1.7; color:var(--muted); padding:24px 12px; }
.audience-main { min-width:0; }
[data-audience-panel][hidden], [data-audience-channel][hidden], [data-audience-history-panel][hidden], .x-app [hidden] { display:none !important; }
.audience-insights-grid.is-single-channel { grid-template-columns:minmax(0,1fr); }
.audience-insights-grid.is-single-channel > article { grid-column:1; }
.x-app { min-width:0; }
.x-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.x-heading h3 { font-size:36px; letter-spacing:-.04em; }
.x-heading .eyebrow { font-size:10px; margin-bottom:10px; }
.x-heading p:not(.eyebrow) { color:var(--muted); font-size:12px; margin:10px 0 0; }
.x-button { border:1px solid var(--line); background:var(--surface); color:var(--ink); padding:11px 16px; border-radius:9px; font:500 12px/1.4 Inter,sans-serif; cursor:pointer; white-space:nowrap; }
.x-button:hover { border-color:var(--ink); }
.x-button.x-primary { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.x-app button:disabled { opacity:.4; cursor:not-allowed; }
.x-text-button { color:var(--muted); background:transparent; border:0; padding:6px 0; font-size:12px; cursor:pointer; }
.x-text-button:hover { color:var(--ink); }
.x-studio-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:24px; align-items:start; }
.x-writing { border:1px solid var(--line); border-radius:16px; background:var(--surface); padding:24px; min-width:0; }
.x-editor-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:20px; border-bottom:1px solid var(--line); font-size:11px; color:var(--muted); }
.x-title { width:100%; margin:18px 0 12px; padding:4px 0; background:transparent; color:var(--ink); border:0; border-radius:0; font:400 18px/1.5 'Space Grotesk',sans-serif; }
.x-compose-post { padding:16px 0 10px; border-bottom:1px solid var(--line); }
.x-compose-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:10px; }
.x-compose-meta > div { display:flex; align-items:center; gap:12px; }
.x-compose-meta button { background:transparent; color:var(--muted); border:0; cursor:pointer; font-size:20px; padding:0 5px; }
.x-compose-meta .is-invalid { color:#d55c48; font-weight:700; }
.x-compose-post textarea { display:block; resize:vertical; width:100%; min-height:145px; border:0; background:transparent; color:var(--ink); padding:14px 0 4px; font:300 17px/1.7 Inter,sans-serif; }
.x-add { margin-top:12px; }
.x-schedule-box { border-top:1px solid var(--line); margin-top:22px; padding-top:20px; }
.x-schedule-box label { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:11px; margin-bottom:10px; }
.x-schedule-box label span { color:var(--muted); font-size:10px; }
.x-schedule-box input { width:100%; min-width:0; background:var(--paper); color:var(--ink); border:1px solid var(--line); padding:12px; border-radius:8px; font:400 13px Inter,sans-serif; }
.x-save-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.x-status { min-height:20px; font-size:11px; color:var(--muted); line-height:1.65; margin:14px 0 2px; }
.x-bottom-actions { display:flex; gap:18px; margin-top:12px; }
.x-published-links { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; margin-top:10px; }
.x-preview-column { padding-top:12px; min-width:0; }
.x-preview-column > .eyebrow { font-size:10px; margin-bottom:20px; }
.x-preview { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px 20px; }
.x-preview-post { display:grid; grid-template-columns:34px minmax(0,1fr); gap:12px; position:relative; padding-bottom:24px; }
.x-preview-post:last-child { padding-bottom:0; }
.x-preview-post:not(:last-child)::after { content:''; position:absolute; left:16px; top:42px; bottom:7px; width:1px; background:var(--line); }
.x-avatar { width:34px; height:34px; display:grid; place-items:center; background:var(--blue-soft); border:1px solid var(--line); border-radius:50%; font-size:14px; }
.x-preview-name { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px; font-size:11px; line-height:1.6; }
.x-preview-name strong { font-weight:600; }
.x-preview-name span { color:var(--muted); font-size:10px; }
.x-preview-post p { white-space:pre-wrap; margin:8px 0 20px; font-size:13px; line-height:1.75; min-height:50px; }
.x-preview-actions { display:flex; justify-content:space-between; color:var(--muted); font-size:15px; }
.x-preview-hint { font-size:10px; color:var(--muted); line-height:1.8; max-width:330px; margin:18px 4px; }
.x-library { margin-top:32px; }
.x-library > header { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.x-filters { display:flex; flex-wrap:wrap; gap:6px; }
.x-filters button { background:transparent; border:0; border-radius:7px; padding:8px 10px; font-size:11px; color:var(--muted); cursor:pointer; }
.x-filters button[aria-pressed="true"] { background:var(--blue-soft); color:var(--ink); }
.x-filters span { margin-left:5px; font-size:10px; }
.x-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
.x-list-item { display:grid; gap:8px; text-align:left; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); padding:16px; cursor:pointer; overflow-wrap:anywhere; }
.x-list-item.is-active { border-color:var(--ink); }
.x-list-item span, .x-list-item small { font-size:10px; color:var(--muted); }
.x-list-item strong { font-size:12px; font-weight:400; line-height:1.6; }
.x-list-empty { grid-column:1/-1; margin:12px 0 28px; font-size:12px; color:var(--muted); }
.x-connect-dialog { width:min(500px,calc(100vw - 32px)); max-height:85vh; overflow:auto; padding:28px; border:1px solid var(--line); border-radius:16px; background:var(--paper); color:var(--ink); }
.x-connect-dialog::backdrop { background:rgba(0,0,0,.65); backdrop-filter:blur(4px); }
.x-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.x-dialog-heading h3 { font-size:24px; }
.x-dialog-heading button { font-size:25px; }
.x-connect-dialog p { font-size:12px; line-height:1.8; color:var(--muted); }
.x-connect-dialog label { display:grid; gap:7px; margin:15px 0; font-size:12px; }
.x-connect-dialog input { width:100%; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:11px; font:inherit; }
.x-connect-dialog .x-connect-note { font-size:11px; }
@media(max-width:1100px) { .audience-layout { grid-template-columns:145px minmax(0,1fr); gap:20px; } .x-studio-grid { grid-template-columns:minmax(0,1fr); } .x-preview-column { max-width:600px; } }
@media(max-width:700px) {
 .audience-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
 .audience-sidebar { position:static; padding:0; min-width:0; }
 .audience-sidebar > .eyebrow,.audience-sidebar-hint { display:none; }
 .audience-sidebar nav { display:flex; overflow:auto; gap:4px; padding-bottom:5px; }
 .audience-sidebar a { flex-shrink:0; padding:10px; font-size:11px; gap:6px; }
 .audience-sidebar a > span { font-size:17px; width:19px; }
 .x-heading { gap:10px; align-items:start; }
 .x-heading h3 { font-size:30px; }
 .x-heading .eyebrow { font-size:8px; }
 .x-writing { padding:18px; }
 .x-library > header { align-items:start; }
 .x-library > header > button { font-size:10px; }
 .x-filters { gap:2px; }
 .x-filters button { font-size:10px; padding:7px; }
 .x-list { grid-template-columns:minmax(0,1fr); }
 .x-button { padding:10px 12px; font-size:11px; }
}

/* Visual Reminders: original media, compact metadata, actions on demand. */
.reminder-workspace { grid-template-columns:180px minmax(0,1fr); gap:30px; align-items:start; min-height:560px; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
.reminder-sidebar { position:sticky; top:114px; padding:8px 0; background:transparent; color:var(--ink); }
.reminder-sidebar-head { padding:0 10px 20px; gap:10px; border-bottom:1px solid var(--line); }
.reminder-source-mark { width:30px; height:30px; flex-basis:30px; border-color:var(--line); border-radius:8px; }
.reminder-source-mark svg { width:17px; height:17px; }
.reminder-sidebar .eyebrow { color:var(--muted); font-size:9px; }
.reminder-sidebar h3 { color:var(--ink); font-size:18px; }
.reminder-folders { padding-top:16px; }
.reminder-folders button { min-height:42px; padding:0 12px; color:var(--muted); font-size:12px; font-weight:400; }
.reminder-folders button:hover,.reminder-folders button:focus-visible,.reminder-folders button.is-active { background:var(--blue-soft); color:var(--ink); }
.reminder-folders button.is-active { font-weight:600; }
.reminder-folders b { font-size:10px; font-weight:400; }
.reminder-connection { border-color:var(--line); margin:24px 10px 0; padding-top:16px; }
.reminder-connection p { color:var(--muted); font-size:10px; line-height:1.8; }
.reminder-connection .source-badge { color:var(--muted); background:var(--blue-soft); font-size:9px; }
.reminder-inbox { padding:0; }
.reminder-inbox-head { padding:4px 0 20px; min-height:58px; border:0; align-items:center; }
.reminder-inbox-head .eyebrow { display:none; }
.reminder-inbox-head h3 { font-size:26px; text-transform:none; }
.reminder-inbox-meta { font-size:9px; }
.reminder-inbox-meta strong { font-size:11px; font-weight:400; }
.reminder-search-row { margin-top:0; margin-bottom:24px; }
.reminder-search-row .dashboard-search input { background:var(--surface); color:var(--ink); border-color:var(--line); }
.reminder-search-row .dashboard-search input::placeholder { color:var(--muted); }
.reminder-list { display:block; column-count:3; column-gap:20px; }
.reminder-card { display:inline-block; vertical-align:top; width:100%; padding:0; margin:0 0 20px; break-inside:avoid; border:1px solid var(--line); border-radius:16px; background:var(--surface); transition:box-shadow .2s,opacity .2s; }
.reminder-card:hover { box-shadow:0 8px 28px rgba(0,0,0,.07); }
html[data-dashboard-density="compact"] .reminder-card { padding-top:0; padding-bottom:0; }
.reminder-card.is-loading { min-height:260px; padding:24px; }
.reminder-media { position:relative; min-height:190px; background:var(--blue-soft); border-radius:15px 15px 0 0; overflow:hidden; }
.reminder-media[hidden] { display:none !important; }
.reminder-media > a { display:block; }
.reminder-media img { display:block; width:100%; height:auto; max-height:430px; object-fit:contain; visibility:hidden; }
.reminder-media.is-loaded { min-height:0; }
.reminder-media.is-loaded img { visibility:visible; }
.reminder-media.is-screenshot img { max-height:330px; object-fit:cover; object-position:top; }
.reminder-media-loading { position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); font-size:11px; }
.reminder-media.is-loaded .reminder-media-loading { display:none; }
.reminder-expand { position:absolute; top:10px; right:10px; width:32px; height:32px; display:grid; place-items:center; border:1px solid rgba(0,0,0,.08); border-radius:9px; color:#111; background:rgba(255,255,255,.95); font-size:22px; cursor:pointer; opacity:0; transition:opacity .15s; }
.reminder-media:hover .reminder-expand,.reminder-media:focus-within .reminder-expand { opacity:1; }
.reminder-expand:disabled { display:none; }
.reminder-video-badge { position:absolute; left:12px; bottom:12px; display:grid; place-items:center; width:34px; height:26px; border-radius:7px; background:rgba(0,0,0,.75); color:white; font-size:11px; pointer-events:none; }
.reminder-card-body { padding:18px; }
.reminder-card-kicker { justify-content:space-between; gap:8px; font-size:9px; font-weight:400; letter-spacing:.025em; text-transform:none; }
.reminder-card-kicker span:first-child { color:var(--muted); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.reminder-kind { font-size:8px; letter-spacing:.07em; text-transform:uppercase; }
.reminder-card h4 { margin:10px 0 0; font-size:18px; line-height:1.4; letter-spacing:-.035em; text-transform:none; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
.reminder-card-excerpt { margin:10px 0 0; font-size:12px; line-height:1.75; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.reminder-card.has-no-preview { background:var(--reminder-note-paper,#f6f4ee); }
.reminder-card.has-no-preview .reminder-card-body { padding:24px 22px 18px; }
.reminder-card.has-no-preview h4 { font-size:24px; line-height:1.4; margin-top:20px; }
.reminder-card.has-no-preview .reminder-card-excerpt { font-size:13px; -webkit-line-clamp:8; margin-top:16px; }
.reminder-note { margin-top:0; }
.reminder-note-display { margin-top:14px; padding:10px 12px; border-left-width:2px; border-radius:0 6px 6px 0; background:var(--blue-soft); }
.reminder-note-display p { font-size:11px; }
.reminder-note-display span { font-size:8px; }
.reminder-note-form { background:var(--surface); margin-top:18px; padding:12px; }
.reminder-note-form textarea { background:var(--paper); color:var(--ink); font-size:12px; }
.reminder-card-footer { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:10px; margin-top:18px; }
.reminder-card-source { font-size:9px; }
.reminder-card-menu { position:relative; }
.reminder-card-menu summary { display:grid; place-items:center; list-style:none; width:32px; height:28px; border-radius:7px; color:var(--muted); font-size:12px; letter-spacing:2px; cursor:pointer; }
.reminder-card-menu summary::-webkit-details-marker { display:none; }
.reminder-card-menu summary:hover,.reminder-card-menu[open] summary { background:var(--blue-soft); color:var(--ink); }
.reminder-card-menu .reminder-card-actions { position:absolute; right:0; top:32px; z-index:20; width:200px; padding:10px; display:grid; gap:6px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 10px 30px rgba(0,0,0,.14); }
.reminder-card-menu .reminder-card-actions select,.reminder-card-menu .reminder-action-button { width:100%; max-width:none; min-height:34px; text-align:left; font-size:10px; border-radius:7px; color:var(--ink); background:var(--surface); }
.reminder-card-menu .reminder-note-toggle { width:100%; margin:0; padding:9px 4px; color:var(--ink); font-size:10px; font-weight:400; }
.reminder-card-menu .reminder-date-wrap { display:block; }
.reminder-empty { break-inside:avoid; }
.reminder-list:has(> .reminder-empty) { columns:auto; }
.reminder-preview-dialog { width:min(960px,calc(100vw - 32px)); max-height:88vh; padding:24px; border:1px solid var(--line); border-radius:18px; color:var(--ink); background:var(--paper); overflow:auto; }
.reminder-preview-dialog::backdrop { background:rgba(0,0,0,.7); backdrop-filter:blur(5px); }
.reminder-preview-dialog header { display:flex; align-items:start; justify-content:space-between; gap:24px; margin-bottom:20px; }
.reminder-preview-dialog h3 { font-size:23px; text-transform:none; line-height:1.4; }
.reminder-preview-dialog button { flex:0 0 32px; width:32px; height:32px; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--ink); font-size:21px; cursor:pointer; }
.reminder-preview-picture { border-radius:10px; background:var(--blue-soft); overflow:hidden; }
.reminder-preview-picture img { display:block; width:100%; height:auto; }
.reminder-preview-dialog p { margin:20px 0; color:var(--muted); font-size:13px; line-height:1.8; }
.reminder-preview-dialog > a { display:inline-block; font-size:13px; text-underline-offset:4px; }
/* The dashboard's global inversion must not alter the original image colours. */
html[data-dashboard-theme="dark"][data-dashboard-view="reminders"] .app-shell { filter:none; }
html[data-dashboard-theme="dark"][data-dashboard-view="reminders"] .topbar,
html[data-dashboard-theme="dark"][data-dashboard-view="reminders"] .footer { filter:invert(.86) hue-rotate(180deg); color-scheme:light; }
html[data-dashboard-theme="dark"] [data-view="reminders"],html[data-dashboard-theme="dark"] .reminder-preview-dialog {
 --ink:#e5e5e5; --muted:#a3a3a3; --paper:#242424; --surface:#2c2c2c; --line:#424242; --blue-soft:#353535; --reminder-note-paper:#30302d; color:var(--ink); color-scheme:dark;
}
@media(hover:none) { .reminder-expand { opacity:1; } }
@media(max-width:1200px) { .reminder-list { column-count:2; } }
@media(max-width:1000px) { .reminder-workspace { grid-template-columns:150px minmax(0,1fr); gap:22px; } .reminder-list { column-gap:16px; } }
@media(max-width:760px) {
 .reminder-workspace { grid-template-columns:minmax(0,1fr); gap:24px; }
 .reminder-sidebar { position:static; padding:0; }
 .reminder-sidebar-head,.reminder-connection { display:none; }
 .reminder-folders { margin:0; padding:0 0 8px; display:flex; gap:5px; overflow-x:auto; }
 .reminder-folders button { width:auto; min-width:88px; flex:0 0 auto; min-height:38px; }
 .reminder-inbox { padding:0; }
 .reminder-list { columns:210px; column-gap:14px; }
 .reminder-card { margin-bottom:14px; }
 .reminder-inbox-head h3 { font-size:25px; }
 .reminder-preview-dialog { padding:18px; }
}
@media(min-width:1800px) { .reminder-list { column-count:4; } }

/* Sites shares Audience navigation and retains its existing content order. */
.audience-sites-heading { margin-bottom:24px; }
.audience-sites-heading h3 { font-size:32px; line-height:1.2; }
.audience-sites-heading p:not(.eyebrow) { margin-top:12px; color:var(--muted); font-size:13px; line-height:1.7; }
[data-audience-panel="sites"] > .publications-panel { margin-top:0; }
.audience-notification-badge { margin-left:auto; min-width:18px; height:18px; padding:0 5px; display:grid; place-items:center; border-radius:9px; background:var(--ink); color:var(--paper); font-size:10px; font-weight:500; }
.audience-notification-badge[hidden] { display:none; }

/* Drag a reminder to any label; the menu remains available for touch/keyboard. */
.reminder-card[draggable="true"] { cursor:grab; }
.reminder-card.is-reminder-drag-source { opacity:.4; }
.reminder-workspace.is-reminder-dragging { cursor:grabbing; }
.reminder-folders button.is-reminder-drop-target { background:var(--ink); color:var(--paper); outline:2px solid var(--ink); outline-offset:3px; }
.reminder-folders button.is-reminder-drop-target b { color:inherit; }

/* Social media planning: calendar and individual writing pages. */
.planner-panel { margin-bottom: 18px; padding: 26px; min-width: 0; }
.planner-panel button, .planner-panel select, .planner-panel input, .planner-panel textarea { font: inherit; }
.planner-panel button { border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; background: #fff; color: var(--ink); cursor: pointer; }
.planner-panel button:hover { background: #f3f3f3; border-color: #999; }
.planner-panel button:focus-visible, .planner-event:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.planner-panel button:disabled { opacity: .5; cursor: wait; }
.planner-panel button.planner-primary { background: #111; border-color: #111; color: #fff; }
.planner-panel .panel-header h3 { font-size: 1.45rem; }
.planner-toolbar, .planner-month-nav, .planner-filter, .planner-editor-header, .planner-editor-header > div, .planner-code-heading, .planner-attachments header, .planner-editor-footer, .planner-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.planner-toolbar { flex-wrap: wrap; margin: 26px 0 20px; }
.planner-month-nav { justify-content: start; gap: 8px; }
.planner-month-nav h4 { min-width: 164px; margin: 0; font-size: 1.05rem; text-align: center; text-transform: capitalize; }
.planner-month-nav button { padding: 6px 10px; }
.planner-filter { color: var(--muted); font-size: .78rem; }
.planner-filter select { border: 1px solid var(--line); border-radius: 7px; padding: 7px; background: #fff; color: #111; }
.planner-weekdays, .planner-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.planner-weekdays span { padding: 9px; font-size: .72rem; color: var(--muted); }
.planner-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.planner-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.planner-day.is-outside { background: #fafafa; color: #aaa; }
.planner-day.is-today { background: #f6f6f6; }
.planner-panel button.planner-day-add { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; padding: 2px; background: transparent; font-size: .75rem; color: inherit; }
.planner-day-add time { display: grid; width: 25px; height: 25px; place-items: center; }
.planner-day.is-today time { border-radius: 50%; background: #111; color: white; }
.planner-day-add > span { opacity: 0; }
.planner-day:hover .planner-day-add > span, .planner-day-add:focus-visible > span { opacity: 1; }
.planner-event { display: block; margin-top: 5px; padding: 8px; border: 1px solid #dcdcdc; border-radius: 7px; background: white; color: #111; text-decoration: none; overflow-wrap: anywhere; }
.planner-event:hover { border-color: #111; box-shadow: 0 2px 8px #0000000a; }
.planner-event span, .planner-event small { display: block; font-size: .62rem; color: var(--muted); }
.planner-event strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 7px; font-size: .77rem; font-weight: 550; line-height: 1.4; }
.planner-event small::before { content: '○'; margin-right: 4px; }
.planner-event.is-ready small::before { content: '◐'; }
.planner-event.is-done { border: 2px solid #25834a; }
.planner-event.is-done small::before { content: '✓'; }
.planner-undated h4 { margin: 22px 0 8px; font-size: .85rem; }
.planner-undated h4 span { color: var(--muted); font-weight: 400; }
.planner-undated > div { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 8px; }
.planner-caption, .planner-status-row, .planner-editor-footer { font-size: .74rem; line-height: 1.5; color: var(--muted); }
.planner-caption { margin: 18px 0 0; }
.planner-status-row { margin-top: 10px; }
.planner-status-row p { margin: 0; }
.planner-panel.has-error .planner-status-row { padding: 12px; border: 1px solid #777; border-radius: 8px; color: #111; }
.planner-editor-header { margin-bottom: 32px; flex-wrap: wrap; }
.planner-title-input { width: 100%; padding: 8px 0; border: 0; background: transparent; font-family: 'Space Grotesk',sans-serif !important; font-size: 2rem !important; outline-offset: 5px; }
.planner-properties { display: grid; grid-template-columns: 1fr 1fr .85fr 1.4fr; gap: 14px; margin: 24px 0 30px; }
.planner-properties label { color: var(--muted); font-size: .72rem; }
.planner-properties input, .planner-properties select { display: block; width: 100%; min-width: 0; background: white; color: #111; border: 1px solid var(--line); border-radius: 7px; padding: 10px; margin-top: 7px; font-size: .82rem; }
.planner-symbols { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.planner-symbols > span { color: var(--muted); font-size: .75rem; margin-right: 7px; }
.planner-symbols button { padding: 6px 10px; }
.planner-symbols [data-planner-signoff] { font-size: .72rem; margin-left: auto; }
.planner-code-block { border: 1px solid #e1e1e1; background: #f7f7f7; border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.planner-code-heading { padding: 12px 16px; border-bottom: 1px solid #e5e5e5; color: #666; font-size: .74rem; }
.planner-code-heading button { border: 0; padding: 4px 8px; background: transparent; font-size: .72rem; }
.planner-panel textarea { display: block; width: 100%; resize: vertical; padding: 20px; border: 0; outline-offset: -3px; background: transparent; color: #202020; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .88rem; line-height: 1.9; tab-size: 2; }
.planner-code-footer { padding: 0 18px 12px; text-align: right; color: #888; font: .69rem ui-monospace,monospace; }
.planner-attachments { margin: 30px 0 24px; }
.planner-attachments h4 { font-size: 1rem; margin: 0; }
.planner-attachments header { flex-wrap: wrap; margin-bottom: 14px; }
.planner-attachments header button { font-size: .75rem; }
.planner-file-drop { text-align: center; padding: 27px 12px; border: 1px dashed #bbb; border-radius: 10px; color: #555; font-size: .8rem; }
.planner-file-drop small { display: block; margin-top: 8px; color: #999; font-size: .7rem; }
.planner-file-drop.is-over { border-color: #111; background: #eee; }
.planner-file-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 14px; margin-top: 14px; }
.planner-file { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.planner-file > strong { display: block; overflow-wrap: anywhere; font-size: .75rem; margin: 9px 0 4px; }
.planner-file > span { color: #777; font-size: .68rem; }
.planner-panel button.planner-file-visual { width: 100%; height: 130px; position: relative; border: 0; padding: 0; background: #f6f6f6; overflow: hidden; font-size: 2rem; }
.planner-file-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f6f6f6; }
.planner-file > div { display: flex; justify-content: space-between; margin-top: 8px; }
.planner-file > div button { padding: 4px 8px; font-size: .68rem; }
.planner-notes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; font-size: .8rem; }
.planner-notes summary { cursor: pointer; }
.planner-editor-footer { margin-top: 24px; flex-wrap: wrap; }
.planner-editor-footer button { font-size: .7rem; }
.planner-preview { max-width: 95vw; max-height: 95vh; padding: 48px 16px 16px; border: 0; border-radius: 14px; }
.planner-preview::backdrop { background: #000a; }
.planner-preview > button { position: absolute; right: 12px; top: 9px; }
.planner-preview img { max-width: 85vw; max-height: 80vh; object-fit: contain; }
@media(max-width:720px) {
 .planner-panel { padding: 16px; }
 .planner-panel .panel-header { flex-wrap: wrap; gap: 16px; }
 .planner-toolbar { gap: 16px; }
 .planner-month-nav { gap: 4px; width: 100%; }
 .planner-month-nav h4 { min-width: 0; flex: 1; font-size: .9rem; }
 .planner-month-nav button { padding: 6px; font-size: .75rem; }
 .planner-day { padding: 3px; min-height: 65px; }
 .planner-weekdays span { padding: 6px 3px; font-size: .65rem; }
 .planner-day-add > span { display: none; }
 .planner-day-add time { width: 22px; height: 22px; }
 .planner-event { padding: 4px 2px; }
 .planner-event span, .planner-event small { display: none; }
 .planner-event strong { font-size: .6rem; margin: 0; -webkit-line-clamp: 4; }
 .planner-properties { grid-template-columns: 1fr 1fr; gap: 12px; }
 .planner-title-input { font-size: 1.6rem !important; }
 .planner-editor-header { gap: 10px; margin-bottom: 20px; }
 .planner-editor-header button { font-size: .7rem; padding: 7px; }
 .planner-symbols [data-planner-signoff] { margin-left: 0; }
 .planner-panel textarea { padding: 14px; font-size: .82rem; }
 .planner-code-heading { padding: 9px; }
 .planner-status-row { align-items: start; }
}
