@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;600&family=DM+Sans:wght@400;500;600&family=Literata:opsz,wght@7..72,400;7..72,600&family=Newsreader:opsz,wght@6..72,400;6..72,600&display=swap');

:root {
  --paper: #f2eee5;
  --paper-deep: #e7e0d3;
  --ink: #17211b;
  --muted: #6e736c;
  --accent: #c97839;
  --green: #3f7b58;
  --green-soft: #dce9dc;
  --line: rgba(23, 33, 27, .13);
  --card: rgba(255, 253, 248, .72);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --reader-size: 20px;
  --reader-leading: 1.68;
  --reader-font: "Newsreader", Georgia, serif;
}

html[data-theme="dark"] {
  --paper: #151815;
  --paper-deep: #20241f;
  --ink: #eee9de;
  --muted: #a8aa9f;
  --accent: #e4a15e;
  --green: #82c995;
  --green-soft: #243c2d;
  --line: rgba(238, 233, 222, .13);
  --card: rgba(35, 39, 34, .78);
}

html[data-theme="sepia"] {
  --paper: #e9deca;
  --paper-deep: #d8c9af;
  --ink: #352b20;
  --muted: #796b59;
  --accent: #9f5e2e;
  --line: rgba(53, 43, 32, .15);
  --card: rgba(249, 240, 220, .62);
}
html[data-reader-font="literata"] { --reader-font: "Literata", Georgia, serif; }
html[data-reader-font="sans"] { --reader-font: "Atkinson Hyperlegible Next", sans-serif; }

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(201, 120, 57, .12), transparent 26rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: calc(60px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 18px 0;
  display: grid;
  grid-template-columns: 72px 1fr 86px;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) var(--reading-progress, 0%), transparent 0);
  opacity: 0;
  transition: opacity .2s ease;
}
body.reader-active .topbar::after, body.shared-page .topbar::after { opacity: 1; }
.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
}
.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font: 600 16px/1 "Newsreader", serif;
  letter-spacing: 0;
}
.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 23px;
}
#back-button { grid-column: 1; grid-row: 1; }
.topbar-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.text-button {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: 600 16px/1 "Newsreader", serif;
}
.brand-static { cursor: default; }

main { padding-bottom: calc(92px + var(--safe-bottom)); }
.view { animation: rise .42s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.hero { padding: 42px 22px 22px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1, .reader h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.035em;
}
.hero h1 {
  margin: 0 0 30px;
  font-size: clamp(43px, 13vw, 62px);
  line-height: .94;
}
.search-box {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(33, 27, 19, .06);
}
.search-box span { color: var(--accent); font-size: 24px; }
.search-box input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}
.search-box input::placeholder { color: var(--muted); }

.study-reminder-card {
  position: relative;
  max-width: 864px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 2px 18px 18px;
  padding: 18px;
  overflow: hidden;
  color: #f4efe5;
  background:
    radial-gradient(circle at 93% -25%, rgba(228,161,94,.38), transparent 44%),
    #1a261f;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(23,33,27,.18);
}
.reminder-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  font: 600 21px/1 "Newsreader", serif;
}
.reminder-copy .eyebrow { margin-bottom: 5px; color: #e5aa6a; }
.reminder-copy h2 { margin: 0; font: 400 21px/1.05 "Newsreader", serif; }
.reminder-copy > p:last-child { margin: 6px 0 0; color: rgba(244,239,229,.62); font-size: 11px; line-height: 1.4; }
.study-reminder-card > button {
  min-height: 42px;
  padding: 0 14px;
  color: #17211b;
  background: #f2eee5;
  border: 0;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 600;
}
.study-reminder-card > .reminder-disable {
  color: rgba(244,239,229,.7);
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
}
.reminder-status {
  grid-column: 2 / -1;
  min-height: 0;
  color: #98d2aa;
  font-size: 11px;
}

.status { padding: 18px 22px; color: var(--muted); font-size: 14px; }
.status.error { color: #b54e3f; }
.content-section { padding: 15px 18px 25px; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0 0 12px;
  font: 600 12px/1 "DM Sans", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-heading span { color: var(--muted); font-size: 12px; }

.article-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 14px;
  padding: 20px 2px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.article-card h3 {
  margin: 0;
  font: 400 24px/1.08 "Newsreader", Georgia, serif;
}
.article-card .arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 22px; }
.article-card .detail { color: var(--muted); font-size: 12px; }
.article-card.is-read h3 { color: var(--green); }
.article-card .read-badge { margin-left: 6px; color: var(--green); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.article-card:active { opacity: .55; }

.folder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 10px;
}
.folder-card {
  position: relative;
  min-height: 164px;
  padding: 18px 15px 15px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: #e7d5b7;
  border: 0;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 27, .08), 0 12px 28px rgba(45, 36, 22, .08);
  transition: transform .18s ease;
}
.folder-card:nth-child(4n + 2) { background: #cfdacb; }
.folder-card:nth-child(4n + 3) { background: #d4d4c5; }
.folder-card:nth-child(4n + 4) { background: #dfc9bd; }
html[data-theme="dark"] .folder-card {
  color: #f4efe5;
  background: #40362a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
html[data-theme="dark"] .folder-card:nth-child(4n + 2) { background: #293b31; }
html[data-theme="dark"] .folder-card:nth-child(4n + 3) { background: #37382f; }
html[data-theme="dark"] .folder-card:nth-child(4n + 4) { background: #44312c; }
.folder-card:active { transform: scale(.97); }
.folder-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -36px;
  top: -30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .12;
}
.folder-icon {
  width: 38px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  color: currentColor;
  background: rgba(255,255,255,.34);
  border-radius: 5px 9px 9px 9px;
  font-size: 14px;
}
.folder-card strong {
  display: block;
  min-height: 40px;
  font: 600 20px/1 "Newsreader", serif;
}
.folder-card small { display: block; margin-top: 7px; color: currentColor; font-size: 11px; opacity: .65; }
.folder-card .folder-read {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(63, 123, 88, .13);
}

.folder-view { min-height: 100vh; }
.folder-hero {
  padding: 46px 22px 24px;
  background:
    linear-gradient(135deg, rgba(201,120,57,.13), transparent 62%),
    var(--paper);
}
.folder-hero h1 {
  margin: 0;
  font: 400 clamp(42px, 12vw, 62px)/.98 "Newsreader", serif;
  letter-spacing: -.035em;
}
.folder-progress {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}
.progress-track {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 99px;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.article-grid { display: grid; gap: 11px; padding-top: 10px; }
.article-tile {
  position: relative;
  width: 100%;
  min-height: 118px;
  padding: 19px 52px 17px 18px;
  color: var(--ink);
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 8px 25px rgba(35,30,22,.04);
}
.article-tile h3 { margin: 0 0 17px; font: 400 23px/1.06 "Newsreader", serif; }
.article-tile small { color: var(--muted); font-size: 11px; }
.article-tile .tile-arrow { position: absolute; right: 18px; top: 18px; color: var(--accent); font-size: 20px; }
.article-tile .read-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-tile .read-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}
.article-tile.is-read { border-color: color-mix(in srgb, var(--green) 38%, var(--line)); }
.empty-folder { padding: 34px 4px; color: var(--muted); text-align: center; font: 20px/1.4 "Newsreader", serif; }

.reader {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.reader::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 24px;
  right: 2%;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(201,120,57,.1), transparent 68%);
  border-radius: 50%;
}
.reader-header { padding: clamp(42px, 8vw, 72px) clamp(22px, 5vw, 44px) 20px; }
.reader h1 { margin: 0; font-size: clamp(43px, 12vw, 68px); line-height: .98; }
.reader h1, .reader-deck { font-family: var(--reader-font); }
.reader-deck {
  margin: 20px 0 0;
  color: var(--muted);
  font: 400 22px/1.35 "Newsreader", serif;
}
.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 26px;
  padding: 14px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prose {
  padding: 22px clamp(22px, 5vw, 44px) 64px;
  font-family: var(--reader-font);
  font-size: var(--reader-size);
  font-weight: 400;
  line-height: var(--reader-leading);
  overflow-wrap: anywhere;
  transition: font-size .18s ease, line-height .18s ease;
}
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  margin: 1.55em 0 .6em;
  font-family: var(--reader-font);
  line-height: 1.08;
}
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 27px; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose mark { color: inherit; background: rgba(241, 190, 77, .45); }
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  font-size: 1.15em;
  font-style: italic;
}
.prose img, .prose video, .prose iframe {
  display: block;
  max-width: 100% !important;
  height: auto;
  margin: 1.7em auto;
  border-radius: 12px;
}
.prose iframe { width: 100%; min-height: 220px; border: 0; }
.prose figure { max-width: 100% !important; margin: 1.7em 0; }
.prose figcaption { margin-top: -1em; color: var(--muted); text-align: center; font: 12px/1.4 "DM Sans", sans-serif; }
.prose .image-controls, .prose .resize-handle, .prose .align-handle,
.prose .gap-handle, .prose .crop-box, .prose .image-gap-popover { display: none !important; }
.prose table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 9px; border: 1px solid var(--line); }
.prose pre { overflow-x: auto; padding: 16px; background: var(--paper-deep); border-radius: 12px; font-size: 14px; }
.prose > p:first-of-type::first-letter {
  float: left;
  margin: .06em .12em 0 0;
  color: var(--accent);
  font-size: 3.35em;
  font-weight: 600;
  line-height: .75;
}
.reader-footer {
  margin: 0 23px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.reader-footer > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.read-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.read-toggle .read-dot {
  grid-row: 1 / 3;
  align-self: center;
  width: 16px;
  height: 16px;
  background: var(--muted);
  border: 4px solid var(--paper-deep);
  border-radius: 50%;
}
.read-toggle strong { font-size: 13px; letter-spacing: .12em; }
.read-toggle small { margin-top: 3px; color: var(--muted); }
.read-toggle.is-read {
  color: var(--green);
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
}
.read-toggle.is-read .read-dot { background: var(--green); border-color: color-mix(in srgb, var(--green) 18%, transparent); }
.read-date { margin: 9px 0 0; color: var(--green); font-size: 11px; }
.read-information {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 18px;
  color: var(--muted);
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.read-information .read-dot {
  grid-row: 1;
  align-self: center;
  width: 16px;
  height: 16px;
  background: var(--muted);
  border: 4px solid var(--paper-deep);
  border-radius: 50%;
}
.read-information div { display: grid; gap: 4px; }
.read-information strong { color: var(--ink); font-size: 13px; letter-spacing: .12em; }
.read-information small { font-size: 12px; }
.read-information.is-read {
  color: var(--green);
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
}
.read-information.is-read .read-dot { background: var(--green); border-color: color-mix(in srgb, var(--green) 18%, transparent); }
.read-information.is-read strong { color: var(--green); }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.share-actions button {
  min-height: 68px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 17px;
  font-size: 11px;
}
.share-actions button span { display: block; margin-bottom: 5px; color: var(--accent); font-size: 21px; }
.action-status { min-height: 20px; padding-top: 12px; color: var(--green); font-size: 12px; }
.shared-signature {
  margin: 32px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  letter-spacing: .08em !important;
  text-transform: none !important;
}
.shared-loading {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  font: 24px/1.3 "Newsreader", serif;
  text-align: center;
}
.shared-page main { padding-bottom: env(safe-area-inset-bottom, 0px); }
.shared-page .reader-footer { margin-bottom: 18px; }

.settings-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(10, 14, 11, .12);
}
.reader-settings {
  position: fixed;
  z-index: 41;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 620px;
  margin: 0 auto;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 96%, white 4%);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 60px rgba(12, 16, 13, .18);
  transform: translateY(30px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.reader-settings.open { transform: translateY(0); opacity: 1; }
.settings-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 18px;
  background: var(--line);
  border-radius: 99px;
}
.settings-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.settings-title span, .setting-row > span, .setting-block > span, .line-height-control > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.settings-title h2 { margin: 4px 0 0; font: 400 30px/1 "Newsreader", serif; }
.settings-title button {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.size-control { display: flex; align-items: center; gap: 9px; }
.size-control button {
  width: 44px;
  height: 36px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 0;
  border-radius: 10px;
}
.size-control output { min-width: 26px; color: var(--muted); text-align: center; font-size: 12px; }
.setting-block { padding: 15px 0 0; }
.font-options, .theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 9px;
}
.font-options button, .theme-options button {
  min-height: 46px;
  padding: 7px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.font-options button:nth-child(1) { font-family: "Newsreader", serif; }
.font-options button:nth-child(2) { font-family: "Literata", serif; }
.font-options button:nth-child(3) { font-family: "Atkinson Hyperlegible Next", sans-serif; }
.font-options button.active, .theme-options button.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.line-height-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
}
.line-height-control input { width: 100%; accent-color: var(--accent); }

@media print {
  @page { size: A4 portrait; margin: 16mm 15mm 18mm; }
  html, body {
    width: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    color: #171b18 !important;
    background: #fff !important;
  }
  body * { animation: none !important; transition: none !important; }
  .topbar, .bottom-nav, .reader-footer, .reader-settings,
  .settings-backdrop, .study-reminder-card { display: none !important; }
  main { padding: 0 !important; }
  .reader {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .reader::before { display: none !important; }
  .reader-header { padding: 0 0 9mm !important; }
  .reader h1 {
    color: #171b18 !important;
    font-size: 31pt !important;
    line-height: 1.02 !important;
  }
  .reader-deck { color: #555 !important; font-size: 16pt !important; }
  .reader-meta { color: #666 !important; border-color: #bbb !important; }
  .prose {
    padding: 0 !important;
    color: #171b18 !important;
    font-size: 12.5pt !important;
    line-height: 1.55 !important;
    overflow: visible !important;
  }
  .prose h1, .prose h2, .prose h3, .prose h4 {
    break-after: avoid;
    page-break-after: avoid;
  }
  .prose img, .prose figure, .prose blockquote, .prose table, .prose pre {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .prose img {
    max-width: 100% !important;
    max-height: 230mm !important;
    object-fit: contain;
  }
  .prose a { color: #171b18 !important; }
}

.bottom-nav {
  position: fixed;
  z-index: 25;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  left: 12px;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
}
.bottom-nav a, .bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: color-mix(in srgb, var(--paper) 58%, transparent);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 16px;
  font-size: 10px;
}
.bottom-nav span { font-size: 19px; }
.bottom-nav .active { color: var(--paper); background: rgba(255,255,255,.09); }

@media (min-width: 700px) {
  .hero, .content-section, .folder-hero { max-width: 900px; margin-right: auto; margin-left: auto; }
  .study-reminder-card { margin-right: auto; margin-left: auto; }
  .folder-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .folder-card { min-height: 190px; padding: 22px; }
  .folder-card strong { font-size: 25px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-nav { width: 430px; right: auto; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 39px; }
  .folder-list { gap: 8px; }
  .folder-card { min-height: 150px; padding: 14px 12px; border-radius: 18px; }
  .folder-card strong { font-size: 18px; }
  .reader h1 { font-size: 40px; }
  .share-actions { grid-template-columns: 1fr; }
  .study-reminder-card { grid-template-columns: 46px 1fr; }
  .reminder-symbol { width: 44px; height: 44px; }
  .study-reminder-card > button { grid-column: 1 / -1; }
  .reminder-status { grid-column: 1 / -1; }
}
