:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-subtle: #fafafb;
  --surface-warm: #f1f1f3;
  --ink: #18181b;
  --muted: #6b6b73;
  --line: #e7e7ea;
  --soft: #ececef;
  --deep: #18181b;
  --hover: #f0f0f3;
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 1px 1px rgba(24, 24, 27, 0.04), 0 8px 16px rgba(24, 24, 27, 0.08),
    0 28px 60px rgba(24, 24, 27, 0.16);
  --radius: 8px;
  --radius-modal: 16px;
  --hint: #57575e;
  --danger: #b42318;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --sidebar-width: 252px;
  --feed-offset: 76px;
  --center-column: 720px;
  --right-rail: 380px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    var(--sidebar-width)
    var(--feed-offset)
    minmax(620px, var(--center-column))
    minmax(320px, var(--right-rail))
    minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  height: 100vh;
  padding: 0 12px 14px;
  border-right: 0;
  background: #f8f8fa;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  overflow-y: auto;
}

.brand-lockup {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 70px;
  padding: 0 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-lockup:hover {
  color: #3b3b38;
}

.brand-lockup strong,
.player-bar strong,
.player-bar span,
.stats-grid strong,
.stats-grid span {
  display: block;
}

.brand-lockup strong {
  font-size: 22px;
  font-weight: 680;
  line-height: 1;
}

.side-summary span,
.voice-hero p,
.account-card p {
  color: var(--muted);
}

.side-nav {
  display: grid;
  gap: 3px;
}

.home-side-metrics {
  margin: 20px 0 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-side-metrics div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.home-side-metrics strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1;
  font-weight: 680;
  letter-spacing: 0;
}

.home-side-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 650;
}

.side-summary {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.side-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1;
}

.workspace {
  min-width: 0;
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns:
    var(--feed-offset)
    minmax(620px, var(--center-column))
    minmax(320px, var(--right-rail))
    minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}

.top-bar {
  grid-column: 1 / -1;
  min-height: 70px;
  display: grid;
  grid-template-columns:
    var(--feed-offset)
    minmax(620px, var(--center-column))
    minmax(320px, var(--right-rail))
    minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 248, 0.86);
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(20px);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 680;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 670;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
}

.header-actions {
  grid-column: 3;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 18px;
}

.desktop-search {
  width: min(100%, 380px);
  flex: 1 1 230px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.desktop-search input {
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}

.desktop-search input:focus {
  outline: none;
}

.library-search {
  flex: 0 1 320px;
  width: min(100%, 320px);
}

.icon-button,
.round-button,
.transport-button,
.text-button,
.segment,
.nav-item,
.source-card,
.primary-button,
.secondary-button,
.voice-card,
.account-list button,
.row-action {
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.icon-button:active,
.round-button:active,
.transport-button:active,
.segment:active,
.nav-item:active,
.source-card:active,
.primary-button:active,
.secondary-button:active,
.voice-card:active,
.account-list button:active,
.reader-row.playable:active,
.row-action:active {
  transform: scale(0.98);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  background: #fff;
}

.icon-button.compact {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.mobile-search-button {
  display: none;
}

.content-grid {
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: 22px 24px 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.main-column {
  min-width: 0;
}

.screen {
  min-width: 0;
}

.hidden {
  display: none !important;
}

.landing-page {
  --landing-frame: 680px;
  --landing-wide: 780px;
  min-height: 100vh;
  padding: 22px 18px 80px;
  background: var(--bg);
}

.landing-header {
  min-height: 56px;
  max-width: var(--landing-frame);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-header strong {
  font-size: 22px;
  font-weight: 680;
}

.landing-auth-actions,
.landing-signed-out-actions,
.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-hero {
  max-width: var(--landing-frame);
  margin: 62px auto 34px;
  display: grid;
  justify-items: center;
}

.landing-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.landing-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 5vw, 52px);
  line-height: 1.02;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.landing-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.48;
}

.landing-hero-actions {
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.compact-primary {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
}

.landing-preview {
  width: 100%;
  min-height: 260px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(180deg, #f0f0f3 0 1px, transparent 1px 34px);
  box-shadow: var(--shadow);
}

.preview-reader {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 11px;
  background: rgba(255, 255, 255, 0.92);
}

.preview-reader span {
  height: 9px;
  border-radius: 999px;
  background: #dcdce0;
}

.preview-reader span:nth-child(1) {
  width: 92%;
}

.preview-reader span:nth-child(2) {
  width: 78%;
  background: var(--deep);
}

.preview-reader span:nth-child(3) {
  width: 64%;
}

.preview-reader strong {
  margin-top: 6px;
  font-size: 18px;
}

.preview-player {
  width: min(100%, 340px);
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.preview-player .ui-icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.1;
}

.landing-review-strip {
  width: min(100%, 680px);
  margin: 0 auto 48px;
  display: grid;
  gap: 18px;
}

.landing-review-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  background: #f1f0ec;
  box-shadow: var(--shadow-soft);
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ff8a00;
}

.review-stars .ui-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke-width: 1.7;
}

.landing-review-card p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.48;
  font-weight: 500;
}

.landing-review-card > span {
  border-top: 1px solid rgba(21, 21, 21, 0.08);
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.mobile-experience-section {
  max-width: var(--landing-frame);
  margin: 0 auto 44px;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.mobile-experience-copy {
  max-width: 720px;
  text-align: center;
}

.mobile-experience-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.06;
  font-weight: 680;
}

.mobile-experience-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.landing-demo-workspace {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 14px;
  align-items: stretch;
}

.landing-demo-list,
.landing-demo-side,
.landing-demo-timeline,
.landing-demo-player {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.landing-demo-list {
  overflow: hidden;
}

.landing-demo-item {
  width: 100%;
  min-height: 150px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.landing-demo-item:last-child {
  border-bottom: 0;
}

.landing-demo-item:hover,
.landing-demo-item.active {
  background: var(--soft);
}

.landing-demo-item .row-meta {
  justify-content: flex-start;
  gap: 10px;
}

.landing-demo-item strong {
  font-size: 21px;
  line-height: 1.12;
  font-weight: 680;
}

.landing-demo-item p {
  display: -webkit-box;
  margin: 0;
  color: #3f3f3b;
  font-size: 15px;
  line-height: 1.48;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.landing-demo-side {
  padding: 14px;
  display: grid;
  gap: 14px;
  align-content: start;
  background: rgba(255, 255, 255, 0.76);
}

.landing-demo-timeline {
  padding: 16px;
}

.landing-demo-timeline-header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.landing-demo-timeline-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.landing-demo-timeline-header strong {
  font-size: 20px;
  line-height: 1.16;
}

.landing-demo-timeline-row {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 8px 6px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  color: #3f3f3b;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.landing-demo-timeline-row.active {
  background: var(--soft);
  color: var(--ink);
}

.landing-demo-timeline-row span:first-child {
  color: var(--deep);
  font-weight: 760;
}

.landing-demo-timeline-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-demo-player {
  padding: 16px;
  background: var(--soft);
}

.landing-demo-player-copy {
  display: grid;
  gap: 4px;
}

.landing-demo-player-copy strong {
  font-size: 18px;
  line-height: 1.16;
}

.landing-demo-player-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.landing-demo-progress {
  margin-top: 14px;
  height: 4px;
  border-radius: 999px;
  background: #dededb;
  overflow: hidden;
}

.landing-demo-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--deep);
}

.landing-demo-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-demo-controls button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.landing-demo-controls .ui-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.1;
}

.landing-demo-controls button:nth-child(2) {
  width: 42px;
  height: 42px;
  color: var(--surface);
  background: var(--deep);
}

.landing-demo-controls button:nth-child(2) .ui-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.input-showcase-section {
  max-width: var(--landing-frame);
  margin: 0 auto 54px;
  display: grid;
  gap: 26px;
}

.input-showcase-heading {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
  text-align: center;
}

.input-showcase-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4.3vw, 48px);
  line-height: 1.06;
  font-weight: 680;
}

.input-showcase-list {
  display: grid;
  gap: 30px;
}

.input-showcase-card {
  display: grid;
  gap: 14px;
}

.input-showcase-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  font-weight: 660;
  text-align: center;
}

.input-showcase-media {
  position: relative;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.scan-visual {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.8) 0 12%, transparent 13%),
    linear-gradient(135deg, #efefeb 0%, #fbfbf8 52%, #e7e7e2 100%);
}

.scan-paper {
  position: absolute;
  inset: 12% 9% 10% 12%;
  border: 1px solid #d7d7d1;
  border-radius: 12px;
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.78);
  transform: rotate(-5deg);
}

.scan-paper span,
.clipboard-card span,
.photo-sheet span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #d6d6d2;
}

.scan-paper span:nth-child(1) {
  width: 58%;
  background: var(--deep);
}

.scan-paper span:nth-child(2) {
  width: 78%;
}

.scan-paper span:nth-child(3) {
  width: 70%;
}

.scan-paper span:nth-child(4) {
  width: 84%;
}

.scan-paper span:nth-child(5) {
  width: 48%;
}

.scan-phone {
  position: absolute;
  right: 13%;
  bottom: 9%;
  width: 25%;
  min-width: 150px;
  aspect-ratio: 0.58;
  border: 10px solid #151515;
  border-radius: 28px;
  background: rgba(247, 247, 244, 0.72);
  box-shadow: 0 24px 70px rgba(15, 15, 15, 0.22);
  transform: rotate(7deg);
}

.phone-camera-bar {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 42%;
  height: 5px;
  border-radius: 999px;
  background: #151515;
  transform: translateX(-50%);
}

.scan-frame {
  position: absolute;
  inset: 28% 14%;
  border: 2px solid var(--deep);
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.36);
}

.phone-shutter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border: 3px solid #d9d9d5;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.screenshot-visual {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 246, 243, 0.78)),
    repeating-linear-gradient(90deg, rgba(19, 19, 20, 0.04) 0 1px, transparent 1px 72px);
}

.screenshot-window {
  position: absolute;
  inset: 13% 13% 22% 11%;
  border: 1px solid #d3d3ce;
  border-radius: 18px;
  padding: 54px 42px 34px;
  display: grid;
  align-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(20, 20, 20, 0.08);
}

.screenshot-window::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #151515;
  box-shadow: 16px 0 0 #bdbdb7, 32px 0 0 #d9d9d4;
}

.screenshot-window span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #d6d6d2;
}

.screenshot-window span:nth-child(1) {
  width: 46%;
  height: 18px;
  background: var(--deep);
}

.screenshot-window span:nth-child(2) {
  width: 78%;
}

.screenshot-window span:nth-child(3) {
  width: 66%;
}

.screenshot-window strong {
  width: 26%;
  height: 30px;
  border-radius: 999px;
  background: #151515;
}

.clipboard-card {
  position: absolute;
  right: 9%;
  bottom: 10%;
  width: 28%;
  min-width: 172px;
  border: 1px solid #d4d4cf;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 10px;
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(20, 20, 20, 0.14);
}

.clipboard-card div {
  width: 46px;
  height: 36px;
  border: 2px solid #151515;
  border-radius: 10px;
}

.clipboard-card span:nth-child(2) {
  width: 84%;
  background: var(--deep);
}

.clipboard-card span:nth-child(3) {
  width: 68%;
}

.clipboard-card span:nth-child(4) {
  width: 48%;
}

.photo-visual {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.8) 0 14%, transparent 15%),
    linear-gradient(135deg, #e9e9e4 0%, #f9f9f6 50%, #deded8 100%);
}

.photo-card {
  position: absolute;
  inset: 10% 10% 11%;
  border: 1px solid #d4d4ce;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 22px 64px rgba(20, 20, 20, 0.12);
}

.photo-sky {
  height: 38%;
  background:
    linear-gradient(140deg, rgba(21, 21, 21, 0.08), transparent 55%),
    linear-gradient(180deg, #dcdcd8, #f6f6f3);
}

.photo-sheet {
  margin: -30px auto 0;
  width: 76%;
  border: 1px solid #d7d7d2;
  border-radius: 16px;
  padding: 30px 28px;
  display: grid;
  gap: 13px;
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(2deg);
}

.photo-sheet span:nth-child(1) {
  width: 52%;
  height: 18px;
  background: var(--deep);
}

.photo-sheet span:nth-child(2) {
  width: 88%;
}

.photo-sheet span:nth-child(3) {
  width: 74%;
}

.photo-sheet span:nth-child(4) {
  width: 62%;
}

.photo-highlight {
  position: absolute;
  left: 26%;
  right: 22%;
  bottom: 29%;
  height: 18px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.1);
}

.input-feature-workspace {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.72fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
}

.input-feature-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.input-feature-item {
  width: 100%;
  min-height: 138px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.input-feature-item:last-child {
  border-bottom: 0;
}

.input-feature-item:hover,
.input-feature-item.active {
  background: var(--soft);
}

.input-feature-item span {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.04;
  font-weight: 690;
}

.input-feature-item small {
  max-width: 540px;
  color: #4a4a45;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 520;
}

.input-feature-preview {
  min-height: 456px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.8) 0 12%, transparent 13%),
    linear-gradient(180deg, #fbfbf8, #e7e7e2);
  overflow: hidden;
}

.input-feature-phone {
  width: min(74%, 270px);
  aspect-ratio: 0.54;
  border: 9px solid #151515;
  border-radius: 32px;
  position: relative;
  display: none;
  background: #f7f7f3;
  box-shadow: 0 24px 70px rgba(20, 20, 20, 0.16);
  overflow: hidden;
}

.input-feature-phone.active {
  display: block;
}

.platform-section {
  max-width: var(--landing-frame);
  margin: 0 auto 54px;
}

.platform-hub {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    var(--soft);
  box-shadow: var(--shadow-soft);
}

.platform-hub-copy {
  display: grid;
  gap: 14px;
  text-align: left;
}

.platform-hub-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  font-weight: 690;
}

.platform-hub-copy p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.34;
  font-weight: 520;
}

.platform-route-list {
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  background: rgba(255, 255, 255, 0.72);
}

.platform-route {
  min-height: 104px;
  padding: 22px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  color: var(--ink);
  background: transparent;
}

.platform-route + .platform-route {
  border-top: 1px solid var(--line);
}

.platform-route-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 760;
}

.platform-route strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
}

.platform-route p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.36;
  font-weight: 510;
}

.feature-phone-top {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 42%;
  height: 5px;
  border-radius: 999px;
  background: #151515;
  transform: translateX(-50%);
}

.feature-phone-dot {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 34px;
  height: 34px;
  border: 3px solid #d8d8d3;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.feature-paper-lines,
.feature-screenshot-sheet,
.feature-photo-note {
  position: absolute;
  left: 18px;
  right: 18px;
  display: grid;
  gap: 11px;
  border: 1px solid #d8d8d2;
  border-radius: 16px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.86);
}

.feature-paper-lines {
  top: 64px;
  bottom: 92px;
  align-content: center;
}

.feature-paper-lines span,
.feature-screenshot-sheet span,
.feature-photo-note span {
  height: 9px;
  border-radius: 999px;
  background: #d5d5d0;
}

.feature-paper-lines span:nth-child(1),
.feature-screenshot-sheet strong,
.feature-photo-note strong {
  width: 58%;
  height: 14px;
  border-radius: 999px;
  background: var(--ink);
}

.feature-paper-lines span:nth-child(2) {
  width: 86%;
}

.feature-paper-lines span:nth-child(3) {
  width: 72%;
}

.feature-paper-lines span:nth-child(4) {
  width: 62%;
}

.feature-scan-box {
  position: absolute;
  left: 31px;
  right: 31px;
  top: 42%;
  height: 72px;
  border: 2px solid var(--ink);
  border-radius: 13px;
}

.feature-screenshot-sheet {
  top: 76px;
  bottom: 150px;
}

.feature-screenshot-sheet strong,
.feature-photo-note strong {
  display: block;
}

.feature-screenshot-sheet span:nth-child(2) {
  width: 82%;
}

.feature-screenshot-sheet span:nth-child(3) {
  width: 72%;
}

.feature-screenshot-sheet span:nth-child(4) {
  width: 48%;
}

.feature-paste-card {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 18px;
  font-weight: 720;
}

.feature-photo-scene {
  position: absolute;
  inset: 48px 16px 170px;
  border: 1px solid #d5d5d0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.9) 0 10%, transparent 11%),
    linear-gradient(145deg, #deded8, #f9f9f6);
}

.feature-photo-scene::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 20%;
  bottom: 22%;
  height: 52px;
  border-radius: 18px 18px 0 0;
  background: rgba(21, 21, 21, 0.14);
}

.feature-photo-note {
  bottom: 52px;
}

.feature-photo-note span:nth-child(2) {
  width: 80%;
}

.feature-photo-note span:nth-child(3) {
  width: 60%;
}

.price-comparison-section {
  max-width: var(--landing-frame);
  margin: 0 auto 48px;
}

.pricing-plans-section {
  max-width: var(--landing-frame);
  margin: 0 auto 54px;
  display: grid;
  gap: 22px;
}

.pricing-plans-heading {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.pricing-plans-heading h2 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  font-weight: 650;
}

.pricing-billing-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pricing-billing-toggle button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.pricing-billing-toggle button.active {
  color: var(--ink);
  background: var(--soft);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.08);
}

.pricing-billing-toggle span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #20751f;
  background: #dff4dc;
  font-size: 13px;
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pricing-plan-card {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pricing-plan-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96)),
    var(--soft);
}

.pricing-plan-topline {
  min-height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pricing-plan-topline h3 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 650;
}

.pricing-plan-topline span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #20751f;
  background: #dff4dc;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.pricing-plan-price {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-plan-price strong {
  color: var(--ink);
  font-size: 52px;
  line-height: 1;
  font-weight: 650;
}

.pricing-plan-price span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 570;
}

.pricing-plan-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  list-style: none;
}

.pricing-plan-card li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.42;
  font-weight: 560;
}

.pricing-plan-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--deep);
  border-bottom: 2px solid var(--deep);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.pricing-plan-card .primary-button,
.pricing-plan-card .secondary-button {
  min-height: 48px;
  width: 100%;
}

.price-bars {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.price-row {
  display: grid;
  gap: 8px;
}

.price-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.price-label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.price-label strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 680;
}

.price-track {
  height: 28px;
  border-radius: 999px;
  background: #e5e5e2;
  overflow: hidden;
}

.price-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #a9a9a5;
}

.price-row.readside .price-label span,
.price-row.readside .price-label strong {
  color: var(--ink);
}

.price-row.readside .price-track span {
  background: var(--deep);
}

.price-note {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.landing-pitch-line {
  max-width: var(--landing-frame);
  margin: 0 auto 52px;
  text-align: center;
}

.landing-pitch-line p {
  max-width: 880px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 620;
}

.personal-story-section {
  max-width: var(--landing-frame);
  margin: 0 auto 54px;
  text-align: center;
}

.kiriru-montage {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  gap: 12px;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.78) 0 10%, transparent 11%),
    linear-gradient(135deg, #f5f5f1, #e8e8e3);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.kiriru-art-card {
  position: relative;
  aspect-ratio: 1 / 1.15;
  min-height: 0;
  border: 1px solid #d0d0ca;
  border-radius: 16px;
  overflow: hidden;
  background: #e6e6e0;
}

.kiriru-art-card:nth-child(1),
.kiriru-art-card:nth-child(3) {
  aspect-ratio: 1 / 1.28;
}

.kiriru-art-card:nth-child(2),
.kiriru-art-card:nth-child(4) {
  align-self: start;
}

.kiriru-portfolio-link {
  grid-column: 1 / -1;
  width: fit-content;
  justify-self: center;
  border: 1px solid #d0d0ca;
  border-radius: 999px;
  padding: 7px 13px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
}

.kiriru-portfolio-link img {
  width: 30px;
  height: 30px;
  border: 1px solid #d0d0ca;
  border-radius: 999px;
  display: block;
  object-fit: cover;
}

.kiriru-art-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.kiriru-portfolio-link:hover {
  background: var(--surface);
  text-decoration: underline;
}

.kiriru-letter {
  grid-column: 1 / -1;
  max-width: 620px;
  margin: 4px auto 0;
  display: grid;
  gap: 14px;
  text-align: left;
}

.kiriru-letter p {
  margin: 0;
  color: #30302d;
  font-size: 18px;
  line-height: 1.55;
}

.sample-reads-section {
  max-width: var(--landing-frame);
  margin: 0 auto 60px;
}

.landing-section-heading {
  max-width: var(--landing-frame);
  margin: 0 auto 14px;
  display: grid;
  gap: 6px;
  text-align: center;
}

.sample-read-grid {
  width: min(100%, var(--landing-frame));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.sample-read-card {
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sample-read-card.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
}

.sample-read-card.reverse .sample-read-cover {
  order: 2;
}

.sample-read-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px;
  text-align: left;
}

.sample-read-cover {
  min-height: 210px;
  border: 1px solid #d0d0ca;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #e8e8e3;
}

.sample-read-cover::before,
.sample-read-cover::after {
  content: "";
  position: absolute;
}

.sample-read-cover::before {
  inset: 16px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 12px;
}

.sample-read-cover::after {
  left: 28px;
  right: 28px;
  bottom: 30px;
  height: 7px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.74);
}

.sample-read-cover.moby-dick {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.75) 0 8%, transparent 9%),
    linear-gradient(145deg, #dcdcd8 0%, #f7f7f3 52%, #b9c2c6 100%);
}

.sample-read-cover.moby-dick span {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 58%;
  height: 34%;
  border-radius: 50% 50% 44% 44%;
  background: rgba(21, 21, 21, 0.15);
  transform: translateX(-50%);
}

.sample-read-cover.frankenstein {
  background:
    linear-gradient(180deg, rgba(21, 21, 21, 0.1), transparent 42%),
    linear-gradient(135deg, #efefe9, #d7d7d2);
}

.sample-read-cover.frankenstein span {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 32%;
  height: 42%;
  border-radius: 20px 20px 6px 6px;
  background: rgba(21, 21, 21, 0.16);
  transform: translateX(-50%);
}

.sample-read-cover.frederick-douglass {
  background:
    linear-gradient(135deg, #f8f8f4 0%, #deded8 100%),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(21, 21, 21, 0.05) 20px 21px);
}

.sample-read-cover.frederick-douglass span {
  position: absolute;
  left: 24%;
  right: 24%;
  top: 24%;
  bottom: 24%;
  border: 2px solid rgba(21, 21, 21, 0.22);
  border-radius: 999px 999px 14px 14px;
}

.sample-read-card h3 {
  font-size: 27px;
  line-height: 1.14;
  font-weight: 680;
}

.sample-read-card p {
  display: -webkit-box;
  margin: 0;
  color: #3f3f3b;
  font-size: 17px;
  line-height: 1.48;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.sample-read-card .row-meta {
  margin-top: auto;
}

.sample-read-card button {
  align-self: flex-start;
  min-height: 34px;
  padding: 0 12px;
}

.auth-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.voice-hero,
.account-card,
.profile-card,
.settings-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-heading {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 670;
}

.source-card {
  min-height: 108px;
  border-radius: var(--radius);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.source-card[hidden] {
  display: none !important;
}

.source-card:hover,
.voice-card:hover,
.account-list button:hover,
.reader-row.playable:hover,
.row-action:hover,
.secondary-button:hover {
  border-color: #d3d3d8;
  background: var(--hover);
  box-shadow: var(--shadow-soft);
}

.source-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #d5d5cd;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #3b3b38;
}

.source-icon .ui-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.source-card span:last-child {
  max-width: 100%;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.source-options-toggle {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 32px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.source-options-toggle:hover {
  color: var(--ink);
  background: transparent;
}

.source-options-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0 14px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-warm);
}

.segment {
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  background: transparent;
}

.segment-count {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
}

.segment.active {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.segment.active .segment-count {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.14);
}

.library-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.text-button {
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.library-list {
  display: flex;
  flex-direction: column;
}

.reader-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.reader-row.has-action {
  grid-template-columns: minmax(0, 1fr) auto;
}

.reader-row.has-menu {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.reader-row.playable {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.reader-row.is-playing {
  position: relative;
  background: #f6f6f4;
}

.reader-row.is-playing::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--deep);
}

.reader-row > div {
  min-width: 0;
}

.reader-row:last-child {
  border-bottom: 0;
}

.reader-row h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 680;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-row p {
  display: -webkit-box;
  margin: 0 0 10px;
  color: #3f3f3b;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.row-progress {
  width: 10.5%;
  min-width: 64px;
  max-width: 78px;
  height: 4px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #ececef;
  overflow: hidden;
}

.row-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.mark-complete-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.mark-complete-button:hover {
  color: var(--ink);
}

.mark-complete-button.complete {
  cursor: default;
  color: var(--muted);
}

.row-action {
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 650;
}

.row-controls {
  position: relative;
  width: 38px;
}

.item-menu-button {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.item-menu-button:hover {
  border-color: var(--line);
  background: var(--hover);
}

.more-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.item-menu {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 10;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.item-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
}

.item-menu button:hover {
  background: var(--hover);
}

.item-menu .danger-menu-item {
  color: #b42318;
}

.title-input {
  min-height: 42px;
  max-height: 86px;
  resize: none;
  overflow: auto;
  line-height: 1.35;
  font-weight: 650;
}

.saved-folder-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
}

.save-item-title {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.save-folder-list {
  display: grid;
  gap: 8px;
}

.save-folder-option {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.save-folder-option:has(input:checked) {
  border-color: var(--deep);
  background: #f1f1f3;
}

.save-folder-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}

.save-folder-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.folder-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.danger-button {
  color: #171717;
  border-color: var(--line);
  background: #fff;
}

.danger-button:hover {
  border-color: #d3d3d8;
  background: var(--hover);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.status-pill {
  min-width: 42px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.voice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.voice-card {
  min-height: 104px;
  border-radius: var(--radius);
  padding: 15px;
  text-align: left;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.voice-card.active {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.voice-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 680;
}

.voice-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.voice-card.active span {
  color: #d8d8d6;
}

.settings-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

label {
  color: #2e2e2b;
  font-size: 13px;
  font-weight: 660;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
}

.desktop-search input,
.desktop-search input:focus {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-search:focus-within {
  border-color: #d8d8dc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(24, 24, 27, 0.04);
}

/* Consistent, calm keyboard focus for interactive controls */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
.nav-item:focus-visible,
.segment:focus-visible,
.source-card:focus-visible,
.reader-row:focus-visible {
  outline: 2px solid rgba(24, 24, 27, 0.55);
  outline-offset: 2px;
}

.paste-zone {
  min-height: 116px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 16px;
  background: var(--surface-subtle);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.paste-zone:focus,
.paste-zone:hover,
.paste-zone.has-image {
  border-color: #cfcfc7;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.paste-zone strong,
.paste-zone small,
.import-status {
  display: block;
}

.paste-zone strong {
  font-size: 15px;
  font-weight: 650;
}

.paste-zone small,
.import-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.link-fallback {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 4px;
}

.extension-button {
  justify-content: center;
  width: 100%;
}

.image-preview {
  width: 100%;
  max-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.scan-camera-panel {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}

.scan-video,
.scan-camera-panel .image-preview {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  display: block;
  background: #111;
}

.scan-camera-panel .image-preview {
  object-fit: contain;
  background: #fff;
}

.scan-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scan-actions .secondary-button {
  min-height: 40px;
  padding-inline: 10px;
}

.import-status {
  min-height: 18px;
  margin: 0;
}

/* Give the dynamic field area the same calm rhythm as the rest of the sheet,
   so hints and helper text never jam against the input above them. */
#dynamicInput {
  display: grid;
  gap: 13px;
}

#dynamicInput > label {
  margin-bottom: -6px;
}

.import-folder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
}

.import-folder-grid label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.import-folder-grid select,
.import-folder-grid input {
  width: 100%;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
}

.account-identity {
  min-width: 0;
  flex: 1;
}

.account-card h2 {
  font-size: 19px;
  line-height: 1.16;
}

.account-card p:last-child {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 540;
}

.avatar {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--deep);
  font-size: 18px;
  font-weight: 650;
  flex: 0 0 auto;
  overflow: hidden;
}

.editable-avatar {
  position: relative;
  cursor: pointer;
}

.editable-avatar:hover {
  box-shadow: 0 0 0 3px var(--soft);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar span {
  display: block;
}

.large-avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.profile-name-button {
  max-width: 100%;
  border: 0;
  padding: 0;
  display: block;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 19px;
  line-height: 1.16;
  font-weight: 670;
  cursor: pointer;
}

.profile-name-button:hover {
  color: #3b3b38;
}

.profile-name-input {
  width: min(100%, 360px);
  min-height: 34px;
  padding: 5px 8px;
  font-size: 19px;
  font-weight: 670;
}

.profile-card {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 14px;
  background: var(--surface);
}

.profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-card-heading h2 {
  font-size: 16px;
  line-height: 1.2;
}

.profile-field {
  display: grid;
  gap: 7px;
}

.profile-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.profile-actions .secondary-button {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 12px;
}

.quiet-button {
  color: var(--muted);
  background: var(--surface-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.stats-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.stats-grid strong {
  font-size: 26px;
  font-weight: 650;
  line-height: 1;
}

.stats-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.account-list {
  display: grid;
  gap: 8px;
}

.account-list button {
  height: 50px;
  border-radius: var(--radius);
  padding: 0 16px;
  text-align: left;
  font-weight: 600;
}

.reader-panel {
  position: fixed;
  left: var(--feed-overlay-left, 50%);
  top: var(--reader-overlay-top, max(18px, env(safe-area-inset-top)));
  bottom: var(--reader-overlay-bottom, calc(22px + env(safe-area-inset-bottom)));
  z-index: 7;
  width: var(--feed-overlay-width, min(calc(100vw - 44px), var(--center-column)));
  transform: var(--feed-overlay-transform, translateX(-50%));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.reader-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 14px 11px;
}

.reader-panel-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
}

.reader-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-text {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
}

.reader-panel-text {
  grid-row: 2;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  color: #20201d;
  font-size: 18px;
  line-height: 1.7;
}

.reader-panel-text p {
  margin: 0 0 18px;
}

.reader-panel-editor {
  grid-row: 2;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 18px;
  resize: none;
  overflow: auto;
  background: var(--surface);
  color: #20201d;
  font: inherit;
  font-size: 18px;
  line-height: 1.7;
  outline: none;
}

.reader-panel-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(32, 32, 29, 0.1);
}

.timeline-panel-list {
  min-height: 0;
  padding: 10px;
  overflow: auto;
  background: var(--surface);
}

.timeline-panel {
  left: var(--timeline-overlay-left, var(--player-overlay-left, 50%));
  top: max(82px, env(safe-area-inset-top));
  bottom: var(--timeline-overlay-bottom, calc(210px + env(safe-area-inset-bottom)));
  width: var(--timeline-overlay-width, var(--player-overlay-width, min(380px, calc(100vw - 44px))));
  transform: none;
  background: rgba(247, 247, 248, 0.985);
  box-shadow: var(--shadow-soft);
}

.timeline-panel .reader-panel-heading {
  padding: 12px 12px 10px;
}

.timeline-panel .reader-panel-heading h2 {
  font-size: 15px;
  font-weight: 680;
}

.timeline-row {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.timeline-row:hover {
  background: var(--hover);
}

.timeline-row.active {
  background: var(--deep);
  color: #fff;
}

.timeline-time {
  color: #0b63ce;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 680;
}

.timeline-row.active .timeline-time {
  color: #fff;
}

.timeline-title {
  min-width: 0;
  overflow: hidden;
  color: #262626;
  font-weight: 560;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row.active .timeline-title {
  color: #fff;
}

.reader-word {
  border-radius: 5px;
  padding: 1px 2px;
  transition: background 120ms ease, color 120ms ease;
}

.reader-word.active {
  background: var(--deep);
  color: #fff;
}

.player-bar {
  position: fixed;
  left: var(--player-overlay-left, calc(var(--sidebar-width) + var(--feed-offset) + var(--center-column) + 24px));
  right: auto;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 8;
  width: var(--player-overlay-width, min(380px, calc(100vw - 44px)));
  transform: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy close"
    "transport transport"
    "actions actions";
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  background: rgba(255, 255, 255, 0.965);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
}

.player-bar.is-dragging {
  user-select: none;
  cursor: grabbing;
}

.transport-controls {
  grid-area: transport;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.transport-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.transport-button:hover {
  background: var(--hover);
}

.play-toggle {
  width: 44px;
}

.media-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.media-icon.play-icon .pause-shape,
.media-icon.pause-icon .play-shape {
  display: none;
}

.media-icon.play-icon .play-shape,
.media-icon.pause-icon .pause-shape {
  display: inline;
}

.seek-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.15;
}

.favorite-voice-button {
  align-self: end;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.favorite-voice-button.active {
  color: var(--ink);
  background: var(--surface);
}

.favorite-voice-button.active .ui-icon {
  fill: currentColor;
}

.favorite-voice-button .ui-icon {
  width: 15px;
  height: 15px;
}

.player-read-button {
  align-self: end;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--bg);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.player-read-button:hover {
  background: var(--hover);
}

.player-read-button:disabled {
  cursor: default;
  color: var(--muted);
  background: var(--surface);
  opacity: 0.62;
}

.player-bar strong,
.player-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-bar strong {
  font-size: 14px;
}

.player-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.player-bar .media-icon,
.player-bar .seek-icon {
  min-width: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.player-copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.player-scrubber {
  --player-progress: 0%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.player-scrubber span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.scrubber-wrap {
  position: relative;
  min-width: 0;
  height: 24px;
}

.scrubber-wrap input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 24px;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.scrubber-wrap input::-webkit-slider-runnable-track {
  height: 24px;
  border: 0;
  background: transparent;
}

.scrubber-wrap input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
}

.scrubber-wrap input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
}

.scrubber-visual {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  pointer-events: none;
  border-radius: 999px;
  background: var(--line);
  transform: translateY(-50%);
}

.scrubber-fill {
  display: block;
  width: var(--player-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--deep);
}

.scrubber-thumb {
  position: absolute;
  top: 50%;
  left: var(--player-progress);
  width: 16px;
  height: 16px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--deep);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.scrubber-wrap:focus-within .scrubber-thumb {
  outline: 2px solid rgba(17, 17, 19, 0.18);
  outline-offset: 3px;
}

.player-actions {
  grid-area: actions;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.player-panel-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-generation-progress {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #e7e7ea;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: opacity 160ms ease, max-height 160ms ease, margin-top 160ms ease;
}

.voice-generation-progress.active {
  opacity: 1;
  max-height: 5px;
  margin-top: 2px;
}

.voice-generation-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.player-voice-control,
.player-autoplay-voice-control,
.player-speed-control {
  min-width: 0;
  width: auto;
}

.player-voice-control,
.player-speed-control {
  display: grid;
  gap: 3px;
}

.player-speed-control {
  width: 100px;
}

.favorite-voice-button,
.player-speed-control {
  width: 100%;
}

.player-read-button,
.favorite-voice-button {
  min-width: max-content;
  white-space: nowrap;
}

.player-panel-actions .player-read-button {
  width: auto;
  flex: 0 0 auto;
}

.player-voice-control {
  grid-column: 1 / -1;
}

.player-autoplay-voice-control {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}

.player-autoplay-voice-control input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--deep);
}

.player-autoplay-voice-control span {
  white-space: nowrap;
}

.player-voice-control span,
.player-speed-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.player-voice-control select,
.player-speed-control select {
  max-width: 100%;
  min-height: 40px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.app-shell.share-mode {
  display: block;
  min-height: 100vh;
  background: var(--bg);
}

.app-shell.share-mode .sidebar,
.app-shell.share-mode .top-bar,
.app-shell.share-mode .content-grid,
.app-shell.share-mode .bottom-nav {
  display: none;
}

.app-shell.share-mode .workspace {
  display: block;
  min-height: 100vh;
}

.app-shell.share-mode .player-bar {
  position: fixed;
  left: 50%;
  right: auto;
  top: auto;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.app-shell.share-mode .reader-panel,
.app-shell.share-mode .timeline-panel {
  position: fixed;
  left: 50%;
  right: auto;
  top: max(24px, env(safe-area-inset-top));
  bottom: calc(250px + env(safe-area-inset-bottom));
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.player-bar #stopButton {
  grid-area: close;
  align-self: center;
  width: 40px;
  height: 40px;
  background: var(--bg);
}

.round-button {
  width: 58px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
  font-size: 12px;
  font-weight: 680;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 16px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.12;
  text-align: center;
  font-weight: 680;
}

.primary-button {
  border-color: var(--deep);
  color: #fff;
  background: var(--deep);
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
}

.bottom-nav {
  display: none;
}

.nav-item {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.nav-item.active {
  color: var(--ink);
  background: var(--soft);
}

.nav-item:hover {
  color: var(--ink);
  background: var(--hover);
}

.nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.85;
}

.sheet {
  width: min(calc(100% - 28px), 544px);
  max-height: min(88vh, 760px);
  border: 1px solid rgba(24, 24, 27, 0.06);
  border-radius: var(--radius-modal);
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow-modal);
  overflow: clip;
  z-index: var(--z-modal);
  /* Entry + exit motion driven natively by the [open] attribute. */
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 240ms var(--ease-out), transform 260ms var(--ease-out),
    overlay 260ms allow-discrete, display 260ms allow-discrete;
}

.sheet[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .sheet[open] {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.small-sheet {
  width: min(calc(100% - 28px), 428px);
}

/* The import form is the one sheet that commonly holds a long text field.
   Let it use the available desktop viewport and keep its primary action reachable. */
#importSheet {
  max-height: calc(100dvh - 24px);
}

#importSheet .sheet-body {
  box-sizing: border-box;
}

#importSheet #createItemButton {
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.sheet::backdrop {
  background: rgba(24, 24, 27, 0.32);
  backdrop-filter: blur(3px) saturate(1.05);
  opacity: 0;
  transition: opacity 240ms var(--ease-out), overlay 240ms allow-discrete,
    display 240ms allow-discrete;
}

.sheet[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .sheet[open]::backdrop {
    opacity: 0;
  }
}

.sheet-body {
  display: grid;
  gap: 14px;
  padding: 12px 22px 22px;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  margin: 2px auto 6px;
  background: #e0e0e4;
}

.sheet-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 15px;
  margin-bottom: 1px;
  border-bottom: 1px solid var(--line);
}

/* Leading icon medallion that gives every dialog a titled, contextual header. */
.sheet-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface-warm);
  box-shadow: inset 0 0 0 1px var(--line);
}

.sheet-icon .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.sheet-heading > div {
  min-width: 0;
}

.sheet-heading h2 {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Group the folder + voice + submit region as a settled footer. */
.sheet-body > .import-folder-grid {
  margin-top: 3px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

/* Sheet form controls: hover, chevron, hint + error states */
.sheet-body label {
  margin-bottom: -5px;
}

.sheet-body input:hover:not(:focus),
.sheet-body select:hover:not(:focus),
.sheet-body textarea:hover:not(:focus) {
  border-color: #d3d3d8;
}

.sheet-body select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357575e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.sheet-body .import-status {
  color: var(--hint);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
}

.sheet-body .import-status.is-error {
  color: var(--danger);
  font-weight: 560;
}

.sheet-body input.is-error,
.sheet-body textarea.is-error,
.sheet-body select.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

/* Primary/secondary button hover + async loading state */
.primary-button:hover:not(:disabled) {
  background: #000;
  border-color: #000;
}

.secondary-button:hover:not(:disabled) {
  border-color: #d3d3d8;
  background: var(--surface-subtle);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.primary-button.is-loading {
  position: relative;
  color: transparent;
  cursor: progress;
}

.primary-button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: sheet-spin 640ms linear infinite;
}

@keyframes sheet-spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-button.compact:hover {
  background: var(--hover);
  border-color: #d3d3d8;
}

/* ============================================================
   Landing refinements — refined monochrome craft
   ============================================================ */

.landing-page :is(h1, h2, h3) {
  text-wrap: balance;
}

.landing-page p {
  text-wrap: pretty;
}

/* Generous, varied vertical rhythm between the major folds */
.landing-page > section {
  margin-top: clamp(60px, 8vw, 112px);
  margin-bottom: 0;
}

.landing-page > section:first-of-type {
  margin-top: clamp(26px, 4vw, 44px);
}

/* Floating, translucent header that stays within reach on scroll */
.landing-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 247, 248, 0.72);
  backdrop-filter: saturate(1.05) blur(14px);
  box-shadow: var(--shadow-soft);
}

/* Hero: stronger headline, supporting sub, focal visual */
.landing-hero {
  gap: clamp(30px, 5vw, 52px);
}

.landing-copy h1 {
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 590px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
}

.hero-microcopy {
  margin: 16px 0 0;
  color: var(--hint);
  font-size: 13.5px;
  font-weight: 560;
}

.hero-visual {
  width: min(100%, 560px);
}

.hero-visual-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 26px);
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.97)),
    repeating-linear-gradient(180deg, #f1f1f4 0 1px, transparent 1px 30px);
  box-shadow: var(--shadow);
}

.hero-visual-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--deep);
}

.hero-visual-lines {
  display: grid;
  gap: 10px;
}

.hero-visual-lines span {
  height: 9px;
  border-radius: 999px;
  background: #e0e0e4;
}

.hero-visual-lines span:nth-child(1) { width: 94%; }
.hero-visual-lines span:nth-child(2) { width: 80%; background: var(--deep); }
.hero-visual-lines span:nth-child(3) { width: 66%; }

.hero-wave {
  height: 62px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.hero-wave span {
  flex: 1 1 0;
  min-width: 2px;
  height: var(--h, 40%);
  border-radius: 999px;
  background: linear-gradient(180deg, #3a3a3d, #18181b);
  transform-origin: bottom;
  animation: hero-eq 1.5s var(--d, 0ms) ease-in-out infinite alternate;
}

@keyframes hero-eq {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

.hero-visual-player {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-visual-player-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hero-visual-player-copy strong {
  font-size: 15px;
  font-weight: 660;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-visual-player-copy span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 540;
}

.hero-visual-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.hero-visual-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-visual-btn .ui-icon { width: 17px; height: 17px; }
.hero-visual-btn.primary { color: #fff; background: var(--deep); box-shadow: none; }

/* Card craft: hover-lift + image zoom for card-like sections */
.landing-review-card,
.pricing-plan-card,
.sample-read-card,
.kiriru-art-card {
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
}

.landing-review-card:hover,
.pricing-plan-card:hover,
.sample-read-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #dcdce0;
}

.kiriru-art-card { will-change: transform; }
.kiriru-art-card:hover { transform: translateY(-2px); }
.kiriru-art-card img { transition: transform 520ms var(--ease-out); }
.kiriru-art-card:hover img { transform: scale(1.05); }

.landing-demo-item,
.input-feature-item,
.platform-route {
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.platform-route:hover { background: rgba(255, 255, 255, 0.9); }
.platform-route:hover .platform-route-mark {
  color: var(--ink);
  border-color: #d3d3d8;
}

/* Featured pricing card: clear monochrome emphasis */
.pricing-plan-card.featured {
  border-width: 1.5px;
  border-color: var(--deep);
  box-shadow: 0 18px 50px rgba(24, 24, 27, 0.12);
}

.pricing-plan-card.featured:hover {
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.16);
}

.landing-pitch-line p { text-wrap: balance; }

.landing-page a:focus-visible,
.landing-page button:focus-visible {
  outline: 2px solid rgba(24, 24, 27, 0.55);
  outline-offset: 3px;
}

/* ---- Width discipline: narrow content to the review column;
        let the big sales headlines run a little wider ---- */
.landing-hero,
.landing-copy,
.mobile-experience-section,
.input-showcase-section,
.pricing-plans-section,
.price-comparison-section,
.sample-reads-section,
.landing-section-heading,
.landing-pitch-line {
  max-width: var(--landing-wide);
}

.landing-demo-workspace,
.input-feature-workspace,
.pricing-plans-grid,
.price-bars,
.platform-hub,
.kiriru-montage,
.sample-read-grid {
  max-width: var(--landing-frame);
  margin-inline: auto;
  width: 100%;
}

.platform-section,
.personal-story-section {
  max-width: var(--landing-frame);
}

/* Slightly calmer rhythm now that the column is tighter */
.landing-page > section {
  margin-top: clamp(52px, 7vw, 92px);
}

/* ---- Type refinement: lighter weights, calmer scale, better rhythm ---- */
.landing-page :is(h2, h3) {
  letter-spacing: -0.02em;
}

/* Hero headline gets its own wide column so it lands on two rows */
.landing-hero,
.landing-copy {
  max-width: min(100%, 1140px);
}

.landing-copy h1 {
  margin-inline: auto;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.06;
  font-weight: 680;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Controlled two-row break on wider screens; wraps naturally below */
.landing-copy h1 br { display: none; }

@media (min-width: 760px) {
  .landing-copy h1 { text-wrap: wrap; }
  .landing-copy h1 br { display: inline; }
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.55;
  color: #55555d;
}

.landing-review-card {
  padding: clamp(22px, 3vw, 30px);
}

.landing-review-card p {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  font-weight: 460;
  letter-spacing: -0.005em;
}

.mobile-experience-copy h2,
.input-showcase-heading h2,
.pricing-plans-heading h2,
.landing-section-heading h2 {
  font-size: clamp(26px, 3.3vw, 37px);
  line-height: 1.14;
  font-weight: 630;
}

.mobile-experience-copy p:not(.eyebrow) {
  font-size: 16.5px;
  line-height: 1.55;
  color: #55555d;
}

.platform-hub-copy h2 {
  font-size: clamp(27px, 3.4vw, 39px);
  line-height: 1.1;
  font-weight: 640;
}

.platform-hub-copy p {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.5;
  font-weight: 450;
  color: #55555d;
}

.platform-route strong {
  font-size: 16.5px;
  font-weight: 620;
}

.platform-route p {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 450;
}

.platform-route-mark {
  font-size: 11px;
}

.input-feature-item span {
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.16;
  font-weight: 630;
  letter-spacing: -0.015em;
}

.input-feature-item small {
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 460;
  color: #55555d;
}

.landing-demo-item strong {
  font-size: 17.5px;
  font-weight: 640;
}

.landing-demo-item p {
  font-size: 14px;
  line-height: 1.5;
  color: #55555d;
}

.pricing-plan-price strong {
  letter-spacing: -0.03em;
}

.pricing-plan-card li {
  font-size: 14.5px;
  line-height: 1.5;
}

.kiriru-letter p {
  font-size: 16px;
  line-height: 1.62;
  color: #3c3c39;
}

.landing-pitch-line p {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.22;
  font-weight: 560;
  letter-spacing: -0.015em;
}

/* Softer, less rugged container corners on the big blocks */
.platform-hub,
.input-feature-workspace,
.input-feature-list,
.input-feature-preview,
.kiriru-montage,
.landing-demo-list,
.landing-demo-side,
.landing-demo-timeline,
.landing-demo-player,
.landing-review-card,
.pricing-plan-card,
.sample-read-card,
.hero-visual-card {
  border-radius: 14px;
}

/* Reveal-on-scroll — visible by default; active only once JS marks ready */
.landing-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  will-change: opacity, transform;
}

.landing-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave span { animation: none; transform: scaleY(0.78); }
  .landing-reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet,
  .sheet::backdrop {
    transition: opacity 120ms linear, overlay 120ms allow-discrete,
      display 120ms allow-discrete;
    transform: none;
  }

  .sheet[open] {
    transform: none;
  }

  @starting-style {
    .sheet[open] {
      transform: none;
    }
  }

  .primary-button.is-loading::after {
    animation-duration: 1200ms;
  }
}

.empty-state {
  margin: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 560;
  background: var(--surface-subtle);
}

@media (max-width: 1280px) {
  .player-bar {
    left: 50%;
    right: auto;
    width: min(calc(100% - 28px), 520px);
    transform: translateX(-50%);
  }

  .timeline-panel {
    left: 50%;
    top: max(18px, env(safe-area-inset-top));
    bottom: calc(100px + env(safe-area-inset-bottom));
    width: min(calc(100% - 44px), var(--center-column));
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .landing-demo-workspace {
    grid-template-columns: 1fr;
  }

  .landing-review-strip,
  .pricing-plans-grid {
    grid-template-columns: 1fr;
  }

  .platform-hub {
    grid-template-columns: 1fr;
  }

  .sample-read-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace,
  .top-bar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .header-actions {
    grid-column: 1;
    justify-content: flex-end;
    padding: 0 18px;
  }

  .content-grid {
    grid-column: 1;
    width: min(100%, 760px);
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .voice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 7;
    width: min(100%, 520px);
    transform: translateX(-50%);
    padding: 8px 16px max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    background: rgba(249, 249, 246, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(20px);
  }

  .bottom-nav .nav-item {
    min-height: 56px;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    font-size: 12px;
  }

  .player-bar {
    left: 50%;
    right: auto;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: min(calc(100% - 28px), 520px);
    transform: translateX(-50%);
  }

  .reader-panel {
    left: 50%;
    top: var(--reader-overlay-top, max(14px, env(safe-area-inset-top)));
    bottom: var(--reader-overlay-bottom, calc(204px + env(safe-area-inset-bottom)));
    width: min(calc(100% - 28px), 520px);
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .player-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy close"
      "transport transport"
      "actions actions";
    row-gap: 10px;
  }

  .transport-controls {
    width: 100%;
    justify-content: space-between;
  }

  .player-actions {
    grid-template-columns: 1fr 1fr;
  }

  .player-panel-actions {
    grid-column: 1 / -1;
  }

  .favorite-voice-button,
  .player-speed-control {
    width: 100%;
  }

  .player-voice-control {
    grid-column: 1 / -1;
  }

  .reader-panel-text {
    font-size: 17px;
    line-height: 1.65;
    padding: 16px;
  }
}

@media (max-width: 720px) {
  body {
    background: var(--bg);
  }

  .landing-page {
    padding: 16px;
  }

  .landing-header {
    min-height: 48px;
  }

  .landing-auth-actions {
    gap: 7px;
  }

  .landing-auth-actions .secondary-button,
  .landing-auth-actions .primary-button {
    min-height: 38px;
    padding-inline: 12px;
  }

  .landing-copy h1 {
    font-size: 38px;
  }

  .landing-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .landing-preview {
    min-height: 260px;
    padding: 16px;
  }

  .landing-review-card {
    min-height: auto;
  }

  .pricing-billing-toggle {
    width: 100%;
  }

  .pricing-billing-toggle button {
    flex: 1;
    justify-content: center;
    padding: 0 12px;
  }

  .pricing-plan-card {
    min-height: auto;
  }

  .pricing-plan-topline {
    flex-direction: column;
  }

  .sample-read-grid {
    grid-template-columns: 1fr;
  }

  .landing-demo-item {
    min-height: 128px;
  }

  .input-showcase-section {
    gap: 20px;
  }

  .input-feature-workspace {
    grid-template-columns: 1fr;
  }

  .input-feature-item {
    min-height: 112px;
    padding: 18px;
  }

  .input-feature-item span {
    font-size: 24px;
  }

  .input-feature-preview {
    min-height: 380px;
  }

  .sample-read-card,
  .sample-read-card.reverse {
    grid-template-columns: 1fr;
  }

  .sample-read-card.reverse .sample-read-cover {
    order: 0;
  }

  .sample-read-cover {
    min-height: 180px;
  }

  .sample-read-card h3 {
    font-size: 23px;
  }

  .price-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .landing-pitch-line p,
  .personal-story-section h2 {
    font-size: 34px;
  }

  .kiriru-montage {
    aspect-ratio: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kiriru-art-card {
    min-height: 190px;
  }

  .kiriru-portfolio-link {
    grid-column: 1 / -1;
  }

  .kiriru-letter p {
    font-size: 18px;
  }

  .top-bar {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  }

  .header-actions {
    padding: 0;
  }

  .desktop-search {
    display: none;
  }

  .library-search {
    display: flex;
    width: 100%;
    flex: 1 1 100%;
  }

  .mobile-search-button {
    display: inline-flex;
  }

  .content-grid {
    padding: 16px 16px 116px;
  }

  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .source-card {
    min-height: 102px;
    padding: 12px;
  }

  .source-card span:last-child {
    font-size: 15px;
  }

  .segmented-tabs {
    margin-top: 22px;
  }

  .library-section {
    border-color: transparent;
    border-radius: var(--radius);
    background: #fff;
    overflow: visible;
  }

  .section-heading {
    display: grid;
    align-items: start;
    padding: 0 0 4px;
  }

  .reader-row {
    padding: 15px 14px;
  }

  .voice-hero,
  .account-card,
  .profile-card,
  .settings-panel {
    padding: 16px;
  }

  .profile-card-heading {
    display: grid;
  }

  .profile-actions {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet {
    width: min(calc(100% - 20px), 440px);
    margin: auto auto 0;
    border-radius: 8px 8px 0 0;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 26px;
  }

  .source-card {
    min-height: 98px;
  }
}

/* Private-beta email gate */
html.gate-locked,
html.gate-locked body {
  overflow: hidden;
}

.readside-gate {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #ffffff;
}

.readside-gate[hidden] {
  display: none;
}

.readside-gate-card {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.readside-gate-card h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.readside-gate-card > p {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.5;
}

.readside-gate form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.readside-gate input {
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: #0a0a0a;
  background: #fff;
}

.readside-gate input:focus {
  outline: none;
  border-color: #0a0a0a;
}

.readside-gate button {
  height: 46px;
  border: none;
  border-radius: 12px;
  background: #0a0a0a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.readside-gate button:disabled {
  opacity: 0.6;
  cursor: default;
}

.readside-gate-status {
  min-height: 18px;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.4;
}

/* Forgot-password link in the auth sheet */
.auth-forgot-link {
  align-self: flex-start;
  margin-top: 6px;
  padding: 2px 0;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.auth-forgot-link:hover {
  color: #0a0a0a;
}
