:root {
  --ink: #10121a;
  --muted: #626878;
  --canvas: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --line: #dfe3ed;
  --line-strong: #cbd1df;
  --primary: #635bff;
  --primary-dark: #4940e8;
  --primary-soft: #ecebff;
  --aqua: #29cfbd;
  --night: #070910;
  --night-2: #0d111b;
  --danger: #d3445b;
  --warning: #b76a18;
  --shadow-sm: 0 2px 8px rgba(19, 25, 44, .05), 0 12px 28px rgba(19, 25, 44, .06);
  --shadow-lg: 0 30px 80px rgba(18, 23, 42, .14);
  --radius: 1.55rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Avenir Next", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--canvas); font-size: 16px; }
button, input, select, textarea { font: inherit; }
button, summary, label[for], .text-link { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(99, 91, 255, .58); outline-offset: 3px; }
.hidden { display: none !important; }

.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: max-content; color: var(--ink); font-weight: 850; letter-spacing: -.035em; }
.brand-mark { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; color: #fff; border-radius: .75rem .75rem .75rem .24rem; background: var(--ink); box-shadow: inset 0 1px rgba(255,255,255,.18); font: 800 1.08rem/1 Georgia, serif; }
.beta-badge { padding: .24rem .46rem; color: #5b6272; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.overline { color: var(--primary); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.overline.light { color: #b9b5ff; }

.button { min-height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .72rem 1.05rem; color: var(--ink); border: 1px solid transparent; border-radius: .85rem; background: #fff; font-weight: 780; transition: transform 160ms var(--ease), border-color 160ms, background-color 160ms, box-shadow 160ms; }
.button.primary { color: #fff; background: linear-gradient(135deg, #756eff, var(--primary-dark)); box-shadow: 0 10px 28px rgba(82, 72, 232, .24), inset 0 1px rgba(255,255,255,.24); }
.button.quiet { border-color: var(--line); background: rgba(255,255,255,.65); }
.button.danger { color: #fff; background: var(--danger); }
.button.compact { min-height: 2.5rem; padding: .58rem .86rem; font-size: .84rem; }
.button.large { min-height: 3.45rem; padding-inline: 1.3rem; border-radius: 1rem; }
.button.wide { width: 100%; }
.button:disabled { opacity: .46; cursor: not-allowed; box-shadow: none; }

/* Public landing */
.landing { position: relative; min-height: 100vh; overflow: hidden; background: #fff; }
.landing::before { content: ""; position: absolute; z-index: 0; top: -20rem; right: -18rem; width: 52rem; height: 52rem; border-radius: 50%; background: radial-gradient(circle, rgba(99,91,255,.14), rgba(99,91,255,0) 68%); pointer-events: none; }
.landing-nav { position: relative; z-index: 5; width: min(1180px, calc(100% - 2rem)); min-height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; margin: 0 auto; }
.landing-links { display: flex; align-items: center; gap: 2rem; color: #4f5564; font-size: .88rem; font-weight: 700; }
.landing-links a { transition: color 160ms; }
.landing-links a:hover { color: var(--primary); }
.landing-nav > .button { justify-self: end; }
.landing-hero { position: relative; z-index: 1; width: min(1180px, calc(100% - 2rem)); min-height: 42rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(25rem, .92fr); align-items: center; gap: clamp(2rem, 7vw, 6.5rem); margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) 0 7rem; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; color: #4d5363; font-size: .78rem; font-weight: 780; }
.eyebrow i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 .35rem rgba(41,207,189,.13); }
.hero-copy h1 { max-width: 12ch; margin: 0; font-size: clamp(3.15rem, 6.4vw, 6.25rem); line-height: .93; letter-spacing: -.078em; font-weight: 860; }
.hero-copy h1 em { color: var(--primary); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-copy > p { max-width: 40rem; margin: 1.65rem 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.hero-actions .button span { font-size: 1.2rem; transition: transform 180ms var(--ease); }
.hero-actions .button:hover span { transform: translateX(.2rem); }
.text-link { padding: .6rem .2rem; border-bottom: 1px solid #b8becc; color: #434958; font-size: .87rem; font-weight: 760; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; margin-top: 2.4rem; color: #767c8a; font-size: .74rem; }
.hero-facts span { display: grid; gap: .13rem; }
.hero-facts b { color: #313644; font-size: .84rem; }

.hero-product { position: relative; min-height: 34rem; display: grid; place-items: center; perspective: 1000px; }
.product-glow { position: absolute; width: 27rem; height: 27rem; border-radius: 50%; background: linear-gradient(145deg, rgba(99,91,255,.25), rgba(41,207,189,.2)); filter: blur(45px); opacity: .7; }
.demo-window { position: relative; z-index: 1; width: min(100%, 28.5rem); overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 1.7rem; background: rgba(255,255,255,.94); box-shadow: 0 40px 100px rgba(30,34,63,.18); transform: rotateY(-4deg) rotateX(2deg); animation: hero-settle 650ms var(--ease) both; }
.demo-top { min-height: 3.2rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 1.1rem; color: #878c99; border-bottom: 1px solid #eceef4; background: #fafbfe; }
.demo-top > span { display: flex; gap: .3rem; }
.demo-top i { width: .48rem; height: .48rem; border-radius: 50%; background: #d8dbe4; }
.demo-top i:first-child { background: #ff8b80; }
.demo-top i:nth-child(2) { background: #ffd166; }
.demo-top i:nth-child(3) { background: #50d8a0; }
.demo-top small { font-weight: 750; }
.demo-top b { justify-self: end; letter-spacing: .15em; }
.demo-body { padding: 2rem; }
.demo-label { color: var(--primary); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.demo-body h2 { margin: .5rem 0 .6rem; font-size: 1.75rem; line-height: 1.08; letter-spacing: -.045em; }
.demo-body > p { margin: 0 0 1.5rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.demo-topic { display: grid; grid-template-columns: 3.3rem 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid #eceef4; }
.demo-topic time { width: fit-content; height: fit-content; padding: .3rem .42rem; color: var(--primary); border-radius: .42rem; background: var(--primary-soft); font: 780 .68rem/1 ui-monospace, monospace; }
.demo-topic div { display: grid; gap: .28rem; }
.demo-topic strong { font-size: .9rem; }
.demo-topic span { color: #737988; font-size: .76rem; line-height: 1.45; }
.demo-footer { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; border-top: 1px solid #eceef4; }
.demo-footer span { padding: .42rem .6rem; color: #555c6d; border-radius: 999px; background: #f2f4f8; font-size: .69rem; font-weight: 720; }
.floating-note { position: absolute; z-index: 2; min-width: 10.5rem; display: grid; grid-template-columns: 2.2rem 1fr; gap: .05rem .6rem; padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.9); border-radius: 1rem; background: rgba(255,255,255,.92); box-shadow: 0 18px 45px rgba(29,33,58,.14); backdrop-filter: blur(16px); }
.floating-note > span { grid-row: 1 / 3; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; color: #fff; border-radius: .7rem; background: var(--primary); font-weight: 850; }
.floating-note b { font-size: .74rem; }
.floating-note small { color: #7a808e; font-size: .65rem; }
.note-one { top: 4rem; right: -2.2rem; }
.note-two { bottom: 3.2rem; left: -3.2rem; }

.landing-section { padding: clamp(5rem, 10vw, 8rem) max(1rem, calc((100% - 1180px) / 2)); background: #f4f6fb; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-heading .overline { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.065em; }
.section-heading p { max-width: 31rem; margin: 0; color: var(--muted); line-height: 1.65; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 1.8rem; background: #fff; box-shadow: var(--shadow-sm); }
.process-grid article { min-height: 22rem; display: flex; flex-direction: column; padding: 1.5rem; }
.process-grid article + article { border-left: 1px solid var(--line); }
.process-grid article > span { color: #a1a6b3; font: 700 .72rem/1 ui-monospace, monospace; }
.process-icon { width: 3.8rem; height: 3.8rem; display: grid; place-items: center; margin: 3.5rem 0 2rem; color: #fff; border-radius: 1.1rem; background: var(--ink); font-size: 1.3rem; }
.process-grid article:nth-child(2) .process-icon { background: var(--primary); }
.process-grid article:nth-child(3) .process-icon { color: var(--ink); background: var(--aqua); }
.process-grid h3 { margin: auto 0 .6rem; font-size: 1.45rem; letter-spacing: -.035em; }
.process-grid p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.privacy-showcase { width: min(1180px, calc(100% - 2rem)); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 7rem); margin: 6rem auto; padding: clamp(2rem, 6vw, 5rem); color: #fff; border-radius: 2rem; background: radial-gradient(circle at 0 0, rgba(99,91,255,.38), transparent 35rem), var(--night); box-shadow: var(--shadow-lg); }
.privacy-showcase h2 { margin: .8rem 0 0; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; letter-spacing: -.06em; }
.privacy-points { display: grid; }
.privacy-points p { position: relative; display: grid; gap: .35rem; margin: 0; padding: 1.35rem 0 1.35rem 3.3rem; color: #9ca4b7; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .82rem; line-height: 1.5; }
.privacy-points p:last-child { border-bottom: 0; }
.privacy-points p > span { position: absolute; left: 0; top: 1.45rem; color: #777f93; font: 700 .7rem/1 ui-monospace, monospace; }
.privacy-points b { color: #fff; font-size: .96rem; }

.access-section { width: min(1050px, calc(100% - 2rem)); display: grid; grid-template-columns: 1fr minmax(20rem, 26rem); align-items: center; gap: clamp(2rem, 9vw, 8rem); margin: 0 auto; padding: 4rem 0 8rem; }
.access-copy h2 { margin: .8rem 0 1rem; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.065em; }
.access-copy p { max-width: 34rem; margin: 0; color: var(--muted); line-height: 1.65; }
.auth-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.6rem; background: #fff; box-shadow: var(--shadow-lg); }
.auth-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.auth-orbit { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 .45rem var(--primary-soft); font-family: Georgia, serif; }
.auth-card-head div { display: grid; gap: .16rem; }
.auth-card-head strong { font-size: .96rem; }
.auth-card-head small { color: var(--muted); font-size: .73rem; }
.landing-footer { width: min(1180px, calc(100% - 2rem)); min-height: 6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; margin: 0 auto; color: #727887; border-top: 1px solid var(--line); font-size: .76rem; }
.landing-footer p { margin: 0; }
.landing-footer > span { justify-self: end; }

/* Shared form controls */
.segmented { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; padding: .25rem; border-radius: .95rem; background: #e9ecf3; }
.segmented::before { content: ""; position: absolute; z-index: 0; inset: .25rem auto .25rem .25rem; width: calc(50% - .375rem); border-radius: .72rem; background: #fff; box-shadow: 0 4px 16px rgba(20,25,45,.09); transition: transform 250ms var(--ease); }
.segmented[data-active="second"]::before { transform: translateX(calc(100% + .25rem)); }
.segment-control { position: relative; z-index: 1; min-height: 2.7rem; padding: .6rem .7rem; color: #747b8b; border: 0; border-radius: .72rem; background: transparent; font-weight: 780; }
.segment-control.is-active { color: var(--ink); }
.form-stack, .lecture-form { display: grid; gap: 1rem; }
.auth-card .segmented { margin-bottom: 1.1rem; }
label { display: grid; gap: .42rem; color: #444a59; font-size: .84rem; font-weight: 730; }
input, select, textarea { width: 100%; min-height: 3rem; padding: .78rem .88rem; color: var(--ink); border: 1px solid var(--line); border-radius: .78rem; outline: none; background: #fff; transition: border-color 160ms, box-shadow 160ms; }
input::placeholder, textarea::placeholder { color: #9da3b0; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,91,255,.1); }
textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
.privacy-line { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; color: #858b98; font-size: .66rem; }
.privacy-line > span { width: .46rem; height: .46rem; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 .25rem rgba(41,207,189,.13); }
.form-error { min-height: 1.1rem; margin: 0; color: #bc334b; font-size: .78rem; line-height: 1.45; }

/* Authenticated app */
#app-view { min-height: 100vh; background: radial-gradient(circle at 100% 0, rgba(99,91,255,.1), transparent 34rem), var(--canvas); }
.topbar { position: sticky; z-index: 20; top: 0; min-height: 4.65rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0 max(1rem, calc((100% - 1240px) / 2)); border-bottom: 1px solid rgba(211,216,229,.8); background: rgba(244,246,251,.84); backdrop-filter: blur(18px); }
.topbar-center { display: flex; align-items: center; gap: .55rem; color: #697080; font-size: .76rem; font-weight: 760; }
.study-link { margin-left: .35rem; color: var(--primary); text-decoration: none; }
.study-link:hover { text-decoration: underline; }
.nav-dot { width: .38rem; height: .38rem; border-radius: 50%; background: #c6cad5; }
.nav-dot.active { background: var(--primary); box-shadow: 0 0 0 .28rem rgba(99,91,255,.1); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: .7rem; }
.service-state { display: inline-flex; align-items: center; gap: .48rem; min-height: 2.45rem; padding: .56rem .75rem; color: #697080; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); font-size: .71rem; font-weight: 760; }
.service-state i { width: .5rem; height: .5rem; border-radius: 50%; background: #9ba1ae; }
.service-state.online i { background: var(--aqua); box-shadow: 0 0 0 .27rem rgba(41,207,189,.12); }
.service-state.offline i { background: #f09a3e; }
.workspace { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 2.2rem 0 5rem; }
.notice { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; padding: 1rem 1.1rem; color: #6a4519; border: 1px solid #f1d8b2; border-radius: 1rem; background: #fff7e9; }
.notice > i { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: .7rem; background: #ffe4b9; font-style: normal; font-weight: 850; }
.notice div { display: grid; gap: .18rem; }
.notice strong { font-size: .86rem; }
.notice span { color: #8a683f; font-size: .75rem; line-height: 1.4; }
.workspace-intro { display: grid; grid-template-columns: 1fr minmax(18rem, .65fr); align-items: end; gap: 2rem; padding: 1.2rem .25rem 1.8rem; }
.workspace-intro h1 { margin: .35rem 0 0; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: .95; letter-spacing: -.065em; }
.workspace-intro p { max-width: 36rem; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(20rem, .8fr); align-items: start; gap: 1.2rem; }
.capture-card, .library-card { border: 1px solid rgba(216,221,233,.95); border-radius: var(--radius); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.capture-card { overflow: hidden; }
.capture-head, .library-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.35rem 1rem; }
.capture-head h2, .library-head h2 { margin: .25rem 0 0; font-size: 1.55rem; line-height: 1; letter-spacing: -.04em; }
.state-pill { display: inline-flex; align-items: center; gap: .42rem; padding: .48rem .68rem; color: #646b79; border-radius: 999px; background: #f0f2f7; font-size: .7rem; font-weight: 800; }
.state-pill i { width: .45rem; height: .45rem; border-radius: 50%; background: #aeb3bf; }
.source-switch { margin: 0 1.35rem 1rem; }
.source-switch .segment-control span { margin-right: .25rem; color: var(--primary); }
.consent-row { grid-template-columns: auto 1fr; align-items: center; gap: .7rem; padding: .82rem .9rem; border: 1px solid var(--line); border-radius: .9rem; background: #f8f9fc; line-height: 1.4; }
.consent-before-record { margin: 0 1.35rem 1rem; }
.consent-row input { width: 1.25rem; min-height: 1.25rem; margin: 0; accent-color: var(--primary); }
.consent-row > span { display: grid; gap: .1rem; }
.consent-row b { color: #3f4554; font-size: .79rem; }
.consent-row small { color: #858b99; font-size: .68rem; font-weight: 560; }
.source-area { padding: 0 1.35rem 1rem; }
.recorder-stage { position: relative; min-height: 23rem; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; color: #fff; border-radius: 1.25rem; background: radial-gradient(circle at 50% 110%, rgba(99,91,255,.38), transparent 50%), var(--night); }
.recorder-stage::before { content: ""; position: absolute; top: -8rem; right: -7rem; width: 18rem; height: 18rem; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.record-status-line { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; color: #9098ab; font-size: .67rem; }
.record-core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.timer-kicker { margin-bottom: .45rem; color: #7f8799; font-size: .64rem; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.timer { font: 760 clamp(2.5rem, 7vw, 4.2rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.signal-line { height: 2.3rem; display: flex; align-items: center; gap: .28rem; margin: .7rem 0 .9rem; color: #858d9f; }
.signal-line i { width: .22rem; height: .5rem; border-radius: 99px; background: currentColor; }
.signal-line i:nth-child(2), .signal-line i:nth-child(6) { height: 1rem; }
.signal-line i:nth-child(3), .signal-line i:nth-child(5) { height: 1.55rem; }
.signal-line i:nth-child(4) { height: 2rem; color: var(--aqua); }
.record-button { width: 5.8rem; height: 5.8rem; display: grid; place-items: center; padding: 0; color: #fff; border: .55rem solid rgba(255,255,255,.92); border-radius: 50%; background: #ff536d; box-shadow: 0 0 0 .7rem rgba(255,255,255,.08), 0 20px 38px rgba(0,0,0,.32); transition: transform 180ms var(--ease), box-shadow 180ms, background-color 180ms; }
.record-icon { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: currentColor; transition: border-radius 180ms, transform 180ms; }
.record-button.is-recording .record-icon { border-radius: .28rem; transform: scale(.78); }
.record-button.is-paused { background: var(--primary); }
.record-button.is-paused .record-icon { width: 0; height: 0; margin-left: .22rem; border-top: .8rem solid transparent; border-bottom: .8rem solid transparent; border-left: 1.25rem solid #fff; border-radius: 0; background: transparent; }
#record-hint { margin: .85rem 0 0; color: #939bad; font-size: .74rem; }
.record-actions { min-height: 3.7rem; display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .4rem 1rem 1rem; }
.recorder-finish { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.09); }
.capture-quality { max-width: 24rem; margin: .7rem auto 0; padding: .55rem .8rem; color: #d9e2ff; font-size: .78rem; line-height: 1.35; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; background: rgba(255,255,255,.06); }
.capture-quality.warning { color: #ffe4ad; border-color: rgba(255,195,94,.3); background: rgba(151,92,0,.18); }
.text-button { min-height: 2.75rem; padding: .55rem; color: #858d9f; border: 0; background: transparent; font-size: .72rem; text-decoration: underline; text-underline-offset: .18rem; }
.marker-panel { margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fafbfe; }
.marker-explainer strong { font-size: .84rem; }
.marker-explainer p { margin: .28rem 0 .85rem; color: var(--muted); font-size: .73rem; line-height: 1.48; }
.marker-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.marker-buttons button { min-height: 3.6rem; display: grid; place-items: center; gap: .15rem; padding: .4rem .25rem; color: #596071; border: 1px solid var(--line); border-radius: .78rem; background: #fff; font-size: .66rem; font-weight: 740; transition: transform 150ms var(--ease), border-color 150ms, background 150ms; }
.marker-buttons button span { color: var(--primary); font: 800 1rem/1 Georgia, serif; }
.energy-note { display: flex; align-items: start; gap: .5rem; margin: .75rem .15rem 0; color: #858b99; font-size: .68rem; line-height: 1.5; }
.energy-note > span { color: var(--primary); font-size: .9rem; }
.dropzone { min-height: 21rem; display: grid; place-items: center; align-content: center; gap: .55rem; padding: 2rem; color: #737a8a; border: 1.5px dashed var(--line-strong); border-radius: 1.2rem; background: #f8f9fc; text-align: center; transition: border-color 160ms, background 160ms, transform 160ms var(--ease); }
.dropzone input, .photo-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.dropzone strong { color: var(--ink); font-size: 1rem; }
.dropzone > span:nth-of-type(2) { max-width: 31rem; font-size: .72rem; line-height: 1.45; }
.dropzone > small { color: #9197a5; font-size: .66rem; }
.dropzone.dragging, .dropzone:focus-within { border-color: var(--primary); background: var(--primary-soft); }
.upload-mark { width: 3.6rem; height: 3.6rem; display: grid; place-items: center; margin-bottom: .35rem; color: #fff; border-radius: 1.1rem; background: var(--primary); box-shadow: 0 12px 25px rgba(99,91,255,.22); font-size: 1.4rem; }
.selected-file { display: flex; align-items: center; gap: .7rem; margin: 0 1.35rem 1rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .9rem; background: #f8f9fc; }
.file-symbol { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); border-radius: .72rem; background: var(--primary-soft); }
.selected-file div { min-width: 0; flex: 1; display: grid; gap: .12rem; }
.selected-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.selected-file div span { color: #7d8493; font-size: .67rem; }
.selected-file button { width: 2.75rem; height: 2.75rem; color: #7a8190; border: 0; background: transparent; font-size: 1.25rem; }
.lecture-form { padding: .2rem 1.35rem 1.35rem; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(10rem, .7fr); gap: .7rem; }
.context-details { overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: #f8f9fc; }
.context-details summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .95rem; cursor: pointer; list-style: none; }
.context-details summary::-webkit-details-marker { display: none; }
.context-details summary > span { display: grid; gap: .1rem; }
.context-details summary b { font-size: .8rem; }
.context-details summary small { color: #858c9a; font-size: .66rem; font-weight: 550; }
.context-details summary i { color: var(--primary); font-size: 1.1rem; font-style: normal; transition: transform 180ms var(--ease); }
.context-details[open] summary i { transform: rotate(45deg); }
.context-body { display: grid; gap: 1rem; padding: 0 .95rem .95rem; }
.photo-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .76rem; }
.photo-head span { color: #838997; }
.photo-picker { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 3rem; padding: .7rem .8rem; color: var(--primary); border: 1px dashed var(--line-strong); border-radius: .75rem; background: #fff; }
.photo-picker small { color: #8b919e; font-size: .65rem; font-weight: 550; }
.photo-previews { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; }
.photo-previews article { position: relative; min-width: 0; }
.photo-previews img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border: 1px solid var(--line); border-radius: .68rem; }
.photo-previews button { position: absolute; top: .12rem; right: .12rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: #fff; border: 0; border-radius: 50%; background: rgba(10,12,18,.75); }
.photo-previews small { display: none; }
.markers-list { display: flex; flex-wrap: wrap; gap: .38rem; }
.marker-chip { padding: .34rem .55rem; color: #5149c8; border-radius: 999px; background: var(--primary-soft); font-size: .67rem; font-weight: 740; }
.submit-button { position: relative; min-height: 3.65rem; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; column-gap: .7rem; padding-left: 3rem; }
.submit-button > span { align-self: end; }
.submit-button small { align-self: start; color: rgba(255,255,255,.73); font-size: .64rem; font-weight: 550; }
.submit-button i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.25rem; font-style: normal; }
.progress-wrap { display: grid; gap: .35rem; }
.progress-wrap p { display: flex; justify-content: space-between; margin: 0; color: #757c8b; font-size: .68rem; }
.progress-track { height: .48rem; overflow: hidden; border-radius: 99px; background: #e4e7ef; }
.progress-track > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--primary)); transition: width 220ms var(--ease); }

.library-card { position: sticky; top: 5.8rem; overflow: hidden; }
.icon-button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: #626979; border: 1px solid var(--line); border-radius: .8rem; background: #fff; font-size: 1.1rem; transition: transform 150ms var(--ease), border-color 150ms, background 150ms; }
.queue-summary { display: flex; gap: .55rem; padding: 0 1.35rem 1rem; }
.queue-summary span { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .55rem; color: #747b8a; border-radius: .55rem; background: #f3f5f9; font-size: .68rem; }
.queue-summary i { width: .4rem; height: .4rem; border-radius: 50%; background: #b9bec9; }
.queue-summary span:nth-child(2) i { background: #f0a24d; }
.queue-summary b { color: var(--ink); }
.lecture-list { display: grid; border-top: 1px solid var(--line); }
.lecture-item { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem .8rem; padding: 1rem 1.2rem 1rem 3.8rem; border-bottom: 1px solid var(--line); transition: background-color 150ms; }
.lecture-item::before { content: "♪"; position: absolute; left: 1.15rem; top: 1rem; width: 2rem; height: 2rem; display: grid; place-items: center; color: var(--primary); border-radius: .65rem; background: var(--primary-soft); font-weight: 850; }
.lecture-main { min-width: 0; display: grid; gap: .2rem; padding: 0; text-align: left; border: 0; background: transparent; }
.lecture-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.lecture-main small { color: #7b8291; font-size: .66rem; }
.lecture-main:disabled { cursor: default; }
.lecture-state { display: flex; align-items: start; }
.job-status { padding: .28rem .45rem; color: #666d7c; border-radius: 999px; background: #eff1f5; font-size: .62rem; font-weight: 820; }
.job-status.completed { color: #157063; background: #e4f7f3; }
.job-status.failed { color: #b0364c; background: #fce9ed; }
.job-status.leased { color: #8d5718; background: #fff0dc; }
.job-detail { grid-column: 1 / -1; display: grid; gap: .35rem; color: #7b8291; font-size: .66rem; }
.job-actions { display: flex; gap: .3rem; }
.job-action { min-height: 2.75rem; padding: .5rem .4rem; color: #6f7685; border: 0; background: transparent; font-size: .68rem; text-decoration: underline; text-underline-offset: .16rem; }
.job-error { color: #b0364c; }
.job-progress { height: .3rem; overflow: hidden; border-radius: 99px; background: #e5e8ef; }
.job-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--primary)); }
.empty-state { display: grid; justify-items: center; padding: 3.2rem 1.2rem; text-align: center; }
.empty-orbit { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; margin-bottom: .9rem; color: var(--primary); border: 1px dashed #bfc3ff; border-radius: 50%; background: var(--primary-soft); font-size: 1.3rem; }
.empty-state strong { font-size: .82rem; }
.empty-state p { max-width: 19rem; margin: .4rem 0 0; color: #858b99; font-size: .7rem; line-height: 1.48; }

/* Recording transition */
.record-transition { --origin-x: 50vw; --origin-y: 50vh; position: fixed; z-index: 200; inset: 0; visibility: hidden; overflow: hidden; pointer-events: none; }
.record-transition > i { position: absolute; left: var(--origin-x); top: var(--origin-y); width: 220vmax; height: 220vmax; border-radius: 50%; transform: translate(-50%,-50%) scale(0); }
.record-transition > i:first-child { background: #202438; }
.record-transition > i:nth-child(2) { left: calc(var(--origin-x) - 2.5rem); top: calc(var(--origin-y) + 1rem); background: #111521; }
.record-transition > i:nth-child(3) { left: calc(var(--origin-x) + 2rem); top: calc(var(--origin-y) - 1.5rem); background: #05070c; }
.record-transition > span { position: absolute; left: 50%; top: 50%; color: rgba(255,255,255,.74); opacity: 0; transform: translate(-50%,-50%); font-size: .72rem; font-weight: 780; letter-spacing: .16em; text-transform: uppercase; }
.record-transition.is-active { visibility: visible; }
.record-transition.is-active > i:first-child { animation: circle-cover 820ms var(--ease) both; }
.record-transition.is-active > i:nth-child(2) { animation: circle-cover 760ms 75ms var(--ease) both; }
.record-transition.is-active > i:nth-child(3) { animation: circle-cover 700ms 140ms var(--ease) both; }
.record-transition.is-active > span { animation: transition-label 780ms 120ms var(--ease) both; }
@keyframes circle-cover { to { transform: translate(-50%,-50%) scale(1); } }
@keyframes transition-label { 0%,20% { opacity: 0; transform: translate(-50%,-40%); } 45%,70% { opacity: 1; transform: translate(-50%,-50%); } 100% { opacity: 0; transform: translate(-50%,-60%); } }

/* Distraction-free, low-power recording state */
body.recording-focus { background: #05070c; }
body.recording-focus .topbar, body.recording-focus .library-card, body.recording-focus .notice, body.recording-focus .workspace-intro, body.recording-focus .capture-head, body.recording-focus .source-switch, body.recording-focus .consent-before-record, body.recording-focus .lecture-form, body.recording-focus .selected-file, body.recording-focus .energy-note { display: none !important; }
body.recording-focus .workspace { width: 100%; padding: 0; }
body.recording-focus .app-grid { display: block; }
body.recording-focus .capture-card { min-height: 100dvh; border: 0; border-radius: 0; background: #05070c; box-shadow: none; }
body.recording-focus .source-area { min-height: 100dvh; display: grid; grid-template-rows: minmax(60vh,1fr) auto; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); }
body.recording-focus .recorder-stage { min-height: 62dvh; border-radius: 0; background: #05070c; }
body.recording-focus .recorder-stage::before { display: none; }
body.recording-focus .record-status-line { color: #747d90; }
body.recording-focus .timer-kicker { color: #666f82; }
body.recording-focus .timer { font-size: clamp(3rem, 13vw, 5.4rem); }
body.recording-focus .signal-line { color: #555f72; }
body.recording-focus .record-button { background: #ff536d; }
body.recording-focus #record-hint { color: #717b8f; }
body.recording-focus .marker-panel { align-self: end; color: #e8ebf3; border-color: #202532; background: #0c0f17; }
body.recording-focus .marker-explainer p { color: #7d8698; }
body.recording-focus .marker-buttons button { color: #b9c0cf; border-color: #252b39; background: #11151f; }
body.recording-focus .marker-buttons button span { color: #8d87ff; }
body.recording-focus .recorder-finish { color: #fff; border-color: #303747; background: #141925; }
body.recording-focus .signal-line i, body.recording-focus .recorder-stage::before { animation: none !important; }

/* Lecture reader */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(7,9,16,.64); backdrop-filter: blur(4px); }
.result-dialog { width: min(64rem, calc(100% - 1.5rem)); height: min(92vh, 60rem); max-height: min(92vh, 60rem); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 1.55rem; background: #fff; box-shadow: 0 36px 110px rgba(5,8,18,.32); }
.result-dialog[open] { display: flex; flex-direction: column; animation: dialog-in 280ms var(--ease) both; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem 1rem; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: .25rem 0 .35rem; font-size: clamp(1.5rem, 5vw, 2.35rem); line-height: 1.05; letter-spacing: -.05em; }
.result-meta { display: flex; flex-wrap: wrap; gap: .35rem .7rem; color: #7c8392; font-size: .68rem; }
.result-tabs { display: flex; gap: .3rem; padding: .7rem 1.4rem 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.result-tab { min-height: 2.7rem; padding: .65rem .85rem; color: #767d8d; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: .78rem; font-weight: 780; white-space: nowrap; }
.result-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.result-scroll { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.result-pane { max-width: 78ch; margin: 0 auto; padding: 2rem 1.4rem 3.5rem; }
.result-pane h3 { margin: 1.9rem 0 .75rem; font-size: 1.35rem; letter-spacing: -.035em; }
.result-pane h3:first-child { margin-top: 0; }
.summary-overview { margin: 0; color: #3f4655; line-height: 1.72; white-space: pre-line; }
.summary-list { padding-left: 1.25rem; line-height: 1.65; }
.summary-list li + li, .result-pane ol li + li { margin-top: .5rem; }
.lecture-intro { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.reader-label { display: inline-block; margin-bottom: .75rem; color: var(--primary); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.learning-map { margin: 1.6rem 0 2.6rem; padding: 1.15rem 1.25rem; border-radius: 1rem; background: linear-gradient(145deg, #f1f0ff, #f8fbff); }
.learning-map h3 { margin: 0 0 .8rem; font-size: 1.05rem; }
.learning-map ul { margin: 0; padding-left: 1.2rem; color: #454c5c; line-height: 1.62; }
.learning-map li + li { margin-top: .38rem; }
.summary-sections { counter-reset: chapter; }
.study-chapter { padding: 2.45rem 0 2.7rem; border-top: 1px solid var(--line); }
.study-chapter:first-child { border-top: 0; }
.chapter-head { display: grid; grid-template-columns: 2.2rem minmax(0,1fr) auto; align-items: start; gap: .8rem; margin-bottom: 1.35rem; }
.chapter-number { display: grid; place-items: center; width: 2rem; height: 2rem; color: #fff; border-radius: .65rem; background: var(--ink); font-size: .68rem; font-weight: 850; }
.chapter-head h4 { margin: .05rem 0 .38rem; font-size: clamp(1.25rem, 4vw, 1.65rem); line-height: 1.18; letter-spacing: -.035em; }
.chapter-head p { margin: 0; color: #686f7f; font-size: .83rem; line-height: 1.55; }
.chapter-prose { color: #303746; font-size: 1rem; line-height: 1.78; }
.chapter-prose p { margin: 0 0 1rem; }
.chapter-prose p:last-child { margin-bottom: 0; }
.chapter-part { margin-top: 1.35rem; padding: 1rem 1.1rem; border-left: 3px solid #c9c6ff; background: #fafaff; }
.chapter-part h5 { margin: 0 0 .65rem; font-size: .82rem; letter-spacing: .01em; }
.chapter-part ol, .chapter-part ul { margin: 0; padding-left: 1.25rem; color: #424959; line-height: 1.68; }
.chapter-part li + li { margin-top: .55rem; }
.formula-part { border-left-color: var(--aqua); background: #f5fcfb; }
.example-part { border-left-color: #f0ad45; background: #fffaf1; }
.mistake-part { border-left-color: #e07a8b; background: #fff7f8; }
.chapter-takeaway { margin: 1.4rem 0 0; padding-top: 1rem; color: #252c3a; border-top: 1px dashed var(--line-strong); line-height: 1.65; }
.supplementary-section, .review-section { margin-top: 1.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.reference-details { margin-top: 1.8rem; border: 1px solid var(--line); border-radius: .9rem; }
.reference-details summary { padding: .95rem 1rem; cursor: pointer; font-weight: 780; }
.reference-details h4 { margin: 1rem 1rem .5rem; }
.reference-details ul { margin: 0 1rem 1.1rem; padding-left: 1.2rem; color: #4d5464; line-height: 1.6; }
.timecode { height: fit-content; padding: .3rem .42rem; color: var(--primary); border: 0; border-radius: .45rem; background: var(--primary-soft); font: 760 .69rem/1.3 ui-monospace, monospace; }
.ambiguity-list { padding: 0; list-style: none; }
.ambiguity-list li { display: flex; align-items: start; gap: .6rem; padding: .65rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.source-details, .usage-card { margin-top: 1.3rem; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: #f8f9fc; }
.source-details summary, .usage-card summary { padding: .85rem .95rem; cursor: pointer; font-weight: 750; }
.source-details pre { margin: 0; padding: 0 .95rem .95rem; overflow: auto; white-space: pre-wrap; color: #555c6c; font: .75rem/1.5 ui-monospace, monospace; }
.usage-card summary { display: flex; justify-content: space-between; gap: 1rem; color: #535a6a; font-size: .78rem; }
.usage-card summary strong { color: var(--primary); }
.usage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; padding: 0 .95rem .8rem; }
.usage-grid span { display: grid; gap: .12rem; padding: .65rem; color: #7c8392; border-radius: .7rem; background: #fff; font-size: .65rem; }
.usage-grid b { color: var(--ink); font-size: .8rem; }
.usage-note { margin: 0; padding: 0 .95rem .95rem; color: #7c8392; font-size: .66rem; line-height: 1.45; }
.pane-intro { margin: 0 0 1rem; color: #747b8b; font-size: .78rem; }
.clip-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.clip-row div { display: grid; gap: .2rem; }
.clip-row small { color: #7c8392; }
.clip-row audio { grid-column: 1 / -1; width: 100%; }
.transcript { display: grid; }
.segment { display: grid; grid-template-columns: 4.8rem 1fr; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid #eceef4; line-height: 1.5; }
.dialog-actions { position: relative; z-index: 3; flex: 0 0 auto; display: flex; align-items: end; gap: .7rem; padding: .85rem 1.4rem calc(.85rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -10px 30px rgba(20,25,40,.06); }
.export-picker { min-width: 12rem; flex: 1; gap: .25rem; font-size: .68rem; }
.export-picker select { min-height: 2.75rem; padding: .55rem .7rem; }
.confirm-dialog { width: min(27rem, calc(100% - 2rem)); padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.1rem; }
.confirm-dialog h2 { margin: 0; }
.confirm-dialog p { color: var(--muted); line-height: 1.5; }
.confirm-actions { display: flex; justify-content: end; gap: .6rem; }
.toast { position: fixed; z-index: 250; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); max-width: min(25rem, calc(100% - 2rem)); padding: .85rem 1rem; color: #fff; border-radius: .85rem; background: #171a24; box-shadow: 0 18px 45px rgba(7,9,16,.28); opacity: 0; pointer-events: none; transform: translateY(.8rem); transition: opacity 180ms, transform 180ms var(--ease); }
.toast.visible { opacity: 1; transform: none; }
.toast.error { background: #9f3045; }

@keyframes hero-settle { from { opacity: 0; transform: translateY(18px) rotateY(-4deg) rotateX(2deg); } to { opacity: 1; transform: rotateY(-4deg) rotateX(2deg); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (hover:hover) and (pointer:fine) {
  .button:not(:disabled):hover, .icon-button:not(:disabled):hover { transform: translateY(-2px); }
  .button.primary:not(:disabled):hover { box-shadow: 0 15px 34px rgba(82,72,232,.3); }
  .marker-buttons button:hover { transform: translateY(-2px); border-color: #bebaff; background: var(--primary-soft); }
  .dropzone:hover { transform: translateY(-2px); border-color: var(--primary); }
  .lecture-item:hover { background: #fafbfe; }
}
.button:not(:disabled):active, .icon-button:not(:disabled):active { transform: scale(.98); }
.record-button:not(:disabled):active { transform: scale(.94); }

@media (max-width: 900px) {
  .landing-nav, .landing-hero, .privacy-showcase, .access-section, .landing-footer { width: min(100% - 1.5rem, 46rem); }
  .landing-nav { grid-template-columns: 1fr auto; }
  .landing-links { display: none; }
  .landing-hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 4rem; }
  .hero-copy h1 { max-width: 10ch; }
  .hero-product { width: min(100%, 32rem); margin: 0 auto; }
  .section-heading, .privacy-showcase, .access-section { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 16rem; }
  .process-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .process-icon { margin: 2.2rem 0 1.5rem; }
  .workspace { width: min(100% - 1rem, 46rem); padding-top: 1rem; }
  .app-grid { grid-template-columns: 1fr; }
  .library-card { position: static; }
  .workspace-intro { grid-template-columns: 1fr; gap: .7rem; }
  .topbar { grid-template-columns: 1fr auto; padding-inline: .75rem; }
  .topbar-center { display: none; }
}

@media (max-width: 580px) {
  .landing-nav { min-height: 4.4rem; }
  .landing-nav .beta-badge, .topbar .beta-badge { display: none; }
  .landing-hero { min-height: auto; padding: 3.5rem 0 5rem; }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { width: fit-content; }
  .hero-facts { display: grid; grid-template-columns: repeat(2,1fr); }
  .hero-product { min-height: 29rem; }
  .demo-window { width: calc(100% - 1rem); transform: none; }
  .demo-body { padding: 1.4rem; }
  .floating-note { min-width: 9.7rem; }
  .note-one { top: 1rem; right: -.25rem; }
  .note-two { bottom: 1rem; left: -.25rem; }
  .landing-section { padding-block: 5rem; }
  .section-heading { gap: 1rem; }
  .privacy-showcase { margin-block: 3rem; padding: 2rem 1.25rem; border-radius: 1.35rem; }
  .access-section { padding: 3rem 0 5rem; }
  .landing-footer { grid-template-columns: 1fr auto; }
  .landing-footer p { display: none; }
  .topbar { min-height: 4rem; }
  .topbar .brand { font-size: .91rem; }
  .service-state span { display: none; }
  .service-state { min-width: 2.4rem; justify-content: center; padding: .55rem; }
  .workspace-intro { padding: .8rem .35rem 1.1rem; }
  .workspace-intro h1 { font-size: 2.6rem; }
  .capture-card, .library-card { border-radius: 1.05rem; }
  .capture-head, .library-head { padding-inline: 1rem; }
  .source-switch, .consent-before-record, .selected-file { margin-inline: 1rem; }
  .source-area, .lecture-form { padding-inline: 1rem; }
  .recorder-stage { min-height: 21rem; }
  .record-button { width: 5.25rem; height: 5.25rem; }
  .marker-buttons { grid-template-columns: repeat(3,1fr); }
  .field-grid { grid-template-columns: 1fr; }
  .photo-previews { grid-template-columns: repeat(3,1fr); }
  .photo-picker { align-items: start; flex-direction: column; }
  .submit-button { padding-left: 2.5rem; }
  .lecture-item { padding-left: 3.7rem; padding-right: 1rem; }
  .result-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .dialog-head, .result-pane, .dialog-actions { padding-inline: 1rem; }
  .result-tabs { padding-inline: .45rem; overflow: hidden; }
  .result-tab { min-width: 0; flex: 1; padding-inline: .3rem; font-size: .68rem; }
  .result-scroll { min-height: 0; max-height: none; }
  .result-pane { padding-top: 1.35rem; }
  .study-chapter { padding-block: 2rem; }
  .chapter-head { grid-template-columns: 2.2rem minmax(0,1fr); }
  .chapter-head .timecode { grid-column: 2; width: fit-content; }
  .chapter-part { margin-left: 0; padding: .9rem; }
  .dialog-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem; padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom)); }
  .export-picker { min-width: 0; grid-column: 1; grid-row: 1; }
  .export-picker > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .export-picker select { width: 100%; min-height: 3rem; }
  #copy-summary { grid-column: 1 / -1; grid-row: 2; min-height: 2.35rem; }
  #download-export { grid-column: 2; grid-row: 1; min-height: 3rem; padding-inline: 1rem; }
  .usage-grid { grid-template-columns: 1fr; }
  body.recording-focus .source-area { padding-inline: .7rem; }
  body.recording-focus .marker-panel { padding: .75rem; }
  body.recording-focus .marker-explainer p { margin-bottom: .65rem; }
  body.recording-focus .marker-buttons { grid-template-columns: repeat(5,1fr); gap: .25rem; }
  body.recording-focus .marker-buttons button { min-height: 3.3rem; font-size: .56rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body.page-hidden *, body.page-hidden *::before, body.page-hidden *::after { animation: none !important; transition: none !important; }
