:root {
  color-scheme: dark;
  --bg: #0a1222;
  --surface: rgba(30, 38, 56, 0.44);
  --surface-strong: rgba(10, 18, 33, 0.88);
  --text: rgba(241, 246, 255, 0.91);
  --text-muted: rgba(219, 229, 246, 0.66);
  --text-faint: rgba(207, 220, 242, 0.45);
  --line: rgba(210, 225, 252, 0.26);
  --accent: #82baff;
  --focus: #b8d7ff;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #eef5ff;
  color: #0a1222;
  transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.scene,
.scene-scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene {
  z-index: 0;
  background: url("assets/background.jpg") center center / cover no-repeat;
  filter: brightness(.94) saturate(.94) contrast(.98);
}

.scene-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 13, 31, .40) 0%, rgba(5, 13, 28, .08) 46%, rgba(5, 13, 28, .04) 100%),
    linear-gradient(0deg, rgba(3, 9, 21, .20), rgba(5, 12, 27, .04) 58%, rgba(7, 15, 32, .08));
  transition: background 260ms var(--ease), opacity 260ms var(--ease);
}

.site-signature {
  position: fixed;
  z-index: 9;
  right: clamp(18px, 2.3vw, 36px);
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(220, 232, 250, .34);
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
}

.site-signature__name {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .18em;
  white-space: nowrap;
}

.site-signature img {
  display: block;
  width: clamp(72px, 6.6vw, 106px);
  height: auto;
  filter: invert(1) brightness(1.15) saturate(.55);
  opacity: .32;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 190px;
  pointer-events: none;
}

.clock {
  position: absolute;
  top: clamp(28px, 4.2vh, 46px);
  left: clamp(28px, 3vw, 50px);
  pointer-events: auto;
}

.clock__time,
.clock__date {
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .24);
}

.clock__time {
  display: block;
  font-size: clamp(2.2rem, 2.7vw, 2.8rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.025em;
}

.clock__date {
  margin-top: 11px;
  color: var(--text);
  font-size: clamp(.95rem, 1.18vw, 1.16rem);
  font-weight: 350;
  letter-spacing: .015em;
}

.search {
  position: absolute;
  top: clamp(96px, 11.2vh, 112px);
  left: 50%;
  width: clamp(31.5rem, 30vw, 34rem);
  max-width: calc(100vw - 48px);
  transform: translateX(-50%);
  pointer-events: auto;
}

.search__field {
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 250, .24);
  border-radius: 999px;
  background: rgba(24, 31, 47, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  -webkit-backdrop-filter: blur(14px) saturate(85%);
  backdrop-filter: blur(14px) saturate(85%);
  transition: border-color 180ms ease, background 180ms ease;
}

.search:focus-within .search__field {
  border-color: rgba(203, 224, 255, .48);
  background: rgba(25, 33, 50, .48);
}

.search__engine {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.search__engine svg {
  width: 19px;
  fill: none;
  stroke: rgba(232, 240, 255, .70);
  stroke-width: 1.45;
  stroke-linecap: round;
}

.search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 20px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: .94rem;
  font-weight: 400;
}

.search input::placeholder { color: rgba(228, 236, 250, .62); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }

.engine-menu {
  position: absolute;
  top: 58px;
  left: 10px;
  width: 138px;
  padding: 6px;
  border: 1px solid rgba(220, 232, 252, .18);
  border-radius: 14px;
  background: rgba(12, 19, 34, .88);
  box-shadow: 0 16px 42px rgba(1, 7, 18, .30);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.engine-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}

.engine-menu button:hover,
.engine-menu button:focus-visible,
.engine-menu button[aria-checked="true"] {
  background: rgba(138, 184, 242, .12);
  color: var(--text);
  outline: none;
}

.engine-menu__settings {
  margin-top: 5px;
  border-top: 1px solid rgba(220, 232, 252, .11) !important;
  border-radius: 0 0 9px 9px !important;
  color: var(--text-faint) !important;
}

.search-assist {
  position: absolute;
  top: 58px;
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 252, .16);
  border-radius: 16px;
  background: rgba(10, 17, 31, .82);
  box-shadow: 0 18px 50px rgba(1, 7, 18, .28);
  -webkit-backdrop-filter: blur(18px) saturate(90%);
  backdrop-filter: blur(18px) saturate(90%);
}

.search-assist__list { padding: 6px; }
.search-assist__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}
.search-assist__item:hover,
.search-assist__item:focus-visible {
  background: rgba(133, 181, 243, .1);
  color: var(--text);
  outline: none;
}
.search-assist__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(225, 236, 255, .07);
  color: rgba(225, 236, 255, .7);
  font-size: .72rem;
}
.search-assist__item small { color: var(--text-faint); }
.search-assist__clear {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-top: 1px solid rgba(220, 232, 252, .1);
  background: transparent;
  color: var(--text-faint);
  font-size: .75rem;
  cursor: pointer;
}

.views,
.view {
  width: 100%;
  min-height: 100dvh;
}

.views {
  position: relative;
  z-index: 2;
}

.view {
  position: fixed;
  inset: 0;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.view.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.view--quote {
  display: block;
}

.quote-card {
  position: relative;
  width: min(24rem, 31vw);
  margin: 39.5vh 0 0 clamp(44px, 11.3vw, 218px);
  padding-left: 2px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .32);
}

.quote-card::before {
  position: absolute;
  top: 18px;
  left: -32px;
  color: rgba(210, 227, 255, .11);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  line-height: 1;
  content: "“";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 21px;
  color: rgba(231, 240, 255, .68);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
}

.eyebrow::after {
  display: block;
  width: 21px;
  height: 1px;
  margin-top: 10px;
  background: var(--accent);
  content: "";
  opacity: .8;
}

.quote-text {
  margin: 0;
  color: rgba(241, 246, 255, .9);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(1.34rem, 1.55vw, 1.72rem);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: .055em;
  text-wrap: balance;
}

.quote-credit {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 24px 0 0;
  color: rgba(225, 235, 250, .62);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: .78rem;
  letter-spacing: .08em;
}

.quote-credit::before {
  width: 26px;
  height: 1px;
  background: rgba(191, 215, 255, .56);
  content: "";
}

.theme-label {
  display: none;
}

.view--music {
  display: grid;
  place-items: center;
  padding: 180px 8vw 116px;
}

.music-panel {
  display: grid;
  grid-template-columns: minmax(240px, 390px) minmax(300px, 440px);
  gap: clamp(46px, 7vw, 112px);
  align-items: center;
  width: min(960px, 88vw);
}

.music-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(225, 237, 255, .2);
  border-radius: 22px;
  background: rgba(7, 13, 25, .7);
  box-shadow: 0 28px 80px rgba(2, 7, 16, .42), 0 0 0 1px rgba(255, 255, 255, .025) inset;
}

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

.music-cover__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.13), transparent 27%, transparent 70%, rgba(120,170,255,.09));
  box-shadow: inset 0 0 60px rgba(5, 11, 23, .18);
  pointer-events: none;
}

.music-copy { min-width: 0; }
.music-title {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(2rem, 3.6vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
}
.music-artist { margin: 12px 0 0; color: var(--text-muted); }
.music-note { margin: 30px 0; color: var(--text-muted); line-height: 1.8; }

.music-player {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 13px 16px;
  border: 1px solid rgba(220, 234, 255, .14);
  border-radius: 16px;
  background: rgba(12, 20, 35, .52);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px) saturate(120%);
}

.music-player__toggle {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(222, 236, 255, .24);
  border-radius: 50%;
  background: rgba(192, 215, 255, .13);
  color: rgba(241, 247, 255, .92);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.music-player__toggle:hover { background: rgba(192, 215, 255, .2); border-color: rgba(222, 236, 255, .38); }
.music-player__toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.music-player__toggle .music-player__play { fill: currentColor; stroke: none; transform: translateX(1px); }
.music-player__pause { display: none; }
.music-player__toggle.is-playing .music-player__play { display: none; }
.music-player__toggle.is-playing .music-player__pause { display: block; }

.music-player__timeline { min-width: 0; }
.music-player__timeline input {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: #9fc4ff;
  cursor: pointer;
}
.music-player__times {
  display: flex;
  justify-content: space-between;
  margin-top: -1px;
  color: rgba(220, 231, 248, .5);
  font-size: .66rem;
  font-variant-numeric: tabular-nums;
}
.music-player__source {
  color: rgba(221, 232, 249, .56);
  font-size: .7rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.music-unavailable {
  display: grid;
  grid-column: 1 / -1;
  min-height: 48px;
  margin: 0;
  place-items: center;
  color: var(--text-faint);
  font-size: .86rem;
}

.view--article {
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(6, 12, 23, .94);
  scroll-behavior: smooth;
}

.reading-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, .05);
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.reader {
  width: min(720px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(96px, 12vh, 140px) 0 180px;
}

.reader__header { margin-bottom: 58px; }
.reader__title {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: .04em;
}
.reader__byline { margin: 18px 0 0; color: var(--text-muted); }
.reader__body {
  color: rgba(238, 243, 251, .88);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  line-height: 2.08;
  letter-spacing: .035em;
}
.reader__body p { margin: 0 0 1.55em; text-indent: 2em; }
.reader__footer {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid rgba(222, 233, 250, .14);
  color: var(--text-faint);
  font-size: .82rem;
  line-height: 1.7;
}
.reader__footer a { color: rgba(180, 211, 252, .74); text-underline-offset: 4px; }

.quiet-nav {
  position: fixed;
  z-index: 40;
  right: 50%;
  bottom: max(80px, calc(env(safe-area-inset-bottom) + 68px));
  width: clamp(26rem, 26vw, 30rem);
  max-width: calc(100vw - 48px);
  height: 58px;
  transform: translateX(50%);
}

.quiet-nav__line {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--line);
}

.quiet-nav__item {
  position: absolute;
  bottom: 0;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .55;
  transition: opacity 170ms ease, color 170ms ease;
}
.quiet-nav__item:nth-of-type(1) { left: 15%; transform: translateX(-50%); }
.quiet-nav__item:nth-of-type(2) { left: 50%; transform: translateX(-50%); }
.quiet-nav__item:nth-of-type(3) { left: 85%; transform: translateX(-50%); }
.quiet-nav__item:hover,
.quiet-nav__item:focus-visible,
.quiet-nav__item.is-active { opacity: .92; color: #dfeaff; }
.quiet-nav__item:focus-visible { outline: 2px solid var(--focus); outline-offset: -7px; border-radius: 50%; }
.quiet-nav__item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quiet-nav__item:first-of-type svg { fill: currentColor; stroke: none; }
.quiet-nav__item.is-active::after {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.shortcut-dock {
  position: fixed;
  z-index: 42;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px));
  display: flex;
  min-height: 50px;
  padding: 5px 10px;
  gap: 13px;
  align-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(211, 228, 255, .24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(41, 55, 82, .42), rgba(10, 18, 34, .38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 10px 32px rgba(2, 8, 22, .26),
    0 0 18px rgba(91, 144, 226, .08);
  -webkit-backdrop-filter: blur(18px) saturate(92%);
  backdrop-filter: blur(18px) saturate(92%);
  transition: opacity 180ms ease, background 180ms ease;
}
.shortcut-dock:hover { background: linear-gradient(180deg, rgba(45, 61, 91, .5), rgba(10, 18, 34, .46)); }
.shortcut-dock__link,
.shortcut-dock__more {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(212, 228, 255, .08);
  border-radius: 50%;
  background: rgba(175, 204, 250, .045);
  color: rgba(229, 238, 253, .68);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.shortcut-dock > *:not(:last-child)::after {
  position: absolute;
  top: 9px;
  right: -7px;
  width: 1px;
  height: 22px;
  background: rgba(220, 233, 255, .1);
  content: "";
}
.shortcut-dock__link:hover,
.shortcut-dock__more:hover,
.shortcut-dock__link:focus-visible,
.shortcut-dock__more:focus-visible {
  background: rgba(156, 198, 255, .15);
  color: rgba(244, 248, 255, .92);
  outline: 1px solid rgba(184, 215, 255, .45);
  box-shadow: 0 0 18px rgba(116, 175, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.shortcut-dock__more svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.shortcut-icon {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
}
.shortcut-icon img {
  position: absolute;
  inset: 50% auto auto 50%;
  display: block;
  width: 62%;
  height: 62%;
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.shortcut-icon.has-favicon img { opacity: 1; }
.shortcut-icon.has-favicon .shortcut-icon__fallback { opacity: 0; }
.shortcut-icon__fallback { line-height: 1; transition: opacity 120ms ease; }
.shortcut-dock__icon { width: 32px; height: 32px; color: rgba(235, 243, 255, .75); font-size: .76rem; }

.utility-panel {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}
.utility-panel__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 8, 18, .52);
  -webkit-backdrop-filter: blur(16px) saturate(78%);
  backdrop-filter: blur(16px) saturate(78%);
}
.utility-panel__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(780px, calc(100vw - 48px));
  max-height: min(76vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(222, 234, 253, .18);
  border-radius: 22px;
  background: rgba(10, 17, 30, .91);
  box-shadow: 0 28px 90px rgba(0, 4, 13, .48);
}
.utility-panel[data-active-tab="shortcuts"] .utility-panel__dialog {
  width: min(1040px, calc(100vw - 80px));
  max-height: 80vh;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-self: start;
  margin-top: clamp(32px, 6vh, 64px);
}
.utility-panel__dialog:focus { outline: none; }
.utility-panel__header {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px 16px;
}
.utility-panel[data-active-tab="shortcuts"] .utility-panel__header { display: none; }
.utility-panel__header h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.55rem;
  font-weight: 400;
}
.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.icon-button:hover,
.icon-button:focus-visible { background: rgba(219, 234, 255, .09); outline: 1px solid rgba(184, 215, 255, .42); }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

.utility-section {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 26px 28px;
}
.utility-panel[data-active-tab="shortcuts"] .utility-section {
  overflow: visible;
  padding: 8px;
}
.utility-clock {
  display: block;
  margin: 0 0 clamp(54px, 7vh, 78px);
  color: rgba(246, 249, 255, .94);
  font-size: clamp(3.7rem, 5.8vw, 5.2rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .25);
}
.text-button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}
.text-button:hover { background: rgba(219, 234, 255, .08); color: var(--text); }
.soft-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(190, 217, 252, .18);
  border-radius: 10px;
  background: rgba(130, 184, 255, .1);
  color: rgba(238, 245, 255, .86);
  cursor: pointer;
}
.soft-button:hover,
.soft-button:focus-visible { background: rgba(130, 184, 255, .17); outline: 1px solid rgba(184, 215, 255, .35); }

.inline-editor {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid rgba(220, 233, 253, .12);
  border-radius: 15px;
  background: rgba(224, 235, 253, .035);
}
.inline-editor label { color: var(--text-faint); font-size: .72rem; }
.inline-editor input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid rgba(220, 233, 253, .15);
  border-radius: 9px;
  outline: 0;
  background: rgba(4, 10, 20, .4);
  color: var(--text);
}
.inline-editor input:focus { border-color: rgba(184, 215, 255, .5); }
.check-row { display: flex; gap: 8px; align-items: center; min-height: 42px; align-self: end; }
.inline-editor__actions { display: flex; grid-column: 1 / -1; gap: 8px; justify-content: flex-end; }
.form-error { grid-column: 1 / -1; min-height: 1em; margin: 0; color: #ffb5ba; font-size: .75rem; }

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 18px 14px;
}
.shortcut-card {
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 0;
  border: 0;
  background: transparent;
}
.shortcut-card__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.shortcut-card__icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(225, 235, 250, .08);
  border-radius: 17px;
  background: rgba(185, 194, 207, .48);
  color: rgba(235, 244, 255, .82);
  box-shadow: 0 8px 24px rgba(1, 7, 19, .14), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-size: 1rem;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.shortcut-card__main:hover .shortcut-card__icon,
.shortcut-card__main:focus-visible .shortcut-card__icon {
  background: rgba(203, 211, 223, .6);
  box-shadow: 0 10px 30px rgba(1, 7, 19, .2), 0 0 0 1px rgba(211, 228, 255, .14);
}
.shortcut-card__name {
  max-width: 100%;
  overflow: hidden;
  color: rgba(245, 248, 255, .9);
  font-size: .76rem;
  font-weight: 500;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  white-space: nowrap;
}
.shortcut-card__menu-button {
  position: absolute;
  z-index: 3;
  top: -5px;
  right: 7px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 14, 26, .78);
  color: rgba(236, 243, 255, .78);
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease;
}
.shortcut-card:hover .shortcut-card__menu-button,
.shortcut-card:focus-within .shortcut-card__menu-button,
.shortcut-card.is-menu-open .shortcut-card__menu-button { opacity: 1; }
.shortcut-card__menu {
  position: absolute;
  z-index: 5;
  top: 28px;
  right: 5px;
  width: 112px;
  padding: 5px;
  border: 1px solid rgba(218, 232, 254, .14);
  border-radius: 10px;
  background: rgba(8, 15, 28, .94);
  box-shadow: 0 14px 34px rgba(0, 4, 14, .32);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.shortcut-card__menu button,
.settings-list button {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-faint);
  font-size: .7rem;
  text-align: left;
  cursor: pointer;
}
.shortcut-card__menu button:hover,
.settings-list button:hover { background: rgba(220, 233, 253, .08); color: var(--text); }

.shortcut-card--utility {
  display: flex;
  padding: 0;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  border: 0;
  background: transparent;
  color: rgba(245, 248, 255, .82);
  cursor: pointer;
}
.shortcut-card__utility-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(225, 235, 250, .08);
  border-radius: 17px;
  background: rgba(185, 194, 207, .28);
  transition: background 160ms ease;
}
.shortcut-card--utility:hover .shortcut-card__utility-icon,
.shortcut-card--utility:focus-visible .shortcut-card__utility-icon { background: rgba(203, 211, 223, .43); }
.shortcut-card--utility svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shortcut-card--utility > span:last-child { max-width: 100%; overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }

.archive-list { display: grid; gap: 8px; }
.archive-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 233, 253, .09);
  border-radius: 12px;
  background: rgba(221, 234, 255, .025);
}
.archive-item time { color: var(--text-faint); font-size: .72rem; }
.archive-item h3 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 1rem; font-weight: 400; }
.archive-item p { margin: 4px 0 0; color: var(--text-faint); font-size: .72rem; }

.settings-copy h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.settings-copy p { margin: 7px 0 16px; color: var(--text-faint); font-size: .78rem; }
.settings-copy code { color: rgba(199, 222, 252, .76); }
.inline-editor--engine { grid-template-columns: .8fr 2fr; }
.settings-list { display: grid; gap: 7px; }
.settings-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(221, 234, 255, .03);
  color: var(--text-muted);
  font-size: .8rem;
}
.settings-row span:nth-child(2) { overflow: hidden; color: var(--text-faint); text-overflow: ellipsis; white-space: nowrap; }
.toast {
  position: fixed;
  z-index: 90;
  right: 50%;
  bottom: 28px;
  transform: translateX(50%);
  padding: 10px 15px;
  border: 1px solid rgba(220, 233, 253, .16);
  border-radius: 999px;
  background: rgba(8, 15, 28, .9);
  color: var(--text-muted);
  font-size: .78rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
}

body[data-view="article"] .topbar { opacity: 0; pointer-events: none; }
body[data-view="article"] .scene-scrim { background: rgba(5, 10, 20, .82); }
body[data-view="music"] .scene-scrim { background: rgba(4, 10, 21, .42); }
body[data-view="article"] .shortcut-dock { opacity: 0; pointer-events: none; }
body[data-view="article"] .site-signature { opacity: .48; }

@media (max-width: 820px) {
  .scene { background-position: 64% center; background-size: cover; }
  .scene-scrim {
    background: linear-gradient(90deg, rgba(5, 11, 24, .62), rgba(5, 11, 24, .10) 75%);
  }
  .clock { top: max(24px, env(safe-area-inset-top)); }
  .search { top: max(112px, calc(env(safe-area-inset-top) + 88px)); }
  .quote-card {
    width: min(28rem, calc(100vw - 48px));
    margin: 14vh 24px 0;
  }
  .quote-card::before { left: -6px; top: -32px; font-size: 4.2rem; }
  .music-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: min(440px, calc(100vw - 48px));
  }
  .music-cover { width: min(52vw, 250px); margin: 0 auto; }
  .music-copy { text-align: center; }
  .music-copy .eyebrow::after { margin-right: auto; margin-left: auto; }
  .music-note { margin: 18px 0; }
  .shortcut-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .utility-panel__dialog { max-height: calc(100dvh - 40px); }
}

@media (max-width: 520px) {
  .clock__time { font-size: 2rem; }
  .clock__date { margin-top: 8px; font-size: .8rem; }
  .search { width: calc(100vw - 32px); }
  .search__field { height: 46px; }
  .quote-card { margin-top: 18vh; }
  .quote-text { font-size: 1.28rem; line-height: 1.78; letter-spacing: .04em; }
  .eyebrow { margin-bottom: 18px; font-size: .78rem; }
  .quote-credit { font-size: .82rem; }
  .view--music { padding: 180px 24px 112px; overflow-y: auto; }
  .music-cover { width: 190px; }
  .music-title { font-size: 2rem; }
  .music-player { grid-template-columns: 44px minmax(0, 1fr); padding: 11px 12px; }
  .music-player__toggle { width: 42px; height: 42px; }
  .music-player__source { display: none; }
  .site-signature {
    right: 14px;
    bottom: max(126px, calc(env(safe-area-inset-bottom) + 118px));
    gap: 6px;
    opacity: .78;
  }
  .site-signature__name { font-size: .54rem; }
  .site-signature img { width: 68px; }
  .reader { width: calc(100vw - 40px); padding-top: 76px; }
  .reader__header { margin-bottom: 38px; }
  .reader__title { font-size: 2.6rem; }
  .reader__body { font-size: 1.02rem; line-height: 1.95; }
  .quiet-nav { bottom: max(70px, calc(env(safe-area-inset-bottom) + 60px)); width: calc(100vw - 72px); }
  .quiet-nav__item { bottom: -17px; }
  .quiet-nav__item:nth-of-type(1) { left: 12%; }
  .quiet-nav__item:nth-of-type(3) { left: 88%; }
  .quiet-nav__item.is-active::after { bottom: 17px; }
  .shortcut-dock { bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); min-height: 46px; }
  .shortcut-dock__link,
  .shortcut-dock__more { width: 36px; height: 36px; }
  .utility-panel { padding: 10px; }
  .utility-panel__dialog { width: 100%; max-height: calc(100dvh - 20px); border-radius: 18px; }
  .utility-panel__header { padding: 18px 18px 12px; }
  .utility-section { padding: 16px 16px 22px; }
  .shortcut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .shortcut-card { min-height: 106px; }
  .utility-panel[data-active-tab="shortcuts"] .utility-panel__dialog { margin-top: 12px; }
  .utility-clock { margin-bottom: 30px; font-size: 3.1rem; }
  .inline-editor,
  .inline-editor--engine { grid-template-columns: 1fr; }
  .inline-editor__actions,
  .form-error { grid-column: 1; }
  .archive-item { grid-template-columns: 72px minmax(0, 1fr); }
  .archive-item .soft-button { grid-column: 1 / -1; }
  .settings-row { grid-template-columns: 90px minmax(0, 1fr) auto; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
