@import url("typography.css");
:root {
  --paper: #fbf7ef;
  --card: #fffcf6;
  --ink: #493b32;
  --muted: #86796c;
  --rose: #a55470;
  --rose-dark: #88415a;
  --pink: #ecd5da;
  --sage: #788c74;
  --line: #e6ddce;
  --gold: #b89660;
  --shadow: 0 16px 50px #55433110;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}
button {
  min-height: 44px;
  border: 0;
  background: transparent;
}
a {
  color: var(--rose);
  text-decoration: none;
}
p {
  line-height: 1.8;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.brand {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-weight: 500;
}
svg.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-family: Georgia, serif;
  letter-spacing: 2.8px;
  color: var(--sage);
  font-weight: 600;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 116px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px 10px 20px;
  background: #f7f1e7;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 11px;
  color: var(--ink);
  text-align: center;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: 4px;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand small {
  font:
    8px Georgia,
    serif;
  letter-spacing: 1px;
  color: #a0917d;
}
.rail nav {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 46px;
}
.nav-button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 10px 4px;
  border-radius: 12px;
  color: #887a6c;
  min-height: 64px;
  transition: background 0.2s;
}
.nav-button:hover {
  background: #f0e7da;
}
.nav-button.active {
  background: #f0dfe1;
  color: var(--rose-dark);
}
.rail-footer {
  margin-top: auto;
  text-align: center;
  color: #9e907f;
  font:
    11px/2 Georgia,
    serif;
}
.rail-footer p {
  line-height: 2.1;
  margin: 10px 0;
}
.tiny-flower {
  color: #b7929e;
  font-size: 23px;
}
.app-shell {
  margin-left: 116px;
  max-width: 1900px;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.page-identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 145px;
}
.page-identity > span:last-child {
  font-family: serif;
  font-size: 18px;
  letter-spacing: 2px;
}
.page-identity .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.status-bar {
  display: flex;
  align-items: center;
  gap: 28px;
}
.status-item {
  display: flex;
  gap: 10px;
  align-items: center;
}
.status-item svg {
  color: var(--gold);
  width: 20px;
}
.status-item b {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.status-item small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin-bottom: 3px;
}
.account-button {
  border: 1px solid #dacbb6;
  border-radius: 30px;
  padding: 0 18px;
  font-size: 12px;
  white-space: nowrap;
}
.account-button:hover {
  background: #f4e9dd;
}
.workspace {
  padding: 30px 36px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
}
.scene-column {
  min-width: 0;
}
.scene-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 85px;
  padding: 0 6px 18px;
}
.scene-heading h1 {
  font-size: 29px;
  letter-spacing: 2px;
  margin: 11px 0 0;
}
.stamp {
  border: 1px solid #bf8d9b;
  color: #b5798c;
  transform: rotate(7deg);
  border-radius: 50%;
  font: 9px/1.8 serif;
  letter-spacing: 2px;
  padding: 12px 8px;
  text-align: center;
}
.stamp b {
  font-weight: 500;
}
.scene-frame {
  height: calc(100vh - 290px);
  min-height: 470px;
  max-height: 820px;
  position: relative;
  background: #f2eee0;
  border: 1px solid #dfd5c0;
  border-radius: 130px 130px 15px 15px;
  overflow: hidden;
  box-shadow: inset 0 0 60px #e4d9c65c;
}
.scene-frame:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #fff9;
  border-radius: 124px 124px 10px 10px;
  pointer-events: none;
}
#scene {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.scene-caption {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #84765e;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 1;
  background: #fff9efde;
  border-radius: 20px;
  padding: 9px 15px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b9b7a;
}
.floor-controls {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 7px;
}
.floor-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid #d9cfbc;
  border-radius: 50%;
  background: #fffaf0ed;
  font-size: 12px;
  box-shadow: 0 3px 10px #66534409;
}
.floor-button.selected {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.scene-zoom {
  position: absolute;
  left: 16px;
  bottom: 18px;
  display: flex;
  background: #fffaf0e8;
  border: 1px solid var(--line);
  border-radius: 24px;
  z-index: 2;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 44px;
  font-size: 19px;
}
.scene-action {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 5px;
  white-space: nowrap;
}
.primary,
.secondary,
.danger {
  border-radius: 10px;
  min-height: 44px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}
.primary {
  background: var(--rose);
  color: white;
  border: 1px solid var(--rose);
  box-shadow: 0 4px 12px #9f587421;
}
.primary:hover {
  background: var(--rose-dark);
}
.secondary {
  border: 1px solid #d9cdbb;
  background: #fffaf2;
}
.secondary:hover {
  background: #f1e9db;
}
.danger {
  color: #a94444;
  border: 1px solid #e4bdb3;
}
.small-button {
  padding: 5px 10px;
  font-size: 12px;
  min-height: 40px;
}
.round-pill {
  border-radius: 24px;
}
.day-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 18px 4px;
}
.day-strip .season-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.season-note .icon {
  color: var(--sage);
}
.time-controls {
  display: flex;
  gap: 3px;
  align-items: center;
  background: #f1eadf;
  border-radius: 22px;
  padding: 3px;
}
.time-controls button {
  border-radius: 50%;
  min-height: 34px;
  width: 34px;
  font-size: 12px;
}
.time-controls button.active {
  background: #fffaf1;
  box-shadow: 0 2px 5px #55433116;
  color: var(--rose);
}
.daily-column {
  padding-top: 6px;
}
.daily-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
  background: var(--card);
  margin-bottom: 17px;
  box-shadow: var(--shadow);
}
.card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 17px;
}
.card-label span:first-child {
  font-family: Georgia, serif;
}
.card-label .icon {
  width: 17px;
  color: var(--gold);
}
.daily-card h2 {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.daily-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.daily-card .primary {
  width: 100%;
}
.progress-track {
  height: 3px;
  background: #eee4d7;
  margin: 19px 0 9px;
  border-radius: 4px;
  overflow: hidden;
}
.progress-track span {
  height: 100%;
  display: block;
  background: #b47c8f;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.checklist li {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  color: #958675;
}
.checklist i {
  width: 16px;
  height: 16px;
  border: 1px solid #d2c5b1;
  border-radius: 50%;
  font: 10px sans-serif;
  text-align: center;
  line-height: 15px;
  font-style: normal;
  flex-shrink: 0;
}
.checklist li.done {
  color: #75866b;
}
.checklist li.done i {
  background: #ebefdf;
  border-color: #a6b092;
}
.quote-card {
  background: #f2e7e6;
  border-color: #e5d4d4;
  position: relative;
}
.quote-card:after {
  content: "❀";
  position: absolute;
  right: 13px;
  bottom: 8px;
  font-size: 45px;
  color: #c79da14a;
}
.quote-card p {
  color: #876f72;
  font: 13px/2 serif;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.quote-card .signature {
  font: 10px serif;
  text-align: right;
  color: #a68a8a;
  letter-spacing: 1px;
}
.news-title {
  font-size: 15px !important;
}
.text-button {
  color: var(--rose);
  font-size: 12px;
  padding: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bottom-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin: 0 36px;
  padding: 10px 2px;
  color: #a39582;
  font-size: 10px;
}
.bottom-note > span:first-child {
  font-family: Georgia, serif;
  letter-spacing: 2px;
}
.bottom-note button {
  font-size: 10px;
  color: #9f7180;
  min-height: 35px;
}
.mobile-nav {
  display: none;
}
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: #382d2545;
  backdrop-filter: blur(3px);
  z-index: 30;
}
.panel {
  position: fixed;
  right: 20px;
  top: 20px;
  bottom: 20px;
  width: min(690px, calc(100vw - 155px));
  border: 1px solid #decdb7;
  background: var(--paper);
  border-radius: 20px;
  z-index: 31;
  box-shadow: 0 20px 100px #392b3433;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-head {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fffcf5;
}
.panel-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
  letter-spacing: 2px;
}
.panel-body {
  padding: 24px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 16px;
  min-height: 40px;
  font-size: 12px;
  background: #fffaf2;
}
.tabs button.selected {
  background: #eedef0;
  border-color: #d0b0be;
  color: var(--rose-dark);
}
.intro-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}
.item-card {
  padding: 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.item-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.item-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.item-row {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}
.item-row > div:first-child {
  min-width: 0;
}
.item-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tag {
  display: inline-block;
  border: 1px solid #dfd3be;
  border-radius: 15px;
  font-size: 10px;
  padding: 4px 8px;
  color: #8e7c63;
  white-space: nowrap;
}
.tag.green {
  background: #eef0e5;
  color: #607253;
  border-color: #ced5bd;
}
.tag.rose {
  background: #f3e3e8;
  color: #9a5f75;
  border-color: #e6ccd4;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  font-size: 12px;
  display: block;
  line-height: 1.6;
  color: #7c6b5b;
}
input,
select {
  border: 1px solid #d9cbb7;
  border-radius: 8px;
  min-height: 44px;
  background: #fffcf7;
  color: var(--ink);
  padding: 9px 11px;
  max-width: 100%;
  width: 100%;
  margin-top: 5px;
}
input[type="checkbox"] {
  width: 19px;
  min-height: 19px;
  accent-color: var(--rose);
  margin: 0;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--rose);
}
input[type="number"].quantity {
  width: 70px;
}
.price-input {
  width: 88px !important;
}
.stock-total {
  position: sticky;
  bottom: -24px;
  background: #f6ecdd;
  box-shadow: 0 -8px 18px #fbf7ef;
  border-radius: 12px;
  padding: 16px;
  margin: 20px -4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stock-total b {
  font-variant-numeric: tabular-nums;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.mini-stat {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
}
.mini-stat small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.mini-stat b {
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 7px;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: var(--muted);
}
.positive {
  color: #627d56;
}
.negative {
  color: #a2505e;
}
.case-list {
  display: grid;
  gap: 10px;
}
.case-button {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.case-button small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 6px;
}
.case-button b {
  font-family: serif;
  font-size: 17px;
  font-weight: 500;
}
.evidence-body {
  padding: 12px 14px;
  background: #f4eddf;
  border-left: 2px solid #bea17c;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.9;
}
.deductions {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}
.deductions button {
  text-align: left;
  border: 1px solid #d8c9b3;
  border-radius: 8px;
  background: #fffaf1;
  padding: 14px;
  font-size: 13px;
}
.deductions button:hover {
  border-color: var(--rose);
  background: #f5e9ed;
}
.build-hint {
  position: absolute;
  left: 15px;
  right: 72px;
  bottom: 75px;
  background: #fffaf0ef;
  border: 1px solid #cdbb9d;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  z-index: 2;
}
.pet-hero {
  text-align: center;
  padding: 20px;
  background: #f2e6df;
  border-radius: 16px;
  margin-bottom: 18px;
}
.pet-hero .pet-symbol {
  font-size: 58px;
  line-height: 1.4;
  color: #b48a70;
}
.pet-hero h3 {
  margin: 12px 0 5px;
  font-size: 24px;
}
.pet-hero p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.meter-row {
  display: grid;
  grid-template-columns: 65px 1fr 35px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin: 14px 0;
}
.meter {
  height: 6px;
  background: #e8dfd0;
  border-radius: 10px;
  overflow: hidden;
}
.meter span {
  height: 100%;
  display: block;
  background: #b88194;
}
.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.badge-card {
  background: #f5f0e5;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  opacity: 0.7;
}
.badge-card.earned {
  background: #fff8ec;
  border-color: #ceb58b;
  opacity: 1;
}
.badge-card .medallion {
  width: 40px;
  height: 40px;
  background: #e4d4b6;
  color: #937044;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.badge-card h3 {
  font-size: 15px;
  line-height: 1.6;
}
.badge-card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  max-width: min(600px, calc(100vw - 30px));
  border: 1px solid #d7c5aa;
  border-radius: 13px;
  background: #fffcf5;
  box-shadow: 0 8px 40px #3f302029;
  color: var(--ink);
  padding: 16px 22px;
  z-index: 80;
  font-size: 13px;
  line-height: 1.8;
}
.toast.error {
  border-color: #d4a0a0;
  color: #984950;
}
.audio-card audio {
  width: 100%;
  height: 40px;
  margin-top: 9px;
}
.audio-card .transcript {
  font-size: 13px;
  background: #f3eada;
  padding: 14px;
  border-radius: 8px;
  line-height: 1.9;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.banner {
  background: #f0e4d3;
  border: 1px solid #dfc8a6;
  border-radius: 10px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.inventory-list {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.portrait {
  width: 68px;
  height: 76px;
  background: #f4ebdd;
  border-radius: 50% 50% 8px 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 36px serif;
  color: var(--rose);
}
.close-button {
  font-size: 24px;
}
.file-input {
  padding: 10px;
}
.auth-form .primary {
  width: 100%;
  margin-top: 18px;
}
.auth-form input {
  margin-bottom: 12px;
}
.account-detail {
  padding: 16px;
  background: #f0e7d8;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.empty-state {
  text-align: center;
  padding: 32px 10px;
  color: var(--muted);
  font-size: 13px;
}
.ui-paused {
  font-size: 10px;
  color: var(--rose);
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 330px;
    padding-inline: 48px;
    gap: 36px;
  }
  .topbar {
    padding-inline: 48px;
  }
  .daily-card {
    padding: 25px;
  }
  .scene-heading h1 {
    font-size: 34px;
  }
}
@media (max-width: 1150px) {
  .rail {
    width: 94px;
  }
  .brand {
    font-size: 22px;
  }
  .app-shell {
    margin-left: 94px;
  }
  .topbar {
    padding: 0 22px;
    gap: 12px;
  }
  .status-bar {
    gap: 16px;
  }
  .workspace {
    padding: 24px 22px 0;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .scene-heading h1 {
    font-size: 25px;
  }
  .daily-card {
    padding: 17px;
  }
  .bottom-note {
    margin-inline: 22px;
  }
  .bottom-note > span:nth-child(2) {
    display: none;
  }
  .stamp {
    display: none;
  }
  .scene-frame {
    border-radius: 90px 90px 12px 12px;
  }
  .scene-frame:after {
    border-radius: 85px 85px 8px 8px;
  }
  .panel {
    width: min(650px, calc(100vw - 115px));
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .daily-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0;
  }
  .daily-card {
    margin: 0;
  }
  .daily-column .news-card {
    display: none;
  }
  .scene-frame {
    height: 540px;
    min-height: 420px;
  }
  .status-bar {
    gap: 12px;
  }
  .status-item svg {
    display: none;
  }
  .topbar {
    height: 76px;
  }
  .scene-heading {
    min-height: 80px;
  }
  .daily-card h2 {
    font-size: 18px;
  }
  .daily-card p {
    font-size: 12px;
  }
  .bottom-note {
    margin-top: 20px;
  }
}
@media (max-width: 650px) {
  :root {
    font-size: 14px;
  }
  .rail {
    display: none;
  }
  .app-shell {
    margin-left: 0;
    padding-bottom: 82px;
  }
  .topbar {
    height: auto;
    min-height: 84px;
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 11px;
  }
  .page-identity {
    min-width: 0;
  }
  .page-identity .eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .page-identity > span:last-child {
    font-size: 19px;
    letter-spacing: 2px;
  }
  .account-button {
    font-size: 10px;
    padding: 0 11px;
    min-height: 36px;
    order: 1;
  }
  .status-bar {
    width: 100%;
    justify-content: space-between;
    order: 2;
    gap: 8px;
  }
  .status-item {
    gap: 6px;
    align-items: baseline;
  }
  .status-item small {
    display: inline;
    margin: 0 5px 0 0;
    font-size: 10px;
  }
  .status-item b {
    font-size: 14px;
  }
  .workspace {
    padding: 18px 14px 0;
    gap: 10px;
  }
  .scene-heading {
    min-height: 66px;
    padding: 0 4px 14px;
  }
  .scene-heading h1 {
    font-size: 23px;
    letter-spacing: 1px;
    margin-top: 8px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .scene-frame {
    height: 56vh;
    min-height: 355px;
    max-height: 620px;
    border-radius: 75px 75px 13px 13px;
  }
  .scene-frame:after {
    border-radius: 70px 70px 9px 9px;
  }
  .scene-caption {
    top: 17px;
    padding: 8px 11px;
    font-size: 9px;
    gap: 6px;
  }
  .floor-controls {
    right: 9px;
    gap: 5px;
  }
  .floor-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    font-size: 11px;
  }
  .scene-zoom {
    left: 9px;
    bottom: 12px;
  }
  .scene-zoom .icon-button {
    min-width: 32px;
    width: 32px;
    height: 38px;
    min-height: 38px;
    font-size: 16px;
  }
  .scene-action {
    bottom: 12px;
    left: auto;
    right: 9px;
    transform: none;
  }
  .scene-action .primary {
    font-size: 12px;
    padding: 10px 14px;
    min-height: 40px;
  }
  .day-strip {
    padding: 12px 1px;
    gap: 8px;
  }
  .day-strip .season-note {
    font-size: 10px;
    gap: 6px;
  }
  .time-controls {
    gap: 0;
    padding: 2px;
  }
  .time-controls button {
    width: 30px;
    min-height: 30px;
  }
  .daily-column {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .daily-card {
    padding: 18px;
  }
  .daily-column .quote-card {
    display: none;
  }
  .daily-card .card-label {
    margin-bottom: 12px;
  }
  .daily-card h2 {
    font-size: 19px;
  }
  .checklist {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
  }
  .checklist li {
    margin: 0;
  }
  .daily-card .primary {
    width: auto;
  }
  .progress-track {
    margin-top: 14px;
  }
  .bottom-note {
    padding: 6px 0;
    margin: 10px 17px 0;
    font-size: 8px;
  }
  .bottom-note button {
    font-size: 10px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fffaf2f5;
    border-top: 1px solid #e0d2bd;
    padding: 6px 7px calc(7px + env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }
  .mobile-nav .nav-button {
    min-height: 56px;
    font-size: 10px;
    gap: 4px;
    padding: 6px 0;
    border-radius: 10px;
  }
  .mobile-nav .icon {
    width: 20px;
    height: 20px;
  }
  .panel {
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
  }
  .panel-head {
    padding: 19px 20px 14px;
  }
  .panel-head h2 {
    font-size: 23px;
  }
  .panel-body {
    padding: 20px 18px 35px;
  }
  .form-grid {
    gap: 10px;
  }
  .badge-grid {
    gap: 9px;
  }
  .badge-card {
    padding: 14px;
  }
  .stock-total {
    bottom: -35px;
    margin-inline: -3px;
    padding: 13px;
  }
  .toast {
    bottom: 89px;
    font-size: 12px;
    padding: 13px 17px;
  }
  .build-hint {
    font-size: 11px;
    bottom: 64px;
    left: 10px;
    right: 54px;
  }
  .mini-stat {
    padding: 13px 8px;
  }
  .mini-stat b {
    font-size: 19px;
  }
  .tabs button {
    padding: 7px 13px;
  }
  .item-card {
    padding: 14px;
  }
  .item-actions {
    gap: 6px;
  }
  .primary,
  .secondary {
    padding: 10px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
:root {
  --muted: #75685d;
  --sage: #64755f;
  --gold: #957341;
}
.eyebrow {
  color: #64755f;
}
.card-label {
  color: #796b5e;
}
.nav-button {
  color: #75675b;
}
.daily-card p {
  color: #75685d;
}
.quote-card p {
  color: #795e65;
}
.quote-card .signature {
  color: #866a72;
}
.case-button small {
  color: #75685d;
}
.tag {
  color: #79674e;
}
.bottom-note {
  color: #80705e;
}
.floor-button {
  color: #705f4d;
}
@media (max-width: 650px) {
  .intro-note,
  .item-card p {
    font-size: 14px;
  }
  .panel-body {
    font-size: 15px;
  }
  label {
    font-size: 14px;
  }
  .primary,
  .secondary,
  .deductions button {
    font-size: 14px;
  }
  .evidence-body {
    font-size: 15px;
  }
  .daily-card p {
    font-size: 14px;
  }
  .daily-card h2 {
    font-size: 20px;
  }
}
.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
  gap: 12px;
}
.admin-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: serif;
  font-size: 22px;
  color: var(--ink);
}
.admin-brand span {
  font-family: sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.admin-login {
  max-width: 460px;
  margin: 55px auto;
}
.admin-login h1 {
  font-size: 28px;
  margin: 20px 0;
}
.admin-login input {
  margin-bottom: 12px;
}
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-title h1 {
  font-size: 29px;
  margin: 13px 0;
}
.admin-account-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-account-form input {
  min-width: 210px;
  max-width: 260px;
  margin: 0;
}
.admin-account-form button {
  white-space: nowrap;
}
.admin-shell .daily-card h2 {
  font-size: 23px;
}
@media (max-width: 650px) {
  .admin-title {
    display: block;
  }
  .admin-title h1 {
    font-size: 25px;
  }
  .admin-brand {
    font-size: 18px;
  }
  .admin-brand span {
    display: none;
  }
  .admin-shell {
    padding: 20px 15px;
  }
}
