/* 诺言墙 — cream plaster chrome */

:root {
  --cream: #efe9df;
  --cream-2: #f6f2ea;
  --cream-deep: #e2d8ca;
  --paper: #f7f1e8;
  --ink: #2b241c;
  --ink-soft: #6f655a;
  --ink-faint: #a2988c;
  --accent: #d97a3f;
  --terra: #d97a3f;
  --terra-deep: #c45c3e;
  --brass: #b08a4a;
  --olive: #6b7a4e;
  --line: #e2dacc;
  --glass: rgba(246, 242, 234, 0.94);
  --shadow: 0 18px 50px rgba(43, 36, 28, 0.12);
  --shadow-sm: 0 8px 24px rgba(43, 36, 28, 0.08);
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --hand: "Liu Jian Mao Cao", "Noto Serif SC", cursive;
  --sidebar: 196px;
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  user-select: none;
}
input, textarea, .panel, .modal-card { user-select: text; }

#app, #c {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#c { display: block; touch-action: none; }

body[data-cursor="grab"] #c { cursor: grab; }
body[data-cursor="grabbing"] #c { cursor: grabbing; }
body[data-cursor="pointer"] #c { cursor: pointer; }
body[data-cursor="crosshair"] #c,
body.is-placing #c { cursor: crosshair; }

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(60, 40, 24, 0.18) 100%),
    linear-gradient(to bottom, rgba(239, 233, 223, 0.12), transparent 18%, transparent 78%, rgba(40, 28, 16, 0.16));
  z-index: 2;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #ebe3d6;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader-inner { text-align: center; width: min(360px, 80vw); }
.loader-mark {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.loader-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}
.loader-hand {
  font-family: var(--hand);
  font-size: 1.55rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.loader-track {
  height: 3px;
  background: rgba(43, 36, 28, 0.1);
  border-radius: 99px;
  overflow: hidden;
}
#loader-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--brass));
  transition: width 0.25s ease;
}

/* Full-height cream sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar);
  z-index: 8;
  padding: 22px 16px 18px;
  background: var(--cream-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand { margin-bottom: 6px; }
.brand-stack {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
}
.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 10px;
  box-shadow: 0 0 0 3px rgba(217, 122, 63, 0.16);
}
.brand-sub {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.tagline {
  margin: 10px 0 4px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}
.note-count {
  margin: 0 0 16px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 999px;
  font: 500 0.88rem var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-item svg { flex: 0 0 auto; opacity: 0.72; }
.nav-item:hover { background: rgba(43, 36, 28, 0.04); color: var(--ink); }
.nav-item.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 6px 16px rgba(43, 36, 28, 0.05);
}
.nav-item.is-on svg { opacity: 1; }
.nav-item.is-on::after {
  content: "";
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 122, 63, 0.16);
}
.explore { flex: 1 1 auto; min-height: 0; }
.explore h2,
.dock-col h2 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-weight: 600;
}
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-item {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  font: 500 0.82rem var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
}
.cat-item:hover { background: rgba(43, 36, 28, 0.04); color: var(--ink); }
.cat-item.is-on {
  background: rgba(217, 122, 63, 0.1);
  color: var(--terra-deep);
}
.cat-ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: currentColor;
  opacity: 0.8;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip, .mini-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  border-radius: 99px;
  padding: 5px 10px;
  font: 500 0.78rem var(--sans);
  cursor: pointer;
}
.chip:hover { border-color: rgba(217, 122, 63, 0.4); color: var(--ink); }
.chip.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.mini-chip { cursor: default; font-size: 0.72rem; }

.sidebar-quote {
  margin: 18px 0 0;
  padding: 0;
  position: relative;
  color: var(--ink-soft);
}
.sidebar-quote .qmark {
  display: block;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 0.6;
  color: rgba(217, 122, 63, 0.35);
  font-weight: 600;
}
.sidebar-quote p {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 0.86rem;
  line-height: 1.55;
}

.menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 12;
}

/* Topbar over canvas */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar);
  right: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 28px 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}
.topbar-copy p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  width: 300px;
  background: rgba(255, 251, 245, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(43, 36, 28, 0.06);
  color: var(--ink-soft);
}
.search-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  font: 500 0.88rem var(--sans);
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.search-wrap kbd {
  font: 600 0.68rem var(--sans);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(43, 36, 28, 0.06);
  color: var(--ink-faint);
}
.icon-round, .avatar {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 251, 245, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(43, 36, 28, 0.06);
  cursor: pointer;
  color: var(--ink);
  position: relative;
  display: grid;
  place-items: center;
}
.icon-round .ping {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217, 122, 63, 0.55);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(217, 122, 63, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(217, 122, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 122, 63, 0); }
}
.avatar {
  font: 600 0.82rem var(--serif);
  background:
    radial-gradient(circle at 35% 30%, #f3c2a8, var(--accent) 60%, var(--terra-deep));
  color: #fff8f4;
  border-color: transparent;
}

/* Wall FAB + handwritten hint */
.add-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 6;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.25s ease;
}
.add-fab {
  pointer-events: auto;
  appearance: none;
  border: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffe3c8 0%, #f0b07a 42%, #e48a4a 78%);
  color: #fff8f2;
  font: 500 2rem/1 var(--serif);
  cursor: pointer;
  box-shadow:
    0 0 0 10px rgba(232, 160, 110, 0.16),
    0 12px 28px rgba(196, 92, 62, 0.28);
  text-shadow: 0 1px 0 rgba(120, 50, 20, 0.15);
}
.add-fab:hover { transform: scale(1.04); }
.add-cta {
  pointer-events: auto;
  appearance: none;
  border: 0;
  background: transparent;
  margin: 6px 0 0;
  padding: 0;
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 251, 245, 0.7);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.add-arrow {
  position: absolute;
  left: -58px;
  top: -18px;
  color: var(--ink-soft);
  transform: rotate(-12deg);
  pointer-events: none;
}

/* Detail panel */
.panel {
  position: fixed;
  top: 88px;
  right: 18px;
  width: 300px;
  max-height: calc(100vh - 230px);
  overflow: auto;
  z-index: 9;
  padding: 28px 22px 22px;
  border-radius: 20px;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}
.panel[hidden] { display: none; }
.icon-btn {
  appearance: none;
  border: 0;
  background: rgba(43, 36, 28, 0.06);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}
.menu-btn span {
  display: block;
  width: 14px;
  height: 1.6px;
  background: var(--ink);
  margin: 3px auto;
  border-radius: 2px;
}
#panel-close { position: absolute; top: 12px; right: 12px; }
.panel-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}
.panel-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.panel-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  line-height: 1.35;
  flex: 1;
}
.panel-heart {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 1.15rem;
  cursor: default;
  padding: 2px 0 0;
}
.panel-body-text {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}
.panel-meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.panel-author {
  font-family: var(--serif);
  color: var(--ink-soft);
}
.panel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.panel-stats {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.panel-stats strong { color: var(--ink); display: block; font-size: 0.95rem; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-save {
  background: var(--ink);
  color: var(--cream);
  margin-left: auto;
}
.btn-save:hover { background: #1c1813; }

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 0.86rem var(--sans);
  cursor: pointer;
}
.btn-terra {
  background: var(--accent);
  color: #fff8f4;
  box-shadow: 0 8px 18px rgba(217, 122, 63, 0.28);
}
.btn-terra:hover { background: var(--terra-deep); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; }
.text-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--accent);
  font: 600 0.78rem var(--sans);
  cursor: pointer;
}

/* Unified cream dock */
.dock {
  position: fixed;
  left: 216px;
  right: 26px;
  bottom: 20px;
  z-index: 8;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  border: 1px solid #fff;
  border-radius: 22px;
  padding: 16px 22px;
  box-shadow: 0 16px 40px rgba(43, 36, 28, 0.08);
}
.dock-col.recent {
  flex: 1.4;
  min-width: 0;
}
.dock-col.start {
  flex: 1;
  min-width: 220px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin-left: 18px;
}
.dock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.recent-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 36, 28, 0.18) transparent;
}
.recent-list::-webkit-scrollbar { height: 6px; }
.recent-list::-webkit-scrollbar-thumb {
  background: rgba(43, 36, 28, 0.16);
  border-radius: 99px;
}

.mini {
  appearance: none;
  border: 0;
  flex: 0 0 118px;
  width: 118px;
  min-height: 92px;
  border-radius: 8px;
  padding: 10px 10px 8px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 0 0 1px rgba(43, 36, 28, 0.06),
    0 2px 8px rgba(43, 36, 28, 0.07);
  background-image:
    radial-gradient(rgba(43, 36, 28, 0.035) 0.6px, transparent 0.7px);
  background-size: 5px 5px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.mini:hover {
  transform: translateY(-4px) rotate(-1.6deg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 10px 18px rgba(43, 36, 28, 0.12);
}
.mini-text {
  margin: 0 0 10px;
  font-family: var(--hand);
  font-size: 15.5px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.5em;
}
.mini-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-faint);
}
.mini-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(43, 36, 28, 0.12);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 600;
  flex: 0 0 auto;
}

.start-row {
  display: flex;
  gap: 10px;
}
.start-card {
  flex: 1;
  appearance: none;
  border: 1.5px dashed rgba(43, 36, 28, 0.22);
  border-radius: 14px;
  background: rgba(255, 251, 245, 0.35);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  color: var(--ink);
  min-height: 92px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.start-card:hover {
  border-color: rgba(217, 122, 63, 0.45);
  background: rgba(255, 251, 245, 0.7);
  transform: translateY(-2px);
}
.start-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font: 500 1.25rem/1 var(--serif);
  color: var(--accent);
}
.start-icon.pencil { color: var(--ink-soft); }
.start-label {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
  font-weight: 500;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(43, 36, 28, 0.28);
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(480px, 100%);
  border-radius: 24px;
  padding: 28px 26px 22px;
  background: var(--cream-2);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}
.modal-kicker {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--accent);
}
.modal-card h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 4px 0 18px;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 6px;
  font-weight: 600;
}
.field em { font-style: normal; letter-spacing: 0; font-weight: 500; }
.field textarea,
.field input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 10px 12px;
  font: 500 0.95rem var(--sans);
  color: var(--ink);
  resize: vertical;
}
.field textarea:focus,
.field input:focus { outline: 2px solid rgba(217, 122, 63, 0.35); border-color: transparent; }
.field small { display: block; text-align: right; color: var(--ink-faint); font-size: 0.75rem; margin-top: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.swatch {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--ink-faint);
  font: 500 0.68rem var(--sans);
}
.swatch i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(43, 36, 28, 0.12);
  background: var(--sw);
  box-shadow: inset 0 -4px 8px rgba(43, 36, 28, 0.08);
}
.swatch.is-on { color: var(--ink); }
.swatch.is-on i { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(43, 36, 28, 0.12); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.template-list { display: grid; gap: 8px; max-height: 46vh; overflow: auto; }
.template-card {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}
.template-card:hover { border-color: rgba(217, 122, 63, 0.4); }
.template-cat {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}
.template-card strong { display: block; font-family: var(--serif); margin-bottom: 4px; }
.template-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.place-hud {
  position: fixed;
  left: 50%;
  bottom: 168px;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}
.place-hud[hidden] { display: none; }

.toast {
  position: fixed;
  left: 50%;
  top: 88px;
  transform: translate(-50%, -12px);
  z-index: 24;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 0.88rem;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 959px) {
  .sidebar {
    display: none;
    top: 0;
    bottom: 0;
    z-index: 11;
    box-shadow: var(--shadow);
  }
  .sidebar.is-open { display: flex; }
  .menu-btn { display: grid; place-items: center; }
  .topbar {
    left: 0;
    padding: 16px 16px 0 56px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar-copy h1 { font-size: 1.25rem; }
  .topbar-copy p { display: none; }
  .search-wrap { width: min(220px, 46vw); }
  .dock {
    left: 12px;
    right: 12px;
  }
  .dock-col.start { display: none; }
  .panel {
    top: auto;
    bottom: 150px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 42vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
