/* ==========================================================================
   词镜 WordLens · Trianon Shell
   Ouverture 开场幕 / 左侧边缘滑出吊牌栏 / 右侧 Dossier à Rubans 卷宗
   与 trianon.css 并存，变量加 shell- 前缀避免冲突。
   ========================================================================== */

:root {
  --shell-paper: #fbf9f4;
  --shell-paper-cool: #f8f9fc;
  --shell-silver: #9db0cd;
  --shell-silver-mid: #7c93ba;
  --shell-silver-light: #c9d5e6;
  --shell-ink: #26305a;
  --shell-ink-deep: #1f2a55;
  --shell-accent: #4e5e8e;
  --shell-accent-soft: #dce2f1;
  --shell-muted: #6e7e9f;
  --shell-rose: #a0798a;
  --shell-shadow-lg: 0 20px 50px -30px rgba(22, 26, 60, .35);
  --folio-ease: cubic-bezier(.2, .75, .22, 1);
}

/* ==========================================================================
   1. Ouverture 开场幕
   ========================================================================== */
.ouverture {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: linear-gradient(168deg, #b9bdd8 0%, #dfe4ee 55%, #eff1ec 100%);
  transition: opacity .65s ease, visibility .65s ease;
}
.ouverture.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ouv-card {
  text-align: center;
  padding: 44px 58px;
  background: var(--shell-paper);
  border: 1px solid var(--shell-silver-light);
  border-radius: 24px;
  box-shadow:
    var(--shell-shadow-lg),
    inset 0 0 0 6px var(--shell-paper),
    inset 0 0 0 7px rgba(157, 176, 205, .45);
  animation: ouvRise .7s var(--spring-soft) both;
}
@keyframes ouvRise {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.ouv-fleur {
  display: block;
  font-size: 24px;
  color: var(--shell-silver-mid);
  margin-bottom: 6px;
}
.ouv-fr {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--shell-silver-mid);
}
.ouv-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--shell-ink-deep);
  letter-spacing: .08em;
}
.ouv-title em {
  font-family: var(--script);
  font-style: italic;
  font-weight: 400;
  color: var(--shell-accent);
  font-size: 40px;
}
.ouv-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 12px;
}
.ouv-rule span { width: 54px; height: 1px; background: var(--shell-silver-light); }
.ouv-rule i { font-style: normal; color: var(--shell-silver-mid); font-size: 13px; }
.ouv-sub { margin: 0; font-size: 12.5px; color: var(--shell-muted); letter-spacing: .12em; }

/* ==========================================================================
   2. 左侧边缘触发区 + 吊牌栏滑出 / 固定
   ========================================================================== */
.rail-edge {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
}
.rail-edge-tab {
  display: grid;
  place-items: center;
  width: 20px;
  height: 54px;
  background: rgba(251, 249, 244, .88);
  border: 1px solid var(--shell-silver-light);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  color: var(--shell-accent);
  font-size: 12px;
  box-shadow: 2px 4px 14px -4px rgba(31, 42, 85, .2);
  transition: opacity .25s ease, transform .25s var(--spring);
}
.rail-edge-tab i { font-style: normal; }
body.rail-open .rail-edge-tab,
body.rail-pinned .rail-edge-tab {
  opacity: 0;
  transform: translateX(-14px);
}

/* 吊牌栏本体：默认缩到屏幕外 */
body .rail {
  z-index: 65;
  transform: translateX(-118px);
  opacity: 0;
  pointer-events: none;
  transition: transform .48s var(--spring), opacity .32s ease;
}
body.rail-open .rail,
body.rail-pinned .rail {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
body:not(.rail-open):not(.rail-pinned) .rail .rail-group { pointer-events: none; }
body:not(.rail-open):not(.rail-pinned) .rail .rail-tip { display: none; }

/* 挂绳：展开时自上而下拉开 */
body .rail-cord { transform: scaleY(0); transform-origin: 50% 0; }
body.rail-open .rail-cord,
body.rail-pinned .rail-cord {
  transform: scaleY(1);
  transition: transform .62s cubic-bezier(.3, .6, .25, 1);
}

/* 文字吊牌：替换掉图片版（SVG 模切牌 + 法文/中文两行） */
body .rail {
  padding: 18px 0 20px;
  justify-content: center;
}
body .rail .rail-group { gap: 5px; }

.rail .rail-it {
  width: 74px;
  height: 50px;
  animation: none;
  display: grid;
  place-items: center;
}
.rail .rail-it img { display: none; }
.rail .rail-it .rail-tip { display: none; }
.rail .rail-it::after { display: none !important; }

.rail .it .tgw,
.rail .rail-it .tgw {
  position: relative;
  width: 74px;
  height: 50px;
  display: grid;
  place-items: center;
  transform-origin: 50% 8px;
  transition: transform .34s var(--spring), filter .28s ease;
}
.rail .rail-it:hover .tgw {
  transform: perspective(170px) rotateX(9deg) rotateZ(-1.8deg) translateY(1px);
}
.rail .rail-it.on .tgw {
  transform: perspective(170px) rotateX(15deg) translateY(1px);
}

.tg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(30, 39, 72, .16));
  transition: filter .28s ease;
}
.rail .rail-it.on .tg-svg {
  filter:
    drop-shadow(0 0 5px rgba(255, 251, 240, .95))
    drop-shadow(0 0 12px rgba(220, 226, 241, .9))
    drop-shadow(0 6px 6px rgba(30, 39, 72, .26));
}
.tg-bg {
  fill: #fbf9f4;
  stroke: #bfc8e0;
  stroke-width: 1.25;
}
.rail .rail-it.on .tg-bg {
  fill: #fdfcf8;
  stroke: #4e5e8e;
  stroke-width: 1.5;
}
.tg-stitch {
  fill: none;
  stroke: #9db0cd;
  stroke-width: 1;
  stroke-dasharray: 3.2 3.4;
}
.rail .rail-it.on .tg-stitch { stroke: #4e5e8e; }
.tg-hole {
  fill: #dce2f1;
  stroke: #7c93ba;
  stroke-width: 1;
}

.tg-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  margin-top: 4px;
  pointer-events: none;
}
.tg-label i {
  font-family: var(--serif);
  font-style: italic;
  font-size: 9.5px;
  color: #7c93ba;
  letter-spacing: .04em;
}
.tg-label b {
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1px;
}
.rail .rail-it.on .tg-label i { color: #4e5e8e; }
.rail .rail-it.on .tg-label b { color: #1f2a55; }

/* ==========================================================================
   4. 顶部沙龙玻璃栏 + 左上角引擎钥匙扣
   ========================================================================== */
body .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  padding: 0 clamp(20px, 4vw, 48px) 0 clamp(24px, 4vw, 48px);
  background: rgba(244, 246, 250, .58);
  backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid rgba(191, 200, 224, .55);
}

body .brand {
  gap: 11px;
  margin-left: 196px;
  transition: margin-left .3s ease;
}
body .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--shell-accent);
  color: var(--shell-paper);
  font-family: var(--serif);
  font-size: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(220, 226, 241, .45),
    0 4px 12px -4px rgba(78, 94, 142, .55);
}
body .brand-text b { font-size: 17px; letter-spacing: .08em; color: var(--shell-ink-deep); }
body .brand-text i {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--shell-muted);
}

/* 顶栏全局快捷查词胶囊（替代与钥匙扣重复的引擎状态胶囊） */
.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: rgba(251, 249, 244, .78);
  border: 1px solid var(--shell-silver);
  color: var(--shell-ink);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 6px 16px -12px rgba(31, 42, 85, .36);
  transition: border-color .22s, background .22s, transform .22s var(--spring);
}
.search-pill:hover {
  border-color: var(--shell-accent);
  background: #fbf9f4;
  transform: translateY(-1px);
}
.search-pill .sp-ic { font-size: 14px; color: var(--shell-accent); line-height: 1; }
.search-pill .sp-fr { font-family: var(--script); font-size: 19px; color: var(--shell-ink-deep); line-height: 1; margin-right: 2px; }
.search-pill .sp-tx { font-size: 11.5px; color: var(--shell-muted); letter-spacing: .04em; }
.search-pill kbd {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(31, 42, 85, .07);
  border: 1px solid rgba(135, 150, 180, .45);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--shell-ink);
}
@media (max-width: 1080px) {
  .search-pill .sp-tx { display: none; }
}
@media (max-width: 760px) {
  .search-pill { display: none; }
}

/* 卷宗 · 精读档案列表 */
.folio-articles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.folio-art-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--shell-silver-light);
  transition: border-color .18s, background .18s;
}
.folio-art-item:hover {
  border-color: var(--shell-accent);
  background: #fff;
}
.folio-art-open {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.folio-art-open b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--shell-ink-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folio-art-open small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--shell-muted);
}
.folio-art-del {
  border: 0;
  background: transparent;
  color: var(--shell-silver-mid);
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 6px;
  cursor: pointer;
}
.folio-art-del:hover { color: #a44b52; background: rgba(164, 75, 82, .1); }

body .top-actions { gap: 6px; }
body .link-btn {
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 13px;
}
body .link-btn:hover {
  background: rgba(251, 249, 244, .82);
  border-color: var(--shell-silver-light);
  color: var(--shell-ink-deep);
}
body .link-btn svg { width: 15px; height: 15px; }

body .nav-badge { background: var(--shell-rose); }

/* 钥匙扣吊牌 */
.eg-tag {
  position: fixed;
  left: 92px;
  top: 0;
  z-index: 48;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform-origin: top center;
  transition: transform .36s var(--spring);
}
.eg-tag:hover { transform: rotate(-1.6deg) translateY(2px); }

.eg-pin {
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fdfcf8, #9db0cd 70%, #6d7fa3);
  box-shadow: 0 2px 5px rgba(31, 42, 85, .3);
}
.eg-ring {
  width: 12px;
  height: 12px;
  margin-top: -2px;
  border-radius: 50%;
  border: 1.8px solid #8e9fbe;
  background: transparent;
}
.eg-bow {
  width: 34px;
  height: 16px;
  margin-top: -5px;
  filter: drop-shadow(0 2px 4px rgba(31, 42, 85, .14));
}
.eg-beads {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -2px 0 -2px;
}
.eg-beads i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #bfc8e0);
  box-shadow: 0 1px 2px rgba(31, 42, 85, .2);
}
.eg-frame {
  padding: 4px;
  background: var(--shell-paper);
  border: 1px solid #bfc8e0;
  border-radius: 12px;
  box-shadow: 0 8px 20px -10px rgba(31, 42, 85, .34);
}
.eg-frame-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 6px 9px;
  border: 1px dashed var(--shell-silver);
  border-radius: 8px;
  background: #fdfcf8;
}
.eg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d7a64;
  box-shadow: 0 0 0 3px rgba(61, 122, 100, .18);
  flex: none;
  transition: background .25s, box-shadow .25s;
}
.eg-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}
.eg-texts em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 9.5px;
  color: var(--shell-silver-mid);
}
.eg-texts b {
  font-size: 11px;
  font-weight: 600;
  color: var(--shell-ink);
  white-space: nowrap;
}
.eg-tag.rose .eg-frame { border-color: var(--shell-rose); background: #f3e9ee; }
.eg-tag.rose .eg-frame-inner { border-color: var(--shell-rose); background: #fbf6f8; }
.eg-tag.rose .eg-dot {
  background: var(--shell-rose);
  box-shadow: 0 0 0 3px rgba(160, 121, 138, .25);
}
.eg-tag.rose .eg-texts b,
.eg-tag.rose .eg-texts em { color: #8d6f7d; }

/* 固定按钮 */
.rail-pin {
  margin-top: 8px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--shell-silver-light);
  background: rgba(251, 249, 244, .92);
  color: var(--shell-muted);
  font-family: var(--sans);
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 3px 10px -4px rgba(31, 42, 85, .2);
  transition: border-color .2s, color .2s, background .2s;
}
.rail-pin:hover { border-color: var(--shell-accent); color: var(--shell-ink); }
.rail-pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shell-silver);
  transition: background .2s;
}
body.rail-pinned .rail-pin-dot { background: var(--shell-accent); }
body.rail-pinned .rail-pin {
  border-color: var(--shell-accent);
  color: var(--shell-accent);
}
body.rail-pinned .rail-tip { display: none; }

/* ==========================================================================
   3. 右侧书签把手 + Dossier à Rubans 卷宗
   ========================================================================== */
.rp-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 62;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform .35s var(--spring), opacity .25s ease;
}
.rp-tab:hover { transform: translateY(-50%) translateX(-4px); }
body.folio-open .rp-tab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(30px);
}
.rp-paper {
  width: 44px;
  height: 134px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--shell-paper);
  border: 1px solid var(--shell-silver-light);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow:
    -4px 8px 24px -10px rgba(31, 42, 85, .32),
    inset 3px 0 0 0 rgba(220, 226, 241, .7);
  writing-mode: vertical-rl;
}
.rp-fr {
  font-family: var(--script);
  font-style: normal;
  font-size: 15px;
  color: var(--shell-accent);
  line-height: 1;
}
.rp-zh {
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--shell-ink);
}

.folio {
  position: fixed;
  right: 12px;
  top: 74px;
  bottom: 16px;
  width: 310px;
  z-index: 66;
  pointer-events: none;
  perspective: 2400px;
}
.folio-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--shell-paper);
  border: 1px solid var(--shell-silver);
  border-radius: 22px 12px 12px 22px;
  box-shadow:
    -14px 20px 54px -20px rgba(31, 42, 85, .38),
    inset 0 0 0 6px var(--shell-paper),
    inset 0 0 0 7px rgba(157, 176, 205, .45);
  transform-origin: 100% 50%;
  transform: translateX(340px) rotateY(-89.5deg);
  opacity: 0;
  visibility: hidden;
  transition: transform 1.05s var(--folio-ease), opacity .45s ease, visibility 0s linear 1.05s;
  overflow: hidden;
}
body.folio-open .folio { pointer-events: auto; }
body.folio-open .folio-panel {
  transform: translateX(0) rotateY(0deg);
  opacity: 1;
  visibility: visible;
  transition: transform 1.05s var(--folio-ease), opacity .45s ease, visibility 0s;
}

.folio-ribbon-top {
  position: absolute;
  top: 0;
  left: 28px;
  width: 18px;
  height: 30px;
  background: linear-gradient(180deg, #9db0cd, #dce2f1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  opacity: .85;
}
.folio-seal {
  position: absolute;
  top: 14px;
  right: 48px;
  width: 44px;
  height: 44px;
  pointer-events: none;
  animation: folio-drift 11s ease-in-out infinite;
  animation-play-state: paused;
  filter: drop-shadow(0 4px 8px rgba(31, 42, 85, .24));
}
body.folio-open .folio-seal { animation-play-state: running; }
.folio-seal svg { width: 44px; height: 44px; stroke: none; }
@keyframes folio-drift {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

.folio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 20px 14px;
  border-bottom: 1px dashed var(--shell-silver-light);
}
.folio-fr {
  margin: 0;
  font-family: var(--script);
  font-style: normal;
  font-size: 19px;
  color: var(--shell-accent);
  line-height: 1.1;
}
.folio-head h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--shell-ink-deep);
}

.folio-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.folio-card {
  padding: 14px 15px;
  background: var(--shell-paper-cool);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}
.folio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--shell-muted);
}
.folio-card-head b {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--shell-accent);
  letter-spacing: 0;
}
.folio-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--shell-accent-soft);
  overflow: hidden;
  margin-bottom: 12px;
}
.folio-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--shell-accent), var(--shell-silver-mid));
  border-radius: 99px;
  transition: width .5s ease;
}
.folio-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.folio-mini-stats b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
  color: var(--shell-ink-deep);
}
.folio-mini-stats span { font-size: 10.5px; color: var(--shell-muted); }

.folio-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.folio-actions button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--shell-paper);
  color: var(--shell-ink);
  font-family: var(--sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s var(--spring);
}
.folio-actions button:hover {
  border-color: var(--shell-accent);
  background: #ffffff;
  transform: translateX(3px);
}
.folio-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.folio-hist-chip {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--shell-silver-light);
  background: var(--shell-paper);
  font-family: var(--serif);
  font-size: 11.5px;
  color: var(--shell-ink);
  cursor: pointer;
}
.folio-hist-chip:hover { border-color: var(--shell-accent); background: var(--shell-accent-soft); }

.folio-foot {
  padding: 11px 18px;
  border-top: 1px dashed var(--shell-silver-light);
  font-family: var(--script);
  font-size: 12px;
  color: var(--shell-muted);
  text-align: center;
}

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1020px) {
  .rail-edge { display: none; }
  /* 小屏时 trianon.css 把 rail 变成底部横条，这里只解除收起态，不动它的 transform */
  body .rail {
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
  }
  .rail-pin { display: none; }
  .rp-tab { display: none; }
  .folio { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ouv-card, .folio-seal { animation: none; }
  body .rail, .folio-panel, .rp-tab { transition: opacity .2s ease; }
  body .rail { transform: none; }
}

@media (max-width: 1020px) {
  body .brand { margin-left: 0; }
  .eg-tag { display: none; }
  .model-pill { display: none; }

  /* 底部横条里换成纯文字标签，避免 SVG 吊牌撑破圆角 */
  body .rail .rail-it { width: 52px; height: 42px; }
  body .rail .rail-it .tgw { width: 52px; height: 42px; }
  .rail .tg-svg { display: none; }
  .rail .rail-it .tg-label { margin-top: 0; }
  .rail .rail-it .tg-label b { font-size: 10.5px; }
  .rail .rail-it .tg-label i { display: none; }
  .rail .rail-it.on .tgw { transform: none; }
  body .rail .rail-group { padding: 6px 8px; }
}

/* ============================================================
   右侧抽屉：设置 / 今日复盘 / 使用说明
   ============================================================ */
#settings-modal,
#daily-modal,
#guide-modal {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  place-items: initial;
  padding: 0;
  background: linear-gradient(270deg, rgba(30, 43, 69, .20), rgba(30, 43, 69, .05) 44%, transparent 72%);
  backdrop-filter: blur(2px);
}
#settings-modal .modal-card,
#daily-modal .modal-card,
#guide-modal .modal-card {
  flex: 0 0 auto;
  width: 470px;
  max-width: 96vw;
  height: 100%;
  max-height: 100%;
  border-radius: 22px 0 0 22px;
  box-shadow: -30px 0 70px -40px rgba(10, 20, 14, .55);
  animation: sheetIn .34s cubic-bezier(.2, .7, .3, 1) both;
}
#settings-modal .modal-body,
#daily-modal .daily-preview,
#guide-modal .modal-body {
  flex: 1;
  overflow-y: auto;
}
@keyframes sheetIn {
  from { transform: translateX(44px); opacity: .5; }
  to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 720px) {
  #settings-modal .modal-card,
  #daily-modal .modal-card,
  #guide-modal .modal-card {
    width: 100%;
    border-radius: 0;
  }
}
