:root {
  color-scheme: light;
  --ink: #132b30;
  --muted: #617176;
  --paper: #f5f3ec;
  --panel: #fffdf8;
  --line: #d9d9d1;
  --deep: #0b292e;
  --teal: #0c6d68;
  --teal-bright: #13a39a;
  --lime: #d8e65c;
  --coral: #e66d52;
  --amber: #b67a1b;
  --blue: #3976a7;
  --shadow: 0 18px 55px rgba(19, 43, 48, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 4% 2%, rgba(216, 230, 92, 0.18), transparent 28rem),
    linear-gradient(180deg, #f8f6ef 0%, var(--paper) 52%, #eeece4 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: white;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

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

.site-header,
.site-footer,
.workspace {
  width: min(1500px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand tools usage";
  align-items: start;
  gap: 7px 2rem;
  padding: 6px 0 8px;
  border-bottom: 1px solid rgba(19, 43, 48, 0.12);
}

.site-header .brand {
  grid-area: brand;
  max-width: min(50vw, 380px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--deep);
  box-shadow: 0 8px 20px rgba(11, 41, 46, 0.2);
}

.brand-mark svg { width: 28px; height: 28px; }
.brand-mark svg path:first-child { fill: none; stroke: var(--lime); stroke-width: 2; }
.brand-mark svg path:last-child { fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.6; }
.brand strong { display: block; font-size: 1.03rem; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; }

.header-meta {
  grid-area: tools;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.58rem;
  font-size: 0.78rem;
}
.header-meta > a { color: var(--muted); text-decoration: none; font-weight: 650; }
.header-meta > a:hover { color: var(--teal); }
.nav-action { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 700; cursor: pointer; }
.nav-action:hover { color: var(--teal); }
.history-nav-cta { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .75rem; border: 1px solid #cbd8d2; border-radius: 999px; background: white; color: var(--teal); }
.history-nav-cta:hover { border-color: var(--teal); background: #f5faf7; }
.notes-nav-cta {
  min-height: 32px;
  padding: .36rem .62rem;
  border: 2px solid var(--deep);
  border-radius: 10px;
  background: var(--lime);
  color: var(--deep);
  box-shadow: 0 6px 16px rgba(11, 41, 46, .14);
  font-weight: 900;
}
.notes-nav-icon { display:inline-block; font-size: 0.95rem; margin-right: 4px; line-height: 1; }
.notes-nav-cta:hover { background: #e9f45f; color: var(--deep); transform: translateY(-1px); }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.26rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
}
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(19, 163, 154, 0.1); }

.account-slot { position: relative; display: inline-flex; align-items: center; gap: .42rem; }
.header-sign-in { padding: .45rem .7rem; border-radius: 9px; background: var(--deep); color: white !important; }
.account-menu-button { display: inline-flex; align-items: center; gap: .32rem; min-height: 34px; padding: .16rem .34rem .16rem .2rem; border: 1px solid #cbd8d2; border-radius: 999px; background: white; color: var(--deep); cursor: pointer; box-shadow: 0 3px 12px rgba(7,63,68,.08); }
.account-menu-button:hover, .account-menu-button[aria-expanded="true"] { border-color: var(--teal); background: #f5faf7; }
.account-avatar { display: grid; flex: none; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--deep); color: var(--lime); font-size: .63rem; font-weight: 900; letter-spacing: .03em; }
.account-avatar.large { width: 46px; height: 46px; font-size: .82rem; }
.account-button-copy { display: block; max-width: 124px; text-align: left; }
.account-button-copy strong, .account-button-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button-copy strong { font-size: .68rem; }
.account-button-copy small { margin-top: 1px; color: var(--muted); font-size: .58rem; text-transform: capitalize; }
.account-chevron { color: var(--teal); font-size: .85rem; font-weight: 900; }
.account-panel { position: absolute; z-index: 150; top: calc(100% + 12px); right: 0; width: min(390px, calc(100vw - 24px)); padding: 18px; border: 1px solid #cbd8d2; border-radius: 17px; background: white; color: var(--ink); box-shadow: 0 24px 70px rgba(3,18,22,.25); }
.account-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.account-panel h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.account-panel header p:last-child { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.account-plan-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 14px; padding: 10px 0; border-block: 1px solid #edf0eb; }
.account-plan-row span { padding: .3rem .55rem; border-radius: 999px; background: var(--lime); color: var(--deep); font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.account-plan-row p { margin: 0; color: var(--muted); font-size: .66rem; text-align: right; }
.account-warning { margin: 10px 0 0; padding: 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.account-warning.warning { padding: 9px 10px; border-radius: 9px; background: #fff0e9; color: #a23c2c; font-weight: 750; }
.account-meter-list { display: grid; gap: 10px; margin-top: 13px; }
.account-meter-list > div { display: grid; gap: 5px; }
.account-meter-list span { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.account-meter-list strong { font-size: .7rem; }
.account-meter-list small { color: var(--muted); font-size: .65rem; font-variant-numeric: tabular-nums; }
.account-meter-list progress, .account-usage-strip progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 999px; background: #e3e8e3; accent-color: var(--teal-bright); }
.account-meter-list progress::-webkit-progress-bar, .account-usage-strip progress::-webkit-progress-bar { border-radius: 999px; background: #e3e8e3; }
.account-meter-list progress::-webkit-progress-value, .account-usage-strip progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.account-panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }

.site-header > .account-usage-strip {
  grid-area: usage;
  justify-self: end;
}

.account-usage-strip {
  display: grid;
  grid-template-columns: minmax(120px, .4fr) minmax(120px, .75fr) minmax(120px, .75fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #cfe0d8;
  border-radius: 10px;
  background: linear-gradient(105deg, #f7faf7, #f8fae9);
  box-shadow: 0 5px 14px rgba(7,63,68,.06);
  max-width: min(100%, 590px);
}
.account-usage-strip.compact-usage-strip { max-width: min(100%, 560px); }
.account-usage-strip .eyebrow { margin-bottom: 0; font-size: .48rem; letter-spacing: 0.15em; }
.account-usage-strip > div:first-child > strong { color: var(--deep); font-size: .68rem; line-height: 1.2; text-transform: capitalize; }
.usage-strip-meter { display: grid; gap: 4px; }
.usage-strip-meter > span { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.usage-strip-meter strong { font-size: .62rem; }
.usage-strip-meter small { color: var(--muted); font-size: .52rem; }
.account-usage-strip progress { height: 5px; }

.compact-usage-strip .usage-strip-meter { min-width: 0; }
.compact-usage-strip .usage-strip-meter > span { flex-wrap: wrap; }

.compact-usage-strip .report-button {
  min-height: 30px;
  padding: 0 .55rem;
  border-width: 1px;
}

body.notes-open { overflow: hidden; }
.notes-studio {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  min-width: 320px;
  min-height: 100dvh;
  background: #eef0e9;
  color: var(--ink);
}
.notes-studio:fullscreen { width: 100%; height: 100%; }
.notes-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding: 12px clamp(16px, 2.6vw, 40px);
  background: var(--deep);
  color: white;
}
.notes-studio-brand { display: flex; align-items: center; gap: .8rem; }
.notes-studio-brand .brand-mark { width: 39px; height: 39px; box-shadow: none; background: rgba(255,255,255,.08); }
.notes-studio-brand .eyebrow { margin-bottom: 0; color: var(--lime); font-size: .62rem; }
.notes-studio-brand h2 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.notes-studio-header-actions, .notes-toolbar-actions, .notes-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.studio-button, .studio-close {
  min-height: 36px;
  padding: .48rem .72rem;
  border: 1px solid #c9d4ce;
  border-radius: 9px;
  background: white;
  color: var(--deep);
  font-size: .73rem;
  font-weight: 800;
  cursor: pointer;
}
.notes-studio-header .studio-button { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: white; }
.notes-studio-header .studio-button.active { border-color: var(--lime); background: var(--lime); color: var(--deep); }
.studio-close { border-color: var(--lime); background: var(--lime); }
.notes-recorder {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(300px, 1.35fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 2.6vw, 40px);
  border-bottom: 1px solid #cad4cd;
  background: linear-gradient(105deg, #e8f2ee, #f7f8ec);
}
.notes-recorder.active { background: linear-gradient(105deg, #dff4eb, #f7f9d9); box-shadow: inset 0 -2px 0 var(--teal-bright); }
.notes-recorder-status { display: grid; grid-template-columns: auto minmax(150px, 1fr) 88px auto; align-items: center; gap: 10px; min-width: 0; }
.notes-recorder-status strong, .notes-recorder-status small { display: block; }
.notes-recorder-status strong { color: var(--deep); font-size: .85rem; }
.notes-recorder-status small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.notes-recording-dot { width: 12px; height: 12px; border: 3px solid #cbd5cf; border-radius: 50%; background: white; }
.notes-recorder.active .notes-recording-dot { border-color: #b9342c; background: #ef544a; box-shadow: 0 0 0 5px rgba(239, 84, 74, .13); animation: recording-pulse 1.8s ease-in-out infinite; }
@keyframes recording-pulse { 50% { box-shadow: 0 0 0 8px rgba(239, 84, 74, .04); } }
.notes-level { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #d8dfda; }
.notes-level i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-bright), var(--lime)); transition: width 90ms linear; }
.notes-recording-clock { min-width: 3.1rem; color: var(--deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .87rem; font-weight: 850; font-variant-numeric: tabular-nums; text-align: right; }
.notes-recorder-consent { display: flex; align-items: flex-start; gap: 9px; color: #34484c; font-size: .72rem; line-height: 1.4; cursor: pointer; }
.notes-recorder-consent input { width: 19px; min-width: 19px; min-height: 19px; height: 19px; padding: 0; margin: 1px 0 0; accent-color: var(--teal); }
.notes-recorder-consent strong { color: var(--deep); }
.notes-recorder-actions { display: flex; align-items: center; gap: 10px; }
.notes-record-button { min-height: 42px; padding: .65rem 1rem; border: 0; border-radius: 11px; background: var(--deep); color: white; font-size: .78rem; font-weight: 900; white-space: nowrap; cursor: pointer; box-shadow: 0 5px 13px rgba(11, 41, 46, .16); }
.notes-record-button::before { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #ef544a; content: ""; }
.notes-record-button.active { background: #b9342c; }
.notes-record-button.active::before { border-radius: 2px; background: white; }
.notes-record-button:disabled { opacity: .55; cursor: not-allowed; }
#notes-autosave-state { max-width: 150px; color: var(--muted); font-size: .65rem; line-height: 1.35; }
.session-limit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.session-limit span { white-space: nowrap; }
.session-limit select { min-height: 38px; padding: .42rem 1.8rem .42rem .55rem; border: 1px solid #c9d4ce; border-radius: 9px; background: white; color: var(--deep); font-size: .72rem; }
.session-limit.compact { align-items: flex-start; flex-direction: column; gap: 2px; }
.session-limit.compact span { font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; }
.notes-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .38fr) auto;
  align-items: end;
  gap: 12px;
  padding: 12px clamp(16px, 2.6vw, 40px);
  border-bottom: 1px solid #d6dcd6;
  background: #f8f8f3;
}
.notes-toolbar label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.notes-toolbar input, .notes-toolbar select { width: 100%; min-height: 39px; padding: .5rem .65rem; border: 1px solid #ccd4ce; border-radius: 9px; background: white; color: var(--ink); }
.notes-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(350px, 1fr); gap: 1px; min-height: 0; overflow: hidden; background: #d8ded9; }
.notes-pane { display: flex; min-width: 0; min-height: 0; flex-direction: column; padding: 20px clamp(14px, 2vw, 28px); overflow: hidden; background: #fdfcf7; }
.transcript-notes-pane { background: #f7f8f3; }
.smart-notes-pane { background: white; }
.notes-pane-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 12px; }
.notes-pane-heading .eyebrow { margin-bottom: 1px; font-size: .62rem; }
.notes-pane-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.notes-pane-heading > span { color: var(--muted); font-size: .68rem; font-variant-numeric: tabular-nums; }
.notes-pane textarea { width: 100%; min-height: 180px; flex: 1; resize: none; padding: 14px; border: 1px solid #d6dcd6; border-radius: 12px; background: rgba(255,255,255,.85); color: var(--ink); font-size: .9rem; line-height: 1.65; }
.notes-pane textarea:focus { outline: 3px solid rgba(19,163,154,.16); border-color: var(--teal); }
.notes-hint { margin: 10px 0 0; color: var(--muted); font-size: .7rem; }
.notes-inline-actions { margin-top: 10px; }
.notes-digest { min-height: 0; flex: 1; overflow: auto; padding-right: 5px; }
.notes-empty { padding: 18px; border: 1px dashed #bdc9c1; border-radius: 12px; background: #fafbf7; }
.notes-empty strong { font-family: Georgia, serif; font-size: 1.05rem; }
.notes-empty p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.notes-summary { margin-bottom: 12px; padding: 15px; border-left: 4px solid var(--lime); border-radius: 0 10px 10px 0; background: var(--deep); color: white; }
.notes-summary h4 { margin: 0 0 5px; color: var(--lime); font-family: Georgia, serif; font-size: 1.1rem; }
.notes-summary p { margin: 0; color: rgba(255,255,255,.78); font-size: .8rem; line-height: 1.55; }
.notes-section { margin-top: 10px; padding: 12px; border: 1px solid #e1e5df; border-radius: 11px; background: #fbfbf8; }
.notes-section h4 { margin: 0 0 7px; color: var(--teal); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.notes-section ul { margin: 0; padding-left: 1.05rem; color: #34484c; font-size: .78rem; }
.notes-section li + li { margin-top: 6px; }
.notes-task-meta { display: block; margin-top: 2px; color: var(--muted); font-size: .69rem; }
.notes-claim-button { width: 100%; margin-top: 7px; padding: .58rem .65rem; border: 1px solid #d5ddd7; border-radius: 8px; background: white; color: var(--deep); text-align: left; font-size: .75rem; cursor: pointer; }
.notes-claim-button:hover { border-color: var(--teal); }
.notes-claim-button span { display: block; margin-top: 2px; color: var(--teal); font-size: .65rem; font-weight: 800; }
.notes-build { width: 100%; margin-top: 12px; }
.notes-studio-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; padding: 9px clamp(16px, 2.6vw, 40px); border-top: 1px solid #d6dcd6; background: #f8f8f3; }
.notes-studio-footer p { margin: 0; color: var(--muted); font-size: .7rem; }

.workspace { padding-block: 26px 68px; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 2.3rem;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.065em;
}
h1 em { color: var(--teal); font-weight: 500; }
.notes-feature-cta { display: inline-flex; align-items: center; gap: .55rem; margin-top: 12px; padding: .55rem .82rem; border: 2px solid var(--deep); border-radius: 12px; background: var(--lime); color: var(--deep); font-size: .82rem; font-weight: 900; cursor: pointer; box-shadow: 0 6px 16px rgba(11, 41, 46, .12); }
.notes-feature-cta span { padding: .18rem .38rem; border-radius: 999px; background: var(--deep); color: white; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.notes-feature-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 41, 46, .2); }
.intro-copy { margin: 0 0 0.35rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); }

.sign-in-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 20px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--deep);
  color: white;
}
.sign-in-banner h2 { margin-bottom: .25rem; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.sign-in-banner p:last-child { margin: 0; color: rgba(255,255,255,.72); font-size: .86rem; }
.link-button { justify-content: center; text-decoration: none; }
.auth-required .media-column,
.auth-required .evidence-column { box-shadow: none; }

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.media-column,
.evidence-column {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.evidence-column { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }

.panel-heading,
.transcript-title-row,
.usage-title-row,
.manual-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.panel-heading { margin-bottom: 20px; }
.panel-heading > div { display: flex; align-items: baseline; gap: 0.75rem; }
.panel-heading h2, .listen-copy h2 { margin: 0; font-size: 1.02rem; letter-spacing: -0.02em; }
.step-label { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; font-weight: 800; }

.state-badge {
  flex: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
}
.state-badge.neutral { background: #ecece6; color: #697174; }
.state-badge.active { background: rgba(19, 163, 154, 0.13); color: var(--teal); }
.state-badge.warning { background: rgba(230, 109, 82, 0.13); color: #a7422d; }

.video-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
input { min-height: 45px; padding: 0 0.85rem; }
textarea { padding: 0.8rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--teal-bright); box-shadow: 0 0 0 4px rgba(19, 163, 154, 0.1); }

button { border: 0; cursor: pointer; transition: transform 130ms ease, background 130ms ease, opacity 130ms ease; }
button:hover:not(:disabled) { transform: translateY(-1px); }
button:focus-visible { outline: 3px solid rgba(19, 163, 154, 0.3); outline-offset: 2px; }
button:disabled { opacity: 0.48; cursor: not-allowed; }
.primary-button, .secondary-button, .danger-button {
  min-height: 45px;
  border-radius: 11px;
  padding: 0 1.05rem;
  font-size: 0.85rem;
  font-weight: 800;
}
.primary-button { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--lime); color: #172d2d; }
.primary-button:hover:not(:disabled) { background: #e1ed72; }
.secondary-button { background: var(--deep); color: white; }
.secondary-button:hover:not(:disabled) { background: #124149; }
.danger-button { background: var(--coral); color: white; }
.compact { min-height: 39px; padding-inline: 0.8rem; font-size: 0.8rem; }

.live-session-card { margin: 12px 0; padding: 15px; border: 1px solid rgba(12,109,104,.28); border-radius: 14px; background: linear-gradient(135deg, rgba(12,109,104,.08), rgba(218,231,103,.12)); }
.live-session-heading, .live-session-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.live-session-heading h3 { margin: 0; font-size: .95rem; }
.live-session-message { margin: 10px 0; color: #34484c; font-size: .82rem; line-height: 1.55; }
.live-connector-help { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 12px 0; padding: 12px; border: 1px solid #e0c681; border-radius: 12px; background: #fff9e9; }
.live-connector-help > div span, .live-connector-help > div strong { display: block; }
.live-connector-help > div span { color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.live-connector-help > div strong { color: var(--deep); font-size: .8rem; }
.live-connector-help p { margin: 0; color: #526064; font-size: .75rem; line-height: 1.45; }
.live-connector-help .report-button { display: inline-flex; align-items: center; text-decoration: none; }
.live-session-actions { padding-top: 10px; border-top: 1px solid rgba(12,109,104,.18); }
.live-session-actions > span { color: var(--muted); font-size: .75rem; font-weight: 750; }
.text-button { padding: 0.25rem; background: transparent; color: var(--teal); font-size: 0.78rem; font-weight: 800; }
.button-icon { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(230, 109, 82, 0.16); }

.field-message { margin: 7px 0 0; font-size: 0.8rem; }
.error-message { color: #aa3b2c; }
.status-message { color: var(--muted); }

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  border-radius: 17px;
  background: var(--deep);
}
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.upload-media-player { width: 100%; height: 100%; object-fit: contain; background: #071a1e; }
.upload-audio-player { height: 100%; padding: 0 clamp(18px, 7vw, 70px); }
.player-empty { height: 100%; display: grid; place-content: center; justify-items: center; padding: 2rem; color: white; text-align: center; }
.player-empty-icon { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 0.8rem; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.06); }
.player-empty-icon svg { width: 45px; }
.player-empty-icon rect, .player-empty-icon path { fill: none; stroke: var(--lime); stroke-width: 2; }
.player-empty-icon path { fill: var(--lime); stroke: none; }
.player-empty h3 { margin-bottom: 0.25rem; font-family: Georgia, serif; font-weight: 500; }
.player-empty p { max-width: 500px; margin: 0; color: rgba(255,255,255,.72); font-size: 0.88rem; }

.upload-card {
  margin-top: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f7faf7;
}
.upload-copy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.upload-copy h3 { margin-bottom: 4px; font-size: .95rem; }
.upload-copy p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: .8rem; }
.file-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 .9rem;
  border: 1px solid var(--teal);
  border-radius: 10px;
  color: var(--teal);
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.file-button:hover { background: rgba(12, 109, 104, .06); }
.upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e1e7e1; }
.upload-actions > span { min-width: 0; overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }

.listen-card,
.usage-card,
.transcript-card,
.manual-card,
.research-progress,
.welcome-card,
.claim-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}
.listen-card { margin-top: 14px; padding: 18px; }
.listen-copy { display: flex; align-items: flex-start; gap: 0.75rem; }
.listen-copy p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; }
.listen-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.capture-message, .consent-note, .budget-message { margin: 10px 0 0; color: var(--muted); font-size: 0.78rem; }
.consent-note { padding-top: 9px; border-top: 1px solid #ecece6; }
.consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .7rem;
  align-items: start;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #cfd9d3;
  border-radius: 12px;
  background: #f5faf7;
  color: #34484c;
  font-size: .82rem;
  cursor: pointer;
}
.consent-check input { width: 20px; min-height: 20px; margin: 1px 0 0; accent-color: var(--teal); }
.consent-check:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.consent-check strong { color: var(--ink); }

.capture-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0 0; padding: 0; border: 0; }
.capture-mode { position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 11px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.capture-mode.selected { border-color: var(--teal); background: rgba(12, 109, 104, 0.05); box-shadow: inset 0 0 0 1px var(--teal); }
.capture-mode input { position: absolute; opacity: 0; pointer-events: none; }
.capture-mode strong, .capture-mode small { display: block; }
.capture-mode strong { font-size: 0.84rem; }
.capture-mode small { color: var(--muted); font-size: 0.75rem; }
.mode-icon { position: relative; flex: none; width: 27px; height: 27px; border-radius: 8px; background: #ecf3ef; }
.tab-icon::before { content: ""; position: absolute; inset: 6px 5px 8px; border: 1.8px solid var(--teal); border-radius: 2px; }
.tab-icon::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 5px; height: 1.8px; background: var(--teal); box-shadow: 0 -3px 0 -0.3px var(--teal); }
.mic-icon::before { content: ""; position: absolute; width: 7px; height: 11px; left: 10px; top: 5px; border: 1.8px solid var(--teal); border-radius: 5px; }
.mic-icon::after { content: ""; position: absolute; width: 13px; height: 9px; left: 7px; top: 9px; border: 1.8px solid var(--teal); border-top: 0; border-radius: 0 0 8px 8px; box-shadow: 0 4px 0 -1.8px var(--teal); }

.usage-card { margin-top: 14px; padding: 17px; background: #f7faf7; }
.usage-title-row h3 { margin: 0; font-size: 0.93rem; }
.usage-title-row .eyebrow { margin-bottom: 0.15rem; }
.usage-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.usage-stats > div { padding: 10px; border-radius: 10px; background: white; }
.usage-stats span, .usage-stats strong { display: block; }
.usage-stats span { color: var(--muted); font-size: 0.72rem; }
.usage-stats strong { margin-top: 0.2rem; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.budget-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 13px; font-size: 0.8rem; font-weight: 700; }
.money-input { display: flex; align-items: center; gap: 3px; }
.money-input input { width: 78px; min-height: 34px; padding: 0 0.45rem; }
.budget-track { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #dfe6df; }
.budget-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal-bright); transition: width 180ms ease, background 180ms ease; }
.budget-track span.warning { background: var(--coral); }
.budget-message.warning { color: #a7422d; font-weight: 700; }

.transcript-card { margin-top: 14px; padding: 0; }
.transcript-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 17px; cursor: pointer; list-style: none; }
.transcript-summary::-webkit-details-marker { display: none; }
.transcript-summary > span { display: flex; align-items: center; gap: .55rem; }
.transcript-summary > span:last-child { color: var(--teal); font-size: .72rem; font-weight: 800; }
.transcript-summary::after { content: "+"; color: var(--teal); font-size: 1.15rem; font-weight: 800; }
.transcript-card[open] .transcript-summary::after { content: "−"; }
.transcript-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 17px 10px; border-top: 1px solid #eef0ea; }
.transcript-title-row p { margin: 10px 0 0; color: var(--muted); font-size: .75rem; }
.transcript-title-row .text-button { flex: none; margin-top: 10px; }
.live-indicator { width: 8px; height: 8px; border-radius: 50%; background: #aeb5b5; }
.live-indicator.active { background: var(--coral); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,109,82,.3); } 50% { box-shadow: 0 0 0 6px rgba(230,109,82,0); } }
.transcript { max-height: 250px; overflow-y: auto; margin: 0 17px 16px; padding-right: 5px; }
.empty-copy { margin: 0; color: #8a9394; font-size: 0.82rem; }
.transcript-segment { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid #eee; font-size: 0.82rem; overflow-wrap: anywhere; }
.transcript-segment:first-child { border-top: 0; }
.transcript-segment.claim-focus { margin-inline: -8px; padding-inline: 8px; border-radius: 8px; background: rgba(216,230,92,.3); box-shadow: inset 3px 0 0 var(--teal); }
.segment-time { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
button.segment-time { align-self: start; padding: 4px 2px; border: 1px solid #dbe4dc; border-radius: 5px; background: #f5faf7; cursor: pointer; }
button.segment-time:hover, button.segment-time:focus-visible { background: #e6efad; outline: 2px solid var(--teal); }
.segment-text { margin: 0; }

.evidence-heading { margin-bottom: 16px; }
.report-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 12px 13px; border: 1px solid #dbe4dc; border-radius: 13px; background: #f5faf7; }
.report-tools strong, .report-tools span { display: block; }
.report-tools strong { color: var(--deep); font-size: .8rem; }
.report-tools span { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.report-actions { display: flex; flex: none; gap: 6px; }
.report-button { min-height: 34px; padding: 0 .68rem; border: 1px solid var(--teal); border-radius: 8px; background: white; color: var(--teal); font-size: .7rem; font-weight: 800; }
.primary-report-button { background: var(--teal); color: white; }
.report-status { min-height: 0; margin: -2px 0 10px; color: var(--muted); font-size: .72rem; }
.report-status:empty { display: none; }
.research-progress { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; padding: 13px; background: #f4f8f5; }
.research-progress strong, .research-progress span { display: block; }
.research-progress strong { font-size: 0.82rem; }
.research-progress span { color: var(--muted); font-size: 0.75rem; }
.spinner { width: 21px; height: 21px; flex: none; border: 2px solid #d8e4df; border-top-color: var(--teal); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.share-chooser { width: min(520px, calc(100% - 24px)); max-height: min(680px, calc(100dvh - 24px)); padding: 0; overflow: auto; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 90px rgba(3,18,22,.32); }
.share-chooser::backdrop { background: rgba(4,24,29,.66); backdrop-filter: blur(4px); }
.share-chooser-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 20px 15px; border-bottom: 1px solid var(--line); background: white; }
.share-chooser-header h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -.025em; }
.share-chooser-header form { margin: 0; }
.share-chooser-close { min-height: 38px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-weight: 800; }
.share-chooser-summary { margin: 0; padding: 14px 20px 0; color: #405358; font-size: .8rem; line-height: 1.45; }
.share-destination-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 14px 20px; }
.share-destination { min-height: 54px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-align: left; }
.share-destination:hover { border-color: var(--teal); background: #f8fbf7; transform: translateY(-1px); }
.share-destination:disabled { opacity: .58; cursor: wait; transform: none; }
.share-destination strong, .share-destination span { display: block; }
.share-destination strong { font-size: .78rem; }
.share-destination span { margin-top: 3px; color: var(--muted); font-size: .66rem; line-height: 1.3; }
.share-destination.primary { grid-column: 1 / -1; border-color: var(--deep); background: var(--deep); color: white; }
.share-destination.primary strong { color: var(--lime); }
.share-destination.primary span { color: rgba(255,255,255,.72); }
.share-destination.facebook { border-color: #1877f2; }
.share-destination.facebook strong { color: #1877f2; }
.share-destination.whatsapp { border-color: #25a765; }
.share-destination.whatsapp strong { color: #16834b; }
.share-chooser-note { margin: 0; padding: 0 20px; color: var(--muted); font-size: .67rem; line-height: 1.45; }
.share-chooser-status { min-height: 39px; margin: 0; padding: 10px 20px 14px; color: var(--teal); font-size: .72rem; font-weight: 750; }

.history-dialog { width: min(760px, calc(100% - 24px)); max-height: min(820px, calc(100dvh - 24px)); padding: 0; overflow: auto; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 90px rgba(3,18,22,.32); }
.history-dialog::backdrop { background: rgba(4,24,29,.66); backdrop-filter: blur(4px); }
.history-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); background: white; }
.history-header h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; letter-spacing: -.025em; }
.history-header form { margin: 0; }
.history-intro { margin: 16px 18px 0; padding: 14px 16px; border-left: 4px solid var(--lime); border-radius: 0 11px 11px 0; background: var(--deep); color: white; }
.history-intro strong { color: var(--lime); font-family: Georgia, serif; font-size: 1.05rem; }
.history-intro p { margin: 4px 0 0; color: rgba(255,255,255,.74); font-size: .75rem; line-height: 1.5; }
.history-status { min-height: 0; margin: 10px 20px 0; color: var(--teal); font-size: .72rem; font-weight: 750; }
.history-status:empty { display: none; }
.history-list { display: grid; gap: 9px; padding: 16px 18px 22px; }
.history-empty { margin: 0; padding: 36px 18px; border: 1px dashed #c8d3cc; border-radius: 13px; color: var(--muted); text-align: center; }
.history-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.history-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.history-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 7px; color: var(--muted); font-size: .68rem; }
.history-verdicts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.history-verdicts span { padding: 4px 7px; border-radius: 999px; background: #edf0ec; color: #536467; font-size: .61rem; font-weight: 850; text-transform: uppercase; }
.history-verdicts .contradicted { background: #f9e3dc; color: #a23c2c; }
.history-verdicts .misleading { background: #faefd6; color: #916116; }
.history-verdicts .supported { background: #dff3e8; color: #176c57; }
.history-actions { display: flex; align-items: center; gap: 6px; }
.history-actions button { min-height: 38px; padding: .5rem .7rem; border: 1px solid var(--teal); border-radius: 9px; background: white; color: var(--teal); font-size: .68rem; font-weight: 850; }
.history-actions button.primary { background: var(--teal); color: white; }
.history-actions button:disabled { opacity: .55; cursor: wait; }
.history-clips { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .78rem; }
.history-clips summary { color: var(--teal); font-weight: 750; cursor: pointer; padding: 4px 0; }
.history-clip-list { display: grid; gap: 8px; max-height: 300px; overflow: auto; overscroll-behavior: contain; }
.history-clip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.history-clip-row > span:first-child { flex: 1; min-width: 130px; }
.history-clip-row button, .history-report-pages button { padding: 7px 10px; min-height: 38px; border: 1px solid var(--teal); border-radius: 8px; color: var(--teal); background: white; font-weight: 700; }
.history-clip-status { flex-basis: 100%; color: var(--muted); }
.history-clip-status:empty { display: none; }
.history-collection-overview, .history-report-pages { border: 1px solid var(--line); border-radius: 13px; padding: 16px; background: white; margin-bottom: 12px; }
.history-collection-overview h3 { margin: 0; font-size: 1rem; }
.history-collection-overview p, .history-report-pages p { font-size: .8rem; color: var(--muted); }
.history-report-pages button { margin: 4px; }
.claim-framing { border-top: 1px solid var(--line); background: linear-gradient(180deg, #f8fbe9 0, #fafbf8 100%); }
.claim-framing summary { padding: 13px 16px; color: #214d43; font-size: .86rem; font-weight: 900; cursor: pointer; }
.claim-framing summary::after { content: "  ·  evidence-bound study view"; color: var(--muted); font-size: .69rem; font-weight: 700; }
.framing-body { padding: 0 16px 16px; display: grid; gap: 12px; font-size: .85rem; line-height: 1.5; }
.critical-thinking-intro { margin: 0; padding: 10px 12px; border-left: 4px solid var(--lime-dark); background: rgba(216,230,92,.16); color: #33494a; font-weight: 650; }
.framing-body .framing-truth-comparison { padding: 12px; border: 2px solid #91aa3b; border-radius: 12px; background: #f5f9df; }
.framing-body .framing-truth-comparison strong { color: #294d20; }
.framing-public-accountability { padding: 12px; border: 2px solid #c8674e; border-left-width: 5px; border-radius: 12px; background: #fff4ee; }
.framing-public-accountability strong { color: #8b2f22; }
.framing-critical-questions { padding: 12px; border: 1px solid #95b9b2; border-radius: 12px; background: #eef8f5; }
.framing-body p { margin: 5px 0; }
.framing-body a { display: block; overflow-wrap: anywhere; color: var(--teal); }
.framing-limit { padding: 11px 12px; border: 1px solid #d3d9d5; border-radius: 10px; background: #fff; color: #4e5f61; font-size: .78rem; line-height: 1.52; }
.framing-limit > strong { color: var(--teal) !important; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.framing-limit > p { margin-top: 7px; }

.evidence-feed { display: grid; gap: 11px; }
.welcome-card { padding: 24px; background: linear-gradient(145deg, #0b2b30, #16454a); color: white; }
.welcome-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: rgba(216,230,92,.12); }
.welcome-icon svg { width: 27px; }
.welcome-icon path { fill: none; stroke: var(--lime); stroke-width: 1.8; }
.welcome-card h3 { margin: 17px 0 6px; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.welcome-card p, .welcome-card ul { color: rgba(255,255,255,.72); font-size: 0.84rem; }
.welcome-card p { margin-bottom: 12px; }
.welcome-card ul { margin: 0; padding-left: 1.1rem; }
.welcome-card li + li { margin-top: 4px; }

.batch-summary { padding: 12px 14px; border-left: 3px solid var(--teal-bright); background: rgba(19,163,154,.06); color: var(--muted); font-size: 0.8rem; }
.claim-card { overflow: hidden; }
.claim-top { padding: 16px; }
.claim-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.verdict, .confidence, .claim-time { padding: 0.27rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.verdict.supported { color: #176c57; background: #dff3e8; }
.verdict.contradicted { color: #a23c2c; background: #f9e3dc; }
.verdict.misleading, .verdict.needs-context { color: #916116; background: #faefd6; }
.verdict.unverified, .verdict.not-checkable { color: #5c6870; background: #e9edef; }
.confidence, .claim-time { color: var(--muted); background: #f1f1ed; }
.claim-card h3 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.3; font-weight: 550; }
.claim-quote { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--lime); background: #f7f8ef; color: #34484c; font-size: .82rem; line-height: 1.5; }
.claim-detail-grid { display: grid; gap: 8px; }
.claim-detail { padding: 10px 11px; border: 1px solid #e7e9e3; border-radius: 10px; background: #fbfbf8; }
.claim-detail.truth-verdict-detail { border-color: #b7d6cd; border-left: 4px solid var(--teal); background: #f2f8f5; }
.claim-detail.evidence-detail { border-color: #cfe3db; background: #f4faf7; }
.claim-detail.caveat-detail { border-color: #eddfc4; background: #fcf8ef; }
.claim-detail.legal-detail { border-color: #cad8e5; background: #f3f7fb; }
.claim-detail-label { margin: 0 0 4px; color: var(--teal); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.claim-detail-copy { margin: 0; color: #34484c; font-size: .8rem; line-height: 1.55; }
.claim-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.share-check, .pdf-check, .claim-playback-button { min-height: 36px; padding: .48rem .7rem; border-radius: 9px; font-size: .75rem; font-weight: 800; }
.share-check { border: 1px solid var(--teal); background: white; color: var(--teal); }
.share-check:hover { background: rgba(12,109,104,.06); }
.pdf-check { border: 1px solid #c6d2cc; background: #f6f8f5; color: var(--deep); }
.pdf-check::before { content: "↓"; margin-right: .38rem; color: var(--teal); font-weight: 900; }
.claim-playback-button { border: 1px solid var(--deep); background: var(--deep); color: white; }
.claim-playback-button::before { content: "▶"; margin-right: .42rem; color: var(--lime); font-size: .65rem; }
.claim-playback-button:hover { background: #124149; }
.source-list { border-top: 1px solid var(--line); background: #fbfbf8; }
.source-list-title { margin: 0; padding: 10px 16px 6px; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.source-link { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; padding: 10px 16px; border-top: 1px solid #ecece6; text-decoration: none; }
.source-number { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--deep); color: var(--lime); font-size: .68rem; font-weight: 800; }
.source-link strong, .source-link small { display: block; }
.source-link strong { font-size: .78rem; }
.source-link small { color: var(--muted); font-size: .7rem; }
.source-arrow { color: var(--teal); }
.no-sources { padding: 10px 16px 14px; color: var(--muted); font-size: .78rem; }
.claim-deep-dive { border-top: 1px solid var(--line); background: #fbfbf8; }
.claim-deep-dive-summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--teal); font-size: .75rem; font-weight: 850; cursor: pointer; list-style: none; }
.claim-deep-dive-summary::-webkit-details-marker { display: none; }
.claim-deep-dive-summary::after { content: "+"; font-size: 1rem; }
.claim-deep-dive[open] .claim-deep-dive-summary::after { content: "−"; }
.claim-deep-dive .claim-detail-grid { padding: 0 16px 14px; }
.claim-deep-dive .source-list { border-top: 1px solid var(--line); }
.feed-error { padding: 14px; border: 1px solid #efc9c0; border-radius: 12px; background: #fff4f1; color: #8f3d2f; font-size: .8rem; }

.manual-card { margin-top: 12px; padding: 15px; background: #f8f8f4; }
.manual-heading-row h3 { margin: 0; font-size: .9rem; }
.manual-heading-row > span { color: var(--muted); font-size: .72rem; }
.manual-card textarea { margin-top: 11px; background: white; font-size: .84rem; }
.manual-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 8px; }
.manual-actions > span { color: var(--muted); font-size: .72rem; }

.welcome-kicker { margin: 15px 0 -9px !important; color: var(--lime) !important; font-weight: 800; }

.how-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; margin-top: 80px; padding-top: 50px; border-top: 1px solid rgba(19,43,48,.13); }
.how-intro h2 { margin: 0; max-width: 550px; font-family: Georgia, serif; font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.how-grid article { padding: 20px; border-top: 2px solid var(--teal); background: rgba(255,255,255,.45); }
.how-grid article > span { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; }
.how-grid h3 { margin: 28px 0 8px; font-size: .88rem; }
.how-grid p { margin: 0; color: var(--muted); font-size: .82rem; }

.plans-section { margin-top: 78px; padding-top: 52px; border-top: 1px solid rgba(19,43,48,.13); }
.plans-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem 5rem; align-items: end; }
.plans-intro .eyebrow { grid-column: 1 / -1; }
.plans-intro h2 { margin: 0; max-width: 700px; font-family: Georgia, serif; font-size: clamp(2rem,3.2vw,3.2rem); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
.plans-intro > p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 28px; }
.plan-card { position: relative; min-height: 255px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.68); }
.plan-card.featured { border: 2px solid var(--teal); background: white; box-shadow: var(--shadow); }
.plan-name { margin-bottom: 12px; color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: 18px; }
.plan-price strong { font-family: Georgia, serif; font-size: 2.7rem; font-weight: 500; letter-spacing: -.04em; }
.plan-price span { color: var(--muted); font-size: .78rem; }
.plan-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .84rem; }
.plan-card li + li { margin-top: 8px; }
.plan-checkout { width: 100%; min-height: 42px; margin-top: 20px; padding: .65rem .8rem; border: 1px solid var(--teal); border-radius: 10px; background: white; color: var(--teal); font-size: .78rem; font-weight: 850; }
.plan-card.featured .plan-checkout { background: var(--teal); color: white; }
.plan-checkout:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(7,63,68,.12); }
.plan-checkout:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.plan-badge { position: absolute; right: 14px; top: 14px; padding: .32rem .5rem; border-radius: 999px; background: var(--lime); color: var(--deep); font-size: .66rem; font-weight: 850; }
.pricing-note { margin: 16px 0 0; color: var(--muted); font-size: .76rem; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-block: 30px; border-top: 1px solid rgba(19,43,48,.13); }
.site-footer > p { max-width: 720px; margin: 0; color: var(--muted); font-size: .78rem; }
.footer-copy { max-width: 760px; }
.footer-copy p { margin: 0; color: var(--muted); font-size: .78rem; }
.footer-copy nav { display: flex; gap: 1rem; margin-top: 8px; }
.footer-copy a { color: var(--teal); font-size: .78rem; font-weight: 750; text-decoration: none; }
.footer-brand { flex: none; }
.footer-brand .brand-mark { width: 35px; height: 35px; }
.footer-brand .brand-mark svg { width: 23px; }

.legal-header .back-link { color: var(--teal); font-size: .82rem; font-weight: 800; text-decoration: none; }
.legal-page { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 90px; }
.legal-page h1 { max-width: 760px; font-size: clamp(3rem,7vw,5.8rem); }
.legal-lead { margin: 30px 0 54px; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.legal-page section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-page h2 { margin-bottom: 10px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; }
.legal-page section p { margin: 0; color: #405358; font-size: 1rem; line-height: 1.75; }
.legal-callout { margin-top: 32px; padding: 22px; border-left: 4px solid var(--lime); border-radius: 0 14px 14px 0; background: var(--deep); color: white; }
.legal-callout strong { color: var(--lime); }
.legal-callout p { margin: 7px 0 0; color: rgba(255,255,255,.74); font-size: .88rem; }
.verdict-list { display: grid; gap: 9px; margin: 0; }
.verdict-list > div { display: grid; grid-template-columns: 135px 1fr; gap: 1rem; padding: 13px 0; border-top: 1px solid #ecece6; }
.verdict-list > div:first-child { border-top: 0; }
.verdict-list dt { color: var(--teal); font-weight: 850; }
.verdict-list dd { margin: 0; color: var(--muted); }
.legal-footer { justify-content: flex-end; }

.connector-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 80px; }
.legal-back { color: var(--teal); font-size: .82rem; font-weight: 800; text-decoration: none; }
.legal-hero { padding: 48px 0 34px; }
.legal-hero h1 { margin: 5px 0 16px; font-family: Georgia, serif; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 500; letter-spacing: -.04em; }
.legal-hero > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.legal-card { margin-top: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.75); }
.legal-card h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.legal-card p, .legal-card li { color: #405358; line-height: 1.7; }
.connector-steps ol { margin: 12px 0; padding-left: 1.3rem; }
.connector-steps li + li { margin-top: 12px; }
.connector-steps code { padding: .15rem .35rem; border-radius: 5px; background: #e8eeea; }
.connector-steps .source-link { display: inline; padding: 0; border: 0; font-weight: 800; }

[hidden] { display: none !important; }

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand tools"
      "brand usage";
    gap: 6px 1.2rem;
    padding: 6px 0 8px;
  }
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro-copy { max-width: 700px; }
  .work-grid { grid-template-columns: 1fr; }
  .evidence-column { position: static; max-height: none; }
  .how-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .plans-intro { grid-template-columns: 1fr; gap: 1rem; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .notes-layout { grid-template-columns: 1fr 1fr; overflow: auto; }
  .smart-notes-pane { grid-column: 1 / -1; min-height: 520px; }
  .notes-toolbar { grid-template-columns: 1fr 1fr; }
  .notes-toolbar-actions { grid-column: 1 / -1; }
  .notes-recorder { grid-template-columns: 1fr 1fr; }
  .notes-recorder-actions { grid-column: 1 / -1; justify-content: space-between; }
  .site-header > .account-usage-strip { width: 100%; }
  .account-usage-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .account-usage-strip > .report-button { justify-self: end; }
}

@media (max-width: 720px) {
  .site-header, .site-footer, .workspace { width: min(100% - 24px, 1500px); }
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tools"
      "usage";
    gap: 10px 0;
    min-height: auto;
    padding: 6px 0 12px;
  }
  .site-header .brand { grid-area: brand; }
  .header-meta > a:not(.header-sign-in), .privacy-pill { display: none; }
  .header-meta { grid-area: tools; justify-self: stretch; gap: .45rem; }
  .header-meta .nav-action:not(#open-notes):not(#open-history) { display: none; }
  .workspace { padding-block: 40px 56px; }
  h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .media-column, .evidence-column { padding: 14px; border-radius: 20px; }
  .input-row { grid-template-columns: 1fr; }
  .live-session-heading, .live-session-actions { align-items: flex-start; flex-direction: column; }
  .live-connector-help { grid-template-columns: 1fr; }
  .capture-modes { grid-template-columns: 1fr; }
  .usage-stats { grid-template-columns: 1fr 1fr; }
  .account-button-copy, .account-chevron { display: none; }
  .account-menu-button { min-height: 40px; padding: 2px; border: 0; background: transparent; box-shadow: none; }
  .account-panel { position: fixed; top: 72px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 84px); overflow: auto; }
  .site-header > .account-usage-strip { grid-area: usage; justify-self: stretch; width: 100%; }
  .account-usage-strip { grid-template-columns: 1fr; gap: 10px; padding: 8px 10px; }
  .account-usage-strip > .report-button { width: 100%; justify-self: stretch; }
  .upload-copy { align-items: flex-start; flex-direction: column; }
  .report-tools { align-items: flex-start; flex-direction: column; }
  .report-actions { width: 100%; }
  .report-button { flex: 1; }
  .share-chooser { width: min(100% - 16px, 520px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .share-chooser-header { padding: 20px 18px 15px; }
  .share-chooser-header h2 { font-size: 1.5rem; }
  .share-chooser-summary { padding: 15px 18px 0; }
  .share-destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px 18px; }
  .share-destination.primary { grid-column: 1 / -1; }
  .share-chooser-note { padding-inline: 18px; }
  .share-chooser-status { padding-inline: 18px; }
  .history-dialog { width: min(100% - 16px, 760px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .history-header { padding: 18px; }
  .history-card { grid-template-columns: 1fr; }
  .history-actions { width: 100%; }
  .history-actions button { flex: 1; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid h3 { margin-top: 14px; }
  .sign-in-banner { align-items: flex-start; flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .notes-studio { position: fixed; overflow: auto; }
  .notes-studio-header { align-items: flex-start; flex-direction: column; }
  .notes-studio-header-actions { width: 100%; }
  .notes-studio-header .studio-button { flex: 1; }
  .notes-recorder { grid-template-columns: 1fr; }
  .notes-recorder-status { grid-template-columns: auto minmax(120px, 1fr) 72px auto; }
  .notes-recorder-actions { grid-column: auto; align-items: stretch; flex-direction: column; }
  .session-limit, .session-limit.compact { align-items: stretch; flex-direction: column; }
  .session-limit select { width: 100%; min-height: 44px; }
  .notes-record-button { width: 100%; min-height: 50px; }
  #notes-autosave-state { max-width: none; text-align: center; }
  .notes-toolbar { grid-template-columns: 1fr; }
  .notes-toolbar-actions { grid-column: auto; }
  .notes-layout { display: block; overflow: visible; }
  .notes-pane { min-height: 520px; }
  .notes-studio-footer { align-items: flex-start; flex-direction: column; }
  .legal-page { width: min(100% - 28px, 820px); padding-block: 48px 64px; }
  .verdict-list > div { grid-template-columns: 1fr; gap: .25rem; }
}

/* Notebooks lead with useful notes; source text and receipts stay together. */
.notes-layout { grid-template-columns: minmax(260px, .85fr) minmax(340px, 1.15fr); grid-template-areas: "human smart" "transcript smart" "checks checks"; grid-template-rows: max-content max-content max-content; grid-auto-rows: max-content; align-content: start; align-items: start; gap: 16px; padding: 20px clamp(16px, 2.6vw, 40px); overflow: auto; background: #eef1eb; }
.notes-layout .notes-pane { min-height: 0; padding: 20px; border: 1px solid #d7ded6; border-radius: 14px; overflow: visible; box-shadow: 0 2px 7px #09282d06; }
.human-notes-pane { grid-area: human; }
.human-notes-pane textarea { min-height: 250px; resize: vertical; background: repeating-linear-gradient(white, white 27px, #e9eee8 28px); line-height: 28px; }
.smart-notes-pane { grid-area: smart; }
.transcript-notes-pane { grid-area: transcript; display: block; }
.transcript-notes-pane textarea { min-height: 280px; resize: vertical; }
.notebook-checks-pane { grid-area: checks; display: block; }
.notes-layout details > summary { cursor: pointer; margin-bottom: 0; }
.notes-layout details[open] > summary { margin-bottom: 14px; }
.notes-layout details > summary::after { content: "+"; color: var(--teal); font-size: 1.2rem; }
.notes-layout details[open] > summary::after { content: "−"; }
.notes-digest { overflow: visible; }
.notes-section { background: #fafbf8; }
.notes-section ul { line-height: 1.65; }
.notes-summary .notes-type-reason { margin-top: 10px; font-size: .72rem; }
#notes-name-hint { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; }
.notes-auto-organize { display: flex; align-items: start; gap: 7px; margin-top: 12px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.notes-auto-organize input { width: 17px; height: 17px; min-height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--teal); }
.notebook-check { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: white; }
.notebook-check summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; cursor: pointer; }
.notebook-check summary strong { flex: 1; min-width: 180px; font-size: .85rem; }
.notebook-check blockquote { margin: 12px 0; padding-left: 12px; border-left: 3px solid var(--teal); color: var(--muted); font-size: .8rem; }
.notebook-source { display: block; margin: 8px 0; font-size: .78rem; color: var(--teal); overflow-wrap: anywhere; }
.history-notebook { border-left: 4px solid var(--teal); }
.history-notebook .eyebrow { margin: 0 0 6px; font-size: .6rem; }
.history-preview { margin: 7px 0; color: var(--muted); font-size: .76rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notebook-rename { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.notebook-rename input { flex: 1; min-width: 150px; padding: 8px; border: 1px solid var(--teal); border-radius: 6px; }
#notebook-print { display: none; }
.usage-mobile-label { display: none; }
.account-panel { max-height: calc(100dvh - 90px); overflow: auto; overscroll-behavior: contain; }
.account-panel header > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.account-panel .account-avatar.large { display: none; }
.account-panel .usage-card { margin-top: 12px; padding: 12px; }
.account-panel .usage-title-row h3 { margin: 0; font-size: .83rem; }
.account-panel .usage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.account-panel .usage-stats > div { padding: 7px; }
.account-panel .budget-row { flex-wrap: wrap; gap: 6px; }
.account-panel .budget-row label { font-size: .72rem; }
.account-panel-actions { flex-wrap: wrap; }
.budget-warning { border-color: var(--amber) !important; color: #83530c !important; }
.intro-details summary { color: var(--teal); font-size: .9rem; font-weight: 700; cursor: pointer; }
.intro-details[open] summary { margin-bottom: 5px; }
.notes-toolbar { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr); }
.notes-tools { min-width: 0; }
.notes-tools > summary { display: none; cursor: pointer; }
.notes-tools-body { display: grid; grid-template-columns: minmax(150px, .5fr) 1fr; align-items: end; gap: 7px 12px; }
.notes-tools-body .notes-toolbar-actions { grid-column: auto; }
.notes-tools-body #notes-name-hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) {
  .notes-studio { display: block; min-height: 0; height: var(--notes-viewport-height, 100dvh); top: var(--notes-viewport-top, 0px); bottom: auto; overflow: auto; overscroll-behavior: contain; scroll-padding-block: 12px 36px; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .notes-studio-header { min-height: 54px; padding: 6px 12px; flex-direction: row; align-items: center; padding-top: max(6px, env(safe-area-inset-top, 0px)); }
  .notes-studio-brand { gap: 7px; }
  .notes-studio-brand .brand-mark { width: 30px; height: 30px; }
  .notes-studio-brand h2 { font-size: 1.1rem; }
  .notes-studio-brand .eyebrow { font-size: .5rem; }
  .notes-studio-header-actions { width: auto; }
  .studio-close { min-height: 44px; }
  .notes-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "human" "smart" "transcript" "checks"; gap: 12px; padding: 12px; overflow: visible; }
  .notes-layout .notes-pane { padding: 12px; }
  .notes-layout .smart-notes-pane { grid-column: auto; }
  .notes-pane-heading { margin-bottom: 8px; gap: 8px; }
  .notes-pane-heading .eyebrow { font-size: .55rem; }
  .notes-pane-heading > span { max-width: 44%; text-align: right; }
  .notes-pane textarea, .notes-toolbar input, .notes-toolbar select, .notes-recorder select { font-size: 16px; scroll-margin-block: 12px; }
  .human-notes-pane textarea { min-height: 170px; }
  .notes-toolbar { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; gap: 8px; }
  .notes-toolbar label { min-width: 0; }
  .notes-toolbar input { min-height: 44px; }
  .notes-tools > summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 1px solid #c9d4ce; border-radius: 9px; background: white; font-size: .78rem; font-weight: 800; list-style: none; }
  .notes-tools > summary::-webkit-details-marker { display: none; }
  .notes-tools > summary::after { content: "+"; margin-left: 6px; }
  .notes-tools[open] { grid-column: 1 / -1; }
  .notes-tools[open] > summary::after { content: "−"; }
  .notes-tools-body { grid-template-columns: 1fr; padding-top: 10px; }
  .notes-recorder { grid-template-columns: 1fr; padding: 8px 12px; gap: 7px; }
  .notes-recorder-status { grid-template-columns: auto minmax(0, 1fr) 38px auto; gap: 8px; }
  .notes-recorder-status small { font-size: .6rem; }
  .notes-recorder-consent { font-size: .65rem; }
  .notes-recorder-actions { display: grid; grid-template-columns: minmax(0, 1fr) 132px; grid-column: auto; gap: 7px; align-items: end; }
  .notes-record-button { min-height: 44px; padding: .5rem .7rem; }
  .notes-recorder-actions .session-limit { width: auto; }
  .notes-recorder-actions .session-limit select { width: 100%; min-height: 44px; max-width: 132px; }
  #notes-autosave-state { grid-column: 1 / -1; font-size: .6rem; }
  .notes-toolbar-actions { gap: 5px; }
  .notes-toolbar-actions .studio-button { min-height: 44px; padding: .4rem .55rem; font-size: .72rem; }
  .notes-studio-footer { position: static; padding: 12px; }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand brand account" "notes history usage"; align-items: center; gap: 4px 7px; padding: max(6px, env(safe-area-inset-top, 0px)) 0 6px; }
  .site-header .brand { max-width: none; gap: 8px; min-width: 0; }
  .site-header .brand-mark { flex: 0 0 32px; width: 32px; height: 32px; }
  .site-header .brand strong { font-size: .93rem; }
  .site-header .brand small { font-size: .6rem; }
  .header-meta { display: contents; }
  #open-notes { grid-area: notes; justify-content: center; min-height: 44px; padding: 6px 8px; font-size: .7rem; }
  #open-history { grid-area: history; min-height: 44px; padding: 6px 9px; font-size: .7rem; }
  #account-slot { grid-area: account; justify-self: end; }
  .account-menu-button { min-width: 44px; min-height: 44px; justify-content: center; }
  .header-sign-in { font-size: .65rem; padding: 5px; max-width: 108px; text-align: center; }
  .site-header > .account-usage-strip { display: block; min-width: 0; padding: 0; margin: 0; border: 0; background: none; width: auto; }
  .account-usage-strip > div { display: none; }
  .account-usage-strip > .report-button { min-height: 44px; padding: 4px 9px; font-size: .7rem; }
  .usage-wide-label { display: none; }
  .usage-mobile-label { display: block; }
  .usage-mobile-label small { display: block; color: var(--muted); font-size: .58rem; font-variant-numeric: tabular-nums; }
  .account-panel { top: max(8px, env(safe-area-inset-top, 0px)); bottom: auto; max-height: calc(100dvh - 24px); }
  .account-panel input { font-size: 16px; }
  .workspace { padding-block: 14px 36px; }
  .intro { gap: 6px; margin-bottom: 12px; }
  .intro .eyebrow { margin-bottom: 4px; font-size: .56rem; }
  .intro h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); line-height: 1; }
  .intro .notes-feature-cta { display: none; }
  .intro-details summary { font-size: .73rem; }
  .intro-copy { font-size: .78rem; line-height: 1.5; }
  .panel-heading { margin-bottom: 12px; gap: 6px; }
  .panel-heading > div { gap: 7px; }
  .panel-heading h2 { font-size: .88rem; }
  .media-column, .evidence-column { padding: 12px; border-radius: 16px; }
  .input-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .input-row input { grid-column: 1 / -1; font-size: 16px; min-width: 0; }
  .input-row button { min-height: 44px; font-size: .72rem; padding: 8px; }
  .video-form > label { font-size: .68rem; }
  .player-empty { padding: 16px; }
  .sign-in-banner { gap: 10px; padding: 14px; margin-bottom: 12px; }
  .sign-in-banner h2 { font-size: 1.1rem; }
}
@media print {
  body { background: white; }
  body > *:not(.notes-studio) { display: none !important; }
  .notes-studio { position: static; display: block !important; min-height: auto; background: white; }
  .notes-studio-header { color: var(--ink); background: white; border-bottom: 2px solid var(--deep); }
  .notes-studio-header .brand-mark, .notes-studio-header-actions, .notes-toolbar-actions, .notes-inline-actions, .notes-build, .notes-studio-footer { display: none !important; }
  .notes-toolbar { grid-template-columns: 2fr 1fr; padding-inline: 0; border: 0; }
  .notes-layout { display: block; background: white; }
  .notes-pane { min-height: auto; padding: 18px 0; overflow: visible; border-top: 1px solid #ddd; }
  .notes-pane textarea { min-height: 180px; overflow: visible; border: 0; }
  .notes-digest { overflow: visible; }
}

@media print {
  body > *:not(#notebook-print) { display: none !important; }
  #notebook-print { display: block !important; color: #111; padding: 16px; font: 11pt/1.5 Georgia, serif; }
  #notebook-print pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
}

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