:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d9;
  --surface: #fffdf8;
  --surface-2: #fbf7ef;
  --ink: #28231e;
  --ink-2: #4b443c;
  --muted: #837a6f;
  --muted-2: #a69c8f;
  --line: #e6ddce;
  --line-strong: #d8ccba;
  --accent: #b4553c;
  --accent-dark: #8f3f2b;
  --accent-soft: #f4e3da;
  --gold: #a8763e;
  --gold-soft: #f3e9d6;
  --green: #5b6e5a;
  --green-soft: #e6ece2;
  --rose: #a93c4a;
  --violet: #6b5b7b;
  --blue: #56707e;
  --danger: #a33a32;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(84, 61, 38, .04), 0 18px 42px -26px rgba(84, 61, 38, .35);
  --shadow-sm: 0 1px 0 rgba(84, 61, 38, .04), 0 8px 20px -14px rgba(84, 61, 38, .3);
  --font-ui: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  --topbar-h: 66px;
  --sidebar-w: 250px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(180, 85, 60, .085), transparent 62%),
    radial-gradient(900px 520px at -8% 102%, rgba(168, 118, 62, .07), transparent 60%),
    var(--paper);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }
:focus-visible { outline: 3px solid rgba(180, 85, 60, .28); outline-offset: 2px; border-radius: 6px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }
.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; }

/* ---------- shell ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: rgba(252, 248, 240, .82);
  border-right: 1px solid rgba(216, 204, 186, .75);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; }
.brand-seal {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  color: #fff9ef;
  background: linear-gradient(145deg, #bd6046, #9b4530);
  border-radius: 13px 13px 13px 4px;
  font-family: var(--font-kai);
  font-size: 23px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 18px -10px rgba(143, 63, 43, .8);
}
.brand-name { font-family: var(--font-serif); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.25; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .14em; margin-top: 2px; }
.nav-label { padding: 8px 12px 7px; font-size: 10.5px; letter-spacing: .18em; color: var(--muted-2); font-weight: 700; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .18s, color .18s, transform .18s;
}
.nav-item .icon { width: 19px; height: 19px; color: var(--muted); transition: color .18s; }
.nav-item:hover { background: rgba(255,255,255,.7); color: var(--accent-dark); }
.nav-item:hover .icon { color: var(--accent); }
.nav-item.active { background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow-sm); font-weight: 650; }
.nav-item.active .icon { color: var(--accent); }
.nav-item.active::before {
  content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 3px; background: var(--accent);
}
.nav-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding-top: 18px; }
.side-countdown {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,253,248,.95), rgba(246,238,225,.85));
  border-radius: 15px;
  padding: 14px 15px;
  box-shadow: var(--shadow-sm);
}
.side-countdown .num { font-family: var(--font-serif); font-size: 30px; line-height: 1; color: var(--accent); font-weight: 700; }
.side-countdown .num small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; font-family: var(--font-ui); }
.side-countdown .label { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.side-offline { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted-2); justify-content: center; margin-top: 12px; letter-spacing: .05em; }
.side-offline .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(91,110,90,.12); }

.main-shell { margin-left: var(--sidebar-w); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 34px;
  background: rgba(246, 241, 231, .78);
  border-bottom: 1px solid rgba(216, 204, 186, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar-title { font-size: 15px; font-weight: 650; letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title .muted { color: var(--muted); font-weight: 500; margin-right: 8px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 12px 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,253,248,.72);
  color: var(--muted);
  min-width: 230px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.search-trigger:hover { border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.search-trigger kbd { margin-left: auto; font-family: var(--font-ui); font-size: 10px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--muted-2); background: var(--surface); }
.menu-btn { display: none; }
.page { max-width: 1220px; margin: 0 auto; padding: 30px 34px 90px; }
.page.wide { max-width: 1360px; }
.page > .rise { animation: rise .42s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* ---------- shared ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
  transition: transform .16s, background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn:hover { border-color: var(--muted-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fffaf2; box-shadow: 0 8px 18px -12px rgba(143,63,43,.85); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); }
.btn.soft:hover { background: #eed8cc; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(255,255,255,.7); color: var(--ink); box-shadow: none; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.done { background: var(--green-soft); border-color: transparent; color: var(--green); }
.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); border-color: var(--line); }
.icon-btn.active { color: var(--accent); background: var(--accent-soft); }
.icon-btn .icon { width: 19px; height: 19px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,248,.65);
  color: var(--muted);
  font-size: 12.5px; font-weight: 600;
  transition: all .18s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fffaf2; }
.chip .count { font-size: 10.5px; opacity: .6; }
.chip-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 34px 0 16px; }
.section-head h2 { font-family: var(--font-serif); font-size: 23px; margin: 0; letter-spacing: .01em; }
.section-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.section-head .link { font-size: 12.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--line); }
.badge.accent { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.eyebrow { font-size: 10.5px; font-weight: 750; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 54px 20px; text-align: center; color: var(--muted);
}
.empty .icon { width: 34px; height: 34px; color: var(--muted-2); }
.empty strong { color: var(--ink-2); font-size: 15px; }
.progress { height: 7px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }

/* ---------- top search page ---------- */
.search-hero { max-width: 760px; margin: 10px auto 0; text-align: center; padding: 18px 0 6px; }
.search-hero h1 { font-family: var(--font-serif); font-size: 34px; margin: 10px 0 8px; }
.search-hero p { color: var(--muted); margin: 0 0 24px; font-size: 13.5px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 10px 0 18px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 15px; box-shadow: var(--shadow);
}
.search-box .icon { width: 22px; height: 22px; color: var(--accent); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-box input::placeholder { color: var(--muted-2); }
.search-tabs { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin: 18px 0 30px; }
.search-summary { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-group-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 12px; font-weight: 750; letter-spacing: .1em; color: var(--muted); }
.search-group-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.results { display: flex; flex-direction: column; gap: 9px; }
.result {
  display: block; padding: 14px 17px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.result:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.result-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.result-type { font-size: 10px; font-weight: 750; letter-spacing: .08em; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 5px; }
.result-title { font-weight: 650; font-size: 14px; }
.result-snippet { color: var(--muted); font-size: 12.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-snippet mark, .mark { background: #f6dfae; color: #5b3c1c; border-radius: 2px; padding: 0 1px; }
.result-meta { margin-left: auto; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }
.search-loading { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px; }
.loading-dots::after { content: "…"; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---------- home ---------- */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-hello { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; margin-bottom: 4px; }
.home-head h1 { font-family: var(--font-serif); font-size: 30px; line-height: 1.3; margin: 0; letter-spacing: .01em; }
.home-head h1 em { font-style: normal; color: var(--accent); }
.home-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 18px; align-items: stretch; }
.hero-card {
  position: relative; overflow: hidden;
  padding: 32px 34px;
  border-radius: 22px;
  color: #fdf7ec;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(255, 225, 186, .16), transparent 65%),
    linear-gradient(140deg, #7d3d2c 0%, #a44d36 50%, #b86145 100%);
  box-shadow: 0 22px 50px -28px rgba(110, 48, 33, .8);
}
.hero-card::before {
  content: ""; position: absolute; right: -70px; bottom: -110px;
  width: 300px; height: 300px; border: 1px solid rgba(255, 240, 218, .2); border-radius: 50%;
}
.hero-card::after {
  content: ""; position: absolute; right: 20px; bottom: -150px;
  width: 300px; height: 300px; border: 1px solid rgba(255, 240, 218, .12); border-radius: 50%;
}
.hero-eyebrow { color: rgba(255, 240, 220, .7); font-size: 10.5px; font-weight: 750; letter-spacing: .22em; }
.hero-title { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 34px; font-weight: 700; line-height: 1.3; margin: 10px 0 8px; letter-spacing: .02em; }
.hero-copy { color: rgba(255, 243, 227, .75); font-size: 13px; max-width: 390px; line-height: 1.7; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 30px; position: relative; z-index: 1; }
.hero-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hero-card .btn { background: rgba(255, 250, 242, .94); border-color: transparent; color: #7b3b2a; box-shadow: none; }
.hero-card .btn:hover { background: #fff; transform: translateY(-1px); }
.hero-card .btn.ghost-light { background: rgba(255,255,255,.1); color: #fff4e6; border-color: rgba(255,255,255,.22); }
.hero-stats { display: flex; gap: 20px; }
.hero-stat { text-align: right; }
.hero-stat b { display: block; font-family: var(--font-serif); font-size: 24px; line-height: 1.1; }
.hero-stat span { font-size: 10px; color: rgba(255, 243, 227, .62); letter-spacing: .1em; }
.hero-seal {
  position: absolute; right: 28px; top: 24px;
  width: 56px; height: 56px; border: 1px solid rgba(255, 238, 210, .45);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-kai); font-size: 13px; letter-spacing: .05em; color: rgba(255, 242, 222, .8);
  transform: rotate(9deg); line-height: 1.1; text-align: center;
}
.hero-ring { display: flex; align-items: center; gap: 12px; }
.ring { width: 72px; height: 72px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bg { stroke: rgba(255,255,255,.16); }
.ring .fg { stroke: #f7e6c8; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 750; color: #fff4e4; }
.ring-label small { font-size: 8px; font-weight: 500; opacity: .65; display: block; text-align: center; letter-spacing: .04em; }
.plan-card { padding: 23px 23px 19px; display: flex; flex-direction: column; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.plan-head h3 { font-family: var(--font-serif); font-size: 19px; margin: 0; }
.plan-head .date { font-size: 10.5px; color: var(--muted); letter-spacing: .05em; }
.plan-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 13px; }
.tasks { display: flex; flex-direction: column; gap: 2px; }
.task {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 8px; margin: 0 -8px;
  border-radius: 10px;
  transition: background .18s;
}
.task:hover { background: var(--surface-2); }
.task-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.task-ico .icon { width: 16px; height: 16px; }
.task:nth-child(2) .task-ico { background: var(--gold-soft); color: var(--gold); }
.task:nth-child(3) .task-ico { background: var(--green-soft); color: var(--green); }
.task-body { min-width: 0; flex: 1; }
.task-title { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { font-size: 10.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-check { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; color: transparent; }
.task-check .icon { width: 11px; height: 11px; stroke-width: 2.6; }
.task-check.done { background: var(--green); border-color: var(--green); color: #fff; }
.plan-foot { margin-top: auto; padding-top: 13px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-foot .streak { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.plan-foot .streak .icon { width: 15px; height: 15px; color: var(--accent); }
.continue-card {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 20px; margin-top: 18px;
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(255,253,248,.96), rgba(249,243,232,.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.continue-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.continue-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fdf7ec; display: grid; place-items: center; flex: none; }
.continue-body { min-width: 0; flex: 1; }
.continue-label { font-size: 10px; letter-spacing: .13em; color: var(--muted); font-weight: 700; }
.continue-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.subject-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.subject-card {
  position: relative; overflow: hidden;
  padding: 15px 16px 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.subject-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.subject-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--subj-color, var(--accent)); opacity: .85; }
.subject-card .abbr { font-family: var(--font-serif); font-weight: 700; font-size: 17px; }
.subject-card .name { font-size: 10px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subject-card .num { position: absolute; right: 13px; top: 13px; font-size: 10px; color: var(--muted-2); font-weight: 700; }
.subject-card .progress { margin-top: 12px; height: 5px; background: var(--paper-2); }
.subject-card .progress > i { background: var(--subj-color, var(--accent)); }
.subject-card .foot { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted-2); margin-top: 5px; }
.home-lower { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; margin-top: 18px; }
.quote-card { position: relative; overflow: hidden; padding: 26px 28px; background: var(--surface); }
.quote-card .qmark { position: absolute; right: 22px; top: 4px; font-family: var(--font-serif); font-size: 92px; line-height: 1; color: var(--accent-soft); pointer-events: none; }
.quote-card .quote-text { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 18px; line-height: 1.85; color: var(--ink-2); margin: 8px 0 14px; max-width: 92%; }
.quote-card .quote-from { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.quick-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 106px; padding: 15px 16px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); transition: transform .18s, box-shadow .18s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-card .ic { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.quick-card .ic .icon { width: 16px; height: 16px; }
.quick-card b { font-size: 12.5px; margin-top: 12px; display: block; }
.quick-card span { font-size: 10px; color: var(--muted); }
.home-shelf { margin-top: 32px; }
.shelf-row { display: flex; gap: 12px; overflow-x: auto; padding: 3px 2px 10px; scrollbar-width: thin; }
.shelf-book { flex: none; width: 106px; }
.shelf-book .cover { width: 106px; aspect-ratio: 3/4.1; border-radius: 8px 11px 11px 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 8px 18px -14px rgba(40,30,20,.55); background: var(--surface-2); }
.shelf-book .cover img { width: 100%; height: 100%; object-fit: cover; }
.shelf-book .t { font-size: 10.5px; line-height: 1.4; margin-top: 7px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- overview / lists ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head h1 { font-family: var(--font-serif); font-size: 32px; line-height: 1.3; margin: 2px 0 5px; }
.page-head p { margin: 0; color: var(--muted); font-size: 12.5px; max-width: 620px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 24px; }
.stat-pill { display: flex; align-items: baseline; gap: 5px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.65); font-size: 11px; color: var(--muted); }
.stat-pill b { font-size: 14px; color: var(--ink); font-family: var(--font-serif); }
.part-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: thin; }
.part-tab { flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,253,248,.6); color: var(--muted); font-size: 12.5px; font-weight: 650; transition: all .18s; }
.part-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }
.part-tab:hover { background: var(--surface); color: var(--ink); }
.part-tab.active { background: var(--ink); border-color: var(--ink); color: #fffaf2; }
.part-tab.active .dot { box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.part-block { margin-bottom: 26px; }
.part-title { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; }
.part-title .bar { width: 4px; height: 20px; border-radius: 4px; background: var(--c, var(--accent)); }
.part-title h3 { font-size: 16px; margin: 0; font-weight: 700; }
.part-title .meta { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topic-card {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.topic-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.topic-card .no { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-family: var(--font-serif); font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.topic-card.done .no { background: var(--green-soft); color: var(--green); border-color: transparent; }
.topic-card .body { min-width: 0; flex: 1; }
.topic-card .title { font-size: 13.5px; font-weight: 650; line-height: 1.45; display: flex; align-items: flex-start; gap: 6px; }
.topic-card .title .icon { width: 13px; height: 13px; color: var(--accent); margin-top: 2px; opacity: 0; }
.topic-card:hover .title .icon { opacity: 1; }
.topic-card .meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 10px; color: var(--muted-2); flex-wrap: wrap; }
.topic-card .meta .dotsep { width: 2px; height: 2px; border-radius: 50%; background: var(--muted-2); }
.topic-card .flags { display: flex; gap: 3px; color: var(--accent); }
.topic-card .flags .icon { width: 12px; height: 12px; }
.topic-card .note-dot { position: absolute; right: 12px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.section-list { display: flex; flex-direction: column; gap: 9px; }
.section-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.section-row:hover { transform: translateX(2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.section-row .idx { font-family: var(--font-serif); font-size: 19px; color: var(--muted-2); width: 34px; flex: none; text-align: center; }
.section-row .info { flex: 1; min-width: 0; }
.section-row .t { font-size: 14px; font-weight: 650; }
.section-row .m { font-size: 10.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.section-row .status { flex: none; }
.check-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.check-dot .icon { width: 11px; height: 11px; stroke-width: 2.6; }
.check-dot.done { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- reading ---------- */
.crumbs { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--muted-2); }
.reading-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.reading-title-wrap { min-width: 0; }
.reading-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.reading-kicker .subject { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--c, var(--accent)); }
.reading-kicker .subject::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--accent)); }
.reading-title { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 33px); line-height: 1.34; margin: 0; letter-spacing: .01em; }
.reading-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10.5px; margin-top: 8px; }
.reading-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 246px; gap: 24px; align-items: start; }
.content-card { padding: 36px 42px 40px; border-radius: 19px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.outline-card { position: sticky; top: calc(var(--topbar-h) + 16px); padding: 16px 15px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255,253,248,.72); max-height: calc(100vh - var(--topbar-h) - 40px); overflow: auto; }
.outline-card .oh { font-size: 10px; font-weight: 750; letter-spacing: .16em; color: var(--muted); padding: 0 7px 9px; border-bottom: 1px dashed var(--line); margin-bottom: 7px; }
.outline-card a { display: block; padding: 6px 7px; border-radius: 7px; font-size: 11.5px; color: var(--muted); line-height: 1.45; transition: background .15s, color .15s; }
.outline-card a:hover { background: var(--surface-2); color: var(--ink); }
.outline-card a.lv3 { padding-left: 18px; font-size: 11px; color: var(--muted-2); }
.outline-card a.active { color: var(--accent-dark); background: var(--accent-soft); font-weight: 600; }
.reading-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.reading-foot .btn { max-width: 46%; overflow: hidden; }
.reading-foot .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.prose { font-family: var(--font-serif); color: #2e2822; font-size: 16px; line-height: 1.95; overflow-wrap: break-word; }
.prose .page-group { position: relative; }
.prose .page-tag { display: flex; align-items: center; gap: 9px; margin: 18px 0 8px; color: var(--muted-2); font-family: var(--font-ui); font-size: 9.5px; letter-spacing: .12em; }
.prose .page-tag::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.prose .page-group:first-child .page-tag { margin-top: 0; }
.prose p { margin: 0 0 .72em; text-indent: 2em; }
.prose p:last-child { margin-bottom: 0; }
.prose .bullet { position: relative; padding-left: 1.55em; margin: 0 0 .55em; text-indent: 0; }
.prose .bullet::before { content: attr(data-mark); position: absolute; left: .1em; top: 0; color: var(--accent); font-family: var(--font-ui); font-size: .85em; }
.prose h2, .prose h3, .prose h4 { text-indent: 0; font-family: var(--font-serif); }
.prose .h3 { font-size: 21px; line-height: 1.5; margin: 1.5em 0 .55em; padding-left: 13px; position: relative; color: var(--ink); letter-spacing: .01em; }
.prose .h3::before { content: ""; position: absolute; left: 0; top: .22em; bottom: .22em; width: 3px; border-radius: 3px; background: var(--accent); }
.prose .h4 { font-family: var(--font-ui); font-size: 15px; font-weight: 750; line-height: 1.6; margin: 1.25em 0 .45em; color: var(--accent-dark); letter-spacing: .01em; }
.prose .h2 { font-size: 23px; margin: 1.4em 0 .6em; }
.prose .note {
  margin: .85em 0 1em; padding: 11px 15px;
  background: linear-gradient(100deg, #fbf2df, #fdf8ee);
  border-left: 3px solid var(--gold);
  border-radius: 4px 10px 10px 4px;
  font-family: var(--font-ui); font-size: 13px; line-height: 1.75; color: #6d532f;
  text-indent: 0;
}
.prose .note::before { content: "助背"; display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .08em; background: var(--gold); color: #fffaf0; border-radius: 4px; padding: 1px 5px; margin-right: 7px; vertical-align: 2px; }
.prose .table-wrap { margin: .9em 0 1.15em; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fffefb; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 12.5px; line-height: 1.7; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.prose tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--surface-2); font-size: 11px; font-weight: 750; color: var(--muted); letter-spacing: .03em; }
.prose td.key { width: 31%; color: var(--accent-dark); font-weight: 650; background: #fdfaf4; }
.prose table.cols-3 td.key { width: 24%; }
.prose table.cols-4 td.key { width: 17%; }
.prose table.cols-4 td:nth-child(2), .prose table.cols-4 td:nth-child(3) { white-space: nowrap; }
.prose tr:hover td { background: #fdf9f1; }
.prose td .cell-note { display: block; margin-top: 5px; font-size: 11px; color: var(--gold); }
.prose td .cell-sub { display: block; margin-top: 5px; font-size: 12px; color: #5d554b; }
.prose .table-scan { margin: 9px 0 2px; font-family: var(--font-ui); }
.prose .table-scan-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 12px; border: 1px dashed #d9c6b3; border-radius: 9px;
  background: #fcf7ef; color: var(--muted); font-size: 11.5px; line-height: 1.45; text-align: left;
  transition: border-color .18s, background .18s, color .18s;
}
.prose .table-scan-btn:hover { border-color: var(--accent); background: #fbf1e7; color: var(--ink-2); }
.prose .table-scan-btn > .icon { width: 15px; height: 15px; color: var(--accent); flex: none; }
.prose .table-scan-btn strong { color: var(--accent-dark); font-weight: 750; }
.prose .scan-chev { margin-left: auto; display: inline-flex; color: var(--muted-2); }
.prose .scan-chev .icon { width: 14px; height: 14px; transition: transform .22s; }
.prose .table-scan.open .scan-chev .icon { transform: rotate(180deg); }
.prose .table-scan-body { margin-top: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.prose .table-scan-body[hidden] { display: none; }
.prose .scan-img { display: block; border-radius: 7px; overflow: hidden; }
.prose .table-scan-body img { display: block; width: 100%; height: auto; border-radius: 7px; }
.prose .scan-foot { display: flex; justify-content: flex-end; padding: 5px 3px 1px; }
.prose .page-block + .page-block { margin-top: 6px; }
.prose .done-ribbon { display: none; }

.topic-note-preview { margin-top: 18px; padding: 13px 15px; border-radius: 11px; background: var(--gold-soft); border: 1px dashed #dcc59b; font-size: 12px; color: #6c552f; display: flex; gap: 9px; align-items: flex-start; }
.topic-note-preview .icon { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.outline-toggle { display: none; }

/* ---------- 500 ---------- */
.b5-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.b5-head h1 { font-family: var(--font-serif); font-size: 31px; margin: 2px 0 4px; }
.b5-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.b5-progress { display: flex; align-items: center; gap: 14px; }
.b5-progress .ring { width: 62px; height: 62px; }
.b5-progress .ring .bg { stroke: var(--paper-2); }
.b5-progress .ring .fg { stroke: var(--accent); }
.b5-progress .ring-label { color: var(--ink); font-size: 12px; }
.b5-progress .ring-label small { color: var(--muted); }
.b5-stats { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.b5-toolbar { position: sticky; top: var(--topbar-h); z-index: 20; padding: 12px 15px; margin: 0 -3px 14px; background: rgba(246,241,231,.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(216,204,186,.55); }
.b5-toolbar .row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.b5-toolbar .row + .row { margin-top: 9px; }
.b5-search { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); min-width: 190px; flex: 1; max-width: 300px; }
.b5-search .icon { width: 15px; height: 15px; color: var(--muted); }
.b5-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--paper-2); gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.seg button .icon { width: 14px; height: 14px; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(40,30,20,.1); }
.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 30px; height: 18px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(12px); }
.b5-list { display: flex; flex-direction: column; gap: 8px; }
.b5-item { position: relative; display: flex; gap: 13px; padding: 14px 16px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: border-color .18s, box-shadow .18s, opacity .2s; }
.b5-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.b5-item.known { opacity: .62; border-color: #d9e3d4; background: #fbfdf9; }
.b5-item.known:hover { opacity: .85; }
.b5-num { width: 27px; flex: none; font-family: var(--font-serif); font-size: 12px; color: var(--muted-2); text-align: center; padding-top: 2px; }
.b5-item.known .b5-num { color: var(--green); }
.b5-body { flex: 1; min-width: 0; }
.b5-text { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.b5-trap .b5-wrong { font-family: var(--font-serif); font-size: 15px; line-height: 1.8; color: var(--ink-2); display: flex; gap: 7px; }
.b5-trap .b5-wrong::before { content: "×"; color: var(--rose); font-family: var(--font-ui); font-weight: 800; font-size: 15px; line-height: 1.6; flex: none; }
.b5-fix { display: none; margin-top: 9px; padding: 10px 13px; background: #f1f6ee; border-left: 3px solid var(--green); border-radius: 3px 8px 8px 3px; font-family: var(--font-serif); font-size: 14px; line-height: 1.8; color: #3e5540; }
.b5-trap.revealed .b5-fix { display: block; animation: rise .25s ease; }
.b5-fix::before { content: "订正"; display: inline-block; font-family: var(--font-ui); font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--green); border-radius: 4px; padding: 1px 5px; margin-right: 7px; vertical-align: 2px; }
.b5-meta { display: flex; align-items: center; gap: 9px; margin-top: 7px; flex-wrap: wrap; font-size: 10px; color: var(--muted-2); }
.b5-meta button { border: 0; background: transparent; padding: 0; color: var(--green); font-size: 10.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.b5-meta button .icon { width: 12px; height: 12px; }
.b5-actions { display: flex; flex-direction: column; gap: 4px; align-items: center; flex: none; }
.b5-actions .icon-btn { width: 32px; height: 32px; }
.b5-actions .icon-btn .icon { width: 16px; height: 16px; }
.b5-known-btn.done { color: var(--green); background: var(--green-soft); }
.b5-page-link { font-size: 9.5px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 3px; }
.b5-page-link .icon { width: 11px; height: 11px; }
.banner { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; margin-bottom: 14px; }
.banner .icon { width: 18px; height: 18px; flex: none; }
.banner b { font-weight: 750; }
.banner .btn { margin-left: auto; }

.b5-card-view { max-width: 720px; margin: 0 auto; }
.flash-wrap { position: relative; min-height: 430px; display: flex; flex-direction: column; }
.flash-card { position: relative; overflow: hidden; flex: 1; padding: 38px 42px 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.flash-card::before { content: "“"; position: absolute; right: 22px; top: -28px; font-family: var(--font-serif); font-size: 170px; line-height: 1; color: var(--accent-soft); opacity: .55; }
.flash-kicker { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.flash-text { position: relative; z-index: 1; font-family: var(--font-serif); font-size: clamp(20px, 2.5vw, 26px); line-height: 1.8; margin: 26px 0; color: var(--ink); flex: 1; }
.flash-text.trap { font-size: clamp(18px, 2.2vw, 23px); }
.flash-text .x { color: var(--rose); font-weight: 800; margin-right: 4px; font-family: var(--font-ui); }
.flash-fix { display: none; margin-top: 8px; padding: 14px 17px; border-left: 3px solid var(--green); background: #f1f6ee; border-radius: 3px 10px 10px 3px; font-family: var(--font-serif); font-size: 15px; line-height: 1.8; color: #3e5540; }
.flash-card.revealed .flash-fix { display: block; animation: rise .25s ease; }
.flash-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.flash-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.flash-controls .mid { display: flex; gap: 8px; }
.flash-index { font-size: 11px; color: var(--muted); min-width: 70px; text-align: center; }
.flash-tip { text-align: center; font-size: 10px; color: var(--muted-2); margin-top: 12px; }
.flash-empty { text-align: center; padding: 60px 20px; }

/* ---------- jiqiao ---------- */
.jq-group { margin-bottom: 22px; }
.jq-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.jq-group-head .n { font-family: var(--font-serif); font-size: 13px; color: var(--muted-2); border: 1px solid var(--line); width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; }
.jq-group-head h3 { font-size: 15px; margin: 0; }
.jq-group-head .count { margin-left: auto; font-size: 10px; color: var(--muted-2); }
.jq-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.jq-sec { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; transition: all .18s; }
.jq-sec:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.jq-sec .no { font-size: 9.5px; color: var(--muted-2); width: 22px; flex: none; }
.jq-sec .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jq-sec .p { font-size: 9.5px; color: var(--muted-2); flex: none; }
.jq-sec.read { background: #fbfdf9; }
.jq-sec.read .t { color: var(--green); }
.jq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.jq-side { position: sticky; top: calc(var(--topbar-h) + 14px); max-height: calc(100vh - var(--topbar-h) - 34px); overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.75); }
.jq-side .grp { font-size: 9.5px; letter-spacing: .12em; color: var(--muted-2); font-weight: 750; padding: 12px 9px 5px; }
.jq-side a { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 7px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.jq-side a:hover { background: var(--surface-2); color: var(--ink); }
.jq-side a.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.jq-side a .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); flex: none; }
.jq-side a.read .dot { background: var(--green); }
.jq-pages { display: flex; flex-direction: column; gap: 14px; }
.jq-page { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.jq-page img { width: 100%; height: auto; }
.jq-page .pn { position: absolute; right: 9px; bottom: 9px; background: rgba(28,23,18,.62); color: #fff; font-size: 9px; padding: 2px 7px; border-radius: 5px; backdrop-filter: blur(4px); }
.jq-note { margin-top: 12px; padding: 12px 15px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: 11px; color: var(--muted); line-height: 1.7; }

/* ---------- zice ---------- */
.zice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.day-card { position: relative; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: transform .18s, box-shadow .18s, border-color .18s; }
.day-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.day-card .dn { font-family: var(--font-serif); font-size: 20px; color: var(--muted-2); line-height: 1; }
.day-card .dl { font-size: 9px; letter-spacing: .1em; color: var(--muted-2); }
.day-card .dt { font-size: 10.5px; color: var(--ink-2); margin-top: 7px; height: 2.8em; overflow: hidden; line-height: 1.4; }
.day-card .bar { height: 3px; background: var(--paper-2); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.day-card .bar i { display: block; height: 100%; background: var(--green); }
.day-card.done { background: #fbfdf9; border-color: #dbe5d6; }
.day-card.done .dn { color: var(--green); }
.day-card .tick { position: absolute; right: 10px; top: 10px; color: var(--green); opacity: 0; }
.day-card.done .tick { opacity: 1; }
.day-card .tick .icon { width: 15px; height: 15px; }
.day-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.day-view-head .big { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--accent); }
.day-view-head .big small { font-size: 12px; color: var(--muted); font-family: var(--font-ui); margin-left: 5px; }
.ref-box { padding: 14px 17px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #e5d4b4; color: #6d552f; font-size: 12.5px; line-height: 1.75; margin: 14px 0 18px; display: flex; gap: 10px; align-items: flex-start; }
.ref-box .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--gold); }
.ref-box .links { margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.ref-box a { font-weight: 650; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.zice-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zice-page { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.zice-page img { width: 100%; height: auto; }

/* ---------- library ---------- */
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.book-card { display: flex; gap: 16px; padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); transition: transform .18s, box-shadow .18s, border-color .18s; }
.book-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.book-cover { position: relative; width: 98px; flex: none; aspect-ratio: 3/4.1; border-radius: 6px 9px 9px 6px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); box-shadow: 0 10px 22px -16px rgba(40,30,20,.7); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.25); }
.book-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.book-kind { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 5px; }
.book-info h3 { font-family: var(--font-serif); font-size: 17px; margin: 0 0 4px; line-height: 1.4; }
.book-info p { margin: 0; font-size: 10.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-info .foot { margin-top: auto; padding-top: 9px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.book-info .foot .btn { height: 29px; font-size: 11px; padding: 0 10px; }
.book-info .pages { font-size: 9.5px; color: var(--muted-2); }
.lib-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.lib-hint { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; border-radius: 11px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 11.5px; line-height: 1.7; background: rgba(255,253,248,.5); margin-top: 20px; }
.lib-hint .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* ---------- reader ---------- */
body.reader-mode { overflow: hidden; }
.reader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #16130f; color: #f3ece0; }
.reader-top { height: 58px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: rgba(22,19,15,.96); border-bottom: 1px solid rgba(255,255,255,.09); z-index: 2; }
.reader-top .title { min-width: 0; flex: 1; }
.reader-top .title b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-top .title span { display: block; font-size: 9.5px; color: rgba(255,255,255,.45); margin-top: 1px; }
.reader-top .icon-btn { color: rgba(255,255,255,.68); }
.reader-top .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; border-color: transparent; }
.reader-controls { display: flex; align-items: center; gap: 5px; }
.reader-jump { display: flex; align-items: center; gap: 5px; }
.reader-jump input { width: 48px; height: 30px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 7px; text-align: center; font-size: 11px; }
.reader-jump span { font-size: 10px; color: rgba(255,255,255,.4); }
.reader-stage { position: relative; flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 18px; background: radial-gradient(ellipse at center, #211c16, #16130f 70%); }
.reader-stage img { max-width: 100%; height: auto; border-radius: 2px; box-shadow: 0 24px 70px rgba(0,0,0,.55); background: #fff; }
.reader-stage.zoom-1 img { max-height: calc(100vh - 110px); width: auto; }
.reader-stage.zoom-2 img { width: min(1600px, 170%); max-width: none; }
.reader-stage.zoom-3 img { width: min(2200px, 240%); max-width: none; }
.reader-foot { height: 42px; flex: none; display: flex; align-items: center; justify-content: center; gap: 20px; background: rgba(22,19,15,.96); border-top: 1px solid rgba(255,255,255,.08); font-size: 10px; color: rgba(255,255,255,.42); }
.reader-foot b { color: rgba(255,255,255,.72); font-weight: 600; }
.reader-btn { height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }
.reader-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.reader-btn[disabled] { opacity: .32; pointer-events: none; }
.reader-btn .icon { width: 15px; height: 15px; }
.reader-loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: 12px; pointer-events: none; }
.reader-empty { text-align: center; color: rgba(255,255,255,.5); padding: 80px 20px; font-size: 13px; }
@media (max-width: 760px) {
  .reader-top { height: auto; min-height: 54px; flex-wrap: wrap; padding: 8px 10px; }
  .reader-top .title { flex-basis: calc(100% - 50px); }
  .reader-controls { width: 100%; justify-content: space-between; }
  .reader-stage { padding: 8px; }
  .reader-foot { display: none; }
}

/* ---------- me ---------- */
.me-hero { display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: 20px; background: linear-gradient(130deg, #2e2923, #453a2f); color: #f8f0e2; box-shadow: 0 20px 45px -28px rgba(30,20,10,.8); position: relative; overflow: hidden; }
.me-hero::after { content: ""; position: absolute; right: -40px; top: -70px; width: 230px; height: 230px; border: 1px solid rgba(255,240,218,.15); border-radius: 50%; }
.me-avatar { width: 68px; height: 68px; flex: none; border-radius: 20px 20px 20px 6px; background: linear-gradient(145deg, #c2674b, #95412e); display: grid; place-items: center; font-family: var(--font-kai); font-size: 28px; color: #fff4e4; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.me-info { flex: 1; min-width: 0; }
.me-info h1 { font-family: var(--font-serif); font-size: 24px; margin: 0 0 3px; }
.me-info p { margin: 0; font-size: 11.5px; color: rgba(248,240,226,.55); }
.me-info .exam { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.me-info .exam b { font-family: var(--font-serif); font-size: 29px; color: #f3d8a8; line-height: 1; }
.me-info .exam span { font-size: 10.5px; color: rgba(248,240,226,.5); }
.me-stats { display: flex; gap: 18px; position: relative; z-index: 1; }
.me-stats div { text-align: center; }
.me-stats b { display: block; font-family: var(--font-serif); font-size: 21px; }
.me-stats span { font-size: 9.5px; color: rgba(248,240,226,.5); }
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 18px; margin-top: 18px; }
.me-card { padding: 20px 21px; }
.me-card h3 { font-size: 14px; margin: 0 0 13px; display: flex; align-items: center; gap: 8px; }
.me-card h3 .icon { width: 16px; height: 16px; color: var(--accent); }
.me-card h3 .more { margin-left: auto; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-box { padding: 12px 13px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.stat-box b { font-family: var(--font-serif); font-size: 23px; line-height: 1.1; display: block; }
.stat-box span { font-size: 9.5px; color: var(--muted); }
.heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-top: 4px; }
.heatmap i { aspect-ratio: 1; border-radius: 3px; background: var(--paper-2); }
.heatmap i.on { background: var(--accent); }
.heatmap i.on2 { background: #d9a48f; }
.heat-legend { display: flex; justify-content: flex-end; gap: 4px; align-items: center; font-size: 9px; color: var(--muted-2); margin-top: 7px; }
.heat-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--paper-2); display: inline-block; }
.heat-legend i.on { background: #d9a48f; }
.fav-list, .note-list { display: flex; flex-direction: column; gap: 6px; }
.list-row { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; transition: background .15s; }
.list-row:hover { background: var(--surface-2); }
.list-row .ic { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); flex: none; }
.list-row .ic .icon { width: 13px; height: 13px; }
.list-row .txt { min-width: 0; flex: 1; }
.list-row .t { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .s { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.list-row .go { color: var(--muted-2); }
.list-row .go .icon { width: 14px; height: 14px; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-zone { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.danger-zone .hint { font-size: 10px; color: var(--muted-2); max-width: 65%; line-height: 1.5; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row label { font-size: 12px; }
.settings-row .hint { font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.settings-row input[type=date] { height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 0 9px; font-size: 11.5px; }

/* ---------- notes panel / modal / toast ---------- */
.panel-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(30,24,18,.35); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.panel-scrim.open { opacity: 1; }
.notes-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(420px, 94vw); background: var(--surface); box-shadow: -20px 0 60px rgba(40,30,20,.2); transform: translateX(102%); transition: transform .32s var(--ease); display: flex; flex-direction: column; }
.notes-panel.open { transform: none; }
.np-head { display: flex; align-items: flex-start; gap: 10px; padding: 20px 20px 13px; border-bottom: 1px solid var(--line); }
.np-head .info { flex: 1; min-width: 0; }
.np-head .k { font-size: 9.5px; letter-spacing: .14em; color: var(--accent); font-weight: 750; }
.np-head h3 { font-family: var(--font-serif); font-size: 17px; line-height: 1.4; margin: 3px 0 0; }
.np-body { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; min-height: 0; }
.np-body textarea { flex: 1; min-height: 200px; resize: none; border: 0; outline: 0; background: transparent; font-family: var(--font-serif); font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.np-body textarea::placeholder { color: var(--muted-2); }
.np-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 18px; border-top: 1px dashed var(--line); font-size: 10px; color: var(--muted-2); }
.np-tips { padding: 10px 20px; background: var(--surface-2); font-size: 9.5px; color: var(--muted); line-height: 1.6; }

.modal-backdrop { position: fixed; inset: 0; z-index: 130; background: rgba(30,24,18,.4); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .18s ease; }
.modal { width: min(460px, 100%); background: var(--surface); border-radius: 17px; padding: 23px 24px 20px; box-shadow: 0 30px 80px rgba(30,20,10,.3); animation: rise .24s var(--ease); }
.modal h3 { font-family: var(--font-serif); font-size: 20px; margin: 0 0 8px; }
.modal p, .modal .modal-body { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0 0 14px; }
.modal .modal-body .outline-card a { font-size: 12px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0; } }
.toast-root { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: rgba(36,30,24,.94); color: #fff7e9; font-size: 12px; box-shadow: 0 12px 30px rgba(30,20,10,.35); animation: toastIn .25s var(--ease); backdrop-filter: blur(8px); }
.toast .icon { width: 15px; height: 15px; color: #bcd6b4; }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(.97); } }

/* ---------- mobile nav ---------- */
.mobile-nav { display: none; }
.side-backdrop { display: none; }
.side-backdrop[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --sidebar-w: 226px; }
  .page { padding: 26px 26px 80px; }
  .topbar { padding: 0 26px; }
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
  .reading-layout { grid-template-columns: minmax(0,1fr) 220px; }
  .content-card { padding: 30px 32px 34px; }
  .zice-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .home-top { grid-template-columns: 1fr; }
  .home-lower { grid-template-columns: 1fr; }
  .reading-layout { grid-template-columns: 1fr; }
  .outline-card { display: none; }
  .outline-toggle { display: inline-flex; }
  .jq-layout { grid-template-columns: 220px minmax(0,1fr); }
  .book-grid { grid-template-columns: 1fr; }
  .me-grid { grid-template-columns: 1fr; }
  .me-stats { display: none; }
}
@media (max-width: 860px) {
  :root { --topbar-h: 58px; }
  .sidebar { transform: translateX(-102%); transition: transform .3s var(--ease); width: 268px; box-shadow: 20px 0 50px rgba(40,30,20,.18); background: rgba(252,248,240,.98); }
  .sidebar.open { transform: none; }
  .side-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(30,24,18,.32); opacity: 0; transition: opacity .25s; }
  .side-backdrop.show { opacity: 1; }
  .main-shell { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; gap: 8px; }
  .search-trigger { min-width: 0; width: 38px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .page { padding: 20px 16px 96px; }
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(252,248,240,.92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; font-size: 9px; color: var(--muted); border-radius: 8px; }
  .mobile-nav a .icon { width: 20px; height: 20px; }
  .mobile-nav a.active { color: var(--accent); }
  .home-head h1 { font-size: 25px; }
  .hero-card { padding: 25px 22px; border-radius: 18px; }
  .hero-title { font-size: 27px; }
  .hero-seal { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-stats { align-self: stretch; justify-content: flex-start; gap: 26px; }
  .hero-stat { text-align: left; }
  .hero-ring { display: none; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: 1fr; }
  .jq-sections { grid-template-columns: 1fr; }
  .jq-layout { grid-template-columns: 1fr; }
  .jq-side { position: static; max-height: 260px; }
  .zice-grid { grid-template-columns: repeat(3, 1fr); }
  .reading-title { font-size: 25px; }
  .content-card { padding: 24px 19px 28px; border-radius: 15px; }
  .prose { font-size: 15.5px; line-height: 1.9; }
  .prose .h3 { font-size: 19px; }
  .prose .h4 { font-size: 14px; }
  .prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose table.cols-3 { min-width: 500px; }
  .prose table.cols-4 { min-width: 640px; }
  .reading-top { flex-direction: column; gap: 12px; }
  .reading-actions { width: 100%; }
  .flash-card { padding: 26px 22px 22px; }
  .flash-wrap { min-height: 380px; }
  .b5-toolbar { top: var(--topbar-h); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .b5-head h1 { font-size: 26px; }
  .b5-progress .ring { width: 52px; height: 52px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-head h1 { font-size: 27px; }
  .me-hero { padding: 21px; gap: 15px; }
  .me-avatar { width: 56px; height: 56px; font-size: 23px; }
  .me-info h1 { font-size: 20px; }
  .me-info .exam b { font-size: 24px; }
  .modal { padding: 20px; }
  .reading-foot .btn { max-width: 100%; flex: 1; }
}
@media (max-width: 520px) {
  .subject-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .zice-grid { grid-template-columns: repeat(2, 1fr); }
  .zice-pages { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .item-actions .btn { padding: 0 9px; }
  .b5-actions { flex-direction: row; }
  .b5-item { gap: 8px; padding: 12px; }
  .b5-text { font-size: 14.5px; }
  .b5-num { width: 20px; }
  .b5-trap .b5-wrong { font-size: 14.5px; }
  .b5-fix { font-size: 13.5px; }
  .flash-text { font-size: 20px; }
  .flash-controls .mid { gap: 5px; }
  .search-hero h1 { font-size: 27px; }
  .search-box { height: 50px; }
  .hero-copy { display: none; }
  .subject-card { padding: 12px 13px; }
  .book-cover { width: 84px; }
  .book-card { gap: 12px; padding: 11px; }
  .book-info h3 { font-size: 15px; }
  .home-shelf { margin-top: 24px; }
}
@media print {
  .sidebar, .topbar, .mobile-nav, .reading-actions, .reading-foot, .outline-card, .b5-toolbar, .b5-actions, .toast-root, .notes-panel { display: none !important; }
  .main-shell { margin: 0; }
  .page { padding: 0; max-width: none; }
  .content-card { border: 0; box-shadow: none; padding: 0; }
  .prose { font-size: 12pt; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
