/* Stashy Central (17 Nov 2026; redesigned 18 Nov 2026): a customer list, a page per customer and a Security page.
   Light and dark follow the device.
   One rule runs through it (Aaron, 18 Nov 2026): anything you can click is on the card colour with a thin outline
   (--edge); anything that only tells you something is flat, with no outline. */
:root {
  --bg: #f4f3ef; --card: #ffffff; --tile: #f4f3ef; --flat: #eae8e1; --ink: #1d1d1b; --muted: #66655f; --line: #e6e4dd; --edge: #8f8c82;
  --shadow: 0 1px 2px rgba(20, 20, 15, .05), 0 4px 16px rgba(20, 20, 15, .05);
  --accent: #3b5bdb; --accent-soft: #e8ecff; --accent-ink: #2c46b0;
  --green: #2f9e5b; --green-soft: #e3f5ea; --green-ink: #1f7a43; --amber: #c98a06; --amber-soft: #fdf3dc; --amber-ink: #8a5d00; --red: #d0453f; --red-soft: #fbe6e5; --red-ink: #b3322d;
  --hot: #d9711a; --cold: #3a6fb5; --master: #6b4fd8; --master-soft: #efebfd; --master-ink: #5a3fc7; --preview: #1e9a8a; --preview-soft: #e1f5f2; --preview-ink: #12695e;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211; --card: #1c1c1a; --tile: #262624; --flat: #232321; --ink: #ecebe6; --muted: #a3a19a; --line: #2f2e2b; --edge: #77756d; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --accent: #8ea4ff; --accent-soft: #252c48; --accent-ink: #a9baff;
    --green: #5ac684; --green-soft: #1b3326; --green-ink: #6fd698; --amber: #e9b23d; --amber-soft: #382c12; --amber-ink: #f0c15c; --red: #ef6e68; --red-soft: #3c1f1e; --red-ink: #ff8f89;
    --hot: #f08c3a; --cold: #6aa3e8; --master: #a996ff; --master-soft: #2b2547; --master-ink: #bdaeff; --preview: #4fc9b8; --preview-soft: #17332f; --preview-ink: #6bd9c9;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* layout rules below would otherwise show hidden sections */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.sub.below { margin-top: 12px; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin-top: 32px; }
.error { color: var(--red-ink); }
.empty { color: var(--muted); }
.grow { flex: 1 1 260px; min-width: 0; }
.pre { white-space: pre-line; }
a { color: var(--accent-ink); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .93em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 10px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); text-decoration: none; min-height: 44px; }
.mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--master)); display: inline-block; }
.mark.big { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink); font-size: 14px; text-decoration: none; border: 1px solid transparent; }
.nav a:hover { border-color: var(--edge); }
.nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.account { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }

/* Buttons, links that look like buttons, and boxes you type in: all outlined */
button { font: inherit; cursor: pointer; border-radius: 999px; padding: 10px 20px; border: 1px solid transparent; min-height: 44px; }
button.primary, .btn.primary { background: var(--accent); color: #fff; font-weight: 600; border-color: var(--accent); }
@media (prefers-color-scheme: dark) { button.primary, .btn.primary { color: #10131f; } }
button.ghost, .btn { background: var(--card); color: var(--ink); border: 1px solid var(--edge); padding: 7px 16px; font-size: 14px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; text-decoration: none; }
button.ghost:hover, .btn:hover { background: var(--tile); }
.btn.primary:hover, button.primary:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: default; }
a.btn[target="_blank"]::after { content: " ↗"; white-space: pre; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 0 12px; min-height: 44px; max-width: 100%; }
textarea { padding: 10px 12px; width: 100%; resize: vertical; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
label input, label select, label textarea { font-size: 15px; font-weight: 400; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choices.under { margin-top: 12px; }

/* Sign-in, the code and two-step setup */
.signin { display: flex; justify-content: center; padding-top: 6vh; }
.signin .panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 40px; max-width: 460px; text-align: center; }
.signin p { color: var(--muted); margin: 10px 0 22px; }
.signin .choices { justify-content: center; }
.signin .error { color: var(--red-ink); margin: 14px 0 0; }
.codebox { align-items: center; margin: 0 0 18px; font-size: 13px; }
.codebox input { width: 220px; text-align: center; font-size: 22px; letter-spacing: .18em; }
.qr { display: block; margin: 0 auto 8px; width: 210px; height: 210px; border-radius: 12px; background: #fff; }

/* Page head, summary tiles and the toolbar */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { border-radius: var(--radius); padding: 14px 18px; min-width: 0; }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .big { font-size: 28px; font-weight: 650; margin-top: 2px; line-height: 1.25; overflow-wrap: anywhere; }
.stat .big.small { font-size: 20px; line-height: 1.75; }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 2px; min-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat.green .big { color: var(--green-ink); } .stat.amber .big { color: var(--amber-ink); } .stat.red .big { color: var(--red-ink); }
/* A tile that only tells you something: flat */
.stat.still { background: var(--flat); }
/* The tiles that filter the list are buttons: outlined */
button.stat { font: inherit; color: inherit; text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, border-color .12s; }
button.stat:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--ink); }
button.stat:disabled { opacity: .55; cursor: default; }
button.stat:disabled .hint { visibility: hidden; }
button.stat.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button.stat.green.active { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
button.stat.amber.active { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
button.stat.red.active { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.toolbar input[type="search"] { width: 100%; }
#count, #sec-count { margin: 0 0 10px; }

/* The customer list: each row can be opened, so each is outlined */
.scroll { overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; }
.rows { display: grid; gap: 10px; min-width: 900px; }
.rowhead, .row summary { display: grid; grid-template-columns: 18px minmax(200px, 1.7fr) 100px 120px minmax(150px, 1fr) minmax(190px, 1.2fr) 20px; align-items: center; gap: 16px; }
.rowhead { padding: 0 21px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.row { background: var(--card); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; }
.row summary { list-style: none; cursor: pointer; padding: 12px 20px; min-height: 68px; }
.row summary::-webkit-details-marker { display: none; }
.row summary:hover { background: var(--tile); }
.light { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px var(--tile); flex: 0 0 auto; }
.green .light { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.amber .light { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.red .light { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.who { min-width: 0; }
.name { font-size: 16px; font-weight: 650; display: block; }
.who .sub { display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col { min-width: 0; font-size: 14px; }
.line { display: block; }
.col .line.sub { margin-top: 3px; font-size: 12px; }
.meter { display: block; height: 6px; border-radius: 999px; background: var(--line); margin-top: 6px; overflow: hidden; }
.meter span { display: block; height: 6px; border-radius: 999px; background: var(--green); }
.meter span.warn { background: var(--amber); }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 4px; transition: transform .15s; }
details[open] .chev { transform: rotate(225deg); margin-bottom: -4px; }
.quick { display: grid; gap: 14px; padding: 16px 20px 18px 54px; border-top: 1px solid var(--line); }
.quick .sub { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Tiles: figures, flat */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { background: var(--tile); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.tile .label { font-size: 12px; color: var(--muted); }
.tile .value { font-size: 20px; font-weight: 650; margin-top: 2px; overflow-wrap: anywhere; }
.tile .extra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Pills: labels, flat */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 550; line-height: 1.4; background: var(--tile); color: var(--ink); white-space: nowrap; }
.tile .value .pill { font-size: 16px; padding: 2px 12px; }
.pill.ok { background: var(--green-soft); color: var(--green-ink); }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.bad { background: var(--red-soft); color: var(--red-ink); }
.pill.muted { color: var(--muted); }
.pill.region { background: var(--accent-soft); color: var(--accent-ink); }
.pill.release, .pill.master { background: var(--master-soft); color: var(--master-ink); }
.pill.preview { background: var(--preview-soft); color: var(--preview-ink); }
.pill.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 500; }
.pill.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.status.green { background: var(--green-soft); color: var(--green-ink); }
.pill.status.amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill.status.red { background: var(--red-soft); color: var(--red-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tiles + .chips { margin-top: 10px; }
td .pill + .pill { margin-left: 6px; }

/* Links to the error log (Google Cloud's own page) */
.h3row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.h3row h3 { margin: 0; }
.h3row + .tip { margin: -6px 0 12px; font-size: 12px; }
.loglink { font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.loglink::after { content: " ↗"; }
.loglink:hover { text-decoration: underline; }
.tile .extra .loglink { font-size: 12.5px; }
a.pill { text-decoration: none; cursor: pointer; border: 1px solid var(--red-ink); }
a.pill::after { content: "↗"; font-size: 11px; opacity: .8; }
a.pill:hover { filter: brightness(.95); }

/* Storage bar */
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--tile); margin-top: 14px; }
.bar .hot { background: var(--hot); } .bar .cold { background: var(--cold); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.legend .sub { margin: 0; }
.pill.hot-key::before, .pill.cold-key::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.pill.hot-key::before { background: var(--hot); } .pill.cold-key::before { background: var(--cold); }
.w0 { width: 0; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; }
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }

/* One customer's page */
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.back:hover { text-decoration: underline; }
.custhead { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin: 4px 0 18px; }
.custhead .light { width: 16px; height: 16px; margin-top: 10px; }
.custhead .sub { font-size: 14px; }
.custhead .chips { margin-top: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--edge); font-size: 14px; font-weight: 600; text-decoration: none; }
.tab:hover { background: var(--tile); }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabbody, .pair { display: grid; gap: 16px; }
.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.panel > p { margin: 4px 0; }
.facts { margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; }
.form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.noteform label { flex: 1 1 320px; }
.command { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.command code { background: var(--tile); border-radius: 10px; padding: 10px 14px; overflow-wrap: anywhere; }
.events { margin-top: 8px; }
.event { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.event .when { flex: 0 0 170px; color: var(--muted); }
.event .what { flex: 1 1 320px; white-space: pre-line; overflow-wrap: anywhere; }
.event .what.strong { font-weight: 600; }
.event .by { color: var(--muted); font-size: 13px; }
ul.plain { margin: 0; padding-left: 18px; font-size: 14px; }
ul.plain li { margin: 4px 0; }

/* Account on hold (17 Nov 2026) */
.hold .holdrow { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }

/* The sign-in log */
.tablewrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: 14px; }
.log th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.log td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.log tr:last-child td { border-bottom: 0; }
.log tr.refused td { background: var(--red-soft); }
.log tr.refused .pill.bad { background: var(--card); }
.log .sub.line { margin: 2px 0 0; }

/* "Are you sure?" */
dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); padding: 28px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(15, 15, 12, .5); }
dialog h2 { font-size: 20px; margin: 0 0 10px; }
dialog p { margin: 0 0 18px; }
dialog .codebox { align-items: stretch; font-size: 13px; font-weight: 400; color: var(--ink); }
dialog .codebox b { display: inline; }
dialog .codebox input { width: 100%; text-align: left; font-size: 16px; letter-spacing: 0; }

/* Narrow screens (phones) */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: 1fr; }
  .quick { padding: 16px 18px 18px; }
}
@media (max-width: 480px) {
  main { padding: 20px 16px 60px; }
  .top { padding: 8px 16px; }
  .account span { display: none; }
  .signin .panel { padding: 28px 22px; }
  h1 { font-size: 24px; }
}
