:root {
  --bg: #f6f4ed;
  --paper: #fffef9;
  --ink: #263c35;
  --muted: #83867a;
  --line: #e4e5d9;
  --green: #244d41;
  --gold: #b58e4f;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--green);
}
svg {
  display: block;
}
svg.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
p {
  line-height: 1.9;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
  padding: 12px;
  color: var(--ink);
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #719381;
  box-shadow: 0 0 0 3px #244d410c;
}
textarea {
  resize: vertical;
  line-height: 1.8;
  width: 100%;
}
input,
select {
  max-width: 100%;
}
.shell {
  min-height: 100vh;
  padding-left: 222px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  padding: 35px 20px 22px;
  background: #193d37;
  color: #d9e3d7;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 30px;
  color: #ede4cb;
}
.brand-mark {
  width: 32px;
  height: 38px;
}
.brand-name {
  font: 27px var(--serif);
  letter-spacing: 7px;
}
.brand-en {
  font-size: 9px;
  letter-spacing: 4px;
  margin-top: 6px;
  color: #a2b5a6;
}
.new-adventure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #aeb79950;
  border-radius: 6px;
  color: #e7dfc7;
  width: 100%;
  padding: 13px;
  margin: 5px 0 30px;
  font-size: 13px;
}
.new-adventure:hover {
  background: #ffffff0d;
}
.nav-label {
  color: #87a396;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 0 15px;
  margin-bottom: 12px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 6px;
  border-radius: 6px;
  text-align: left;
  color: #a9c0b2;
  font-size: 13px;
}
.nav-btn:hover {
  background: #ffffff07;
  color: white;
}
.nav-btn.active {
  background: #dee9d915;
  color: #f0e8d2;
}
.nav-btn.active:after {
  content: "";
  width: 5px;
  height: 5px;
  background: #c4a66d;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.saved-indicator {
  font-size: 11px;
  color: #8fa99c;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 17px 15px 0;
  border-top: 1px solid #a4bcab24;
  margin-top: 16px;
}
.dot {
  height: 6px;
  width: 6px;
  background: #91b69b;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.crumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  background: #edf0e5;
  border: 1px solid #dce2d2;
  color: #60745c;
  padding: 6px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge.gold {
  color: #9a773d;
  background: #f7efdc;
  border-color: #ebe0c1;
}
.icon-btn {
  padding: 8px;
  color: #778271;
  border-radius: 6px;
}
.icon-btn:hover {
  background: #e9ecdf;
}
.mobile-menu {
  display: none;
}
.workspace {
  max-width: 1480px;
  margin: auto;
  padding: 36px 38px 26px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 11px;
  font-weight: 600;
}
.page-title h1 {
  font: 30px/1.4 var(--serif);
  letter-spacing: 2px;
  margin: 0 0 7px;
}
.page-title p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #74806d;
  white-space: nowrap;
  padding: 8px 0;
}
.text-btn:hover {
  color: var(--green);
}
.explore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 25px;
  align-items: start;
}
.story-column {
  min-width: 0;
}
.scene-card {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: #688b7c;
  height: 223px;
  margin-bottom: 22px;
}
.scene-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-card:after {
  content: "";
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(transparent, #0c2c25b8);
  pointer-events: none;
}
.scene-caption {
  position: absolute;
  bottom: 23px;
  left: 25px;
  z-index: 1;
  color: #f3eddc;
}
.scene-caption .kicker {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.scene-caption h2 {
  font: 24px var(--serif);
  letter-spacing: 3px;
  margin: 0 0 5px;
}
.scene-caption p {
  font-size: 10px;
  opacity: 0.8;
  margin: 0;
}
.scene-number {
  position: absolute;
  right: 20px;
  top: 17px;
  z-index: 1;
  font: 10px var(--sans);
  letter-spacing: 1px;
  background: #163b3255;
  color: #f2edd9;
  padding: 6px 9px;
  border-radius: 3px;
  border: 1px solid #d4dec52e;
}
.scene-tools {
  position: absolute;
  right: 16px;
  bottom: 21px;
  z-index: 2;
  display: flex;
  gap: 5px;
}
.scene-tools button {
  border: 1px solid #c6d5c840;
  background: #183d3655;
  color: #f2edda;
  padding: 7px;
  border-radius: 5px;
}
.narrative {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 29px;
  margin-bottom: 16px;
}
.narrative-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.narrative-head .round {
  margin-left: auto;
  color: #9b9e90;
  letter-spacing: 0;
}
.prose {
  font: 15px/2.15 var(--serif);
  letter-spacing: 0.3px;
}
.prose p {
  line-height: 2.15;
  margin-bottom: 15px;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose p:has(+ p) {
}
.player-entry {
  padding: 14px 0 18px;
  display: flex;
  gap: 10px;
  color: #64715d;
  font-size: 12px;
  line-height: 1.9;
}
.player-entry svg {
  margin-top: 2px;
  width: 16px;
}
.changes {
  border-top: 1px dashed var(--line);
  margin-top: 20px;
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.change-tag {
  font-size: 10px;
  color: #6a805d;
  background: #eef2e7;
  border-radius: 3px;
  padding: 5px 8px;
}
.composer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(#f6f4ed00, var(--bg) 15%);
  padding-top: 14px;
  z-index: 5;
}
.suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.suggestion {
  border: 1px solid #dedfce;
  border-radius: 5px;
  padding: 8px 11px;
  font-size: 11px;
  background: #fffef97d;
  color: #6e7865;
}
.suggestion:hover {
  border-color: #8ba189;
  background: white;
}
.composer-box {
  border: 1px solid #cbd3bf;
  background: var(--paper);
  border-radius: 9px;
  padding: 15px 16px 12px;
  box-shadow: 0 4px 20px #263c3505;
}
.composer-box textarea {
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 58px;
  max-height: 180px;
  font-size: 13px;
  resize: vertical;
  background: transparent;
}
.composer-box textarea::placeholder {
  color: #a0a394;
}
.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.composer-note {
  color: #9b9e90;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.primary {
  background: var(--green);
  color: #f5f0de;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 5px;
  padding: 11px 18px;
  font-size: 12px;
}
.primary:hover {
  background: #173e32;
}
.primary.gold {
  background: #b38e50;
}
.secondary {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 12px;
  background: var(--paper);
}
.secondary:hover {
  border-color: #a8b69e;
}
.footnote {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: #a1a393;
  padding: 13px 0 2px;
  letter-spacing: 0.5px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 17px;
  overflow: hidden;
}
.panel-title {
  padding: 17px 18px 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.panel-title h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.panel-title h3 svg {
  width: 15px;
  height: 15px;
  color: #8b9979;
}
.panel-title small {
  font-size: 9px;
  color: var(--muted);
}
.panel-body {
  padding: 0 18px 18px;
}
.minimap {
  width: 100%;
  height: 166px;
  background: #f0f1e7;
}
.map-node {
  cursor: pointer;
}
.map-node circle {
  transition: all 0.2s;
}
.map-node:hover circle {
  stroke: #af8b4e;
  stroke-width: 3;
}
.map-node text {
  font-family: var(--sans);
  font-size: 10px;
  fill: #62725d;
}
.map-help {
  font-size: 9px;
  color: #9b9e90;
  text-align: center;
  margin: 2px 0 13px;
}
.location-line {
  font-size: 11px;
  color: #747f68;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 13px 18px;
}
.npc {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.npc:last-child {
  margin-bottom: 0;
}
.avatar {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 16px var(--serif);
  color: #546d57;
  background: #e7ecdc;
  border: 1px solid #dbe3cc;
  flex: none;
}
.npc-name {
  font-size: 12px;
  margin-bottom: 5px;
}
.npc-role {
  font-size: 10px;
  color: var(--muted);
}
.relation {
  margin-left: auto;
  font-size: 9px;
  color: #a18c61;
}
.quest-label {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.quest-title {
  font: 14px/1.7 var(--serif);
  margin-bottom: 12px;
}
.progress {
  display: flex;
  gap: 4px;
  margin-bottom: 9px;
}
.progress span {
  height: 3px;
  background: #e9ebdf;
  flex: 1;
  border-radius: 3px;
}
.progress span.filled {
  background: #8ba07b;
}
.quest-detail {
  font-size: 10px;
  line-height: 1.9;
  color: #8a907d;
}
.memory-snippet {
  font-size: 11px;
  line-height: 1.9;
  color: #77806b;
  border-left: 2px solid #c4b183;
  padding-left: 10px;
  margin-bottom: 12px;
}
.memory-link {
  font-size: 10px;
  color: #9a8b61;
  display: flex;
  gap: 6px;
  align-items: center;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
  gap: 15px;
}
.section-head h2 {
  font: 22px var(--serif);
  margin: 0;
}
.intro {
  font-size: 12px;
  color: var(--muted);
  max-width: 700px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 23px;
}
.content-card h3 {
  font: 20px var(--serif);
  margin: 10px 0 13px;
}
.content-card p {
  font-size: 12px;
  color: #78806d;
  margin-bottom: 13px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.content-card .label {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
}
.chip {
  display: inline-flex;
  border: 1px solid var(--line);
  color: #7b856e;
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 4px;
  margin: 0 5px 5px 0;
}
.memory-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 23px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
}
.stat strong {
  display: block;
  font: 29px var(--serif);
  margin-bottom: 5px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.searchbar input {
  flex: 1;
  width: 0;
}
.memory-item {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.memory-item header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 10px;
  color: #929982;
}
.memory-item header button {
  margin-left: auto;
  color: #a29471;
  font-size: 10px;
}
.memory-item p {
  font-size: 13px;
  margin: 0;
}
.memory-item.recalled {
  border-left: 3px solid var(--gold);
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active {
  border-color: var(--green);
  color: var(--green);
}
.world-overview {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 22px;
}
.world-overview h2 {
  font: 27px var(--serif);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.world-overview p {
  font: 15px/2 var(--serif);
  max-width: 850px;
  white-space: pre-line;
}
.world-map-large .minimap {
  height: 300px;
}
.rule {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.9;
}
.rule:last-child {
  border: 0;
}
.rule b {
  color: var(--gold);
  font: 19px var(--serif);
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}
.inventory-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.inventory-list span {
  padding: 10px 14px;
  background: #eef1e6;
  border-radius: 5px;
  font-size: 12px;
}
.save-card {
  display: flex;
  gap: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 23px;
  align-items: center;
  margin-bottom: 14px;
}
.save-emblem {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  background: #e8ecde;
  border-radius: 7px;
  color: #627b5d;
}
.save-card h3 {
  font: 20px var(--serif);
  margin: 0 0 8px;
}
.save-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.save-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #102b2666;
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 70;
}
.modal {
  background: var(--bg);
  border: 1px solid #ffffff70;
  border-radius: 13px;
  max-width: 720px;
  width: 100%;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 25px 100px #102b2640;
}
.modal.wide {
  max-width: 900px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 29px 30px 14px;
}
.modal-head h2 {
  font: 25px var(--serif);
  letter-spacing: 1px;
  margin: 0 0 7px;
}
.modal-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.modal-body {
  padding: 10px 30px 30px;
}
.field {
  display: block;
  margin: 16px 0;
}
.field > span {
  display: block;
  font-size: 12px;
  margin-bottom: 9px;
  color: #6f7b65;
}
.field input,
.field select {
  width: 100%;
}
.field small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 7px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 19px 0;
}
.theme-choice {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 13px;
  border-radius: 7px;
}
.theme-choice.selected {
  border-color: #6d8967;
  box-shadow: 0 0 0 1px #6d8967;
  background: #f0f3e8;
}
.theme-choice svg {
  color: #9d956e;
  margin-bottom: 13px;
}
.theme-choice b {
  font: 15px var(--serif);
  display: block;
  margin-bottom: 7px;
}
.theme-choice small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.8;
  display: block;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.notice {
  font-size: 11px;
  line-height: 1.9;
  background: #eaf0e4;
  border: 1px solid #dde5d3;
  border-radius: 6px;
  padding: 12px 15px;
  color: #718066;
}
.notice.warn {
  background: #f7efdf;
  border-color: #e9dec1;
  color: #9a8053;
}
.status-message {
  font-size: 11px;
  color: #8f7d4e;
  line-height: 1.8;
  min-height: 20px;
  margin-top: 12px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 12px 0;
}
.check-row input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}
.image-result {
  width: 100%;
  border-radius: 8px;
  max-height: 65vh;
  object-fit: contain;
}
.loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  padding: 20px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #d5dfca;
  border-top-color: #64825c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toasts {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(90vw, 480px);
  pointer-events: none;
}
.toast {
  background: #24463c;
  color: #f6f0de;
  padding: 13px 20px;
  margin-top: 9px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.8;
  box-shadow: 0 6px 25px #112d2520;
}
.toast.error {
  background: #795942;
}
.danger {
  color: #a37461;
}
.mt {
  margin-top: 22px;
}
.hidden {
  display: none !important;
}
.badge-count {
  font-size: 10px;
  background: #edf0e5;
  border-radius: 10px;
  padding: 2px 7px;
  color: #89957a;
}
.fullscreen-map {
  min-height: 340px;
}
.inset-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.9;
}
.source-list {
  font-size: 12px;
  line-height: 2.3;
}
.source-list a {
  word-break: break-word;
}
.no-scroll {
  overflow: hidden;
}
.thinking-line {
  font-size: 11px;
  color: #a08c62;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 12px;
}
.scene-scifi img[src*="scene.svg"] {
  filter: hue-rotate(35deg) saturate(0.55);
}
.scene-wuxia img[src*="scene.svg"] {
  filter: sepia(0.3) saturate(0.75);
}
@media (min-width: 1600px) {
  .workspace {
    padding-top: 46px;
  }
  .scene-card {
    height: 260px;
  }
  .explore-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
  }
}
@media (max-width: 1200px) {
  .shell {
    padding-left: 196px;
  }
  .sidebar {
    width: 196px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .explore-grid {
    grid-template-columns: minmax(0, 1fr) 242px;
    gap: 18px;
  }
  .panel-title {
    padding: 16px 14px 12px;
  }
  .panel-body {
    padding: 0 14px 16px;
  }
  .narrative {
    padding: 23px;
  }
  .scene-card {
    height: 206px;
  }
}
@media (max-width: 1000px) {
  .explore-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebook {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .sidebook .panel {
    margin: 0;
  }
  .sidebook .panel:nth-child(n + 3) {
    display: none;
  }
  .composer {
    position: relative;
  }
  .page-title h1 {
    font-size: 27px;
  }
  .cards-grid {
    gap: 14px;
  }
  .content-card {
    padding: 19px;
  }
}
@media (max-width: 700px) {
  .shell {
    padding-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 230px;
    padding-top: 30px;
  }
  .menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #102b2670;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 61px;
    padding: 0 17px;
  }
  .crumb {
    gap: 8px;
    font-size: 11px;
  }
  .crumb .crumb-section {
    display: none;
  }
  .top-actions {
    gap: 3px;
  }
  .top-actions .export-label {
    display: none;
  }
  .workspace {
    padding: 24px 17px;
  }
  .page-title {
    margin-bottom: 22px;
    align-items: center;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .page-title p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-title .text-btn {
    font-size: 10px;
  }
  .scene-card {
    height: 185px;
    margin-bottom: 17px;
  }
  .scene-caption {
    left: 20px;
    bottom: 20px;
  }
  .scene-caption h2 {
    font-size: 22px;
  }
  .scene-tools {
    bottom: 18px;
    right: 13px;
  }
  .scene-caption p {
    max-width: 220px;
    line-height: 1.7;
  }
  .narrative {
    padding: 22px 20px;
  }
  .prose {
    font-size: 15px;
    line-height: 2;
  }
  .composer-box {
    padding: 13px;
  }
  .composer-note {
    font-size: 9px;
  }
  .suggestion {
    font-size: 10px;
    padding: 8px 10px;
  }
  .footnote {
    font-size: 9px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .memory-stats {
    gap: 8px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat small {
    font-size: 10px;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal {
    max-height: 94dvh;
    border-radius: 10px;
  }
  .modal-head {
    padding: 24px 20px 10px;
  }
  .modal-body {
    padding: 10px 20px 24px;
  }
  .theme-options {
    gap: 7px;
  }
  .theme-choice {
    padding: 14px 10px;
  }
  .theme-choice b {
    font-size: 13px;
  }
  .theme-choice small {
    font-size: 9px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .save-card {
    padding: 18px;
    gap: 13px;
    flex-wrap: wrap;
  }
  .save-emblem {
    width: 46px;
    height: 46px;
  }
  .save-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .world-overview {
    padding: 23px;
  }
  .world-overview h2 {
    font-size: 24px;
  }
  .tabs {
    gap: 17px;
  }
  .tab {
    font-size: 11px;
  }
  .sidebook {
    gap: 10px;
  }
  .panel-title h3 {
    font-size: 11px;
  }
  .panel-title small {
    font-size: 9px;
  }
  .panel-body {
    padding: 0 12px 14px;
  }
  .panel-title {
    padding: 14px 12px 12px;
  }
  .minimap {
    height: 152px;
  }
  .sidebook .npc {
    gap: 7px;
  }
  .avatar {
    width: 30px;
    height: 30px;
  }
  .npc-name {
    font-size: 11px;
  }
  .npc-role,
  .relation {
    font-size: 9px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .section-head .primary {
    padding: 10px 12px;
    font-size: 11px;
  }
  .notice {
    font-size: 10px;
  }
}
.brand {
  text-decoration: none;
}
.inventory-list svg {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-right: 7px;
}
.scene-caption .kicker svg {
  width: 12px;
  height: 12px;
}
.footnote svg {
  width: 12px;
  height: 12px;
}
.footnote .text-btn {
  font-size: 10px;
  padding: 0;
}
.secondary svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}
.source-list a {
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
