@font-face {
  font-family: "MaoshanKai";
  src: url("assets/maoshan-kai.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #030507;
  --glass: rgba(10, 14, 20, .62);
  --glass-heavy: rgba(7, 10, 15, .86);
  --line: rgba(255,255,255,.14);
  --line-soft: rgba(255,255,255,.08);
  --text: #f4f7f6;
  --muted: rgba(232,241,242,.5);
  --faint: rgba(232,241,242,.26);
  --accent: #ff725e;
  --accent-2: #ffd079;
  --ice: #9ed9e8;
  --green: #65d6ab;
  --radius: 8px;
  --ease: cubic-bezier(.2,.75,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --scene-image: url("assets/cover.jpg");
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { color: inherit; }
button { font: inherit; }
a { text-decoration: none; }
button { border: 0; }
button:focus-visible,
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { color: #fff; background: var(--accent); }

.scene-background,
.scene-vignette,
.scene-grid,
.scene-canvas {
  position: fixed;
  inset: 0;
}
.scene-background {
  z-index: -5;
  overflow: hidden;
  background: #020305;
}
.scene-bg-layer {
  position: absolute;
  inset: -3%;
  opacity: 0;
  background-image: var(--scene-image);
  background-size: cover;
  background-position: center;
  filter: saturate(.62) contrast(1.1) brightness(.44);
  transform: scale(1.06);
  will-change: opacity, transform;
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.5s var(--ease-out),
    filter 1.1s var(--ease-out);
}
.scene-bg-layer.active {
  opacity: 1;
  transform: scale(1.02);
}
.scene-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2,4,7,.54);
  backdrop-filter: blur(10px);
}
.scene-vignette {
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,3,5,.9), rgba(2,3,5,.23) 48%, rgba(2,3,5,.74)),
    linear-gradient(0deg, rgba(2,3,5,.92), transparent 40%, rgba(2,3,5,.74));
}
.scene-grid {
  z-index: -3;
  opacity: .22;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 48%, black, transparent 72%);
}
.scene-canvas {
  z-index: 1;
  cursor: grab;
}
.scene-canvas.dragging { cursor: grabbing; }
.scene-canvas canvas { display: block; width: 100%; height: 100%; }
.webgl-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6,9,13,.82);
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.8;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.top-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  color: var(--accent);
  font-family: "MaoshanKai", "KaiTi", serif;
  font-size: 1.25rem;
  backdrop-filter: blur(16px);
}
.brand-copy { line-height: 1; }
.brand-copy strong { display: block; font-size: .78rem; font-weight: 700; }
.brand-copy small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: .48rem;
  font-weight: 700;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 13px;
  z-index: 35;
  width: 286px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(4,7,10,.76);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
  backdrop-filter: blur(22px) saturate(1.2);
  transition: width .36s var(--ease), border-radius .36s var(--ease);
}
.dynamic-island.open {
  width: 320px;
  border-radius: 16px;
}
.island-face {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  cursor: pointer;
}
.island-face time {
  margin-left: auto;
  color: var(--text);
  font-size: .66rem;
  font-variant-numeric: tabular-nums;
}
.island-chevron {
  color: var(--faint);
  transition: transform .3s ease;
}
.dynamic-island.open .island-chevron { transform: rotate(180deg); }
.live-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(101,214,171,.8);
}
.island-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .36s var(--ease), padding .36s ease, opacity .25s ease;
}
.dynamic-island.open .island-menu {
  max-height: 120px;
  padding: 0 10px 11px;
  opacity: 1;
}
.island-menu button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.island-menu button b {
  color: var(--green);
  font-size: .5rem;
}
.island-menu button.off b { color: var(--faint); }
.island-date {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding: 9px 3px 0;
  color: var(--muted);
  font-size: .58rem;
}
.island-date small {
  margin-left: auto;
  color: var(--faint);
  font-size: .46rem;
}

.sound-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(5,8,11,.48);
  color: var(--muted);
  font-size: .5rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.motion-glyph {
  position: relative;
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(101,214,171,.5);
  border-radius: 50%;
}
.motion-glyph i:first-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}
.motion-glyph i:last-child {
  position: absolute;
  width: 15px;
  height: 7px;
  border-top: 1px solid rgba(101,214,171,.7);
  border-radius: 50%;
  transform: rotate(-28deg);
}
body.motion-paused .motion-glyph { opacity: .34; }

.intro-copy {
  position: fixed;
  left: 34px;
  bottom: 92px;
  z-index: 4;
  max-width: 540px;
  pointer-events: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: .51rem;
  font-weight: 800;
}
.eyebrow span:first-child { color: var(--accent); }
.intro-copy h1 {
  margin: 18px 0 15px;
  font-family: "MaoshanKai", "KaiTi", serif;
  font-size: 5.7rem;
  font-weight: 400;
  line-height: .9;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
body.ready .intro-copy h1 { opacity: 1; transform: none; }
.intro-copy h1 span { display: block; }
.intro-copy h1 span:last-child { color: var(--accent-2); }
.intro-copy > p:last-child {
  max-width: 410px;
  color: rgba(239,245,245,.56);
  font-size: .74rem;
  line-height: 1.8;
}

.orbit-labels {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.orbit-label {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  background: rgba(6,9,13,.56);
  color: rgba(255,255,255,.7);
  pointer-events: auto;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, opacity .25s ease;
}
.orbit-label::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--planet-color);
  box-shadow: 0 0 12px var(--planet-color);
}
.orbit-label span {
  color: var(--faint);
  font-size: .46rem;
  font-weight: 700;
}
.orbit-label strong {
  font-size: .63rem;
  font-weight: 700;
}
.orbit-label small {
  display: none;
  color: var(--muted);
  font-size: .48rem;
}
.orbit-label:hover,
.orbit-label.active {
  border-color: var(--planet-color);
  background: rgba(7,10,14,.84);
}
.orbit-label.active small { display: inline; }
.labels-hidden .orbit-label { opacity: 0; pointer-events: none; }

.info-panel {
  position: fixed;
  top: 86px;
  right: 26px;
  bottom: 92px;
  z-index: 25;
  width: 360px;
  display: grid;
  grid-template-rows: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-heavy);
  box-shadow: 0 26px 90px rgba(0,0,0,.4);
  backdrop-filter: blur(24px) saturate(1.15);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) scale(.985);
  transform-origin: right center;
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.info-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(3,6,9,.5);
  color: var(--muted);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.panel-head {
  position: relative;
  min-height: 0;
  padding: 27px 22px 21px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 64%);
}
.panel-head::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 72px;
  height: 1px;
  background: var(--accent);
}
.panel-watermark {
  position: absolute;
  right: 18px;
  bottom: -16px;
  color: rgba(255,255,255,.045);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.6rem;
  line-height: 1;
  pointer-events: none;
}
.panel-index {
  display: block;
  margin-top: 30px;
  color: var(--faint);
  font-size: .5rem;
  font-weight: 700;
}
.panel-head h2 {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 3.65rem;
  font-weight: 400;
  line-height: 1;
}
.panel-content {
  min-height: 0;
  padding: 24px 22px 16px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.panel-description {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.8;
}
.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 24px 0;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}
.panel-stats div {
  padding: 12px 10px;
  background: rgba(255,255,255,.025);
}
.panel-stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
}
.panel-stats span {
  color: var(--faint);
  font-size: .42rem;
  font-weight: 700;
}
.panel-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .53rem;
  font-weight: 700;
}
.panel-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
}
.panel-action:hover { color: var(--text); }
.panel-item {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.item-index {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: .72rem;
}
.panel-item strong {
  display: block;
  overflow: hidden;
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-item small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--faint);
  font-size: .5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-empty {
  padding: 18px 0;
  color: var(--faint);
  font-size: .65rem;
  line-height: 1.8;
}
.item-arrow {
  color: var(--accent);
  font-size: .55rem;
}
.item-actions {
  display: flex;
  gap: 4px;
}
.item-actions button {
  padding: 4px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: transparent;
  color: var(--faint);
  font-size: .46rem;
  cursor: pointer;
}
.item-actions button:hover {
  color: var(--text);
  border-color: var(--line);
}
.item-actions .delete:hover {
  color: #ff8b7d;
  border-color: #ff8b7d;
}

.editor-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1,3,5,.74);
  backdrop-filter: blur(16px);
}
.editor-card {
  width: min(92vw, 520px);
  max-height: 88svh;
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7,10,14,.96);
  box-shadow: 0 34px 110px rgba(0,0,0,.54);
}
.editor-card h3 {
  margin: 9px 0 22px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 2rem;
  font-weight: 400;
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.editor-field.wide { grid-column: 1 / -1; }
.editor-field label {
  color: var(--faint);
  font-size: .5rem;
  font-weight: 700;
}
.editor-field input,
.editor-field select,
.editor-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  outline: none;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font: inherit;
  font-size: .7rem;
}
.editor-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.7;
}
.editor-field input:focus,
.editor-field select:focus,
.editor-field textarea:focus { border-color: var(--accent); }
.editor-check {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .65rem;
}
.editor-check input {
  width: auto;
  min-height: 0;
  accent-color: var(--accent);
}
.editor-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #ff8b7d;
  font-size: .58rem;
  line-height: 1.5;
}
.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.editor-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 700;
  cursor: pointer;
}
.editor-btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.editor-btn.danger {
  margin-right: auto;
  color: #ff8b7d;
}
.editor-btn:disabled {
  opacity: .48;
  cursor: wait;
}
.login-editor { width: min(92vw, 390px); }

.right-rail {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 26;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
}
.right-rail button {
  width: 42px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(5,8,12,.48);
  color: var(--muted);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.right-rail button:hover,
.right-rail button.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.08);
}
.right-rail button span { font-size: .86rem; line-height: 1; }
.right-rail button small { font-size: .38rem; font-weight: 700; }

.zoom-readout {
  position: fixed;
  right: 72px;
  bottom: 102px;
  z-index: 8;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--faint);
  font-size: .44rem;
  font-weight: 700;
}
.zoom-readout strong {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: .95rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 28;
  display: flex;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(7,10,14,.72);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
  backdrop-filter: blur(22px) saturate(1.2);
  transform: translateX(-50%) translateY(calc(100% + 38px));
  transition: transform .45s var(--ease), opacity .35s ease;
}
body.dock-visible .dock,
.dock:hover,
.dock:focus-within { transform: translateX(-50%) translateY(0); }
.dock button,
.dock a {
  width: 64px;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 9px;
  background: transparent;
  color: var(--faint);
  font-size: .48rem;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.dock button:hover,
.dock a:hover,
.dock button.active {
  color: var(--text);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}
.dock-icon {
  color: inherit;
  font-family: Georgia, serif;
  font-size: .8rem;
}

.gesture-hint {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: .44rem;
  font-weight: 700;
  transform: translateX(-50%);
  transition: opacity .3s ease;
}
.gesture-hint i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--faint);
}
body.has-focus .gesture-hint { opacity: .3; }

.side-readout {
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: .42rem;
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
.side-readout i {
  width: 1px;
  height: 56px;
  background: linear-gradient(transparent, var(--line), transparent);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #030507;
  clip-path: inset(0);
  transition:
    opacity .65s ease,
    visibility .65s ease,
    clip-path .95s var(--ease-out);
}
.loading-screen > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  color: var(--faint);
  font-size: .46rem;
  font-weight: 700;
}
.loading-line {
  position: relative;
  width: 154px;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
}
.loading-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  animation: loadingSweep .95s var(--ease-out) forwards;
}
@keyframes loadingSweep { to { transform: translateX(100%); } }
body.ready .loading-screen {
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

@media (max-height: 760px) and (min-width: 861px) {
  .intro-copy { bottom: 76px; }
  .intro-copy h1 { font-size: 4.5rem; }
  .info-panel { top: 76px; bottom: 76px; }
}

@media (max-width: 980px) {
  .intro-copy h1 { font-size: 4.6rem; }
  .info-panel { width: 330px; }
  .brand { min-width: 0; }
}

@media (max-width: 860px) {
  .top-shell {
    height: 66px;
    padding: 0 15px;
  }
  .brand-copy { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .sound-toggle { display: none; }
  .dynamic-island {
    top: 11px;
    width: 240px;
  }
  .dynamic-island.open { width: 290px; }
  .side-readout,
  .zoom-readout { display: none; }
  .intro-copy {
    left: 20px;
    bottom: 94px;
    max-width: 360px;
  }
  .intro-copy h1 { font-size: 3.8rem; }
  .intro-copy > p:last-child { max-width: 330px; font-size: .68rem; }
  .info-panel {
    top: auto;
    right: 10px;
    bottom: 82px;
    left: 10px;
    width: auto;
    height: min(70svh, 590px);
    grid-template-rows: 188px minmax(0,1fr);
    transform: translateY(30px);
  }
  .right-rail {
    top: auto;
    right: 10px;
    bottom: 84px;
    flex-direction: row;
    transform: none;
  }
  .right-rail button {
    width: 40px;
    min-height: 42px;
    background: rgba(5,8,12,.72);
  }
  .dock {
    bottom: 10px;
    transform: translateX(-50%) translateY(0);
  }
  .dock button,
  .dock a { width: 48px; min-height: 50px; }
  .gesture-hint { display: none; }
}

@media (max-width: 560px) {
  .dynamic-island { left: auto; right: 14px; transform: none; }
  .dynamic-island.open { width: calc(100% - 28px); }
  .island-face span:not(.live-dot):not(.island-chevron) { display: none; }
  .island-face time { margin-left: 4px; }
  .intro-copy {
    bottom: 100px;
    max-width: calc(100% - 40px);
  }
  .intro-copy h1 { font-size: 3.25rem; }
  .intro-copy > p:last-child { max-width: 280px; }
  .orbit-label {
    min-width: 0;
    padding: 6px 8px;
  }
  .orbit-label small { display: none !important; }
  .orbit-label strong { font-size: .58rem; }
  .right-rail { left: 10px; right: auto; }
  .right-rail button:nth-child(n+3) { display: none; }
  .dock {
    gap: 0;
    padding: 4px;
  }
  .dock button,
  .dock a {
    width: 44px;
    min-height: 46px;
    font-size: .43rem;
  }
  .dock-icon { font-size: .7rem; }
  .editor-card { padding: 20px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-field.wide { grid-column: auto; }
}

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