@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f5f2eb;
  --paper: #fffefa;
  --paper-2: #f8f6f0;
  --ink: #26312d;
  --ink-soft: #53605a;
  --muted: #858b82;
  --line: #e6e1d6;
  --line-strong: #d7d0c2;
  --accent: #a45e42;
  --accent-dark: #83472f;
  --accent-pale: #f2e6dc;
  --sage: #687969;
  --sage-pale: #e6ece3;
  --shadow: 0 18px 48px rgb(52 45 34 / 7%), 0 2px 8px rgb(52 45 34 / 3%);
  --shadow-small: 0 3px 12px rgb(52 45 34 / 5%);
  --sidebar-width: 246px;
  --radius: 18px;
  --radius-small: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #1e2522;
  --paper: #282f2b;
  --paper-2: #303833;
  --ink: #e9e9df;
  --ink-soft: #c1c9be;
  --muted: #9ca69a;
  --line: #414a43;
  --line-strong: #596259;
  --accent: #d28a67;
  --accent-dark: #e2a17d;
  --accent-pale: #49372f;
  --sage: #a0b09c;
  --sage-pale: #344238;
  --shadow: 0 18px 48px rgb(0 0 0 / 18%), 0 2px 8px rgb(0 0 0 / 10%);
  --shadow-small: 0 3px 12px rgb(0 0 0 / 15%);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --canvas: #1e2522;
    --paper: #282f2b;
    --paper-2: #303833;
    --ink: #e9e9df;
    --ink-soft: #c1c9be;
    --muted: #9ca69a;
    --line: #414a43;
    --line-strong: #596259;
    --accent: #d28a67;
    --accent-dark: #e2a17d;
    --accent-pale: #49372f;
    --sage: #a0b09c;
    --sage-pale: #344238;
    --shadow: 0 18px 48px rgb(0 0 0 / 18%), 0 2px 8px rgb(0 0 0 / 10%);
    --shadow-small: 0 3px 12px rgb(0 0 0 / 15%);
  }
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 68%, white);
  outline-offset: 3px;
}
a {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}
.skip-link:focus {
  transform: translateY(0);
}

.app-frame {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 30px 19px 23px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}
.brand-mark img {
  display: block;
  width: 32px;
  height: 32px;
}
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 600;
}
.brand-period {
  color: var(--accent);
}
.nav-label {
  margin: 55px 0 12px 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.primary-nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition:
    color 0.16s ease,
    background 0.16s ease;
}
.nav-item:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.nav-item.is-active {
  color: var(--accent-dark);
  background: var(--accent-pale);
  font-weight: 650;
}
.nav-icon {
  display: inline-grid;
  width: 18px;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}
.sidebar-bottom {
  margin-top: auto;
}
.quiet-card {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 18px 17px 15px;
  background: var(--paper-2);
  border-radius: 13px;
}
.quiet-spark {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--accent);
  font-size: 20px;
  opacity: 0.8;
}
.quiet-card p {
  margin: 0 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.15;
  color: var(--ink);
}
.quiet-caption,
.sidebar-version {
  color: var(--muted);
  font-size: 11px;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 11px;
  font-size: 11px;
  color: var(--ink-soft);
}
.status-dot,
.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #6d9372;
  box-shadow: 0 0 0 3px color-mix(in srgb, #6d9372 14%, transparent);
}
.status-dot.is-offline {
  background: #b9775b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #b9775b 15%, transparent);
}
.sidebar-version {
  margin-left: 8px;
}
.mobile-topbar,
.mobile-nav {
  display: none;
}

.main-area {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 43px clamp(30px, 5vw, 78px) 72px;
}
.view-root {
  width: min(100%, 1280px);
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.lead {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.global-banner {
  max-width: 1280px;
  margin: 0 auto 17px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 13px;
}
.global-banner.success {
  border-color: color-mix(in srgb, var(--sage) 38%, var(--line));
  background: var(--sage-pale);
  color: var(--ink);
}
.global-banner.error {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-pale);
  color: var(--ink);
}
.global-banner.pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: var(--paper-2);
  color: var(--ink-soft);
}
.banner-retry {
  flex: 0 0 auto;
}
.demo-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto 22px;
  padding: 10px 14px;
  background: #efe7d8;
  color: #534738;
  border-radius: 10px;
  font-size: 11px;
}
:root[data-theme="dark"] .demo-notice {
  background: #3f3a31;
  color: #e9dfcd;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .demo-notice {
    background: #3f3a31;
    color: #e9dfcd;
  }
}
.demo-badge {
  padding: 4px 7px;
  border-radius: 5px;
  background: #e1d1b4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.demo-notice a {
  font-weight: 650;
  text-decoration-color: #b89872;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.demo-explainer {
  flex-basis: 100%;
  margin: 7px 0 0;
  line-height: 1.55;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(245px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}
.welcome-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: clamp(30px, 5vw, 62px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}
.welcome-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 32px;
  right: 38px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 19px;
  opacity: 0.62;
}
.welcome-ornament span:nth-child(2) {
  font-size: 12px;
}
.welcome-panel h2,
.completion-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4.4vw, 53px);
  line-height: 1.09;
  letter-spacing: -0.045em;
  font-weight: 400;
}
.welcome-panel h2 em,
.completion-panel h2 em {
  color: var(--accent);
  font-weight: 400;
}
.welcome-copy {
  max-width: 430px;
  margin: 17px 0 27px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 13px;
}
.mode-picker {
  margin-top: auto;
  width: min(100%, 390px);
}
.mode-picker label,
.source-picker-wrap label,
.source-controls > label:first-child {
  display: block;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}
select,
.search-field input,
.note-form textarea,
.auth-form input {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}
select {
  min-height: 43px;
  padding: 0 34px 0 12px;
}
.mode-picker select,
.source-picker-wrap select {
  width: 100%;
  margin-bottom: 12px;
}
.source-picker-wrap[hidden] {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}
.button:not(:disabled):hover {
  transform: translateY(-1px);
}
.button:disabled,
.icon-button:disabled,
.control-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.button-primary {
  background: var(--accent);
  color: #fffaf4;
}
.button-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}
.button-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.button-secondary:hover:not(:disabled) {
  background: var(--paper-2);
}
.button-wide {
  width: 100%;
}
.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}
.welcome-aside {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 5px 0;
}
.aside-note {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 252px;
  padding: 37px 31px 28px;
  background: #e9e9dc;
  border-radius: var(--radius);
  color: #39423b;
}
:root[data-theme="dark"] .aside-note {
  background: #343d35;
  color: #e5e6da;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .aside-note {
    background: #343d35;
    color: #e5e6da;
  }
}
.aside-note-mark {
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 0.65;
  color: #81907b;
}
.aside-note p {
  max-width: 235px;
  margin: 14px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.35;
}
.aside-note-caption {
  color: color-mix(in srgb, currentColor 66%, transparent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 4px 13px;
  border-top: 1px solid var(--line);
}
.mini-stats > div {
  display: grid;
  gap: 4px;
}
.stat-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
}
.stat-caption {
  color: var(--muted);
  font-size: 10px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  color: var(--accent-dark);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.review-layout {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
}
.review-column {
  min-width: 0;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.review-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.session-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 2px 14px;
  color: var(--muted);
  font-size: 11px;
}
.session-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  box-shadow: none;
}
.session-count {
  margin-left: auto;
  white-space: nowrap;
}
.session-count strong {
  color: var(--ink);
  font-size: 13px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 17px;
  cursor: pointer;
}
.icon-button:hover:not(:disabled) {
  background: var(--paper-2);
  color: var(--ink);
}
.highlight-card {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: clamp(24px, 3.4vw, 43px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-highlight {
  min-height: 285px;
}
.highlight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}
.category-pill {
  padding: 5px 8px;
  color: var(--sage);
  background: var(--sage-pale);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.meta-separator {
  color: var(--line-strong);
}
.source-title {
  color: var(--ink-soft);
  font-weight: 650;
}
.source-location {
  flex-basis: 100%;
  margin: 1px 0 0 1px;
  color: var(--muted);
  font-size: 10px;
}
.highlight-card blockquote {
  margin: 27px 0 20px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.5;
  letter-spacing: -0.023em;
  quotes: none;
}
.highlight-card blockquote.long-quote {
  max-width: 72ch;
  margin-top: 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.78;
  letter-spacing: 0;
  text-wrap: pretty;
}
.highlight-card blockquote.long-quote::before {
  margin-bottom: 9px;
  font-size: 32px;
}
.highlight-card blockquote::before {
  content: "“";
  display: block;
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 44px;
  line-height: 0.55;
  opacity: 0.65;
}
.why-details {
  position: relative;
  width: fit-content;
  margin: 0 0 15px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 11px;
}
.why-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 650;
  list-style: none;
}
.why-details summary::-webkit-details-marker {
  display: none;
}
.why-mark {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: 50%;
  font-size: 10px;
}
.why-details p {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, 80vw);
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  line-height: 1.65;
}
.original-note {
  margin: 16px 0;
  padding: 12px 15px;
  border-left: 2px solid var(--sage);
  background: var(--paper-2);
}
.note-label {
  color: var(--sage);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.original-note p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}
.source-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 650;
}
.source-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.review-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 17px 0 0;
}
.review-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}
.review-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.review-navigation > span {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.browse-position {
  display: grid;
  gap: 3px;
}
.browse-position strong {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}
.browse-position strong span,
.browse-position small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.control-button:disabled {
  opacity: 0.45;
  cursor: default;
}
.saved-notes {
  margin: 20px 0 0;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.saved-notes summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}
.saved-note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.65;
  margin: 12px 0 3px;
}
.saved-note time {
  font-size: 10px;
  color: var(--muted);
}
.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.control-button:hover {
  background: var(--paper-2);
  border-color: var(--line-strong);
}
.control-button > span:first-child {
  color: var(--muted);
  font-size: 19px;
}
.control-button.is-favorite,
.control-button.is-favorite > span:first-child {
  color: var(--accent);
}
.control-spacer {
  flex: 1;
}
.next-button {
  width: min(100%, 340px);
  min-height: 44px;
  padding: 0 15px;
}
.review-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 4px 3px;
  color: var(--muted);
  font-size: 10px;
}
.privacy-caption {
  margin-left: auto;
}
.review-rail {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}
.progress-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.rail-heading {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
}
.rail-heading span:last-child {
  color: var(--muted);
}
.progress-track {
  display: block;
  width: 100%;
  height: 4px;
  margin: 14px 0 11px;
  appearance: none;
  border: 0;
  border-radius: 99px;
  background: var(--paper-2);
  overflow: hidden;
}
.progress-track::-webkit-progress-bar {
  background: var(--paper-2);
  border-radius: 99px;
}
.progress-track::-webkit-progress-value {
  background: var(--sage);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.progress-track::-moz-progress-bar {
  background: var(--sage);
  border-radius: 99px;
}
.progress-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.review-progress.progress-card {
  width: min(100%, 580px);
  margin: 20px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.progress-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.progress-summary strong {
  color: var(--ink-soft);
  font-weight: 650;
}
.review-progress .progress-track {
  margin: 9px 0 0;
}
.rail-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
}
.rail-stat .stat-number {
  font-size: 23px;
}
.rail-stat .stat-caption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.note-composer {
  margin: 13px 0 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.note-composer summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 650;
}
.note-composer summary::-webkit-details-marker {
  display: none;
}
.note-composer-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-pale);
  font-size: 16px;
}
.summary-chevron {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.note-composer[open] .summary-chevron {
  transform: rotate(180deg);
}
.note-form {
  padding: 0 14px 14px;
}
.note-form textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 11px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.55;
}
.note-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.muted {
  color: var(--muted);
}

.completion-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 700px);
  margin: 48px auto;
  padding: 62px 30px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}
.completion-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 0 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-pale);
  font-size: 25px;
}
.completion-panel h2 {
  font-size: clamp(34px, 5vw, 49px);
}
.completion-rule {
  width: 44px;
  height: 1px;
  margin: 24px 0 12px;
  background: var(--line-strong);
}
.completion-panel .button {
  margin-top: 24px;
}
.completion-panel .text-link {
  margin-top: 14px;
}
.empty-panel {
  padding: 34px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty-panel h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
}
.empty-panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(370px, 1.05fr);
  gap: 24px;
  align-items: start;
}
.library-main {
  min-width: 0;
}
.library-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}
.search-field > span:first-child {
  font-size: 20px;
  line-height: 1;
}
.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 11px;
}
.search-field input:focus-visible {
  outline: none;
}
.search-field:focus-within {
  outline: 3px solid color-mix(in srgb, var(--accent) 68%, white);
  outline-offset: 2px;
}
.favorite-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 10px;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 10px;
  cursor: pointer;
}
.favorite-filter input,
.exclude-source input {
  accent-color: var(--accent);
}
.filter-row {
  display: flex;
  gap: 7px;
  margin: 14px 0 19px;
}
.filter-chip {
  min-height: 30px;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 99px;
  font-size: 10px;
  cursor: pointer;
}
.filter-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.filter-chip.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.library-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 9px;
  color: var(--muted);
  font-size: 10px;
}
.summary-spacer {
  flex: 1;
}
.source-list {
  display: grid;
  gap: 7px;
}
.source-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 93px 17px;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: var(--paper);
  border-radius: 11px;
  text-align: left;
  cursor: pointer;
  transition:
    border 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.source-row:hover {
  transform: translateY(-1px);
  border-color: var(--line);
  box-shadow: var(--shadow-small);
}
.source-row.is-selected {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: inset 3px 0 var(--accent);
}
.source-row.is-excluded {
  opacity: 0.65;
}
.source-cover {
  display: grid;
  width: 42px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  color: #596553;
  background: #dfe5d7;
  border-radius: 5px 8px 8px 5px;
  box-shadow: inset 4px 0 rgb(34 53 36 / 10%);
}
.source-cover.article {
  color: #9a654c;
  background: #eee0d4;
}
.source-cover span {
  font-family: Georgia, serif;
  font-size: 20px;
}
.source-row-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.source-row-title {
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-row-author {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-row-count {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--ink-soft);
}
.source-row-count strong {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}
.source-row-count small {
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}
.source-row-arrow {
  color: var(--muted);
  font-size: 13px;
}
.library-detail {
  position: sticky;
  top: 24px;
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-detail-back {
  display: none;
}
.detail-heading .eyebrow {
  margin-bottom: 8px;
}
.detail-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.detail-heading p:last-child {
  margin: 7px 0 0;
  font-size: 11px;
}
.source-controls {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.source-controls select {
  width: 100%;
  min-height: 36px;
  background: var(--paper);
  font-size: 10px;
}
.exclude-source {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
}
.source-facts {
  display: flex;
  gap: 12px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.detail-highlights {
  display: grid;
  gap: 10px;
  max-height: 63vh;
  margin-top: 14px;
  overflow: auto;
  padding: 1px 2px 2px 0;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}
.detail-highlights .highlight-card {
  padding: 17px;
  border-radius: 11px;
  box-shadow: none;
}
.detail-highlights .highlight-card blockquote {
  margin: 17px 0;
  font-size: 17px;
  line-height: 1.5;
}
.detail-highlights .highlight-card blockquote::before {
  font-size: 30px;
}
.detail-highlights .highlight-meta {
  gap: 6px;
  font-size: 9px;
}
.detail-highlights .source-location {
  font-size: 9px;
}
.detail-highlights .source-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.library-card-actions .control-button {
  min-height: 42px;
  padding: 0 10px;
}
.library-card-actions .control-button > span:first-child {
  font-size: 14px;
}
.detail-empty {
  margin: 20px 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}
.compact-empty {
  padding: 31px 22px;
  text-align: center;
}
.compact-empty h2 {
  font-size: 20px;
}
.empty-mark {
  margin: 0 auto 12px;
  color: var(--accent);
  font-size: 25px;
}

.notes-page {
  width: min(100%, 810px);
  margin: 0 auto;
}
.notes-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 23px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.notes-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--sage);
  background: var(--sage-pale);
  border-radius: 50%;
  font-size: 17px;
}
.notes-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}
.notes-list {
  display: grid;
  gap: 13px;
}
.note-card {
  padding: 23px 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-small);
}
.note-card-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
}
.note-source {
  overflow: hidden;
  max-width: 65%;
  color: var(--accent-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-card-text {
  margin: 17px 0;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
}
.note-highlight-quote {
  margin: 0 0 14px;
  padding: 0 0 0 15px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.55;
}
.notes-empty {
  margin-top: 38px;
  padding: 44px 25px;
  text-align: center;
}
.notes-empty h2 {
  font-size: 27px;
}
.notes-empty p {
  max-width: 440px;
  margin: 12px auto 20px;
}

.settings-page {
  width: min(100%, 880px);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}
.settings-group {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.2fr);
  gap: 38px;
  padding: 31px 36px;
  border-bottom: 1px solid var(--line);
}
.settings-copy .eyebrow {
  margin-bottom: 8px;
}
.settings-copy h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
}
.settings-copy p:last-child {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
}
.theme-options {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.theme-option {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 75px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.theme-option:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.theme-option.is-selected {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-pale);
}
.theme-preview {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 55px;
  height: 38px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #f7f4ec;
}
.theme-preview i {
  display: block;
  height: 21px;
  border-radius: 2px;
  background: #ded8cb;
}
.theme-preview i:first-child {
  width: 12px;
  background: #e5dfd2;
}
.theme-preview i:last-child {
  flex: 1;
  background: #fffefa;
}
.theme-preview.dark {
  background: #222a26;
  border-color: #566058;
}
.theme-preview.dark i {
  background: #424a44;
}
.theme-preview.dark i:last-child {
  background: #303833;
}
.theme-preview.system {
  background: linear-gradient(90deg, #f7f4ec 50%, #252d28 50%);
}
.theme-preview.system i:first-child {
  background: linear-gradient(90deg, #ded8cb 50%, #536057 50%);
}
.theme-preview.system i:last-child {
  background: linear-gradient(90deg, #fffefa 50%, #303833 50%);
}
.settings-fields {
  display: grid;
}
.setting-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 57px;
  border-bottom: 1px solid var(--line);
}
.setting-field:last-child {
  border-bottom: 0;
}
.setting-field > span {
  display: grid;
  gap: 4px;
}
.setting-field strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}
.setting-field small {
  color: var(--muted);
  font-size: 9px;
}
.setting-field select {
  min-height: 35px;
  font-size: 10px;
}
.setting-slider-field {
  align-items: flex-start;
  padding: 13px 0;
}
.setting-slider-field > label {
  display: grid;
  flex: 0 0 180px;
  gap: 4px;
}
.range-control {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px 14px;
}
.range-labels {
  display: flex;
  grid-column: 1;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}
.range-control input[type="range"] {
  grid-column: 1;
  width: 100%;
  accent-color: var(--accent);
}
.range-control output {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 72px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  text-align: right;
}
.settings-maintenance {
  align-items: center;
}
.settings-footnote {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 18px 36px 21px;
  color: var(--muted);
}
.settings-footnote p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}
.lock-mark {
  color: var(--sage);
  font-size: 15px;
}

.loading-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: min(23vh, 180px) 15px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 16px;
}
.loader-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  animation: breathe 1.5s ease-in-out infinite;
}
.loader-mark img {
  width: 36px;
  height: 36px;
}
@keyframes breathe {
  50% {
    transform: scale(0.91);
    opacity: 0.58;
  }
}
.narrow-shell {
  width: min(100%, 640px);
  margin: 60px auto;
}
.narrow-shell h1 {
  max-width: 560px;
}
.error-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 26px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.error-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.error-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 50%;
  font-size: 13px;
}
.inline-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 10px 13px;
  background: var(--accent-pale);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 10px;
}
.auth-dialog {
  position: fixed;
  width: min(92vw, 430px);
  padding: 34px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 25px 90px rgb(20 20 18 / 22%);
}
.auth-dialog::backdrop {
  background: rgb(29 34 30 / 56%);
  backdrop-filter: blur(4px);
}
.auth-close-form {
  position: absolute;
  top: 12px;
  right: 12px;
}
.auth-close-form .icon-button {
  border: 0;
  font-size: 22px;
}
.dialog-mark img {
  display: block;
  width: 35px;
  height: 35px;
  margin-bottom: 23px;
}
.auth-dialog h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}
.auth-dialog > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.7;
}
.auth-form {
  display: grid;
  gap: 9px;
  margin-top: 23px;
}
.auth-form label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}
.auth-form input {
  min-height: 42px;
  padding: 0 12px;
}
.auth-form .button {
  margin-top: 7px;
}
.form-error {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
}

@media (min-width: 1500px) {
  .main-area {
    padding-top: 57px;
  }
  .welcome-panel {
    min-height: 545px;
  }
}
@media (max-width: 1120px) {
  :root {
    --sidebar-width: 218px;
  }
  .main-area {
    padding-left: 31px;
    padding-right: 31px;
  }
  .library-layout {
    grid-template-columns: minmax(260px, 0.9fr) minmax(310px, 1.1fr);
    gap: 15px;
  }
  .library-detail {
    padding: 17px;
  }
}
@media (max-width: 860px) {
  .sidebar {
    width: 188px;
    padding-left: 13px;
    padding-right: 13px;
  }
  :root {
    --sidebar-width: 188px;
  }
  .main-area {
    padding: 31px 23px 58px;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .welcome-panel {
    min-height: 450px;
  }
  .welcome-aside {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
  .aside-note {
    min-height: 220px;
  }
  .mini-stats {
    align-content: center;
    border-top: 0;
  }
  .review-rail {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .library-layout {
    grid-template-columns: 1fr;
  }
  .library-detail {
    position: static;
  }
  .detail-highlights {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  html {
    scroll-behavior: auto;
  }
  .sidebar {
    display: none;
  }
  .mobile-topbar {
    position: sticky;
    z-index: 8;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: calc(59px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 18px 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(12px);
  }
  .brand-compact {
    gap: 7px;
  }
  .brand-compact .brand-mark {
    width: 27px;
    height: 27px;
  }
  .brand-compact .brand-mark img {
    width: 27px;
    height: 27px;
  }
  .brand-compact .brand-name {
    font-size: 21px;
  }
  .mobile-date {
    display: none;
  }
  .mobile-topbar .status-dot {
    margin-left: 3px;
  }
  .main-area {
    margin: 0;
    min-height: calc(100vh - 59px);
    padding: 23px 17px calc(87px + env(safe-area-inset-bottom));
  }
  .view-root {
    width: 100%;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .page-heading .lead {
    max-width: 88%;
    margin-top: 9px;
    font-size: 12px;
  }
  .demo-notice {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px 9px;
    margin-bottom: 14px;
    padding: 9px 10px;
    font-size: 9px;
    line-height: 1.45;
  }
  .demo-notice > span:nth-child(2) {
    flex: 1 1 200px;
  }
  .demo-notice a {
    margin-left: 31px;
  }
  .welcome-panel {
    min-height: 495px;
    padding: 30px 23px 25px;
  }
  .welcome-ornament {
    top: 23px;
    right: 23px;
  }
  .welcome-panel h2 {
    font-size: 39px;
  }
  .welcome-copy {
    margin: 14px 0 24px;
    font-size: 12px;
  }
  .welcome-aside {
    display: flex;
    gap: 10px;
  }
  .aside-note {
    min-height: 190px;
    padding: 25px;
  }
  .aside-note p {
    margin: 9px 0 14px;
    font-size: 20px;
  }
  .mini-stats {
    padding: 13px 3px 3px;
    border-top: 1px solid var(--line);
  }
  .stat-number {
    font-size: 24px;
  }
  .session-toolbar {
    margin-bottom: 10px;
  }
  .highlight-card {
    padding: 23px 20px;
    border-radius: 14px;
  }
  .review-highlight {
    min-height: 250px;
  }
  .highlight-card blockquote {
    margin: 26px 0 19px;
    font-size: 25px;
    line-height: 1.48;
  }
  .review-controls {
    gap: 11px;
    margin-top: 10px;
  }
  .review-secondary-actions {
    gap: 5px;
  }
  .control-button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 11px;
  }
  .next-button {
    width: 100%;
    margin-top: 0;
  }
  .control-spacer {
    display: none;
  }
  .review-footer {
    gap: 10px;
    font-size: 9px;
  }
  .privacy-caption {
    text-align: right;
  }
  .review-rail {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .progress-card {
    padding: 14px;
  }
  .library-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 100%;
  }
  .favorite-filter {
    min-height: 31px;
    padding-left: 2px;
  }
  .filter-row {
    margin: 7px 0 13px;
  }
  .library-summary {
    margin-bottom: 8px;
  }
  .source-row {
    grid-template-columns: 39px minmax(0, 1fr) 65px 12px;
    gap: 8px;
    padding: 9px;
  }
  .source-cover {
    width: 38px;
    height: 48px;
  }
  .source-row-title {
    font-size: 13px;
  }
  .source-row-count small {
    max-width: 65px;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
  }
  .library-detail {
    padding: 15px;
  }
  .library-layout.is-detail-open .library-main {
    display: none;
  }
  .library-layout.is-detail-open .library-detail {
    order: -1;
    min-width: 0;
  }
  .mobile-detail-back {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: -5px 0 14px;
    padding: 0 11px;
    color: var(--accent-dark);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
  }
  .library-layout.is-detail-open .detail-highlights {
    max-height: none;
    overflow: visible;
  }
  .detail-heading h2 {
    font-size: 21px;
  }
  .detail-highlights {
    grid-template-columns: 1fr;
  }
  .settings-group {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 22px 19px;
  }
  .setting-slider-field {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .setting-slider-field > label {
    flex-basis: auto;
  }
  .settings-copy h2 {
    font-size: 19px;
  }
  .settings-maintenance {
    align-items: flex-start;
  }
  .settings-footnote {
    padding: 16px 19px 19px;
  }
  .theme-options {
    justify-content: flex-start;
  }
  .theme-option {
    min-width: 69px;
  }
  .notes-intro {
    align-items: flex-start;
    padding: 13px;
  }
  .note-card {
    padding: 18px;
  }
  .note-card-text {
    font-size: 18px;
  }
  .mobile-nav {
    position: fixed;
    z-index: 10;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(12px);
  }
  .mobile-nav-item {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 47px;
    padding: 3px;
    color: var(--muted);
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
  }
  .mobile-nav-item > span {
    font-size: 18px;
    line-height: 1.1;
  }
  .mobile-nav-item small {
    font-size: 9px;
  }
  .mobile-nav-item.is-active {
    color: var(--accent-dark);
    background: var(--accent-pale);
  }
  .auth-dialog {
    padding: 28px 23px;
  }
  .narrow-shell {
    margin: 25px auto;
  }
  .completion-panel {
    margin: 15px auto;
    padding: 45px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
