/*
 * Kyoshi design system CSS. Component classes are lifted near-verbatim from
 * docs/kyoshi-all-screens.html's embedded <style> block — that file is the visual
 * source of truth per the requirements doc. The only real departures are the
 * outer layout rules (body/.shell), generalized here from the mockup's fixed-width
 * "browser chrome" preview frames into a real full-viewport app shell.
 */

:root {
  --paper: #EFE7D8;
  --paper-deep: #E8DEC9;
  --ink: #2B2A26;
  --ink-soft: #6B6558;
  --ink-faint: #948D7C;
  --gold: #A9762F;
  --gold-tint: #E8D9BB;
  --brick: #8B4438;
  --brick-tint: rgba(139, 68, 56, 0.08);
  --line: rgba(43, 42, 38, 0.14);
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  font-family: 'Public Sans', sans-serif;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- APP SHELL / SIDEBAR ---------- */
.shell { display: flex; height: 100vh; position: relative; }
.rail { background: var(--paper-deep); border-right: 0.5px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; flex-shrink: 0; position: relative; transition: width 0.15s ease; }
.rail.expanded { width: 210px; }
.rail.collapsed { width: 60px; align-items: center; padding: 16px 8px; }
.rail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rail.collapsed .rail-top { justify-content: center; }
/* Distinct pill background (vs. plain .rail-item) marks this as the brand
   mark, not just another nav entry — doubles as home (expanded) / expand
   (collapsed) button, see _sidebar.html. */
.rail-logo { display: flex; align-items: center; gap: 7px; font-family: 'Fraunces', serif; font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--gold-tint); border-radius: 7px; padding: 6px 9px; cursor: pointer; }
.rail-logo:hover { background: var(--gold); color: var(--paper); }
.rail.collapsed .rail-logo { width: 32px; height: 32px; padding: 0; justify-content: center; }
.collapse-btn { width: 20px; height: 20px; border: 0.5px solid var(--line); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 10px; flex-shrink: 0; background: none; }
.rail-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 13px; color: var(--ink-soft); margin-bottom: 3px; }
.rail.collapsed .rail-item { padding: 9px; justify-content: center; }
.rail-item.active { background: var(--gold-tint); color: var(--ink); }
.rail.collapsed .lbl, .rail.collapsed .soonbadge { display: none; }
.rail-item .soonbadge { font-family: 'IBM Plex Mono', monospace; font-size: 8.5px; background: rgba(43, 42, 38, 0.08); padding: 1px 5px; border-radius: 4px; margin-left: auto; }
.rail-divider { height: 1px; background: var(--line); margin: 10px 4px; }
.newconvo { display: flex; align-items: center; justify-content: center; gap: 7px; border: 0.5px solid var(--line); background: #F6F0E4; border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--ink); margin-bottom: 14px; width: 100%; }
.newconvo .plus { font-size: 14px; line-height: 1; }
.rail.collapsed .newconvo { width: 32px; height: 32px; padding: 0; border-radius: 7px; margin-bottom: 16px; }
.rail.collapsed .newconvo .lbl { display: none; }
.recent-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--ink-faint); letter-spacing: 0.03em; padding: 0 10px 8px; }
.rail.collapsed .recent-label { display: none; }
.convo-list { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.rail.collapsed .convo-list { display: none; }
.convo { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; padding: 7px 6px 7px 10px; border-radius: 6px; margin-bottom: 2px; color: var(--ink-soft); position: relative; }
.convo:hover { background: rgba(43, 42, 38, 0.04); }
.convo.active { background: var(--gold-tint); color: var(--ink); }
.convo .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.kebab { width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); flex-shrink: 0; background: none; border: none; }
.kebab:hover { background: rgba(43, 42, 38, 0.08); }
.rail-spacer { flex: 1; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; border: 0.5px solid var(--line); background: #F6F0E4; cursor: pointer; }
.rail.collapsed .profile-row { padding: 0; border: none; background: none; justify-content: center; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 500; font-size: 12px; flex-shrink: 0; }
.profile-text { display: flex; flex-direction: column; line-height: 1.3; overflow: hidden; }
.rail.collapsed .profile-text { display: none; }
.profile-text .pname { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-text .pplan { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--ink-faint); }
.popmenu { position: absolute; left: 12px; bottom: 64px; width: 200px; background: var(--paper); border: 0.5px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(43, 42, 38, 0.14); padding: 6px; z-index: 10; }
.popmenu .who { padding: 9px 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; }
.popmenu .divider { height: 1px; background: var(--line); margin: 4px 2px; }
.popitem { padding: 8px 10px; font-size: 13px; border-radius: 6px; color: var(--ink); display: block; }
.popitem:hover { background: rgba(43, 42, 38, 0.06); }
.popitem.danger { color: var(--brick); }
.convomenu { position: absolute; width: 150px; background: var(--paper); border: 0.5px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(43, 42, 38, 0.14); padding: 6px; z-index: 10; right: 4px; top: 28px; }
.convomenu .popitem { font-size: 12.5px; }

.main-area { flex: 1; overflow-y: auto; height: 100vh; }

/* ---------- LEARN: OS HUB ---------- */
.oshub { padding: 32px 40px 40px; }
.oshub-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); margin-bottom: 10px; }
.oshub h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px; margin: 0 0 12px; max-width: 520px; }
.oshub p { font-size: 14px; color: var(--ink-soft); max-width: 480px; line-height: 1.65; margin: 0 0 32px; }
.oslayers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.oslayer { background: #F6F0E4; border: 0.5px solid var(--line); border-radius: 10px; padding: 18px 16px; position: relative; display: block; }
.oslayer .n { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--brick); margin-bottom: 10px; }
.oslayer h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 15px; margin: 0 0 6px; }
.oslayer p { font-size: 12px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

.learnask { display: flex; align-items: center; gap: 9px; border: 0.5px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--ink-faint); background: rgba(255, 255, 255, 0.4); margin-top: 32px; max-width: 560px; }

/* ---------- LEARN: LAYER (tags + search) ---------- */
.content { padding: 28px 32px 36px; }
.backlink { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); margin-bottom: 16px; display: inline-block; }
.layer-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; margin: 0 0 4px; }
.layer-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 20px; }
.searchbar { display: flex; align-items: center; gap: 8px; border: 0.5px solid var(--line); border-radius: 9px; padding: 10px 14px; background: rgba(255, 255, 255, 0.4); margin-bottom: 22px; max-width: 420px; }
.searchbar input { flex: 1; border: none; background: transparent; font-family: 'Public Sans', sans-serif; font-size: 13px; color: var(--ink); outline: none; }
.searchbar span { font-size: 13px; color: var(--ink-faint); }
.subhead { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.subhead h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; margin: 0; }
.subhead .count { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); }
.chipsrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font-size: 12.5px; padding: 7px 13px; border-radius: 20px; border: 0.5px solid var(--line); color: var(--ink-soft); background: #F6F0E4; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fcard { background: #F6F0E4; border: 0.5px solid var(--line); border-radius: 10px; padding: 16px 16px 14px; display: block; }
.fcard h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 15px; margin: 0 0 6px; }
.fcard p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 12px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tag { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; color: var(--brick); background: var(--brick-tint); padding: 2px 7px; border-radius: 5px; display: inline-block; }
.readbtn { font-family: 'IBM Plex Mono', monospace; font-size: 11px; border: 0.5px solid var(--line); padding: 4px 10px; border-radius: 5px; color: var(--ink-soft); display: inline-block; }

/* ---------- LEARN: FRAMEWORK / SKILL DETAIL ---------- */
.detail { padding: 28px 40px 40px; max-width: 720px; }
.detail-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); margin-bottom: 10px; }
.detail h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 26px; margin: 0 0 18px; max-width: 520px; }
.detail-text { flex: 1; font-family: 'Fraunces', serif; font-size: 15px; line-height: 1.75; max-width: 480px; }
.detail-text p { margin: 0 0 16px; }
.detail-text h2 { font-weight: 500; font-size: 17px; margin: 28px 0 10px; }
.detail-text h2:first-child { margin-top: 0; }
.skill-desc { font-family: 'Fraunces', serif; font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 480px; margin: 0 0 28px; }

/* ---------- CHAT ---------- */
.chatmain { flex: 1; padding: 0 32px 24px; display: flex; flex-direction: column; height: 100vh; }
.titlebar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; border-bottom: 0.5px solid var(--line); margin-bottom: 20px; flex-shrink: 0; }
.titlebar .ttext { display: flex; align-items: center; gap: 9px; }
.titlebar h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; margin: 0; }
.titlebar input.title-edit { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; border: none; border-bottom: 1px solid var(--gold); background: transparent; color: var(--ink); outline: none; padding: 0; }
.editicon { color: var(--ink-faint); font-size: 12px; background: none; border: none; }
.dateline { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); margin-bottom: 20px; flex-shrink: 0; }
.msg-scroll { flex: 1; overflow-y: auto; }
.msg-row { display: flex; margin-bottom: 18px; }
.msg-row.user { justify-content: flex-end; }
.bubble { background: var(--gold-tint); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; max-width: 72%; white-space: pre-wrap; }
.sender { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.sender-name { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); }
.reply { font-family: 'Fraunces', serif; font-size: 15px; line-height: 1.7; max-width: 80%; margin-bottom: 14px; white-space: pre-wrap; }
.source-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brick); background: var(--brick-tint); padding: 4px 10px; border-radius: 6px; width: fit-content; margin-bottom: 24px; }
.input-bar-wrap { flex-shrink: 0; margin-top: auto; padding-top: 12px; }
.input-bar { display: flex; align-items: center; gap: 10px; border: 0.5px solid var(--line); border-radius: 10px; padding: 11px 15px; font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.input-bar textarea { flex: 1; border: none; background: transparent; font-family: 'Public Sans', sans-serif; font-size: 13px; color: var(--ink); outline: none; resize: none; max-height: 120px; }
.input-bar textarea::placeholder { color: var(--ink-faint); }
.input-send { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; border: none; }
.input-send:disabled { opacity: 0.4; }
.thinking-dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.thinking-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); animation: thinking-pulse 1.4s infinite ease-in-out both; }
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes thinking-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.empty-chat-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.empty-inner { text-align: center; max-width: 560px; width: 100%; }
.empty-inner .seal { margin-bottom: 18px; }
.greeting { font-family: 'Fraunces', serif; font-weight: 500; font-size: 26px; margin: 0 0 10px; }
.greeting-sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 28px; }
.empty-inner .input-bar { text-align: left; }

/* ---------- COMING SOON ---------- */
.soonwrap { padding: 56px 40px 64px; text-align: center; }
.lockicon { width: 38px; height: 38px; border-radius: 50%; border: 0.5px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.soon-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--brick); letter-spacing: 0.03em; margin-bottom: 10px; }
.soonwrap h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 26px; max-width: 440px; margin: 0 auto 14px; }
.soonwrap p { font-size: 14px; color: var(--ink-soft); max-width: 400px; margin: 0 auto 28px; line-height: 1.6; }
.notifyrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.notifyin { border: 0.5px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--ink); width: 220px; text-align: left; background: rgba(255, 255, 255, 0.4); outline: none; font-family: inherit; }
.notifybtn { background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; padding: 10px 18px; border-radius: 8px; border: none; }
.eta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); margin-top: 18px; }

/* ---------- ADMIN (deliberately plain per the phase-1 plan) ---------- */
.admin-wrap { padding: 28px 40px 40px; }
.admin-wrap h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; margin: 0 0 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 12px; border-bottom: 0.5px solid var(--line); }
.admin-table th { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); font-weight: 500; }
.admin-nav { display: flex; gap: 16px; margin-bottom: 24px; font-size: 13px; }
.admin-nav a { color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.admin-nav a.active { color: var(--ink); border-color: var(--gold); }

/* ---------- Marketing home page (§11) ---------- */
/* :root vars, *{box-sizing}, and body resets already defined above — not
   redeclared here. A few unused classes from the mockup's home-page section
   (.preview, .flow*, .how-item — leftover from an earlier draft, superseded
   by .fwsection/.fw-step/.peek, never referenced by any markup) are
   deliberately skipped. */
.homepage { background: var(--paper); }
.hwrap { max-width: 1040px; margin: 0 auto; padding: 0 40px; }

.homenav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 0.5px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; }
.navlinks { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--ink-soft); }
.navlinks a { color: var(--ink-soft); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.navlinks a:hover { color: var(--ink); }
.soonbadge { font-family: 'IBM Plex Mono', monospace; font-size: 9px; background: rgba(43, 42, 38, 0.08); padding: 2px 6px; border-radius: 4px; color: var(--ink-faint); }
.navcta { display: flex; align-items: center; gap: 18px; }
.login { font-size: 14px; color: var(--ink-soft); }
.startbtn { background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 8px; }

.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 36px; line-height: 1.25; max-width: 680px; margin: 0 auto 16px; }
.herosubhead { font-family: 'Fraunces', serif; font-size: 18px; font-style: italic; color: var(--ink-soft); max-width: 520px; margin: 0 auto 20px; line-height: 1.5; }
.hero p { font-size: 14.5px; color: var(--ink-soft); max-width: 440px; margin: 0 auto 36px; line-height: 1.65; }

.promptbox { max-width: 560px; margin: 0 auto 16px; display: flex; align-items: center; gap: 10px; border: 0.5px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #F6F0E4; text-align: left; }
.promptbox input { flex: 1; border: none; background: transparent; font-family: 'Public Sans', sans-serif; font-size: 14px; color: var(--ink-faint); outline: none; }
.sendbtn { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; cursor: pointer; }

.prompts-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); margin-bottom: 12px; }
.promptchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 600px; margin: 0 auto 48px; }
.pchip { font-size: 12.5px; padding: 8px 14px; border-radius: 20px; border: 0.5px solid var(--line); color: var(--ink-soft); background: transparent; cursor: pointer; }

.section-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; text-align: center; margin-bottom: 12px; }
.section-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 26px; text-align: center; max-width: 520px; margin: 0 auto 40px; }

.howcta { display: flex; justify-content: center; padding-top: 32px; padding-bottom: 80px; }
.startnowbtn { background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; padding: 12px 24px; border-radius: 8px; }

.peek { padding-bottom: 80px; }
.peek-frame { max-width: 760px; margin: 0 auto; background: var(--paper-deep); border: 0.5px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(43, 42, 38, 0.12); }
.peek-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 0.5px solid var(--line); }
.peek-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(43, 42, 38, 0.18); }
.peek-body { display: flex; min-height: 220px; }
.peek-rail { width: 120px; background: var(--paper-deep); border-right: 0.5px solid var(--line); padding: 14px 10px; flex-shrink: 0; }
.peek-navitem { font-size: 11px; color: var(--ink-soft); padding: 6px 8px; border-radius: 5px; margin-bottom: 2px; }
.peek-navitem.active { background: var(--gold-tint); color: var(--ink); }
.peek-main { flex: 1; background: var(--paper); padding: 18px 22px; }
.peek-msg { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.peek-bubble { background: var(--gold-tint); border-radius: 10px; padding: 8px 12px; font-size: 12px; max-width: 65%; }
.peek-reply { font-family: 'Fraunces', serif; font-size: 13px; line-height: 1.6; max-width: 75%; color: var(--ink); }
.peek-caption { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 18px; }

.fwsection { padding: 0 0 76px; }
.fw-intro { font-family: 'Fraunces', serif; font-size: 17px; line-height: 1.7; color: var(--ink); max-width: 600px; margin: 0 auto 48px; text-align: center; }
.fw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 44px; }
.fw-step { text-align: center; padding: 0 10px; }
.fw-num { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--paper); font-family: 'IBM Plex Mono', monospace; font-size: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.fw-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.fw-step h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; margin: 0 0 8px; }
.fw-step p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.fw-closer { font-family: 'Fraunces', serif; font-style: italic; font-size: 19px; line-height: 1.6; color: var(--ink); text-align: center; max-width: 560px; margin: 0 auto; padding-top: 36px; border-top: 0.5px solid var(--line); }

.roomgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 32px auto 0; }
.roombox { background: #F6F0E4; border: 0.5px solid var(--line); border-radius: 12px; padding: 20px 20px 18px; text-align: left; }
.roombox.soon { opacity: 0.75; }
.roomlabel { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--brick); letter-spacing: 0.03em; margin-bottom: 10px; }
.roombox h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.roombox p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

.layers-band { background: var(--paper-deep); padding: 64px 0; }
.layers-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.layer-card { background: var(--paper); border: 0.5px solid var(--line); border-radius: 10px; padding: 20px 18px; }
.layer-card .n { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); margin-bottom: 10px; }
.layer-card h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; margin: 0 0 6px; }
.layer-card p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.trust { padding: 72px 0; text-align: center; }
.trust p { font-family: 'Fraunces', serif; font-size: 20px; line-height: 1.6; max-width: 560px; margin: 0 auto; color: var(--ink); }

.homefooter { border-top: 0.5px solid var(--line); padding: 32px 0; display: flex; align-items: center; justify-content: space-between; }
.foot-logo { display: flex; align-items: center; gap: 7px; font-family: 'Fraunces', serif; font-size: 14px; color: var(--ink-soft); }
.foot-links { display: flex; gap: 24px; font-size: 13px; color: var(--ink-faint); }

/* ---------- Settings (Profile / Account) ---------- */
.settings-wrap { max-width: 560px; padding: 36px 40px; }
.settings-wrap h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px; margin: 0 0 6px; }
.settings-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 24px; }
.settings-nav { display: flex; gap: 20px; margin-bottom: 28px; font-size: 13px; border-bottom: 0.5px solid var(--line); }
.settings-nav a { color: var(--ink-soft); text-decoration: none; padding: 0 0 10px; border-bottom: 2px solid transparent; }
.settings-nav a.active { color: var(--ink); border-color: var(--gold); }
.settings-section { background: #F6F0E4; border: 0.5px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 20px; }
.settings-section h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; margin: 0 0 4px; }
.settings-section .hint { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 16px; }
.settings-field { margin-bottom: 14px; }
.settings-field label { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 5px; font-family: 'IBM Plex Mono', monospace; }
.settings-field input { width: 100%; padding: 9px 11px; border: 0.5px solid var(--line); border-radius: 7px; background: var(--paper); font-family: 'Public Sans', sans-serif; font-size: 14px; color: var(--ink); box-sizing: border-box; }
.settings-btn { background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 500; padding: 9px 18px; border-radius: 7px; border: none; cursor: pointer; }
.settings-note-success { font-size: 13px; color: #3D6B4F; margin-top: 12px; }
.settings-note-error { font-size: 13px; color: var(--brick); margin-top: 12px; }
.plan-badge { display: inline-flex; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; background: var(--gold-tint); color: var(--ink); padding: 4px 10px; border-radius: 6px; }
