@font-face { font-family: "Inter"; src: url("../fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/PlayfairDisplay.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

/* Same palette as the iPhone app (Theme.swift). */
:root {
  --ink: #0f1a38;
  --muted: #4f6387;
  --bg: #f2f7ff;
  --surface: #ffffff;
  --soft: #e8f1ff;
  --line: #dbe7fb;
  --blue: #0a66c2;
  --blue-deep: #004082;
  --blue-bright: #388fe8;
  --sage: #6b9e80;
  --gold: #db9e38;
  --coral: #e0705a;
  --warn: #945408;
  --ok: #336b4d;
  --danger: #c0392b;
  --accent: linear-gradient(135deg, var(--blue-bright), var(--blue) 55%, var(--blue-deep));
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Everything is round. */
  --r-sm: 14px; --r-md: 20px; --r-lg: 26px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(15, 26, 56, .04), 0 6px 18px rgba(15, 26, 56, .06);
  --shadow-2: 0 2px 6px rgba(15, 26, 56, .05), 0 16px 40px rgba(15, 26, 56, .12);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 8% -8%, #d3e5ff 0%, transparent 62%),
    radial-gradient(760px 520px at 104% 2%, #e6efff 0%, transparent 58%),
    linear-gradient(180deg, #f2f7ff, #fbfdff);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; transition: transform .22s var(--spring), background-color .2s, box-shadow .2s, color .2s, opacity .2s; }
button:active:not(:disabled) { transform: scale(.96); }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(56, 143, 232, .45); outline-offset: 2px; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
.icon { display: inline-flex; vertical-align: middle; }
.hidden { display: none !important; }

/* ---- Frame (library tab). Narrow: one big rounded card. Wide: floating cards on the page. ---- */
#frame { height: 100%; max-width: 480px; margin: 0 auto; position: relative; display: flex; flex-direction: column; }
body.tab #frame { height: calc(100% - 28px); margin: 14px auto; border-radius: var(--r-xl); overflow: hidden; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow-2); }
body.tab.wide #frame { max-width: 1180px; background: none; border: 0; box-shadow: none; overflow: visible; padding: 0 14px; }
#app { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---- Top bar ---- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.topbar .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; flex: 1; letter-spacing: -.01em; }
.topbar .brand img { width: 28px; height: 28px; border-radius: 9px; box-shadow: var(--shadow-1); }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.iconbtn:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

.screen { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 18px; scroll-behavior: smooth; }
.screen.with-dock { padding-bottom: 150px; }
.screen::-webkit-scrollbar, .msgs::-webkit-scrollbar { width: 10px; }
.screen::-webkit-scrollbar-thumb, .msgs::-webkit-scrollbar-thumb { background: rgba(79, 99, 135, .25); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid rgba(219, 231, 251, .9); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.notecard { display: flex; gap: 13px; align-items: flex-start; width: 100%; text-align: left; padding: 15px 18px; margin-bottom: 10px; border-radius: 22px; }
.notecard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: rgba(56, 143, 232, .55); }
.notecard:active { transform: scale(.985); }
.notecard.active { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(56, 143, 232, .16), var(--shadow-1); }
.dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 5px; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); }
.notecard .t { font-weight: 650; font-size: 14.5px; line-height: 1.35; }
.notecard .m { color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.notecard .chev { margin-left: auto; color: var(--muted); opacity: .55; margin-top: 3px; transition: transform .25s var(--spring); }
.notecard:hover .chev { transform: translateX(3px); opacity: .9; }
.warn { color: var(--warn); }

/* ---- Empty state ---- */
.empty { text-align: center; padding: 44px 12px 0; }
.empty .ring, .pane-empty .ring { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; border: 1px solid rgba(56, 143, 232, .25); background: radial-gradient(circle at 30% 25%, #fff, rgba(232, 241, 255, .8)); box-shadow: var(--shadow-1); display: flex; align-items: center; justify-content: center; color: var(--blue); animation: float 4.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.empty h2 { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1.2; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---- Dock + the record orb ---- */
.dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 20px; text-align: center; pointer-events: none; background: linear-gradient(to top, rgba(246, 250, 255, .96) 40%, rgba(246, 250, 255, 0)); }
.dock > * { pointer-events: auto; }
.orb { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px rgba(10, 102, 194, .4); }
.orb::before, .orb::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(56, 143, 232, .45); animation: breathe 3.2s ease-out infinite; pointer-events: none; }
.orb::after { animation-delay: 1.6s; }
@keyframes breathe { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.orb:hover:not(:disabled) { transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px rgba(10, 102, 194, .48); }
.orb:active:not(:disabled) { transform: scale(.94); }
.orb.off { background: var(--soft); color: var(--muted); box-shadow: none; }
.orb.off::before, .orb.off::after { display: none; }
.dock .hint { color: var(--muted); font-size: 12px; margin-top: 10px; min-height: 16px; }

.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); color: var(--blue-deep); border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 650; box-shadow: var(--shadow-1); }
.chip.pro { background: var(--accent); color: #fff; border-color: transparent; }
button.chip:hover { transform: translateY(-1px); }

/* ---- Buttons: pills ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 650; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 22px rgba(10, 102, 194, .32); }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 13px; }
.linkbtn { color: var(--blue); font-weight: 650; border-radius: 999px; padding: 6px 10px; }
.linkbtn:hover { background: var(--soft); }

/* ---- Welcome / consent ---- */
.hero { text-align: center; padding: 20px 8px 0; }
.hero img { width: 84px; height: 84px; border-radius: 24px; box-shadow: var(--shadow-2); animation: pop .6s var(--spring) both; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; margin: 16px 0 6px; animation: rise .6s var(--ease) .08s both; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 320px; font-size: 15px; animation: rise .6s var(--ease) .14s both; }
.disclosure { margin: 20px 0 16px; padding: 16px 18px; font-size: 13px; line-height: 1.55; border-radius: var(--r-md); animation: rise .6s var(--ease) .2s both; }
.disclosure strong { display: block; margin-bottom: 4px; font-size: 14px; }
.fineprint { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 0 0; line-height: 1.5; }
.screen.center { max-width: 480px; width: 100%; margin: 0 auto; }
.step { display: flex; gap: 13px; padding: 16px 18px; align-items: flex-start; border-radius: var(--r-md); animation: rise .5s var(--ease) both; }
.step:nth-of-type(2) { animation-delay: .08s; }
.step .stepno { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--blue-deep); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 13px; transition: background-color .3s, transform .3s var(--spring); }
.step.done .stepno { background: var(--ok); color: #fff; animation: pop .45s var(--spring); }
.step .l { font-weight: 700; }
.step .s { color: var(--muted); line-height: 1.5; margin-top: 2px; font-size: 13px; }

/* ---- Recording ---- */
.rec { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; --lvl: 0; }
.rec .time { font-size: 60px; font-weight: 300; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.rec .state { color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.rec .state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; transform: scale(.8); } }
.bars { display: flex; align-items: center; justify-content: center; gap: 4px; height: 96px; width: 100%; max-width: 340px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent); }
.bars span { width: 5px; border-radius: 999px; background: var(--accent); min-height: 5px; transition: height .12s ease-out; }
.stage { position: relative; display: grid; place-items: center; width: 76px; height: 76px; }
.stage .halo { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(224, 112, 90, .42); transform: scale(calc(1 + var(--lvl) * .7)); transition: transform .12s ease-out; pointer-events: none; }
.stage .halo.two { inset: -22px; border-color: rgba(224, 112, 90, .2); transform: scale(calc(1 + var(--lvl) * 1.1)); }
.rec .controls { display: flex; align-items: center; gap: 34px; }
.roundbtn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: var(--shadow-1); }
.roundbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.roundbtn.stop { width: 76px; height: 76px; background: linear-gradient(135deg, #f08a73, var(--coral)); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px rgba(224, 112, 90, .45); position: relative; z-index: 1; }
.rec .left { color: var(--muted); font-size: 13px; min-height: 18px; }

/* ---- Note ---- */
.notehead { padding: 0 20px 10px; }
.notehead h1 { font-size: 23px; line-height: 1.25; margin: 4px 0 4px; font-weight: 700; letter-spacing: -.015em; }
.notehead .m { color: var(--muted); font-size: 12px; font-weight: 500; }
.seg { display: flex; gap: 2px; background: rgba(232, 241, 255, .9); padding: 4px; border-radius: 999px; margin: 4px 16px 10px; }
.seg button { position: relative; flex: 1; padding: 9px 6px; border-radius: 999px; z-index: 1; color: var(--muted); font-weight: 650; font-size: 13px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.seg button.on { color: var(--blue-deep); }
.seg button:hover:not(.on) { color: var(--ink); }
.seg .pill-bg { position: absolute; inset: 0; background: #fff; border-radius: 999px; box-shadow: var(--shadow-1); z-index: -1; }
.section { margin: 0 0 12px; padding: 16px 18px; background: #fff; border: 1px solid rgba(219, 231, 251, .9); border-radius: var(--r-md); box-shadow: var(--shadow-1); animation: rise .45s var(--ease) both; }
.section:nth-of-type(2) { animation-delay: .06s; } .section:nth-of-type(3) { animation-delay: .12s; }
.section h3 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.section p { margin: 0; line-height: 1.6; font-size: 14.5px; }
.bullets { margin: 0; padding-left: 18px; line-height: 1.55; }
.bullets li { margin: 0 0 7px; }
.bullets li::marker { color: var(--blue-bright); }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 6px; margin: 0 -6px; border-radius: 14px; line-height: 1.45; cursor: pointer; transition: background-color .2s; }
.tasks li:hover { background: var(--soft); }
.tasks .box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--blue-bright); flex: none; margin-top: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background-color .25s, border-color .25s, transform .3s var(--spring); }
.tasks li.done .box { background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.tasks .box svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.tasks li.done .box svg path { animation: draw .35s ease-out .05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tasks li .txt { transition: color .25s; }
.tasks li.done .txt { text-decoration: line-through; color: var(--muted); }
.transcript { white-space: pre-wrap; line-height: 1.7; font-size: 14.5px; user-select: text; }
.pill { font-size: 12px; font-weight: 650; color: var(--blue); display: inline-flex; gap: 5px; align-items: center; padding: 5px 11px; border-radius: 999px; text-transform: none; letter-spacing: 0; }
.pill:hover { background: var(--soft); }
.status { display: flex; gap: 12px; align-items: center; padding: 18px; }
.shimmer { background: linear-gradient(90deg, var(--ink) 20%, var(--blue-bright) 50%, var(--ink) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; font-weight: 650; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; background: var(--blue-bright); border-radius: 3px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.errorcard { padding: 18px; margin: 12px 0; border-radius: var(--r-md); animation: rise .4s var(--ease) both; }
.errorcard h3 { margin: 0 0 6px; font-size: 15px; }
.errorcard p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- Chat ---- */
.chat { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.msgs { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.bubble { max-width: 86%; padding: 11px 16px; border-radius: 22px; line-height: 1.5; white-space: pre-wrap; user-select: text; }
.bubble:last-child { animation: pop .34s var(--spring) both; }
.bubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 8px; box-shadow: 0 6px 14px rgba(10, 102, 194, .25); transform-origin: bottom right; }
.bubble.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 8px; box-shadow: var(--shadow-1); transform-origin: bottom left; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 10px; }
.suggest button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-size: 13px; color: var(--blue-deep); font-weight: 550; box-shadow: var(--shadow-1); animation: rise .45s var(--ease) both; }
.suggest button:nth-child(2) { animation-delay: .06s; } .suggest button:nth-child(3) { animation-delay: .12s; }
.suggest button:hover { transform: translateY(-2px); border-color: var(--blue-bright); }
.inputbar { display: flex; gap: 8px; margin: 6px 14px 14px; padding: 6px 6px 6px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-1); align-items: center; transition: box-shadow .2s, border-color .2s; }
.inputbar:focus-within { border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(56, 143, 232, .15), var(--shadow-1); }
.inputbar input { flex: 1; border: 0; background: none; outline: none; padding: 8px 0; }
.sendbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(10, 102, 194, .3); }
.sendbtn:hover:not(:disabled) { transform: scale(1.08) rotate(-8deg); }

/* ---- Settings ---- */
.group { margin: 0 0 14px; overflow: hidden; border-radius: var(--r-md); animation: rise .45s var(--ease) both; }
.group h4 { margin: 0; padding: 14px 18px 6px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-top: 1px solid rgba(219, 231, 251, .8); width: 100%; text-align: left; text-decoration: none; color: inherit; }
button.setrow:hover, a.setrow:hover { background: var(--soft); }
.group h4 + .setrow { border-top: 0; }
.setrow .l { font-weight: 650; }
.setrow .s { color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 400; }
.setrow select, .setrow input[type="text"] { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: #fff; max-width: 55%; }
.quota { padding: 18px; border-radius: var(--r-md); margin-bottom: 14px; animation: rise .45s var(--ease) both; }
.quota .big { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
.meter { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 12px 0 10px; }
.meter > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .8s var(--ease); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; color: var(--muted); }

/* ---- Paywall sheet: a floating rounded card that springs up ---- */
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 26, 56, .34); display: flex; align-items: flex-end; padding: 12px; z-index: 10; border-radius: inherit; animation: fade .25s ease both; }
.sheet { background: #fff; border-radius: var(--r-xl); padding: 24px 22px 20px; width: 100%; max-height: 92%; overflow-y: auto; text-align: center; box-shadow: var(--shadow-2); animation: sheetUp .5s var(--spring) both; }
.sheet h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; margin: 10px 0 8px; }
.sheet p { color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.perks { text-align: left; list-style: none; padding: 0; margin: 0 0 18px; }
.perks li { padding: 7px 0 7px 30px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 11px; height: 6px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); border-radius: 1px; }
@keyframes sheetUp { from { transform: translateY(40px) scale(.96); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---- Toast ---- */
#toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 24px) scale(.9); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 550; opacity: 0; pointer-events: none; transition: transform .45s var(--spring), opacity .25s; z-index: 30; max-width: 90%; text-align: center; box-shadow: var(--shadow-2); }
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---- Library: floating panes ---- */
.split { flex: 1; min-height: 0; display: flex; gap: 16px; padding: 14px 0; }
.pane-list { position: relative; width: 372px; flex: none; display: flex; flex-direction: column; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r-xl); box-shadow: var(--shadow-2); overflow: hidden; }
.pane-detail { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(219, 231, 251, .9); border-radius: var(--r-xl); box-shadow: var(--shadow-2); overflow: hidden; }
.pane-detail .screen { padding: 6px 26px 28px; }
.pane-detail .notehead { padding: 0 28px 10px; }
.pane-detail .seg { margin: 4px 26px 12px; max-width: 520px; }
.pane-detail .msgs { padding: 16px 28px; }
.pane-detail .suggest { padding-left: 28px; padding-right: 28px; }
.pane-detail .inputbar { margin: 6px 26px 18px; }
.pane-detail .rec { background: radial-gradient(500px 300px at 50% 30%, #eef5ff, transparent 70%); }
.pane-detail .sheet-backdrop { border-radius: var(--r-xl); }
.pane-empty { margin: auto; text-align: center; color: var(--muted); max-width: 300px; padding: 24px; }
.pane-empty h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; margin: 0 0 6px; color: var(--ink); }

/* ---- Permission window ---- */
body.permission { display: flex; align-items: center; justify-content: center; }
body.permission main { text-align: center; padding: 24px; max-width: 360px; }
body.permission h1 { font-family: var(--serif); font-weight: 400; }
body.permission p { color: var(--muted); line-height: 1.5; }

/* ---- Motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.animate-in .notecard { animation: rise .5s var(--ease) both; }
.animate-in .notecard:nth-child(2) { animation-delay: .05s; } .animate-in .notecard:nth-child(3) { animation-delay: .1s; }
.animate-in .notecard:nth-child(4) { animation-delay: .15s; } .animate-in .notecard:nth-child(n+5) { animation-delay: .2s; }

/* A new screen eases in; the old one is simply replaced, so taps are never blocked. */
@keyframes screenIn { from { opacity: 0; transform: translateY(10px) scale(.992); } }
.animate-in .screen, .animate-in .rec, .animate-in .notehead, .animate-in .seg, .animate-in .chat, .animate-in .pop > * { animation: screenIn .36s var(--ease) both; }
.animate-in .seg { animation-delay: .04s; } .animate-in .screen, .animate-in .chat { animation-delay: .07s; }
.animate-in .pane-list .screen, .animate-in .pane-list .notecard { animation: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
