/* RAMen Hub, the RAMen page. The RAMen brand, the same palette as the RAMen add-on and the RAMen panel in Claude and
   ChatGPT: Inter, light tan and cream with deep brown text and broth orange by day, warm espresso after dark.
   Tight corners (8 to 12px), hairline warm borders, soft shadows, generous space. */
:root {
  --bg: #f8f1e4; --surface: #fffaf2; --side: #f3e8d6; --raise: #f4e9d7; --hover: #efe1cb; --text: #2b1d12; --muted: #7a6450; --faint: #a38d76;
  --line: #eadbc4; --line-2: #dcc7a8; --accent: #d9771f; --accent-ink: #2b1406; --accent-soft: #fde8d0; --ok: #2e7d4f; --bad: #b23c22;
  --ai: #0f7f76; --ai-soft: #dcf0ec; --shadow: 0 1px 2px rgba(64, 40, 16, .06), 0 6px 20px -10px rgba(64, 40, 16, .18);
  --shadow-lg: 0 1px 2px rgba(64, 40, 16, .07), 0 18px 50px -20px rgba(64, 40, 16, .32);
  --r-sm: 6px; --r: 8px; --r-md: 10px; --r-lg: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120d; --surface: #241c15; --side: #1d1711; --raise: #2d231a; --hover: #352a20; --text: #f6ecde; --muted: #bba791; --faint: #8d7b68;
    --line: #3a2d22; --line-2: #4a3a2c; --accent: #f29a43; --accent-ink: #2b1406; --accent-soft: #3b2a1b; --ok: #7ccf9c; --bad: #f08b72;
    --ai: #5fcfc3; --ai-soft: #1d332f; --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 60px -24px rgba(0, 0, 0, .75); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17120d; --surface: #241c15; --side: #1d1711; --raise: #2d231a; --hover: #352a20; --text: #f6ecde; --muted: #bba791; --faint: #8d7b68;
  --line: #3a2d22; --line-2: #4a3a2c; --accent: #f29a43; --accent-ink: #2b1406; --accent-soft: #3b2a1b; --ok: #7ccf9c; --bad: #f08b72;
  --ai: #5fcfc3; --ai-soft: #1d332f; --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 60px -24px rgba(0, 0, 0, .75); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 450 14.5px/1.55 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code, pre { font-family: var(--mono); font-size: .88em; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.shell.collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.shell.collapsed .side { border-right: 0; }
.brand { display: flex; align-items: center; gap: 9px; padding: 16px 16px 12px; font: 800 18px/1 var(--font); letter-spacing: -0.035em; }
.brand img { width: 26px; height: 26px; }
.brand .en { color: var(--accent); }
.brand small { margin-left: auto; font: 600 10.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 4px 6px; }
.nav { padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r); color: var(--text); font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--hover); text-decoration: none; }
.nav a.on { background: var(--surface); box-shadow: var(--shadow); }
.nav svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.nav a.on svg { color: var(--accent); }
.nav .group { margin: 12px 10px 3px; font: 650 11px/1.2 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.nav .gap { height: 10px; flex: none; }
.nav .room { padding-left: 38px; font-size: 13.5px; color: var(--muted); font-weight: 450; position: relative; }
.nav .room::before { content: ""; position: absolute; left: 19px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 2px; background: var(--line-2); }
.nav .room.on { color: var(--text); font-weight: 550; }
.nav .room.on::before { background: var(--accent); }
.me { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: var(--r); display: grid; place-items: center; font: 650 12px/1 var(--font); letter-spacing: 0;
  background: var(--accent-soft); color: var(--accent); flex: none; }
.avatar svg { width: 16px; height: 16px; }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: 12px; color: var(--muted); }
.icon-btn { border: 0; background: none; padding: 7px; border-radius: var(--r); cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.main { min-width: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.top { display: flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 54px; border-bottom: 1px solid transparent; }
.top h1 { font: 650 15px/1.3 var(--font); letter-spacing: -0.015em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .grow { flex: 1; min-width: 0; }
.scroll { flex: 1; overflow-y: auto; }
.page { max-width: 840px; margin: 0 auto; padding: 22px 28px 72px; }
.page h2 { font: 750 30px/1.15 var(--font); letter-spacing: -0.035em; margin: 14px 0 8px; }
.page .lede { color: var(--muted); margin: 0 0 28px; font-size: 15px; max-width: 62ch; }
.page h3 { font: 650 14px/1.3 var(--font); letter-spacing: -0.01em; margin: 34px 0 10px; }
.kick { display: inline-flex; gap: 8px; align-items: center; font: 650 11.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }

/* ------------------------------------------------------------ pieces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface);
  padding: 7px 13px; border-radius: var(--r); cursor: pointer; font-weight: 550; font-size: 13.5px; white-space: nowrap; box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
  transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 80%, #000); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 90%, #fff); }
.btn.dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 15px; height: 15px; flex: none; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 12.5px; font-weight: 550; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input, select.input { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 9px 11px;
  outline: none; transition: border-color .12s, box-shadow .12s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input::placeholder, textarea::placeholder { color: var(--faint); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 160px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; color: inherit; }
a.card { transition: border-color .12s, box-shadow .12s; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card .ico { width: 30px; height: 30px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.card .ico svg { width: 17px; height: 17px; }
.card h4 { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.card .big { font: 750 24px/1.2 var(--font); letter-spacing: -0.03em; margin-top: 2px; }
.card p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.list { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .grow { min-width: 0; flex: 1; }
.item .t { font-weight: 550; overflow-wrap: anywhere; }
.item .s { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.item a.t { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--font); padding: 4px 7px; border-radius: var(--r-sm); background: var(--raise);
  color: var(--muted); white-space: nowrap; letter-spacing: .01em; }
.pill.ai { background: var(--ai-soft); color: var(--ai); }
.pill.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty .spark { color: var(--accent); font-size: 18px; display: block; margin-bottom: 8px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.copybox { display: flex; gap: 8px; align-items: stretch; }
.copybox code { flex: 1; min-width: 0; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 11px; overflow-x: auto;
  white-space: nowrap; font-size: 12.5px; line-height: 1.5; }
.note { font-size: 13px; color: var(--muted); }
.error { color: var(--bad); font-size: 13.5px; margin: 8px 0 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 14px;
  border-radius: var(--r); font-size: 13.5px; font-weight: 550; box-shadow: var(--shadow-lg); z-index: 50; animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 6px); } }
.seats { height: 6px; border-radius: 3px; background: var(--raise); overflow: hidden; margin: 8px 0 4px; }
.seats i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 5px 11px; cursor: pointer; font-size: 13px; font-weight: 550; color: var(--muted); }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--accent-soft); color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
pre.reader { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
  font: 13.5px/1.65 var(--font); margin: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ sign in, on warm tan */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 700px at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
              radial-gradient(900px 600px at 100% 100%, color-mix(in srgb, var(--ai) 10%, transparent), transparent 55%), var(--bg); }
.gate .card { width: min(420px, 100%); padding: 30px 28px 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 95%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-radius: var(--r-lg); }
.gate .logo { display: block; width: 42px; height: 42px; margin-bottom: 18px; }
.gate .kick { display: flex; }
.gate h2 { font: 750 24px/1.2 var(--font); margin: 8px 0 6px; letter-spacing: -0.03em; }
.gate p { color: var(--muted); margin: 0 0 20px; }
/* the sign-in card's lines wrap (a list card's lines are cut to one); its error is read in full, in red */
.gate .card p { white-space: normal; overflow: visible; }
.gate p.error { color: var(--bad); margin: 10px 0 0; }
.gate .alt { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.gate .or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 16px 0; }
.gate .or::before, .gate .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate .btn { width: 100%; padding: 9px 13px; }

/* ------------------------------------------------------------ a room */
.roomwrap { display: grid; grid-template-columns: minmax(0, 1fr) 0; flex: 1; min-height: 0; border-top: 1px solid var(--line); }
.roomwrap.notes-open { grid-template-columns: minmax(0, 1fr) 296px; }
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 10px 0 20px; }
.msgs .inner { max-width: 800px; margin: 0 auto; padding: 0 26px; }
.msg { display: flex; gap: 12px; padding: 11px 0; }
.msg .body { min-width: 0; flex: 1; }
.msg .head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.msg .head b { font-weight: 650; font-size: 14px; letter-spacing: -0.01em; }
.msg .head time, .msg .head .src { font-size: 11.5px; color: var(--faint); }
.msg .text { overflow-wrap: anywhere; }
.msg .text p { margin: 0 0 8px; }
.msg .text p:last-child { margin-bottom: 0; }
.msg .text pre { background: var(--raise); border-radius: var(--r); padding: 10px 12px; overflow-x: auto; }
.msg .text ul, .msg .text ol { margin: 4px 0 8px; padding-left: 20px; }
.msg .text li { margin: 2px 0; }
.msg.ai .text { background: var(--ai-soft); border: 1px solid color-mix(in srgb, var(--ai) 14%, transparent); border-radius: 3px var(--r-lg) var(--r-lg) var(--r-lg); padding: 10px 14px; }
.msg.system { justify-content: center; padding: 6px 0; }
.msg.system .text { font-size: 12.5px; color: var(--muted); background: var(--raise); border-radius: var(--r); padding: 6px 11px; text-align: center; max-width: 560px; }
.mention { color: var(--ai); font-weight: 650; }
.typing::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--ai); border-radius: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer { padding: 8px 26px 18px; }
.composer .box { max-width: 800px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 10px 10px 8px 12px; transition: border-color .12s, box-shadow .12s; }
.composer .box:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; background: transparent; min-height: 24px; max-height: 220px; padding: 3px 2px; display: block; }
.composer .tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: var(--r-sm);
  padding: 4px 8px 4px 6px; font-size: 12.5px; font-weight: 550; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip i { width: 14px; height: 14px; border-radius: 4px; display: grid; place-items: center; font: 700 9px/1 var(--font); font-style: normal; color: #fff; }
.composer .send { margin-left: auto; }
.notes { border-left: 1px solid var(--line); background: var(--side); overflow-y: auto; padding: 16px; min-width: 0; }
.roomwrap:not(.notes-open) .notes { display: none; }
.notes h4 { margin: 2px 0 4px; font-size: 13.5px; font-weight: 650; }
.notes > p { margin: 0 0 12px; }
.notes .n { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 8px 8px 11px; margin-bottom: 7px; font-size: 13px;
  display: flex; gap: 6px; align-items: flex-start; }
.notes .n span { flex: 1; overflow-wrap: anywhere; padding-top: 2px; }
.notes .n .icon-btn { padding: 3px; }
.notes .n .icon-btn svg { width: 14px; height: 14px; }
.people { display: flex; align-items: center; padding-left: 6px; }
.people .avatar { width: 26px; height: 26px; font-size: 10.5px; border: 2px solid var(--bg); margin-left: -6px; border-radius: var(--r); }

/* the AIs and the people get their own quiet colors */
.avatar.claude { background: #f6e6dc; color: #b45f3c; }
.avatar.gpt { background: #dff3ec; color: #13805f; }
.avatar.gemini { background: #e3ebff; color: #3f63d8; }
:root[data-theme="dark"] .avatar.claude { background: #3a2620; color: #f0a585; }
:root[data-theme="dark"] .avatar.gpt { background: #15322a; color: #6fd6ae; }
:root[data-theme="dark"] .avatar.gemini { background: #1d2850; color: #9db4ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar.claude { background: #3a2620; color: #f0a585; }
  :root:not([data-theme="light"]) .avatar.gpt { background: #15322a; color: #6fd6ae; }
  :root:not([data-theme="light"]) .avatar.gemini { background: #1d2850; color: #9db4ff; }
}
.avatar.p1 { background: #fcefe1; color: #c0661a; } .avatar.p2 { background: #e8f1fb; color: #2f6db0; } .avatar.p3 { background: #f1ecfb; color: #6d4cc2; }
.avatar.p4 { background: #e7f5ee; color: #2a7d55; } .avatar.p5 { background: #fbe9ee; color: #b2405f; } .avatar.p6 { background: #f4f1e6; color: #806a24; }
:root[data-theme="dark"] .avatar.p1, :root[data-theme="dark"] .avatar.p2, :root[data-theme="dark"] .avatar.p3,
:root[data-theme="dark"] .avatar.p4, :root[data-theme="dark"] .avatar.p5, :root[data-theme="dark"] .avatar.p6 { background: var(--raise); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar.p1, :root:not([data-theme="light"]) .avatar.p2, :root:not([data-theme="light"]) .avatar.p3,
  :root:not([data-theme="light"]) .avatar.p4, :root:not([data-theme="light"]) .avatar.p5, :root:not([data-theme="light"]) .avatar.p6 { background: var(--raise); }
}

/* ------------------------------------------------------------ RAMen 1.6: receipts, open items, projects, the card, settings */
.tabs .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 7px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.tabs button.on .count { background: var(--bg); color: var(--text); }
.quote { margin-top: 3px; font-size: 13px; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.quote::before { content: "Your words: "; font-style: normal; color: var(--faint); }
.item .acts { display: flex; gap: 4px; align-items: center; flex: none; }
.pill.warn { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
/* must-know facts: the mark on a note, and the star that turns it on and off (filled while it is one) */
.pill.must { background: var(--accent); color: var(--accent-ink); }
.icon-btn.star[aria-pressed="true"], .icon-btn.star[aria-pressed="true"]:hover { color: var(--accent); }
.icon-btn.star[aria-pressed="true"] svg { fill: currentColor; }
.edit-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.edit-row .input { flex: 1; min-width: 180px; padding: 7px 10px; }
label.item { cursor: pointer; }
.item.check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; cursor: pointer; }
.item.done .t { text-decoration: line-through; color: var(--muted); font-weight: 450; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row:first-child { border-top: 0; }
.switch-row .grow { flex: 1; min-width: 0; }
.switch-row .t { font-weight: 550; }
.switch-row .s { font-size: 12.5px; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: 10px; background: var(--line-2); position: relative;
  cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(16px); }
textarea.input.card-edit { min-height: 160px; resize: vertical; line-height: 1.6; display: block; }
.counter { font-size: 12.5px; color: var(--muted); }
.counter.over { color: var(--bad); font-weight: 600; }
.card.project { margin-bottom: 12px; }
.card.project .pname { font: 650 16px/1.3 var(--font); letter-spacing: -0.015em; }
.card.project .s { font-size: 12.5px; color: var(--muted); }
.card.project .avatar { width: 26px; height: 26px; }
.banner { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.banner .grow { flex: 1; min-width: 0; }
.banner .s { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------ phones */
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .shell.menu .side { transform: none; }
  .page { padding: 12px 16px 56px; }
  .msgs .inner, .composer { padding-left: 14px; padding-right: 14px; }
  .roomwrap.notes-open { grid-template-columns: minmax(0, 1fr); }
  .roomwrap.notes-open .chat { display: none; }
  .page h2 { font-size: 25px; }
  .item.note.pending { flex-wrap: wrap; }
  .item.note.pending .grow { flex-basis: 100%; }
  .item.note.pending .acts { margin-left: auto; }
}
@media (max-width: 420px) { .cards { gap: 10px; } .card { padding: 14px; } }

/* Advanced settings (sensitive topics): closed until the person opens it */
details.advanced { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
details.advanced > summary { cursor: pointer; font-weight: 600; color: var(--muted); list-style: none; }
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::before { content: "▸ "; }
details.advanced[open] > summary::before { content: "▾ "; }
details.advanced[open] > summary { color: var(--text); margin-bottom: 4px; }

/* RAMen Personalities */
.evq { margin-top: 4px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 9px; overflow-wrap: anywhere; }
.evq a { color: var(--accent); }
.card.kv p { margin: 4px 0; overflow-wrap: anywhere; }
.card.kv b { font-weight: 600; }
.signal { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 44px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.signal i { display: block; height: 7px; border-radius: 4px; background: var(--raise); overflow: hidden; }
.signal i b { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
details.quotes { margin-top: 6px; }
details.quotes > summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .signal { grid-template-columns: 1fr 60px 40px; } }
