/* SKRYB · Editorial workspace. Shared tokens drive both themes. */
:root {
  color-scheme: light;
  --canvas: #f5f3ee;
  --surface: #fffefa;
  --surface-soft: #eeede7;
  --ink: #252e29;
  --muted: #626960;
  --line: #dcded5;
  --input-line: #818b80;
  --accent: #2e624c;
  --accent-soft: #e4eee5;
  --accent-line: #a5b9a7;
  --primary: #274e3d;
  --primary-hover: #1a3a2b;
  --on-primary: #ffffff;
  --on-accent: #ffffff;
  --danger: #a3322a;
  --danger-line: #b7655c;
  --danger-soft: #faeae6;
  --warning: #7b531f;
  --warning-soft: #f5ead4;
  --info: #385f79;
  --info-soft: #e7edf3;
  --shadow-color: #202b2310;
  --progress-sheen: #ffffff40;
  --font-ui: Inter, system-ui, sans-serif;
  --font-editorial: Georgia, 'Times New Roman', serif;
  --radius: 8px;
  --radius-small: 5px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --motion-fast: 140ms;
}
html[data-theme=dark] {
  color-scheme: dark;
  --canvas: #191e1b;
  --surface: #222923;
  --surface-soft: #2a332c;
  --ink: #e9ebe2;
  --muted: #b0baad;
  --line: #3c483e;
  --input-line: #758574;
  --accent: #adcfb2;
  --accent-soft: #2b4131;
  --accent-line: #647e67;
  --primary: #bed3b8;
  --primary-hover: #d3e3cf;
  --on-primary: #1e3125;
  --on-accent: #1e3125;
  --danger: #f2aea1;
  --danger-line: #ae7469;
  --danger-soft: #422c29;
  --warning: #edcf96;
  --warning-soft: #3c3324;
  --info: #b7cddd;
  --info-soft: #2b3742;
  --shadow-color: #00000026;
}
@font-face {
  font-family: Inter;
  src: url("Inter.2bf3d951bf9d.woff2") format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}
a {
  color: var(--ink);
  text-underline-offset: 4px;
}
button,input,select,textarea {
  font: inherit;
}
button,.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:disabled {
  opacity: .5;
  cursor: wait;
}
.secondary {
  background: var(--surface);
  color: var(--ink);
}
.danger {
  background: var(--surface);
  color: var(--danger);
  border-color: var(--danger-line);
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 400;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
}
nav,.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
nav a {
  font-size: 14px;
  text-decoration: none;
}
nav form {
  margin: 0;
}
main {
  margin: auto;
}
h1,h2,h3 {
  color: var(--ink);
  line-height: 1.2;
}
h1 {
  font-size: clamp(30px,4vw,48px);
  margin: 10px 0 20px;
}
p {
  overflow-wrap: anywhere;
}
.hero {
  padding: 40px 0 65px;
}
.muted {
  color: var(--muted);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
}
.auth {
  max-width: 530px;
  margin: auto;
}
form p {
  margin: 0 0 22px;
}
label {
  display: block;
  margin-bottom: 7px;
}
input,select,textarea {
  width: 100%;
  border: 1px solid var(--input-line);
  background: var(--surface);
  color: var(--ink);
}
input[type=checkbox] {
  width: auto;
}
input[type=file] {
  max-width: 100%;
}
.helptext {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.errorlist {
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.notice {
  padding: 16px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}
.card h2 {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.card a {
  text-decoration: none;
}
.badge {
  display: inline-block;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
}
.metadata {
  font-size: 14px;
  color: var(--muted);
}
.empty {
  padding: 65px 28px;
  text-align: center;
}
.empty p {
  max-width: 490px;
  margin: 20px auto;
}
.dropzone {
  border: 2px dashed var(--input-line);
  border-radius: 10px;
  padding: 28px;
  background: var(--canvas);
}
.dropzone.dragging {
  background: var(--accent-soft);
  border-color: var(--accent);
}
progress {
  width: 100%;
  accent-color: var(--accent);
}
.narrow {
  max-width: 760px;
  margin: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 4px;
  background: var(--surface);
}
footer {
  text-align: center;
  color: var(--muted);
}
.footer-links { justify-content: center; margin-top: 12px; gap: 24px; }
.footer-links a { font-size: 12px; min-height: 32px; display: inline-flex; align-items: center; }
.pagination {
  margin-top: 24px;
  display: flex;
  gap: 20px;
}
.report p {
  white-space: pre-wrap;
}
ul {
  padding-left: 22px;
}
@media(max-width:760px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    align-items: flex-start;
  }
  nav {
    gap: 12px;
    justify-content: flex-end;
  }
  nav form {
    width: 100%;
    text-align: right;
  }
  main {
    padding: 30px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel {
    padding: 24px;
  }
  .hero {
    padding: 20px 0;
  }
  .actions {
    gap: 12px;
  }
  .dropzone {
    padding: 18px;
  }
}
.config-panel {
  margin-top: 28px;
}
.config-panel form {
  margin-top: 24px;
}
.config-panel input[type=checkbox] {
  width: auto;
  margin-right: 8px;
}
.config-panel form p:has(input[type=checkbox]) label {
  display: inline;
  font-weight: 400;
}
.config-tabs {
  gap: 8px;
  margin: 24px 0;
  border-bottom: 1px solid var(--line);
}
.config-tabs a {
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  font-weight: 600;
}
.config-tabs a[aria-current=page] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
[hidden] {
  display: none!important;
}
textarea {
  resize: vertical;
  min-height: 180px;
}
#transcript-panel {
  margin-top: 24px;
}
.microphone-panel {
  padding: 24px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: var(--canvas);
}
.microphone-panel h2 {
  margin-top: 0;
}
.recording-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
#microphone-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--input-line);
}
.microphone-panel[data-recording=true] #microphone-indicator {
  background: var(--danger);
  box-shadow: 0 0 0 5px var(--danger-soft);
}
.microphone-panel audio {
  display: block;
  width: 100%;
  margin: 22px 0;
}
.microphone-panel .helptext:last-child {
  margin: 20px 0 0;
}
.generation-progress {
  margin: 24px 0;
}
.progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
}
.progress-heading label {
  margin: 0;
}
.progress-heading span {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
}
.generation-progress progress {
  display: block;
  height: 12px;
  margin: 12px 0 18px;
  appearance: none;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-soft);
}
.generation-progress progress::-webkit-progress-bar {
  background: var(--surface-soft);
  border-radius: 20px;
}
.generation-progress progress::-webkit-progress-value {
  background-color: var(--accent);
  border-radius: 20px;
}
.generation-progress progress::-moz-progress-bar {
  background-color: var(--accent);
  border-radius: 20px;
}
.generation-progress[data-active=true] progress::-webkit-progress-value {
  background-image: linear-gradient(110deg,transparent 30%,var(--progress-sheen) 50%,transparent 70%);
  background-size: 160px 100%;
  animation: progress-activity 2s linear infinite;
}
.generation-progress[data-active=true] progress::-moz-progress-bar {
  background-image: linear-gradient(110deg,transparent 30%,var(--progress-sheen) 50%,transparent 70%);
  background-size: 160px 100%;
  animation: progress-activity 2s linear infinite;
}
.progress-message {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
@keyframes progress-activity {
  from {
    background-position: -160px 0;
  }
  to {
    background-position: 160px 0;
  }
}
@media(prefers-reduced-motion:reduce) {
  .generation-progress[data-active=true] progress::-webkit-progress-value {
    animation: none;
  }
  .generation-progress[data-active=true] progress::-moz-progress-bar {
    animation: none;
  }
}
.theme-toggle {
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-size: 13px;
  white-space: nowrap;
}
@media(max-width:760px) {
  .theme-toggle .theme-toggle-label {
    display: none;
  }
  .theme-toggle {
    padding: 8px 10px;
  }
}
/* Shared navigation */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.primary-nav {
  min-width: 0;
}
.primary-nav a[aria-current=page],.nav-menu .current-section {
  color: var(--accent);
  font-weight: 600;
}
.workspace-link[aria-current=page] {
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.account-links {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.account-links a,.account-links .text-button {
  white-space: nowrap;
}
.account-links .text-button {
  font-size: 14px;
  color: var(--muted);
  min-height: 40px;
}
.nav-menu {
  position: relative;
  font-size: 14px;
}
.nav-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  border-radius: 6px;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu summary::after {
  content: '⌄';
  font-size: 14px;
  transition: transform .15s;
}
.nav-menu[open] summary::after {
  transform: rotate(180deg);
}
.nav-menu summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.nav-menu-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 180px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow-color);
}
.nav-menu-content a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
}
.nav-menu-content a:hover {
  background: var(--canvas);
}
.site-header .theme-toggle {
  min-width: 38px;
  min-height: 38px;
  border-color: transparent;
  font-size: 20px;
}
.site-header .theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Conversation dashboard */
.dashboard-heading h1 {
  letter-spacing: -.035em;
}
.dashboard-heading p {
  margin: 0;
  font-size: 15px;
}
.dashboard-heading .button {
  gap: 8px;
  flex-shrink: 0;
}
.conversation-search {
  margin-bottom: 30px;
}
.search-field {
  flex: 1;
  min-width: 0;
}
.search-controls label {
  margin-bottom: 6px;
}
.search-controls input {
  padding: 11px 12px;
  min-height: 46px;
}
.date-filter {
  flex: 0 0 190px;
  min-width: 0;
}
.search-controls button {
  font-size: 14px;
}
.search-reset {
  display: flex;
  align-items: center;
}
.conversation-search .helptext {
  font-size: 12px;
  margin: 10px 0 0;
}
.conversation-search .errorlist {
  margin: 8px 0 0;
}
.search-results {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}
.conversation-day {
  margin: 0 0 32px;
}
.day-heading {
  display: flex;
  align-items: center;
  letter-spacing: 0;
  margin: 0 0 16px;
  line-height: 1.5;
}
.day-heading::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.conversation-card .badge {
  font-size: 11px;
  line-height: 1.6;
  padding: 4px 9px;
  background: var(--surface-soft);
  color: var(--muted);
}
.conversation-card .badge[data-status=queued],.conversation-card .badge[data-status=processing] {
  background: var(--info-soft);
  color: var(--info);
}
.conversation-card .badge[data-status=ready] {
  background: var(--accent-soft);
  color: var(--accent);
}
.conversation-card .badge[data-status=failed] {
  background: var(--danger-soft);
  color: var(--danger);
}
.dashboard .pagination {
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  gap: 24px;
}
.dashboard .pagination a {
  padding: 6px 0;
}
.dashboard .pagination span {
  padding: 6px 0;
}
@media(max-width:1050px) {
  .conversation-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .primary-nav {
    gap: 14px;
  }
  .account-links {
    gap: 12px;
    padding-left: 14px;
  }
}
@media(max-width:760px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
  }
  .site-header .brand {
    font-size: 25px;
  }
  .primary-nav {
    justify-content: flex-end;
    gap: 12px;
  }
  .account-links {
    gap: 12px;
    padding-left: 12px;
  }
  .primary-nav .account-links form {
    width: auto;
    text-align: initial;
  }
  .primary-nav a,.nav-menu {
    font-size: 13px;
  }
  .account-links .text-button {
    font-size: 13px;
  }
  main:has(.dashboard) {
    padding-top: 28px;
  }
  .dashboard-heading {
    align-items: flex-start;
    gap: 20px;
  }
  .dashboard-heading .button {
    min-height: 46px;
  }
  .search-controls {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px 12px;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .date-filter {
    width: auto;
  }
  .search-controls button {
    align-self: start;
  }
  .search-reset {
    grid-column: 1/-1;
    margin: 0;
    min-height: 36px;
    justify-self: start;
  }
  .conversation-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
  }
  .conversation-card {
    padding: 20px;
  }
  .dashboard .empty {
    padding: 36px 20px;
  }
}
@media(max-width:600px) {
  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px 16px;
  }
  .account-links {
    order: 2;
    flex: 1;
    border-left: 0;
    padding-left: 0;
    justify-content: flex-end;
  }
  .site-header .theme-toggle {
    order: 3;
  }
  .conversation-grid {
    grid-template-columns: 1fr;
  }
  .conversation-card {
    padding: 24px;
  }
  .conversation-day {
    margin-bottom: 28px;
  }
  .dashboard-heading .button {
    width: 100%;
  }
}
@media(prefers-reduced-motion:reduce) {
  .conversation-card,.nav-menu summary::after {
    transition: none;
  }
}
.report li,.report h2 {
  overflow-wrap: anywhere;
}
.report li {
  white-space: pre-wrap;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  cursor: pointer;
  transition: background .18s ease,transform .18s ease;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}
.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media(max-width:600px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .back-to-top {
    transition: none;
  }
}
/* Account settings */
main:has(.account-page) {
  max-width: 1040px;
  padding-top: 44px;
}
.account-heading {
  margin: 0 0 30px;
}
.account-heading h1 {
  margin: 8px 0 8px;
  font-size: clamp(32px,4vw,42px);
  letter-spacing: -.035em;
}
.account-heading>p:last-child {
  margin: 0;
  font-size: 15px;
}
.account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  align-items: start;
  gap: 22px;
}
.account-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.account-summary {
  padding: 25px 22px;
  text-align: center;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 15px;
  font-size: 28px;
  letter-spacing: -.04em;
}
.account-summary h2 {
  margin: 0 0 5px;
  font-size: 19px;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.account-summary>p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.account-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}
.account-status>span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.account-outline {
  min-width: 0;
  display: block;
}
.account-outline-disclosure {
  width: 100%;
}
.account-outline-disclosure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.account-outline-disclosure>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.account-outline-disclosure>summary::-webkit-details-marker {
  display: none;
}
.account-outline-disclosure>summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.account-outline-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 8px 8px;
}
.account-outline-links a {
  padding: 8px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}
.account-outline-links a:hover,.account-outline-links a:focus-visible {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.account-card[id] {
  scroll-margin-top: 24px;
}
.account-sections {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.account-card {
  padding: 26px 28px;
  border-radius: 12px;
}
.account-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account-card-heading .eyebrow {
  margin: 0 0 6px;
  letter-spacing: .13em;
}
.account-card-heading h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.025em;
}
.account-card-intro {
  margin: 10px 0 22px;
  font-size: 14px;
}
.account-form {
  display: grid;
  gap: 18px;
}
.account-field {
  min-width: 0;
}
.account-field label {
  font-size: 13px;
  margin-bottom: 6px;
}
.account-field input {
  min-height: 46px;
  border-color: var(--input-line);
  border-radius: 8px;
  font-size: 14px;
}
.account-field input[readonly] {
  background: var(--surface-soft);
  color: var(--muted);
}
.account-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.account-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.account-email {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.account-save-notice {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
}
.account-form-footer button {
  margin-left: auto;
}
.account-cancel {
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.account-cancel:hover {
  text-decoration: underline;
}
.account-provider-status {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.account-provider-status.pending {
  background: var(--warning-soft);
  color: var(--warning);
}
.account-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.account-card-actions .button {
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 13px;
}
main:has(.account-detail) {
  padding-top: 32px;
}
.account-detail .account-heading h1 {
  font-size: clamp(28px,4vw,38px);
}
.account-detail .account-heading>.eyebrow {
  margin-top: 0;
}
.account-detail .report-back {
  margin-bottom: 12px;
}
.account-detail .config-panel {
  margin-top: 20px;
}
.account-detail .config-panel form {
  margin-top: 0;
}
.account-detail .config-panel h2 {
  font-size: 21px;
  letter-spacing: -.025em;
}
.account-detail .config-panel label {
  font-size: 13px;
}
.account-detail .config-panel input,.account-detail .config-panel select {
  font-size: 14px;
  border-radius: 8px;
}
.account-detail .config-panel button {
  font-size: 13px;
  min-height: 44px;
}
.account-detail .account-field .helptext ul {
  margin: 6px 0;
}
.account-detail .account-field .errorlist {
  margin: 8px 0 0;
}
.account-detail .account-field input[aria-invalid=true] {
  border-color: var(--danger-line);
}
.account-form-footer button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}
.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.security-row strong {
  font-size: 14px;
  color: var(--ink);
}
.security-row p {
  margin: 4px 0 0;
  font-size: 13px;
}
.security-row .button {
  flex: 0 0 auto;
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 13px;
}
@media(max-width:900px) {
  main:has(.account-page) {
    padding: 30px 18px;
  }
  .account-heading {
    margin-bottom: 22px;
  }
  .account-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .account-sidebar {
    position: static;
    gap: 12px;
  }
  .account-summary {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 16px;
    text-align: left;
  }
  .account-avatar {
    grid-row: 1/3;
    width: 52px;
    height: 52px;
    margin: 0;
    font-size: 22px;
  }
  .account-summary h2 {
    align-self: end;
    font-size: 16px;
  }
  .account-summary>p {
    align-self: start;
    font-size: 12px;
  }
  .account-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }
  .account-card {
    padding: 22px 20px;
  }
  .account-outline-disclosure>summary {
    padding: 10px 14px;
  }
}
@media(max-width:500px) {
  .account-form-footer,.security-row {
    align-items: stretch;
    flex-direction: column;
  }
  .account-form-footer button,.security-row .button,.account-card-actions .button {
    width: 100%;
    white-space: normal;
  }
  .account-card-actions {
    justify-content: stretch;
  }
  .account-form-footer .account-save-notice {
    order: 2;
  }
  .account-detail .account-form-footer .account-cancel {
    order: 2;
    justify-content: center;
  }
}
/* Report reading view */
main:has(.report-page) {
  padding-top: 32px;
}
.report-page {
  max-width: 760px;
  margin: auto;
  min-width: 0;
}
.report-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
}
.report-back:hover {
  text-decoration: underline;
}
.report-heading {
  margin: 0 0 20px;
}
.report-heading>div {
  min-width: 0;
  width: 100%;
}
.report-heading h1 {
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
}
.report-metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.report-type {
  font-weight: 600;
  color: var(--accent);
}
.report-metadata .badge {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--surface-soft);
  color: var(--muted);
}
.report-metadata .badge[data-status=ready] {
  background: var(--accent-soft);
  color: var(--accent);
}
.report-metadata .badge[data-status=queued],.report-metadata .badge[data-status=processing] {
  background: var(--info-soft);
  color: var(--info);
}
.report-metadata .badge[data-status=failed] {
  background: var(--danger-soft);
  color: var(--danger);
}
.report-actions {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.report-export-menu {
  position: relative;
  flex-shrink: 0;
}
.report-export-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.report-export-menu summary::-webkit-details-marker,.report-outline summary::-webkit-details-marker {
  display: none;
}
.report-export-menu summary:focus-visible,.report-outline summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.report-export-menu summary:hover {
  background: var(--primary-hover);
}
.report-export-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px var(--shadow-color);
}
.report-export-options a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.report-export-options a:hover {
  background: var(--canvas);
}
.report-export-options a span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.report-edit-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
}
.report-edit-link:hover {
  text-decoration: underline;
}
.report-layout {
  min-width: 0;
}
.report-page .report {
  min-width: 0;
}
.report-section+ .report-section {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
}
.report-section h2 {
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 14px;
  scroll-margin-top: 28px;
}
.report-section h2:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}
.report-section p,.report-section ul {
  margin: 0;
}
.report-section ul {
  padding-left: 20px;
}
.report-section li {
  padding-left: 3px;
}
.report-section li+li {
  margin-top: 10px;
}
.report-section .report-empty {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}
.report-outline {
  margin-bottom: 20px;
  min-width: 0;
}
.report-outline-disclosure {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.report-outline summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.report-outline nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0 8px 8px;
}
.report-outline nav a {
  padding: 8px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  border-radius: 6px;
}
.report-outline nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.report-footer-actions {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.report-footer-actions a {
  font-size: 12px;
  color: var(--danger);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}
.report-footer-actions a:hover {
  text-decoration: underline;
}
.report-state h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-top: 0;
}
.report-state>p:last-child {
  margin-bottom: 0;
}
@media(min-width:1100px) {
  .has-report-outline {
    max-width: 1000px;
  }
  .has-report-outline .report-header,.has-report-outline .report-footer-actions {
    margin-left: 240px;
  }
  .has-report-outline .report-layout {
    display: grid;
    grid-template-columns: 216px minmax(0,760px);
    gap: 24px;
    align-items: start;
  }
  .report-outline {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 0;
  }
  .report-outline-disclosure {
    border: 0;
    background: transparent;
  }
  .report-outline summary {
    padding: 0 8px 12px;
    cursor: pointer;
    min-height: 36px;
  }
  .report-outline nav {
    padding: 0;
    gap: 2px;
  }
  .report-outline nav a {
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    padding: 8px 10px;
  }
  .report-outline nav a:hover,.report-outline nav a:focus-visible {
    border-left-color: var(--accent);
  }
}
@media(max-width:760px) {
  main:has(.report-page) {
    padding-top: 20px;
  }
  .report-back {
    margin-bottom: 12px;
  }
  .report-heading {
    margin-bottom: 16px;
  }
  .report-heading h1 {
    margin-bottom: 12px;
  }
  .report-metadata {
    gap: 6px 12px;
    font-size: 12px;
  }
  .report-actions {
    gap: 16px;
    margin-bottom: 20px;
  }
  .report-export-menu summary {
    padding: 10px 16px;
  }
  .report-edit-link {
    font-size: 12px;
  }
  .report-page .report {
    padding: 28px 22px;
  }
  .report-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .report-section+ .report-section {
    margin-top: 28px;
    padding-top: 24px;
  }
  .report-footer-actions {
    margin-top: 20px;
  }
}
/* Conversation creation */
main:has(.create-page) {
  padding-top: 32px;
}
.create-heading {
  margin-bottom: 26px;
}
.create-heading .report-back {
  margin-bottom: 12px;
}
.create-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(30px,4vw,40px);
  letter-spacing: -.035em;
}
.create-heading>p {
  margin: 0;
  font-size: 15px;
  max-width: 590px;
}
.create-card {
  padding: 32px 36px;
}
.create-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.create-section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.025em;
  font-weight: 600;
}
.section-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.create-section+.create-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.source-fieldset {
  padding: 0;
  margin: 0 0 20px;
  border: 0;
  min-width: 0;
}
.source-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.source-option {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}
.source-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
  cursor: pointer;
}
.source-option-body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background .15s,border-color .15s;
}
.source-option-body>svg {
  width: 23px;
  height: 23px;
  color: var(--muted);
  margin-bottom: 12px;
}
.source-option-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.source-option-description {
  line-height: 1.5;
  color: var(--muted);
  margin-top: 3px;
}
.source-check {
  display: none;
  position: absolute;
  top: 14px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 11px;
  text-align: center;
  line-height: 18px;
}
.source-option input:checked+.source-option-body {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.source-option input:checked+.source-option-body>svg {
  color: var(--accent);
}
.source-option input:checked+.source-option-body .source-check {
  display: block;
}
.source-option:hover .source-option-body {
  border-color: var(--accent-line);
}
.source-option input:focus-visible {
  outline: none;
}
.source-option input:focus-visible+.source-option-body {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.source-option input:disabled+.source-option-body {
  opacity: .6;
  cursor: default;
}
.create-page .dropzone {
  padding: 28px 24px;
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed var(--input-line);
  border-radius: 12px;
}
.upload-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
  color: var(--muted);
}
.create-page .dropzone-title {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 6px;
}
.create-page .dropzone .helptext {
  font-size: 12px;
  margin: 0 0 18px;
}
.file-picker {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 13px;
}
.file-picker-ready input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  margin: -1px;
  border: 0;
}
.file-picker-ready:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.file-selection {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 18px;
  font-size: 12px;
  min-width: 0;
}
.file-selection strong {
  overflow-wrap: anywhere;
  max-width: 100%;
  font-weight: 600;
  color: var(--ink);
}
.file-selection>span {
  color: var(--muted);
  white-space: nowrap;
}
.create-page .dropzone.dragging {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.create-fields {
  display: grid;
}
.create-field {
  min-width: 0;
}
.create-field label {
  font-size: 13px;
  margin-bottom: 7px;
}
.create-field input,.create-field select,.create-field textarea {
  border-color: var(--input-line);
  border-radius: 8px;
  font-size: 14px;
  min-height: 48px;
  padding: 11px 13px;
}
.create-field input::placeholder {
  color: var(--muted);
}
.create-page #transcript-panel {
  margin-top: 0;
}
.create-field textarea {
  display: block;
  min-height: 240px;
  line-height: 1.7;
}
.transcript-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.transcript-meta .helptext {
  margin: 0;
  font-size: 11px;
}
#transcript-count {
  font-variant-numeric: tabular-nums;
}
.create-page .microphone-panel {
  border-color: var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  text-align: center;
  background: var(--surface-soft);
}
.create-page .microphone-panel h3 {
  font-size: 16px;
  letter-spacing: -.015em;
  margin: 0 0 10px;
  font-weight: 600;
}
.create-page .microphone-panel>.helptext {
  max-width: 440px;
  margin: 0 auto;
  font-size: 12px;
}
.create-page .recording-clock {
  justify-content: center;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -.04em;
  margin: 26px 0 12px;
}
.create-page #microphone-status {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.create-page .microphone-panel .actions {
  justify-content: center;
  gap: 12px;
}
.create-page .microphone-panel button {
  min-height: 44px;
  font-size: 13px;
  padding: 10px 16px;
}
.create-page .microphone-panel>.helptext:last-of-type {
  margin-top: 22px;
}
.create-page .microphone-panel[data-recording=true] {
  border-color: var(--danger-line);
}
.create-form-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 24px;
}
.create-form-footer>.helptext {
  font-size: 12px;
  margin: 0 0 16px;
}
.create-form-footer .actions {
  gap: 12px;
}
#upload-submit {
  gap: 16px;
  min-height: 46px;
  font-size: 14px;
}
.create-form-footer #upload-message {
  font-size: 13px;
  margin: 14px 0 0;
}
.create-form-footer #upload-message:empty {
  margin: 0;
}
.create-form-footer progress {
  margin-top: 12px;
  height: 8px;
}
.create-page .field-errors:empty {
  display: none;
}
.create-page .errorlist {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.create-page #errors-general:not(:empty) {
  margin-bottom: 22px;
}
.create-page [aria-invalid=true] {
  border-color: var(--danger-line);
}
@media(max-width:760px) {
  main:has(.create-page) {
    padding-top: 20px;
  }
  .create-heading {
    margin-bottom: 22px;
  }
  .create-heading>p {
    font-size: 14px;
  }
  .create-card {
    padding: 24px;
  }
}
@media(max-width:500px) {
  .create-card {
    padding: 24px 18px;
  }
  .create-section-heading {
    margin-bottom: 18px;
    gap: 10px;
  }
  .create-section-heading h2 {
    font-size: 18px;
  }
  .source-options {
    gap: 8px;
  }
  .source-option-body {
    padding: 15px 10px;
    min-height: 108px;
    align-items: center;
    text-align: center;
  }
  .source-option-body>svg {
    width: 21px;
    height: 21px;
    margin-bottom: 10px;
  }
  .source-option-description {
    font-size: 10px;
  }
  .source-check {
    width: 14px;
    height: 14px;
    top: 7px;
    right: 6px;
    font-size: 9px;
    line-height: 14px;
  }
  .create-page .dropzone {
    padding: 24px 14px;
  }
  .create-page .microphone-panel {
    padding: 24px 14px;
  }
  .create-form-footer .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .create-form-footer button {
    width: 100%;
  }
  .create-page .microphone-panel .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
@media(prefers-reduced-motion:reduce) {
  .source-option-body {
    transition: none;
  }
}
/* Optional conversation keywords */
.keyword-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  cursor: pointer;
}
.keyword-toggle input {
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  margin: 0;
}
.keyword-settings .helptext {
  margin-bottom: 20px;
}
.keyword-tools {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.keyword-tools>.button {
  font-size: 13px;
  min-height: 44px;
}
.keyword-batch {
  flex: 1;
  min-width: min(100%,260px);
}
.keyword-batch-label {
  font-size: 13px;
  margin: 0 0 8px;
}
.keyword-batch progress {
  height: 10px;
  display: block;
}
.keyword-batch .helptext {
  margin: 8px 0;
}
.keyword-refresh {
  font-size: 13px;
}
.conversation-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  max-width: 100%;
}
.conversation-keywords li {
  max-width: 100%;
  min-width: 0;
}
.conversation-keywords a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.conversation-keywords a:hover {
  background: var(--accent-soft);
  text-decoration: underline;
}
.search-controls:has(.keyword-filter) {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) 170px auto;
}
.keyword-filter {
  min-width: 0;
}
.search-controls:has(.keyword-filter) .search-reset {
  grid-column: 1/-1;
  margin: 0;
  min-height: 32px;
  justify-self: start;
}
.keyword-backfill h1 {
  font-size: clamp(26px,3vw,34px);
  overflow-wrap: anywhere;
}
.keyword-backfill form {
  margin-top: 24px;
}
.keyword-backfill button {
  margin-top: 12px;
}
@media(max-width:900px) {
  .search-controls:has(.keyword-filter) {
    grid-template-columns: minmax(0,1fr) auto;
  }
  .search-controls:has(.keyword-filter) .search-field,.keyword-filter {
    grid-column: 1/-1;
  }
  .search-controls:has(.keyword-filter) .date-filter {
    width: auto;
  }
}
@media(max-width:600px) {
  .keyword-tools>.button {
    width: 100%;
  }
  .keyword-backfill button {
    width: 100%;
  }
}
/* Keyword autocomplete */
.keyword-autocomplete {
  position: relative;
}
.keyword-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--input-line);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow-color);
}
.keyword-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.keyword-suggestions [role=option] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.keyword-suggestions [role=option]:hover,.keyword-suggestions [aria-selected=true] {
  background: var(--accent-soft);
  color: var(--ink);
}
.keyword-suggestion-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.keyword-suggestion-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
}
.keyword-suggestions-status:not(.visually-hidden) {
  margin: 8px 10px;
  font-size: 13px;
  color: var(--muted);
}
/* Conversation folders */
.folder-workspace {
  display: grid;
  align-items: start;
}
.folder-content {
  min-width: 0;
}
.folder-sidebar {
  position: sticky;
  top: 20px;
  max-height: 80vh;
  overflow: auto;
}
.folder-navigation summary {
  cursor: pointer;
  font-weight: 700;
}
.folder-sidebar nav {
  display: block;
}
.folder-sidebar a {
  display: block;
  overflow-wrap: anywhere;
}
.folder-sidebar ul {
  list-style: none;
  padding-left: 14px;
  margin: 3px 0;
  border-left: 1px solid var(--line);
}
.folder-sidebar nav>ul {
  padding-left: 0;
  border-left: 0;
}
.folder-new {
  font-weight: 600;
}
.folder-breadcrumbs {
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.folder-breadcrumbs a {
  overflow-wrap: anywhere;
  max-width: 100%;
}
.folder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.folder-toolbar h2 {
  margin: 0;
}
.folder-toolbar .actions {
  font-size: 13px;
  gap: 14px;
}
.folder-content .search-controls {
  flex-wrap: wrap;
}
.folder-content .keyword-filter {
  min-width: 0;
}
.folder-content .search-field {
  min-width: 160px;
}
.folder-content .conversation-card {
  min-width: 0;
}
@media(max-width:899px) {
  .folder-workspace {
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
  }
  .folder-sidebar {
    position: static;
    max-height: none;
  }
  .folder-content .search-field {
    min-width: 0;
  }
  .folder-content .search-controls>* {
    max-width: 100%;
  }
}
/* Account report backups */
.account-backups .account-card-heading {
  gap: 16px;
  flex-wrap: wrap;
}
.backup-format {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.backup-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-top: 24px;
}
.backup-option {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.backup-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.backup-icon svg {
  width: 24px;
  height: 24px;
}
.backup-option h3 {
  font-size: 17px;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--ink);
}
.backup-option p {
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.backup-option>.button {
  margin-top: auto;
}
.backup-option .button,.backup-option button {
  font-size: 13px;
  min-height: 44px;
  white-space: normal;
  text-align: center;
  padding: 10px 14px;
  max-width: 100%;
}
.backup-import-form {
  width: 100%;
  margin: 0;
}
.backup-file-field label {
  font-size: 12px;
  margin-bottom: 8px;
}
.backup-file-field input[type=file] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--input-line);
  border-radius: 8px;
  font-size: 12px;
}
.backup-file-field input::file-selector-button {
  padding: 8px 10px;
  margin-right: 8px;
  border: 0;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.backup-file-field input[aria-invalid=true] {
  border-color: var(--danger-line);
}
.backup-import-form .helptext {
  margin-top: 8px;
  font-size: 12px;
}
.backup-details {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
}
.backup-details>p {
  margin: 0 0 12px;
}
.backup-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  min-height: 32px;
}
.backup-details details p {
  color: var(--muted);
  margin: 10px 0 0;
}
@media(max-width:1100px) {
  .backup-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
@media(max-width:600px) {
  .backup-option {
    padding: 18px;
  }
  .backup-option .button,.backup-option button {
    width: 100%;
  }
  .backup-format {
    font-size: 11px;
  }
}
/* Personal conversation types */
.types-page {
  max-width: 1050px;
  margin: auto;
}
.types-page>.panel {
  margin-block: 24px;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}
.type-card {
  min-width: 0;
}
.type-card h3,.type-card p,.type-preview h3 {
  overflow-wrap: anywhere;
}
.type-actions {
  flex-wrap: wrap;
  align-items: center;
}
.type-actions form {
  margin: 0;
}
.type-actions details {
  max-width: 100%;
}
.type-form textarea,.type-form input,.type-form select {
  max-width: 100%;
  width: 100%;
}
.type-preview {
  margin-top: 24px;
}
.type-preview h3 {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media(max-width:700px) {
  .type-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .type-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .type-form .actions {
    flex-wrap: wrap;
  }
  .types-page .page-heading {
    flex-wrap: wrap;
  }
}
/* Editorial composition: common rhythm, readable controls, restrained surfaces. */
body {
  font: 15px/1.6 var(--font-ui);
}
h1, h2, h3 {
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
h1 {
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -.045em;
}
h2 {
  font-size: 22px;
  font-weight: 600;
}
a {
  text-decoration-thickness: 1px;
}
button, .button {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: var(--radius-small);
  font-size: 14px;
  gap: 10px;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
button:not(:disabled):hover, .button:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}
.secondary:hover, .theme-toggle:hover {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
  border-color: var(--input-line);
}
.danger:hover {
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
}
.text-button:hover {
  background: transparent !important;
  color: var(--accent) !important;
  text-decoration: underline;
}
input, select, textarea {
  min-height: 46px;
  border-radius: var(--radius-small);
  border-color: var(--input-line);
  font-size: 15px;
  padding: 10px 12px;
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[type=checkbox], input[type=radio] {
  min-height: auto;
  accent-color: var(--accent);
}
label {
  font-size: 13px;
  font-weight: 600;
}
.helptext, .metadata {
  font-size: 13px;
  line-height: 1.65;
}
.errorlist {
  color: var(--danger);
}
[aria-invalid=true] {
  border-color: var(--danger);
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
summary {
  cursor: pointer;
  min-height: 44px;
}
.panel {
  border-radius: var(--radius);
  box-shadow: none;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: .14em;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 650;
}
.notice {
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-small);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
}
.actions {
  gap: 12px 20px;
}
main {
  max-width: 1264px;
  padding: 48px 40px 64px;
  min-height: calc(100vh - 160px);
}
main:focus {
  outline: none;
}
footer {
  padding: 24px;
  font-size: 11px;
  letter-spacing: .03em;
}
.skip:focus {
  z-index: 100;
  padding: 8px 16px;
  border: 2px solid var(--accent);
  color: var(--ink);
}
.site-header {
  min-height: 76px;
  padding: 12px 40px;
  background: var(--surface);
  gap: 20px;
}
.brand {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1;
}
.brand span {
  color: var(--accent);
}
.brand-caption {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  margin-right: auto;
}
.primary-nav {
  margin-left: auto;
  gap: 24px;
}
.primary-nav a, .primary-nav .text-button, .nav-menu summary {
  font-size: 13px;
}
.primary-nav > a, .account-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.workspace-link[aria-current=page] {
  text-decoration: none;
  box-shadow: inset 0 -2px var(--accent);
}
.account-links {
  gap: 20px;
}
.site-header .theme-toggle {
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  color: var(--ink);
}
.theme-icon {
  width: 21px;
  height: 21px;
}
.theme-sun, html[data-theme=dark] .theme-moon {
  display: none;
}
html[data-theme=dark] .theme-sun {
  display: block;
}
.nav-menu-content, .report-export-options, .keyword-suggestions {
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow-color);
}
/* Library: a continuous list, with a quiet folder rail. */
main:has(.dashboard) {
  padding-top: 44px;
}
.dashboard-heading {
  margin-bottom: 38px;
  align-items: center;
}
.dashboard-heading .eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
}
.dashboard-heading h1 {
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 400;
  margin: 0 0 10px;
}
.dashboard-heading p.muted {
  font-size: 14px;
}
.folder-workspace {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 36px;
}
.folder-sidebar {
  padding: 6px 18px 6px 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}
.folder-navigation summary {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.folder-navigation summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
}
.folder-navigation[open] summary::after {
  content: '−';
}
.folder-navigation summary::-webkit-details-marker {
  display: none;
}
.folder-sidebar nav {
  margin-top: 6px;
}
.folder-sidebar a {
  padding: 10px 12px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--radius-small);
}
.folder-sidebar a:hover {
  background: var(--surface-soft);
}
.folder-sidebar a[aria-current=page] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.folder-new {
  border-top: 1px solid var(--line);
  border-radius: 0 !important;
  margin-top: 16px;
  color: var(--muted);
}
.folder-content .folder-breadcrumbs {
  justify-content: flex-start;
}
.folder-toolbar .actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.conversation-search {
  margin: 0 0 26px;
  padding: 0 0 14px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.search-controls {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.search-controls .search-field {
  flex: 1;
  min-width: 0;
}
.search-controls label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.search-controls button {
  margin-top: 0;
  min-height: 46px;
  align-self: flex-end;
}
.search-controls input {
  font-size: 14px;
  border-color: var(--input-line);
  border-radius: var(--radius-small);
}
.search-reset {
  margin-top: 0;
  min-height: 46px;
  font-size: 13px;
}
.search-filters {
  margin-top: 8px;
}
.search-filters > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
  min-height: 40px;
}
.search-filters > summary::-webkit-details-marker {
  display: none;
}
.search-filters > summary::before {
  content: '+';
  font-size: 17px;
  width: 12px;
}
.search-filters[open] > summary::before {
  content: '−';
}
.filter-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
}
.advanced-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr);
  gap: 20px;
  padding: 10px 0 16px;
}
.advanced-filters .date-filter {
  min-width: 0;
}
.advanced-filters .helptext {
  font-size: 12px;
}
.library-count {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 24px;
}
.conversation-day {
  margin-bottom: 28px;
}
.day-heading {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
  gap: 20px;
}
.conversation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.conversation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  min-width: 0;
  transition: background var(--motion-fast);
}
.conversation-card:hover, .conversation-card:focus-within {
  background: var(--surface);
  box-shadow: none;
  border-color: var(--line);
}
.conversation-main {
  min-width: 0;
}
.conversation-type {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.conversation-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.02em;
}
.conversation-card h3 a {
  text-decoration: none;
}
.conversation-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.conversation-card .metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.conversation-card .metadata > span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.conversation-duration {
  display: inline;
  margin: 0;
}
.conversation-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.badge, .conversation-card .badge, .report-metadata .badge {
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  padding: 4px 7px;
}
.conversation-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.conversation-move {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.conversation-move:hover {
  text-decoration: underline;
}
.card-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
}
.card-open span {
  font-size: 20px;
  line-height: 1;
}
.card-open:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.conversation-card .conversation-keywords {
  margin: 12px 0 0;
  gap: 6px;
}
.conversation-keywords a {
  background: transparent;
  border-color: var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  min-height: 32px;
}
.dashboard .empty {
  border-style: solid;
  padding: 48px 30px;
  background: var(--surface);
}
.dashboard .empty h2 {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: 30px;
}
.dashboard .empty p {
  font-size: 14px;
}
.dashboard .empty .eyebrow {
  font-size: 10px;
}
.dashboard .pagination {
  margin-top: 24px;
}
/* Entry: the product's editorial identity, with a compact native form. */
main:has(.auth-layout) {
  max-width: 1240px;
  padding-top: 68px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 100px;
  align-items: start;
}
.auth-story > .eyebrow {
  margin: 0 0 24px;
}
.auth-story h2 {
  font: 400 clamp(36px, 4vw, 54px)/1.08 var(--font-editorial);
  letter-spacing: -.04em;
  margin: 0 0 24px;
}
.auth-story h2 em {
  color: var(--accent);
  font-weight: 400;
}
.auth-story-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.editorial-sample {
  max-width: 440px;
  margin-top: 36px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: var(--surface);
}
.sample-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--muted);
}
.editorial-sample h3 {
  font: 400 28px/1.2 var(--font-editorial);
  margin: 24px 0 16px;
}
.editorial-sample > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.sample-decision {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.sample-decision > span {
  color: var(--accent);
  font-weight: 600;
}
.sample-decision p {
  margin: 0;
}
.sample-caption {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}
.auth-formats {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.auth-form-panel {
  width: 100%;
  max-width: 400px;
  margin: 40px 0 0;
  padding: 0;
}
.auth-form-panel .eyebrow {
  margin: 0 0 16px;
}
.auth h1 {
  font-size: 34px;
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1.14;
}
.auth-form-panel > .muted {
  font-size: 14px;
  margin-bottom: 30px;
}
.auth-form-panel form > p {
  margin-bottom: 20px;
}
.auth-form-panel button {
  width: 100%;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 4px;
}
.auth-form-panel label {
  font-size: 12px;
}
.auth-form-panel input {
  font-size: 16px;
}
.auth .helptext, .auth .errorlist {
  font-size: 12px;
}
.auth-recovery {
  font-size: 12px;
  margin: 18px 0 0;
}
.auth-switch {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}
/* Documents, creation and settings share the same paper / ink vocabulary. */
.create-heading h1, .account-heading h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 400;
}
.create-heading .eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
}
.create-card {
  border-radius: var(--radius);
  box-shadow: none;
}
.source-option-body {
  border-radius: var(--radius-small);
  min-height: 114px;
  padding: 16px;
}
.source-option-description {
  font-size: 12px;
}
.source-check {
  color: var(--on-accent);
}
.create-page .dropzone, .create-page .microphone-panel {
  border-radius: var(--radius-small);
  background: var(--canvas);
}
.section-number {
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 400;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
}
.create-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.create-fields > :first-child {
  grid-column: 1 / -1;
}
.create-field input, .create-field select, .create-field textarea, .account-field input {
  border-color: var(--input-line);
  border-radius: var(--radius-small);
}
.create-form-footer > .helptext, .transcript-meta .helptext {
  font-size: 12px;
}
.report-heading h1 {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.14;
}
.report-heading .eyebrow {
  margin: 4px 0 12px;
}
.report-actions {
  flex-wrap: wrap;
  gap: 8px 20px;
}
.report-export-menu summary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  border-radius: var(--radius-small);
}
.report-copy {
  font-size: 12px;
  padding: 8px 12px;
}
.copy-feedback {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--accent);
}
.copy-feedback:empty {
  display: none;
}
.report-page .report {
  border-radius: 2px;
  padding: 40px 44px;
  border-top: 3px solid var(--accent);
  font-size: 16px;
  line-height: 1.85;
}
.report-section h2 {
  font-size: 18px;
  letter-spacing: -.02em;
}
.report-section li::marker {
  color: var(--accent);
}
.report-outline nav a[aria-current=location] {
  background: var(--accent-soft);
  color: var(--accent);
  border-left-color: var(--accent);
}
.report-footer-actions {
  gap: 24px;
  flex-wrap: wrap;
}
.account-summary {
  background: transparent;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.account-avatar {
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-editorial);
  font-weight: 400;
}
.account-card, .account-outline-disclosure, .report-outline-disclosure {
  border-radius: var(--radius);
}
.account-outline-disclosure {
  background: transparent;
}
.account-card-heading .eyebrow {
  font-size: 9px;
}
.account-status {
  background: transparent;
  color: var(--muted);
}
.account-provider-status {
  border-radius: 4px;
}
.provider-credential {
  min-width: 0;
  margin: 32px 0 24px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.provider-credential legend {
  padding: 0 12px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.provider-credential .credential-status {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 16px;
}
.type-card {
  border-radius: var(--radius);
}
.type-card h3 {
  margin-top: 0;
}
.type-actions {
  font-size: 13px;
}
.backup-option {
  border-radius: var(--radius-small);
}
.back-to-top {
  width: 44px;
  height: 44px;
  box-shadow: none;
}
@media (max-width: 1100px) {
  .brand-caption {
    display: none;
  }
  .auth-layout {
    gap: 56px;
  }
  main {
    padding-inline: 28px;
  }
}
@media (max-width: 899px) {
  .folder-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .folder-sidebar {
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    padding: 0 14px;
  }
  .folder-navigation summary {
    min-height: 44px;
    font-size: 11px;
  }
  .folder-navigation[open] {
    padding-bottom: 12px;
  }
  .dashboard-heading {
    margin-bottom: 24px;
  }
  main:has(.auth-layout) {
    padding-top: 36px;
  }
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    max-width: 480px;
    margin: auto;
  }
  .auth-story {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
  .auth-story > .eyebrow {
    margin-bottom: 14px;
  }
  .auth-story h2 {
    font-size: 38px;
    margin: 0;
  }
  .auth-story-intro, .editorial-sample, .auth-formats {
    display: none;
  }
  .auth-form-panel {
    margin: 0;
    max-width: none;
  }
  .auth-form-panel .eyebrow {
    display: none;
  }
  .auth h1 {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  main, main:has(.dashboard), main:has(.account-page) {
    padding: 28px 20px 48px;
  }
  .site-header {
    position: relative;
    padding: 20px 20px 0;
    gap: 12px;
    flex-wrap: wrap;
  }
  .site-header .brand {
    font-size: 27px;
    margin-bottom: 4px;
  }
  .primary-nav {
    width: 100%;
    margin: 0;
    gap: 10px 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .primary-nav .account-links {
    margin-left: auto;
    border: 0;
    padding: 0;
    gap: 14px;
    flex: 0 1 auto;
    order: initial;
  }
  .primary-nav a, .primary-nav .text-button, .nav-menu summary {
    font-size: 12px;
  }
  .primary-nav > .theme-toggle {
    position: absolute;
    right: 10px;
    top: 10px;
  }
  .public .site-header {
    min-height: 68px;
    padding-bottom: 16px;
  }
  .public .primary-nav {
    width: 100%;
  }
  .dashboard-heading {
    gap: 20px;
    align-items: stretch;
  }
  .dashboard-heading h1 {
    font-size: 36px;
  }
  .dashboard-heading .button {
    width: 100%;
  }
  .dashboard-heading p.muted {
    font-size: 13px;
  }
  .search-controls, .folder-content .search-controls {
    display: flex;
    flex-wrap: wrap;
  }
  .search-controls .search-field {
    flex: 1 1 170px;
  }
  .search-controls button {
    margin-top: 0;
  }
  .search-controls .search-reset {
    min-height: 32px;
  }
  .advanced-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .advanced-filters .keyword-filter {
    grid-column: auto;
  }
  .conversation-search {
    margin-bottom: 18px;
    padding-bottom: 6px;
  }
  .library-count {
    margin-bottom: 20px;
  }
  .conversation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .conversation-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }
  .conversation-card h3 {
    font-size: 17px;
  }
  .conversation-side {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .conversation-row-actions {
    margin-left: auto;
  }
  .conversation-card .badge {
    font-size: 10px;
  }
  .conversation-move {
    font-size: 11px;
  }
  .conversation-card .metadata {
    font-size: 11px;
    gap: 4px 10px;
  }
  .conversation-card .metadata > span {
    padding-left: 10px;
  }
  .report-page .report {
    padding: 28px 22px;
    font-size: 15px;
    line-height: 1.8;
  }
  .report-actions {
    gap: 8px 16px;
  }
  .report-copy {
    font-size: 12px;
  }
  .report-metadata {
    font-size: 12px;
  }
  .report-heading h1 {
    font-size: 34px;
  }
  .panel {
    padding: 24px;
  }
  .create-card {
    padding: 24px 20px;
  }
  .source-option-description {
    font-size: 11px;
  }
  .source-option-body {
    padding: 16px 8px;
  }
  .create-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .create-heading h1, .account-heading h1 {
    font-size: 34px;
  }
}
@media (max-width: 380px) {
  .primary-nav {
    gap: 4px 12px;
  }
  .primary-nav .account-links {
    gap: 10px;
  }
  .search-controls .search-field {
    flex-basis: 100%;
  }
  .search-controls button {
    width: 100%;
  }
  .conversation-side {
    align-items: flex-start;
  }
  .source-option-description {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (forced-colors: active) {
  .source-option input:checked + .source-option-body, a[aria-current=page], .badge {
    outline: 1px solid CanvasText;
  }
}
.search-shortcut {
  margin-left: 8px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font: 11px/1.4 var(--font-ui);
}
@media (max-width: 760px) {
  .search-shortcut {
    display: none;
  }
}
.report-footer-actions .report-move {
  color: var(--muted);
  margin-right: auto;
}

.notice-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: var(--warning);
}

/* Automations and immutable cross-report syntheses. */
.automations-page { max-width: 1120px; margin-inline: auto; }
.automation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin-block: 1rem 2rem; }
.automation-card { min-width: 0; }
.automation-card h3, .synthesis-sources li { overflow-wrap: anywhere; }
.automation-card .actions { flex-wrap: wrap; align-items: center; gap: .7rem; }
.synthesis-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-block: 1.25rem; min-width: 0; }
.synthesis-form legend { font-weight: 600; }
.synthesis-selection > div { max-height: 16rem; overflow-y: auto; }
.synthesis-selection label { display: flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.synthesis-selection input[type=checkbox] { width: auto; flex-shrink: 0; }
.synthesis-preview, .synthesis-sources, .synthesis-alert { margin-block: 1.5rem; }
.synthesis-alert h2 { margin-top: 0; }
.synthesis-sources li { margin-bottom: .65rem; }
/* Sharing and owner-authorized application exports. */
.report-share-menu { position: relative; }
.report-share-menu > summary { cursor: pointer; padding: .65rem 1rem; border: 1px solid var(--line, #ccd8dc); border-radius: .5rem; list-style: none; }
.sharing-options { position: absolute; z-index: 20; top: calc(100% + .4rem); left: 0; width: min(320px, calc(100vw - 64px)); padding: 1rem; border: 1px solid var(--line, #ccd8dc); border-radius: .75rem; background: var(--surface, #fff); box-shadow: 0 12px 32px #12304a20; }
.sharing-options > a { display: block; padding: .6rem 0; }
.sharing-options hr { border: 0; border-top: 1px solid var(--line, #ccd8dc); margin: .9rem 0; }
.native-share { display: grid; gap: .6rem; }
.native-share .helptext { margin: 0; }
.sharing-page { max-width: 760px; margin: 0 auto; }
.sharing-card { margin: 1.2rem 0; }
.sharing-card form { display: grid; gap: .7rem; margin: 1rem 0; }
.sharing-card form button { justify-self: start; }
.sharing-page h1, .sharing-card h2, .sharing-folders a { overflow-wrap: anywhere; }
.sharing-new-folder { margin: 1rem 0; }
.sharing-new-folder > summary { cursor: pointer; }

/* Google Picker also fits the connected-export page on narrow screens. */
.picker-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 96px) !important;
}
.drive-picker-close { position: fixed; top: 12px; right: 12px; z-index: 2147483647; }
.picker-dialog-content, .picker-dialog-content iframe { max-width: 100% !important; max-height: calc(100dvh - 96px) !important; }
