/* ROOM360 OS · shared design tokens and components (Signature Playbook, Nov 2026).
   Cream reading ground, Bordeaux text and depth, Vermilion only as a signal, Brick for small labels/links,
   Archivo (condensed for headlines) + Instrument Serif Italic for warmth. No gradients on the logo, no gold. */
:root {
  --cream: #F4EADA; --cream-2: #EFE3CF; --paper: #FBF6EE; --bordeaux: #530B16; --bordeaux-2: #6E1A26; --vermilion: #ED230D;
  --butter: #F3D779; --brick: #B5200F; --chrome: #A8A49E; --ink-soft: #7A5A5F; --line: rgba(83, 11, 22, .14); --line-2: rgba(83, 11, 22, .24);
  --r: 16px; --r-s: 10px; --shadow: 0 1px 0 rgba(83, 11, 22, .04), 0 10px 30px -18px rgba(83, 11, 22, .28);
  --sans: Archivo, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; --serif: 'Instrument Serif', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--bordeaux); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body { background-image: radial-gradient(ellipse 900px 520px at 100% -10%, rgba(243, 215, 121, .14), transparent 70%); }
a { color: var(--brick); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.display { font-family: var(--sans); font-weight: 800; font-stretch: 78%; letter-spacing: -.02em; line-height: .98; }
h1.display { font-size: clamp(34px, 4vw, 52px); }
h2.display { font-size: 24px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.eyebrow { font: 700 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brick); }
.muted { color: var(--ink-soft); } .small { font-size: 12px; } .fine { font-size: 11px; color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--bordeaux);
  background: transparent; color: var(--bordeaux); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .1s; }
.btn:hover { background: rgba(83, 11, 22, .06); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--bordeaux); color: var(--cream); }
.btn.primary:hover { background: var(--bordeaux-2); }
.btn.signal { background: var(--vermilion); border-color: var(--vermilion); color: #fff; }
.btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* surfaces */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-weight: 800; font-stretch: 85%; font-size: 17px; letter-spacing: -.01em; }
.row { display: flex; align-items: center; gap: 12px; }
.list > * + * { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 22px; }
.item .grow { flex: 1; min-width: 0; }
a.item, a.item:hover { color: var(--bordeaux); text-decoration: none; }
a.item:hover { background: rgba(83, 11, 22, .035); }
.item .fine { display: block; }
.item b { display: block; font-weight: 700; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font: 700 11px/1 var(--sans); white-space: nowrap; background: var(--paper); }
.pill.signal { border-color: var(--vermilion); color: var(--vermilion); }
.pill.butter { background: var(--butter); border-color: transparent; }
.pill.dark { background: var(--bordeaux); color: var(--cream); border-color: transparent; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi { padding: 20px 22px; }
.kpi .v { font: 800 38px/1 var(--sans); font-stretch: 80%; margin: 14px 0 6px; }
.bar { display: block; height: 4px; background: rgba(83, 11, 22, .12); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--vermilion); }

/* forms */
.field { display: grid; gap: 6px; }
.field > span { font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brick); }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fffdf9; outline: none; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; }
.input:focus { border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(83, 11, 22, .08); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* tables */
table.t { width: 100%; border-collapse: collapse; }
table.t th { font: 700 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brick); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td.r, table.t th.r { text-align: right; }

/* modal + toast */
.scrim { position: fixed; inset: 0; background: rgba(40, 6, 12, .38); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { width: min(760px, 100%); max-height: 90vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--bordeaux); color: var(--cream); padding: 12px 18px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow); max-width: 90vw; }
.notice { border-left: 3px solid var(--vermilion); background: rgba(237, 35, 13, .05); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 13px; }
.empty { padding: 26px 22px; color: var(--ink-soft); }
.logo svg { display: block; height: 30px; width: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 700; font-size: 12.5px; }
.tab.on { background: var(--bordeaux); color: var(--cream); border-color: var(--bordeaux); }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 2px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } .card-pad { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

a.tab { display: inline-flex; align-items: center; color: var(--bordeaux); text-decoration: none; }
a.tab.on { color: var(--cream); }
