/* Aranyak EcoStay demo styles */
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Light by default; the demo's own switch sets data-app-theme="dark". */
/* Layout: sidebar app shell on desktop, top bar + slide-in menu on phones; the guest site is a separate full-width page. */
:root {
  --bg: #F3EEE3; --surface: #FBF8F1; --raised: #FFFFFF; --ink: #17231C; --muted: #4B5B51; --faint: #6B776F;
  --line: #DDD4C2; --line-soft: #ECE5D6;
  --forest: #0F2A20; --forest-2: #16382B; --forest-line: #2F5646; --on-forest: #F3EEE3; --on-forest-muted: #C9D6CD;
  --accent: #245C45; --accent-hover: #1B4A37; --accent-ink: #FFFFFF; --accent-soft: #DCE7DF; --accent-soft-ink: #16402F;
  --ochre: #A6561A; --ochre-soft: #F2DFC7; --ochre-soft-ink: #6E3A10; --sun: #E3A861; --sun-ink: #17231C;
  --info-soft: #E1EAF4; --info-ink: #2B5A86; --danger-soft: #F4DCD4; --danger-ink: #8A2E12;
  --neutral-soft: #E4DED2; --neutral-ink: #3E4A43;
  --solar: #149A6C; --grid: #3A74B8; --gen: #C9822F;
  --scrim: rgb(15 42 32 / 0.55);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
}
:root[data-app-theme="dark"] {
  --bg: #0D1712; --surface: #132019; --raised: #18271F; --ink: #E9E5DB; --muted: #A7B4AB; --faint: #8C9A91;
  --line: #2A3B31; --line-soft: #213128;
  --forest: #08120D; --forest-2: #10231A; --forest-line: #24402F; --on-forest: #E9E5DB; --on-forest-muted: #A7B4AB;
  --accent: #4FA67C; --accent-hover: #63B98E; --accent-ink: #0B1A12; --accent-soft: #1E3A2C; --accent-soft-ink: #BFE3CF;
  --ochre: #E3A861; --ochre-soft: #3A2A18; --ochre-soft-ink: #F0C992; --sun: #E3A861; --sun-ink: #17231C;
  --info-soft: #1B2D40; --info-ink: #A9C8EA; --danger-soft: #3D221A; --danger-ink: #F2B39E;
  --neutral-soft: #2A302C; --neutral-ink: #C9CFC9;
  --solar: #1F9E72; --grid: #4F86C8; --gen: #C4843A;
  --scrim: rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#root { min-height: 100%; }
* { box-sizing: border-box; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
a { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 600; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 12px; }
.col.tight { gap: 4px; }
.col.loose { gap: 20px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g3, .g2 { grid-template-columns: minmax(0, 1fr); } .g6, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); padding: 0 8px; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { background: var(--neutral-soft); border-color: var(--neutral-soft); color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.input { min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--raised); font-weight: 400; font-size: 15px; width: 100%; }
textarea.input { padding: 10px 12px; min-height: 84px; resize: vertical; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--line-soft); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 999px; min-height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.choice { text-align: left; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); display: flex; flex-direction: column; gap: 4px; }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { border: 2px solid var(--accent); padding: 13px 15px; background: var(--accent-soft); color: var(--accent-soft-ink); }
.choice:disabled { opacity: 0.55; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.dark { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.card.dark .muted { color: var(--on-forest-muted); }
.card h2 { font-size: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile .label { font-size: 13px; color: var(--muted); }
.tile .value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile .note { font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--neutral-soft); color: var(--neutral-ink); }
.pill.good { background: var(--accent-soft); color: var(--accent-soft-ink); }
.pill.warn { background: var(--ochre-soft); color: var(--ochre-soft-ink); }
.pill.info { background: var(--info-soft); color: var(--info-ink); }
.pill.bad { background: var(--danger-soft); color: var(--danger-ink); }
.pill.dot::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.meter { height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.meter > div { height: 100%; border-radius: 999px; background: var(--accent); }
.note-box { padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; }
.note-box.good { background: var(--accent-soft); color: var(--accent-soft-ink); }
.note-box.warn { background: var(--ochre-soft); color: var(--ochre-soft-ink); }
.note-box.info { background: var(--info-soft); color: var(--info-ink); }
.divider { height: 1px; background: var(--line-soft); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--r-md); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.clickable { cursor: pointer; }
table.t tr.clickable:hover td { background: var(--line-soft); }
table.t td.right, table.t th.right { text-align: right; }

/* ---------- bars (single series, value at tip) ---------- */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14px; }
.bar-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar { height: 14px; border-radius: 0 4px 4px 0; background: var(--accent); flex-shrink: 0; }
@media (max-width: 520px) { .bar-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.stack { display: flex; gap: 2px; height: 30px; }
.stack > div { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; min-width: 0; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--forest); color: var(--on-forest); display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: var(--on-forest); text-decoration: none; }
.brand .name { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.brand .sub { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-forest-muted); }
.nav-btn { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--on-forest-muted); font-size: 14px; font-weight: 600; text-align: left; width: 100%; }
.nav-btn:hover { background: var(--forest-2); color: var(--on-forest); }
.nav-btn[aria-current="page"] { background: var(--forest-2); color: var(--on-forest); box-shadow: inset 0 0 0 1px var(--forest-line); }
.nav-btn .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.nav-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-forest-muted); padding: 12px 12px 4px; opacity: 0.8; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--forest-line); display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--forest-2); border: 1px solid var(--forest-line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--on-forest); flex-shrink: 0; }
.side .btn { background: transparent; border-color: var(--forest-line); color: var(--on-forest); }
.side .btn:hover { border-color: var(--on-forest-muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar h1 { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.menu-btn { display: none; }
.page { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 1320px; width: 100%; }
.readonly-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--info-soft); color: var(--info-ink); font-size: 14px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-102%); transition: transform 0.2s ease; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .topbar h1 { font-size: 21px; }
  .page { padding: 16px 16px 40px; }
  .hide-sm { display: none !important; }
}
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; }

/* ---------- overlays ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; max-width: min(620px, calc(100vw - 32px)); background: var(--ink); color: var(--bg); padding: 12px 14px 12px 18px; border-radius: 14px; font-size: 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); }
.toast button { border: 0; background: transparent; color: inherit; width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0; font-size: 18px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--surface); z-index: 70; border-left: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: -12px 0 30px rgb(0 0 0 / 0.12); padding-top: env(safe-area-inset-top, 0px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px 20px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { width: min(420px, 100%); background: var(--surface); border-radius: 22px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.icon-circle { width: 64px; height: 64px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.login-art { background: var(--forest); color: var(--on-forest); padding: 40px; display: flex; flex-direction: column; gap: 24px; justify-content: space-between; }
.login-art h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.login-panel { padding: 40px clamp(16px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.role-card { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 16px; display: flex; gap: 14px; align-items: flex-start; min-height: 96px; }
.role-card:hover { border-color: var(--accent); }
.role-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.role-card.guest { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.role-card.guest .ic { background: var(--forest-2); color: var(--sun); }
.role-card.guest .muted { color: var(--on-forest-muted); }
.signin { border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 16px; max-width: 460px; width: 100%; }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-boxes span { height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .login { grid-template-columns: minmax(0, 1fr); } .login-art { padding: 28px 16px; } .login-art .hide-sm { display: none; } }
@media (max-width: 560px) { .role-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- room board ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.room { min-height: 76px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); text-align: left; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.room .no { font-size: 17px; font-weight: 600; }
.room .st { font-size: 11px; font-weight: 600; }
.room .gn { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ochre); }
.s-occupied { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.s-arriving { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-ink); }
.s-departing { background: var(--ochre-soft); border-color: var(--ochre); color: var(--ochre-soft-ink); }
.s-clean { background: var(--raised); color: var(--ink); }
.s-dirty { background: var(--neutral-soft); border-style: dashed; border-color: var(--faint); color: var(--ink); }
.s-cleaning, .s-inspect { background: var(--info-soft); border-color: var(--info-ink); color: var(--info-ink); }
.s-inspect { border-style: dashed; }
.s-ooo { background: var(--neutral-soft); color: var(--neutral-ink); }
.legend-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.legend-chip i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid transparent; }
.legend-chip i.s-clean { border-color: var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- POS ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.menu-item { min-height: 92px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.menu-item:hover { border-color: var(--accent); }
.qty { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-size: 18px; line-height: 1; }

/* ---------- guest site ---------- */
.site-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-top .inner, .site-sec .inner { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.site-top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.demo-strip { background: var(--ink); color: var(--bg); font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-strip button { border: 0; background: transparent; color: var(--sun); text-decoration: underline; font-weight: 600; padding: 0 4px; min-height: 28px; }
.site-sec { padding-block: clamp(40px, 7vw, 88px); }
.site-hero { background: var(--forest); color: var(--on-forest); }
.site-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 6vw, 68px); line-height: 1.04; max-width: 14ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-art { border-radius: 24px; overflow: hidden; aspect-ratio: 520 / 420; max-width: 100%; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.avail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; background: var(--surface); border-radius: 20px; color: var(--ink); }
.avail .cell { padding: 12px 16px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 760px) { .avail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.photo { border-radius: 14px; display: flex; align-items: flex-end; padding: 12px; font-size: 12px; color: #3E4A43; min-height: 180px; }
.offer-band { background: var(--sun); color: var(--sun-ink); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 4px; }
.day { min-height: 54px; border: 0; border-radius: 10px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; }
.day:hover:not(:disabled) { background: var(--line-soft); }
.day .d { font-size: 15px; font-weight: 600; }
.day .p { font-size: 11px; color: var(--muted); }
.day.wk .p { color: var(--ochre); }
.day.range { background: var(--accent-soft); color: var(--accent-soft-ink); }
.day.end { background: var(--accent); color: var(--accent-ink); }
.day.end .p { color: var(--accent-ink); }
.day:disabled { color: var(--faint); }
.day:disabled .d { text-decoration: line-through; }
.stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.step-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); }
.step-chip b { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--line-soft); color: var(--muted); }
.step-chip.cur { color: var(--ink); border-color: var(--ink); }
.step-chip.cur b { background: var(--ink); color: var(--bg); }
.step-chip.done b { background: var(--accent); color: var(--accent-ink); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .book-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.theme-btn:hover { border-color: var(--muted); }
.side .theme-btn { background: transparent; border-color: var(--forest-line); color: var(--on-forest); }
