@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700;900&family=Roboto+Mono:wght@400;500&family=Roboto:wght@400;500;700&display=swap');

:root {
  --ink: #000; --paper: #F2F0EB; --card: #fff;
  --brand: #ED2224; --brand-lt: #F05657; --gold: #FDD840;
  --rule: #B4B3B3; --muted: #6E6E6E;
  --ok: #1B6B4A; --warn: #B4531B; --bad: #C62A1E; --badbg: #FDEAE6; --warnbg: #FFF1DC;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Roboto Condensed", "Arial Narrow", "Roboto", sans-serif;
  --code: "Roboto Mono", ui-monospace, Menlo, monospace;
  --shadow: 6px 6px 0 rgba(0,0,0,.85);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--paper); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--cond); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.mono { font-family: var(--code); font-size: 12px; }
.muted { color: var(--muted); }
.err { color: var(--bad); font-weight: 700; }
.hidden { display: none !important; }

/* header band: rosso marble like Store Pulse */
.band { background: var(--marble-red) center/cover no-repeat, linear-gradient(180deg,#EE3A3C 0%,#F26A6B 100%);
  color: #fff; border-bottom: 4px solid #000; }
.band h1 { font-size: 30px; text-shadow: 3px 3px 0 #000; }
.band h1 span { color: var(--gold); }

/* cards */
.card { background: var(--card); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.pad { padding: 16px 20px; }
.eyebrow { font: 700 11px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* buttons + inputs */
.btn { font: 900 14px var(--cond); text-transform: uppercase; letter-spacing: .04em; padding: 9px 14px;
  border: 2px solid #000; border-radius: 10px; background: #fff; color: #000; cursor: pointer; box-shadow: 3px 3px 0 #000; white-space: nowrap; }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #000; }
.btn.dark { background: #000; color: #fff; }
.btn.gold { background: var(--gold); }
.btn.red { background: var(--brand); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
input, select { font: 500 15px var(--sans); padding: 9px 12px; border: 2px solid #000; border-radius: 10px; background: #fff; min-width: 0; }
input:focus, select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--cond); text-transform: uppercase; padding: 6px 12px;
  border: 2px solid #000; border-radius: 999px; background: #fff; cursor: pointer; white-space: nowrap; }
.pill.on { background: #000; color: #fff; }
.seg { display: inline-flex; border: 2px solid #000; border-radius: 12px; overflow: hidden; background: #fff; }
.seg button { font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .04em; padding: 8px 14px; border: 0; border-right: 1px solid var(--rule); background: #fff; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: #000; color: #fff; }

.tag { display: inline-block; font: 900 11px/1 var(--cond); text-transform: uppercase; padding: 3px 6px; border: 1px solid #000; border-radius: 6px; background: #fff; vertical-align: 1px; }
.tag.new { background: var(--gold); }
.tag.arch { background: #3A3A3A; color: #fff; border-color: #3A3A3A; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #000; margin-right: 6px; vertical-align: -1px; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.dot.run { background: var(--gold); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 10px; }
.stat { border: 2px solid #000; border-radius: 12px; padding: 8px 12px; background: #FAFAF8; }
.stat small { display: block; font: 700 11px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat b { font: 900 26px/1.1 var(--cond); }
.stat.alarm { background: var(--badbg); border-color: var(--bad); }
.stat.alarm b { color: var(--bad); }

/* plain tables */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; }
th, td { padding: 7px 8px; border-bottom: 1px solid #E3E2E1; vertical-align: top; }

.toast { position: fixed; right: 20px; bottom: 20px; max-width: 420px; z-index: 50; background: #fff; border: 3px solid #000; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 16px; font: 500 15px var(--cond); }

/* ===== FINAL STYLE (Nov 25 2026). Soft white cards, no black outlines. This used to be theme.css, loaded by a few pages only;
   it is now part of brand.css so every page that links brand.css gets the same look. See /app/style for every part in use. ===== */
:root {
  --ink: #16181D; --line: #E3E1DC; --soft: #F6F5F1; --muted: #6B7078; --rule: #E3E1DC;
  --sh: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.07); --shadow: var(--sh);
  --up: #1B6B4A; --down: #C62A1E; --blue: #1F5A93;
}
html { background: #F2F0EB; }
body { background: transparent; color: var(--ink); }
.band { border-bottom: 0; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.band h1 { text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.band h1 span { color: #fff; opacity: .92; }
.card { border: 0; border-radius: 16px; box-shadow: var(--sh); }
.eyebrow { letter-spacing: .06em; }
.btn { border: 0; box-shadow: none; border-radius: 12px; background: var(--soft); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 15px; padding: 10px 15px; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.dark, .btn.gold { background: var(--ink); color: #fff; }
.btn.red { background: var(--brand); color: #fff; }
input, select, textarea { border: 1px solid var(--line); border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
.pill { border: 0; background: var(--soft); text-transform: none; font-size: 14px; }
.pill.on { background: var(--ink); color: #fff; }
.seg { border: 0; border-radius: 999px; background: var(--soft); padding: 3px; gap: 2px; overflow: visible; }
.seg button { border: 0 !important; border-radius: 999px; background: none; text-transform: none; letter-spacing: 0; white-space: nowrap; padding: 7px 13px; }
.seg button.on { background: var(--ink); color: #fff; }
.tag { border: 0; background: var(--soft); border-radius: 999px; padding: 4px 8px; }
.tag.new { background: #DDEBF7; color: var(--blue); }
.dot { border: 0; }
.stat { border: 0; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.stat.alarm { background: #FCE4E4; }
.toast { border: 0 !important; border-radius: 999px !important; box-shadow: var(--sh) !important; }
a { color: var(--blue); }
::selection { background: #F9C9CA; }
/* gold is an accent only: a soft amber for "new / now" highlights, never a button or a border */
:root { --gold: #F6E2A0; }

/* ===== The selected pill (Dec 1 2026, Ryan: "The gradient select feature is one I'd like to replicate across the apps";
   Dec 2 2026: "the selected menu option gradient should match the colour scheme of the current app. So Red for Ops Desk and
   Blue for ComX"). One look for "you are here" on every side menu and tab row: a pill with a soft dark → light gradient in
   the APP'S OWN colour and a light edge on the left. Use class "sel-pill" on anything new that shows the chosen item; the side
   menus and tab rows (.seg / .tabs / #tabs / #gtabs / .ctabs / #side) get it from mobile.css (ONE LOOK) without a class.
   Each app sets only these variables (white text stays at 4.5:1 or better on the light end):
     Ops Deck red     #9E1416 → #D41F21 (here)            ComX blue    #1F3BA8 → #3A5BD6 (suite THEMES + its globals.css)
     Warehouse silver #3F454E → #6B727C (whs-theme.css)   Back Issues  #6B5630 → #8A6D39 (suite THEMES + desk.css)
     Titus green      #0F4D2C → #2E7D4F (titus.css)       Game app staff side purple #4A2380 → #7A4FB5 (games.html)
   Store Pulse keeps its own. ===== */
:root {
  --sel-from: #9E1416; --sel-to: #D41F21; --sel-edge: #F9C9CA; --sel-ink: #fff;
  --sel-grad: linear-gradient(90deg, var(--sel-from), var(--sel-to));
  --sel-shadow: inset 3px 0 0 var(--sel-edge), 0 1px 3px rgba(22,24,29,.25);
}
.sel-pill, .seg button.on, .tabs button.on, .pill.on { background: var(--sel-grad); color: var(--sel-ink); box-shadow: var(--sel-shadow); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sel-pill svg { opacity: 1; }
