/* Beyondly: blue, white and gold. A notes list of cards with a gold record button; Claude's results
   sit in a panel under the note. Uses Apple's system font, so it looks right with no connection. */
:root {
  --bg: #142A5C;
  --deep: #0F2350;
  --card: #1E3A7A;
  --card-2: #24448A;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .24);
  --fg: #FFFFFF;
  --muted: #C5D0EA;
  --gold: #F2C94C;
  --gold-ink: #142A5C;
  --gold-soft: rgba(242, 201, 76, .14);
  --danger: #FF9A94;
  --rec: #E5484D;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--font);
  display: flex; flex-direction: column; gap: 8px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; border: 1px solid var(--line-2); background: transparent; color: var(--fg);
  border-radius: 20px; padding: 8px 16px; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1.2;
}
.btn:hover { background: rgba(255, 255, 255, .06); }
.btn.primary, .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.btn.primary:hover, .btn.gold:hover { filter: brightness(1.06); background: var(--gold); }
.btn.big { min-height: 52px; border-radius: 26px; font-size: 17px; }
.btn.pill { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.stop { background: #FFFFFF; color: var(--gold-ink); border-color: #FFFFFF; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); flex: none; }
.btn.live { border-color: var(--rec); }
.btn.live .dot { border-radius: 2px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06);
  color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.icon-btn.gold { color: var(--gold); }
.back-link {
  min-height: 44px; padding: 0 8px 0 0; border: 0; background: transparent; color: var(--gold);
  display: inline-flex; align-items: center; gap: 2px; font-size: 17px; font-weight: 600; cursor: pointer;
}

/* Menus (settings, Claude) */
.menu-wrap { position: relative; }
.menu {
  position: absolute; z-index: 30; min-width: 190px; padding: 6px;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35); display: flex; flex-direction: column;
}
.menu-wrap .menu { right: 0; top: 52px; }
.menu-item {
  min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--fg); text-align: left; font-size: 16px; font-weight: 500; cursor: pointer;
}
.menu-item:hover { background: rgba(255, 255, 255, .08); }

/* Login */
.login { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.login-card .brand { font-size: 34px; }
.login-sub { margin: 0; color: var(--muted); }
.login-card input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(255, 255, 255, .06); font-size: 17px;
}
.login-card input::placeholder { color: var(--muted); }
.login-err { margin: 0; min-height: 1.5em; color: var(--danger); font-size: 14px; }

/* Recording bar */
.rec-bar {
  flex: none; margin: 0 12px; border: 1px solid var(--line-2); background: var(--deep);
  border-radius: 18px; padding: 10px 12px 10px 16px; display: flex; flex-direction: column; gap: 6px;
}
.rec-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); flex: none; }
.rec-time { font: 600 17px var(--font); font-variant-numeric: tabular-nums; flex: none; }
.rec-meter { flex: 0 1 120px; width: 120px; height: 6px; background: rgba(255, 255, 255, .15); border-radius: 3px; overflow: hidden; }
.rec-meter > span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left center; transform: scaleX(0); }
.rec-msg { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-live {
  max-height: 4.8em; overflow-y: auto; font-size: 16px; line-height: 1.6; color: var(--fg);
  border-top: 1px solid var(--line); padding-top: 8px;
}
.rec-live:empty::before { content: "Listening…"; color: var(--muted); }
.rec-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rec-parts:empty { display: none; }
.rec-parts li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rec-parts li.failed { color: var(--danger); }
.rec-parts .btn { min-height: 32px; padding: 4px 12px; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .rec-dot { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
}

/* App layout: list on the left, note on the right (stacked on a phone) */
.app {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  overflow: hidden;
}

/* Notes list */
.rail { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.rail-top { padding: 20px 20px 12px; display: flex; flex-direction: column; gap: 14px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.brand-block { display: flex; flex-direction: column; gap: 2px; }
.brand { margin: 0; font: 700 34px/1.1 var(--font-display); letter-spacing: -.02em; }
.head-actions { display: flex; gap: 8px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; color: var(--fg); outline: none; }
.search input::placeholder { color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0 20px 120px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.group-label { padding: 10px 4px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.list-empty { padding: 16px 4px; color: var(--muted); font-size: 15px; }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t d" "s s";
  gap: 4px 10px; width: 100%; text-align: left; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); cursor: pointer; color: var(--fg);
}
.item:hover { background: var(--card-2); }
.item[aria-current="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.item-title { grid-area: t; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-date { grid-area: d; font-size: 13px; color: var(--muted); align-self: center; }
.item-snip {
  grid-area: s; color: var(--muted); font-size: 15px; line-height: 1.4; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2;
}
.store-note { margin: 0; padding: 10px 20px; font-size: 13px; color: var(--muted); }

/* Floating record button */
.fab-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 0 18px;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  background: linear-gradient(to bottom, rgba(20, 42, 92, 0), var(--bg) 55%);
  pointer-events: none;
}
.fab-bar > * { pointer-events: auto; }
.fab-side {
  width: 54px; height: 54px; border-radius: 27px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.fab-side.ghost { visibility: hidden; }
.fab-rec {
  width: 78px; height: 78px; border-radius: 39px; border: 0; background: var(--gold); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); padding: 0;
}
.rec-core { width: 30px; height: 30px; border-radius: 15px; background: var(--rec); border: 3px solid #FFFFFF; transition: border-radius .15s; }
.fab-rec.live .rec-core { border-radius: 7px; }

/* Note pane */
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane > section { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; min-height: 56px; }
.ed-tools { display: flex; gap: 8px; margin-left: auto; }
.ed-title { font-size: 17px; font-weight: 600; }
.back { display: none; }
.doc {
  width: 100%; max-width: 760px; margin-inline: auto; padding: 8px 20px 0;
  display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; overflow-y: auto;
}
.title {
  border: 0; background: transparent; outline: none; width: 100%; padding: 2px 0; color: var(--fg);
  font: 700 30px/1.15 var(--font-display); letter-spacing: -.015em;
}
.title::placeholder, .body::placeholder { color: var(--muted); opacity: .8; }
.meta { font-size: 14px; color: var(--muted); }
.tool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0 4px; }
.ai-bar { position: relative; }
.ai-menu { left: 0; top: 48px; }
.chip-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--gold-ink); padding: 4px 9px; border-radius: 8px;
}
.body {
  flex: 1; min-height: 240px; resize: none; border: 0; background: transparent; outline: none; color: var(--fg);
  width: 100%; font-size: 17px; line-height: 1.6; padding: 8px 0 32px;
}

/* Saved recordings in a note */
.recs { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.rec-item { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.rec-item audio { width: 100%; height: 40px; }
.rec-label { font-size: 13px; font-weight: 600; color: var(--gold); }

/* Claude results */
.ai-out { flex: none; max-height: 48%; overflow: auto; margin: 0 12px 8px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); }
.ai-in { width: 100%; max-width: 760px; margin-inline: auto; padding: 16px 18px; }
.ai-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status { font-size: 13px; color: var(--muted); margin: 0; }
.ai-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 14px; font-size: 16px; line-height: 1.6; }
.ai-text.err { color: var(--danger); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Empty + ask */
.empty { align-items: center; justify-content: center; padding: 24px; }
.empty-in { max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.empty h2 { margin: 0; font: 700 28px/1.15 var(--font-display); letter-spacing: -.01em; }
.empty p { margin: 0; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ask-form { display: flex; flex-direction: column; gap: 10px; }
.ask-form textarea {
  width: 100%; min-height: 110px; resize: vertical; padding: 12px 14px; font-size: 17px; line-height: 1.5;
  border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, .06); color: var(--fg);
}
.ask-form textarea::placeholder { color: var(--muted); }
.ask-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chips .btn { min-height: 36px; font-weight: 500; font-size: 14px; padding: 6px 12px; }
.answer { margin-top: 16px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF; color: var(--gold-ink); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; z-index: 40;
  max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

@media (max-width: 819px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { border-right: 0; }
  .app[data-view="list"] .pane { display: none; }
  .app[data-view="edit"] .rail { display: none; }
  .back { display: inline-flex; }
  .title { font-size: 28px; }
  .doc { padding: 4px 20px 0; }
  .rec-meter { flex-basis: 56px; width: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .item, .icon-btn { transition: background-color .12s, border-color .12s; }
}

/* Note tabs: Summary, Transcript, My notes */
#notesPanel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 6px 0 4px;
  background: var(--deep); border: 1px solid var(--line); border-radius: 14px;
}
.tab {
  border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600;
  padding: 8px 6px; border-radius: 10px; cursor: pointer; min-height: 40px;
}
.tab[aria-selected="true"] { background: var(--card-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.card-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.card-h + * { margin-top: 0; }
.card .points + .card-h { margin-top: 18px; }
.points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }
.points li::marker { color: var(--gold); }
.actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.actions li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.actions input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.actions li.done label { color: var(--muted); text-decoration: line-through; }
.act-meta { color: var(--muted); }
.muted { color: var(--muted); margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tr-hint { margin: 0; font-size: 13px; color: var(--muted); }
.tr-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-line { padding: 10px 12px; border-radius: 14px; cursor: default; }
.tr-line[role="button"] { cursor: pointer; }
.tr-line[role="button"]:hover { background: rgba(255, 255, 255, .05); }
.tr-line.playing { background: var(--gold-soft); }
.tr-head { display: flex; align-items: baseline; gap: 10px; }
.tr-who { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.tr-who:hover { text-decoration: underline; }
.tr-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-text { margin: 2px 0 0; font-size: 16px; line-height: 1.5; }

.player {
  display: flex; align-items: center; gap: 12px; margin: 0 auto; width: calc(100% - 24px); max-width: 736px;
  background: var(--deep); border: 1px solid var(--line-2); border-radius: 18px; padding: 8px 12px 8px 8px;
}
.play-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--gold-ink);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.play-btn .i-pause, .player.is-playing .play-btn .i-play { display: none; }
.player.is-playing .play-btn .i-pause { display: block; }
.play-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.play-seek { flex: 1; min-width: 40px; accent-color: var(--gold); }
.play-rate {
  border: 1px solid var(--line-2); background: transparent; border-radius: 10px; padding: 4px 8px;
  font-size: 13px; font-weight: 700; cursor: pointer; min-width: 44px; min-height: 36px;
}

/* Folders and note type */
.folders { display: flex; gap: 8px; overflow-x: auto; margin: -2px -20px 0; padding: 0 20px 2px; scrollbar-width: none; }
.folders::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line-2); background: transparent; color: var(--fg);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; min-height: 36px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip.ghost { color: var(--muted); border-style: dashed; }
.folder-sel { max-width: 150px; appearance: none; -webkit-appearance: none; background: transparent; text-overflow: ellipsis; }
.folder-sel option, .type-sel option { color: #142A5C; background: #fff; }
.type-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.type-sel {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); background: var(--card); color: var(--fg);
  border-radius: 10px; padding: 6px 30px 6px 12px; font-size: 15px; font-weight: 600; min-height: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.folder-sel {
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.scriptures { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scriptures li { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.card .scriptures + .card-h, .card .points + .card-h { margin-top: 18px; }

/* Share and print */
.icon-btn.sm { width: 38px; height: 38px; border-radius: 19px; }
#pinBtn[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.share-menu { min-width: 240px; }
.print-view { display: none; }
@media print {
  @page { margin: 0.6in; }
  body { background: #fff !important; }
  body > *:not(.print-view) { display: none !important; }
  .print-view { display: block; color: #111; font: 11.5pt/1.5 -apple-system, "Helvetica Neue", Arial, sans-serif; }
  .print-view h1 { font-size: 20pt; margin: 0 0 4pt; color: #142A5C; }
  .print-view .pv-meta { color: #555; margin: 0 0 14pt; font-size: 10pt; }
  .print-view h2 { font-size: 10pt; letter-spacing: .08em; text-transform: uppercase; color: #8a6d00; margin: 16pt 0 6pt; border-bottom: 1px solid #ddd; padding-bottom: 3pt; }
  .print-view ul { margin: 0; padding-left: 16pt; }
  .print-view li { margin: 0 0 4pt; }
  .print-view .pv-line { margin: 0 0 6pt; break-inside: avoid; }
  .print-view .pv-who { font-weight: 700; color: #142A5C; }
  .print-view .pv-time { color: #777; font-size: 9pt; margin-left: 6pt; }
  .print-view .pv-notes { white-space: pre-wrap; }
  .print-view .pv-photo { display: block; max-width: 100%; max-height: 420px; margin: 8px 0; border-radius: 6px; }
}
.tr-draft { padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--line-2); }
.tr-draft .tr-text { color: var(--muted); font-style: italic; }
.tr-draft-label { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: livepulse 1.4s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.details { display: flex; flex-direction: column; gap: 12px; }
.details .card-h { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input {
  min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--deep); color: var(--fg);
  padding: 8px 12px; font-size: 17px; font-weight: 600;
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field input::placeholder { color: var(--muted); font-weight: 400; }
.field-hint { margin: -6px 0 0; font-size: 13px; color: var(--gold); }
.tr-hint.gold { color: var(--gold); }

/* Loading screen: a cassette with turning reels */
.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .35s ease; padding: 24px; }
.boot.done { opacity: 0; pointer-events: none; }
.boot[hidden] { display: none; }
.boot-in { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.tape { width: min(260px, 70vw); height: auto; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .35)); }
.c-body { fill: #1E3A7A; stroke: #F2C94C; stroke-width: 3; }
.c-label { fill: #F2C94C; }
.c-label-text { fill: #142A5C; font: 700 13px/1 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: .18em; }
.c-window { fill: #0E1F45; stroke: #C5D0EA; stroke-opacity: .35; stroke-width: 2; }
.c-reel { fill: #F7F3E3; stroke: #C5D0EA; stroke-width: 1.5; }
.c-hub { fill: #142A5C; }
.c-spoke { stroke: #142A5C; stroke-width: 3.5; stroke-linecap: round; fill: none; }
.c-tape-line { stroke: #6B4A1E; stroke-width: 3; fill: none; }
.c-bottom { fill: #18326B; stroke: #C5D0EA; stroke-opacity: .3; stroke-width: 1.5; }
.c-hole { fill: #0E1F45; }
.c-screw { fill: #C5D0EA; opacity: .6; }
.reel { transform-box: view-box; animation: reel-spin 1.6s linear infinite; }
@keyframes reel-spin { to { transform: rotate(360deg); } }
.boot-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: .01em; }
.boot-msg { margin: 0; max-width: 280px; font-size: 15px; line-height: 1.45; color: var(--muted); min-height: 1.45em; }
.dots span { animation: dot 1.2s infinite; opacity: .2; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 30% { opacity: 1; } 60% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .reel, .dots span { animation: none; opacity: 1; } }

.scriptures a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.scriptures a::after { content: "\2197"; font-size: 12px; color: var(--gold); }
.scriptures li:has(a) { border-color: var(--gold); }
.scriptures li:has(a):hover { background: var(--gold-soft); }
.menu-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; }
.menu-field select { font: inherit; border-radius: 8px; padding: 4px 8px; }

/* YouTube notes */
#ytBtn[hidden] { display: inline-flex !important; visibility: hidden; } /* keeps the record button centered */
#ytBtn:disabled { opacity: .5; }
.yt-card { display: grid; gap: 10px; }
.yt-link { display: flex; gap: 10px; align-items: center; color: var(--fg); text-decoration: none; }
.yt-link strong { font-weight: 600; }
.yt-badge { flex: none; width: 34px; height: 24px; border-radius: 7px; background: #E5322D; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.yt-status { display: flex; align-items: center; gap: 6px; margin: 0; }
.yt-err { margin: 0; color: #F4A6A6; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: reel-spin 0.9s linear infinite; flex: none; }
/* action items export */
.act-export { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.act-export .btn { padding: 6px 12px; font-size: 13px; }

/* accounts */
.link-btn { background: none; border: 0; color: var(--gold); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.menu-who { margin: 0; padding: 8px 12px 6px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-2); max-width: 260px; overflow-wrap: anywhere; }

/* AI consent, legal links, delete account */
.consent { position: fixed; inset: 0; z-index: 60; background: rgba(8, 18, 44, .72); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.consent-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px 20px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); max-height: calc(100vh - 32px); overflow-y: auto; }
.consent-card h2 { font-size: 22px; line-height: 1.25; margin: 4px 0 10px; }
.consent-card p, .consent-card li { color: var(--muted); font-size: 15px; }
.consent-card ul { padding-left: 18px; margin: 8px 0 12px; }
.consent-card li { margin-bottom: 4px; }
.consent-card strong { color: var(--fg); }
.consent-card a { color: var(--gold); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
@media (min-width: 700px) { .consent { align-items: center; } }
a.menu-item { text-decoration: none; display: block; }
.menu-item.danger { color: var(--danger); }
.login-legal { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.login-legal a { color: var(--muted); }

/* sheets: plan and usage, manage people */
.sheet-card { max-width: 560px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; }
.sheet-x { background: none; border: 0; color: var(--muted); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.sheet-card .eyebrow { display: block; margin: 18px 0 6px; }
.plan-name { margin: 0 0 6px; }
.plan-name .eyebrow { margin: 6px 0 2px; }
.plan-name strong { font-size: 22px; color: var(--fg); }
.meter { margin: 12px 0; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--fg); margin-bottom: 6px; }
.meter-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.meter-bar span.warn { background: #F2A94C; }
.meter-bar span.full { background: var(--danger); }
.upsell { margin-top: 14px; border-color: rgba(242, 201, 76, .45); background: var(--gold-soft); }
.upsell p { margin: 0 0 6px; color: var(--fg); }
.people { list-style: none; padding: 0; margin: 4px 0 10px; }
.people li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.people li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.people-sel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.people select { background: var(--deep); color: var(--fg); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 14px; }
.people .btn { padding: 6px 10px; font-size: 13px; }
.team-box .code { color: var(--gold); letter-spacing: 1px; }

/* import menu */
.add-opt { display: grid; gap: 2px; width: 100%; text-align: left; background: var(--deep); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; margin: 8px 0; color: var(--fg); font: inherit; cursor: pointer; }
.add-opt:hover, .add-opt:focus-visible { border-color: var(--gold); }
.add-opt strong { font-size: 16px; }
.yt-badge.file { background: var(--gold); color: #142A5C; font-weight: 800; font-size: 10px; letter-spacing: .5px; }

/* ask or edit one note */
.sheet-card .chips { margin: 4px 0 10px; }
.ask-q { width: 100%; box-sizing: border-box; background: var(--deep); color: var(--fg); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; resize: vertical; min-height: 84px; }
.ask-q:focus { outline: none; border-color: var(--gold); }
.ask-a { margin-top: 12px; }
.ask-a p { margin: 0 0 8px; color: var(--fg); }
.ask-a.err p, .ask-a.err { color: #F4A6A6; }
.ask-changes { margin: 4px 0 10px; padding-left: 18px; color: var(--gold); }
.tr-ask { margin: 0 0 6px; }
.yt-badge.social { background: var(--gold); color: #142A5C; font-weight: 800; font-size: 11px; letter-spacing: .5px; }
/* how-to steps */
.steps { margin: 4px 0 12px; padding-left: 26px; }
.steps li { margin: 0 0 10px; line-height: 1.5; padding-left: 4px; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.points.needs li::marker { color: var(--gold); }
/* merging notes */
.menu-item.sep { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.merge-q { width: 100%; box-sizing: border-box; background: var(--deep); color: var(--fg); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; margin: 4px 0 10px; }
.merge-q:focus { outline: none; border-color: var(--gold); }
.merge-list { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.merge-list li + li { margin-top: 6px; }
.merge-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--fg); font: inherit; cursor: pointer; }
.merge-item:hover, .merge-item:focus-visible { border-color: var(--gold); outline: none; }
.merge-item strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* finishing up after a recording */
.card.finishing { border-color: rgba(242, 201, 76, .45); }
.finish-steps { list-style: none; margin: 6px 0 10px; padding: 0; }
.finish-steps li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--muted); opacity: .7; }
.finish-steps li.done, .finish-steps li.now { opacity: 1; }
.finish-steps li.done { color: var(--fg); }
.finish-steps li.now { color: var(--gold); font-weight: 600; }
.finish-mark { flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; }
.finish-steps li.done .finish-mark { background: var(--gold); border-color: var(--gold); color: #10204a; }
.finish-steps li.now .finish-mark { border-top-color: transparent; animation: finish-spin 1s linear infinite; }
@keyframes finish-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .finish-steps li.now .finish-mark { animation: none; border-top-color: currentColor; } }
/* Note tabs stay at the top while you scroll a long note */
.tabs { position: sticky; top: 0; z-index: 6; box-shadow: 0 -10px 0 2px var(--bg), 0 8px 14px -8px rgba(0, 0, 0, .55); }
/* Pause */
.rec-bar .btn.pause { min-height: 40px; padding: 6px 14px; }
.rec-bar.paused .rec-dot { background: var(--muted); animation: none; }
.rec-bar.paused .rec-time { color: var(--muted); }
/* Record more, beside the audio player */
.play-rec {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.play-rec[hidden] { display: none; }
.play-rec-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--rec); }
.play-rec:hover, .play-rec:focus-visible { border-color: var(--rec); outline: none; }
@media (max-width: 420px) {
  .ed-bar { padding: 8px 10px; }
  .ed-tools { gap: 6px; }
  .player { gap: 8px; }
  .rec-meter { display: none; }
}
/* Find in transcript */
.tr-find {
  position: sticky; top: 52px; z-index: 5; display: flex; align-items: center; gap: 6px;
  background: var(--deep); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px 4px 4px 12px; margin: 0 0 6px;
  box-shadow: 0 -12px 0 2px var(--bg), 0 8px 14px -8px rgba(0, 0, 0, .55);
}
.tr-find-q { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 16px; padding: 8px 0; outline: none; }
.tr-find-q::placeholder { color: var(--muted); }
.tr-find-count { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-find-nav { font-size: 16px; font-weight: 700; }
.tr-find-nav:disabled { opacity: .35; cursor: default; }
mark.hit { background: rgba(242, 201, 76, .38); color: inherit; border-radius: 3px; padding: 0 1px; }
mark.hit.cur { background: var(--gold); color: var(--gold-ink); }
.tr-who.hit-who { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
/* Recently deleted */
.chip.trash-chip { color: var(--muted); }
.chip.trash-chip[aria-pressed="true"] { color: var(--gold-ink); }
.trash-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 4px 6px; }
.trash-note { color: var(--muted); font-size: 13px; padding: 2px 8px 10px; line-height: 1.45; }
.trash-left { color: var(--muted); }
.btn.danger-quiet { color: #ff8a80; border-color: rgba(255, 138, 128, .45); }
.btn.danger-quiet:hover, .btn.danger-quiet:focus-visible { border-color: #ff8a80; }
/* Preparing audio for sharing: a small bar at the top (OK shrinks it to a corner tag); the app stays usable */
.prep-bar {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 60;
  display: flex; align-items: center; gap: 8px; width: min(480px, calc(100vw - 24px)); box-sizing: border-box;
  padding: 8px 8px 8px 12px; border-radius: 16px; background: var(--card); color: var(--fg);
  border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.prep-bar[hidden], .prep-pill[hidden] { display: none; }
.prep-bar .spin, .prep-pill .spin { width: 16px; height: 16px; border-width: 2.5px; }
.prep-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.prep-text strong { font-size: 14.5px; }
.prep-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prep-btn { flex: none; border: 1px solid var(--line-2); background: transparent; color: var(--fg); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.prep-btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.prep-btn:focus-visible, .prep-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.prep-pill {
  position: fixed; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 66px); z-index: 60;
  display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px;
  background: var(--card); color: var(--fg); border: 1px solid var(--gold); font: inherit; font-size: 13px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
@media (prefers-reduced-motion: reduce) { .prep-bar .spin, .prep-pill .spin { animation-duration: 2.5s; } }
/* Photos on a note */
.photo-strip { margin: 0 0 10px; }
.photo-strip[hidden] { display: none; }
.photo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.photo-head .card-h { margin: 0; }
.btn.photo-add { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.photo-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.photo-thumb { position: relative; flex: none; width: 92px; height: 92px; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--deep); cursor: pointer; scroll-snap-align: start; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb.broken::after { content: 'Photo'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.photo-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.photo-reading { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 11px; text-align: center; background: rgba(10, 23, 56, .85); color: var(--gold); border-radius: 6px; padding: 2px 0; }
.photo-big { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: #000; margin: 4px 0 10px; }
.photo-text summary { cursor: pointer; color: var(--gold); margin-bottom: 6px; }
.photo-text p { white-space: pre-wrap; margin: 0 0 8px; max-height: 30vh; overflow-y: auto; }
#photoBtn svg { margin-right: 6px; vertical-align: -3px; }

.upsell-btns { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; }
.upsell-btns .btn { width: 100%; }

.brand-block .eyebrow { white-space: nowrap; font-size: 10.5px; letter-spacing: .1em; }
@media (max-width: 380px) { .brand-block .eyebrow { display: none; } }

.choice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.choice.on { border-color: var(--gold); background: rgba(244,200,74,.10); }
.choice-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.choice.on .choice-dot { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 4px, transparent 5px); }
.choice-text { display: flex; flex-direction: column; gap: 2px; }
.choice-text span { font-size: 13px; opacity: .75; }
.choice-h { margin: 18px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
