/* Shopify Hub: label-white surfaces, denim ink, packing-tape yellow for "needs your action",
   red for "stopped". Tables carry the page; every order number sits next to its shop tag. */

@font-face { font-family: "Fira Sans"; font-weight: 400; src: url("/static/fonts/FiraSans-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Fira Sans"; font-weight: 500; src: url("/static/fonts/FiraSans-Medium.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Fira Sans"; font-weight: 600; src: url("/static/fonts/FiraSans-SemiBold.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Anton"; font-weight: 400; src: url("/static/fonts/Anton-Regular.woff") format("woff"); font-display: swap; }

:root {
  --paper: #eef1f6;
  --surface: #ffffff;
  --ink: #161d33;
  --mute: #5b6478;
  --line: #d5dbe6;
  --denim: #24347a;
  --denim-deep: #172152;
  --tape: #ffc62b;
  --tape-soft: #fff3c9;
  --stop: #b3261e;
  --stop-soft: #fbe4e2;
  --go: #1b6e4b;
  --go-soft: #dcf1e6;
  --text: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Anton", "Fira Sans", sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); line-height: 1.45; font-variant-numeric: tabular-nums; }
a { color: var(--denim); text-underline-offset: 2px; }
a:hover { color: var(--denim-deep); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.13rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
p { margin: 0.4rem 0; max-width: 78ch; }
small, .mute { color: var(--mute); }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--tape); padding: 6px 10px; z-index: 10; }

.shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--denim-deep); color: #dfe4f5; padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: block; padding: 0 18px 16px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1.05; }
.brand span { display: block; font-family: var(--text); font-size: 0.78rem; color: #aab3d6; margin-top: 4px; letter-spacing: 0; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li a { display: block; padding: 7px 18px; color: #dfe4f5; text-decoration: none; border-left: 4px solid transparent; }
.rail li a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.rail li a[aria-current="page"] { border-left-color: var(--tape); background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 500; }
.rail .sep { height: 1px; background: rgba(255, 255, 255, 0.14); margin: 10px 18px; }
.who { margin-top: auto; padding: 14px 18px 0; font-size: 0.86rem; color: #aab3d6; }
.who strong { display: block; color: #fff; font-weight: 500; }
.who button { margin-top: 8px; background: none; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; padding: 4px 10px; font: inherit; font-size: 0.86rem; cursor: pointer; }

main { padding: 22px 28px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; color: var(--mute); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.demo-banner { background: repeating-linear-gradient(-45deg, var(--tape) 0 14px, #1b1b1b 14px 28px); padding: 4px; margin-bottom: 14px; }
.demo-banner div { background: var(--tape); padding: 6px 12px; font-weight: 600; }
.flash { padding: 10px 14px; margin-bottom: 14px; border-left: 6px solid var(--go); background: var(--go-soft); }
.flash.error { border-color: var(--stop); background: var(--stop-soft); }
.flash.warn { border-color: var(--tape); background: var(--tape-soft); }

/* The morning slip: four answers in one band. */
.slip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 2px solid var(--ink); margin-bottom: 22px; }
.slip > div { padding: 14px 18px 16px; border-left: 2px dashed var(--line); }
.slip > div:first-child { border-left: 0; }
.slip .q { font-weight: 500; color: var(--mute); }
.slip .n { font-family: var(--display); font-size: 2.9rem; line-height: 1.05; color: var(--ink); text-decoration: none; display: inline-block; margin: 2px 0; }
.slip a.n:hover { color: var(--denim); }
.slip .n.hot { background: linear-gradient(transparent 58%, var(--tape) 58%); padding: 0 4px; margin-left: -4px; }
.slip .n.bad { color: var(--stop); }
.slip .n small { font-family: var(--text); font-size: 1rem; font-weight: 500; color: var(--ink); margin-left: 6px; }
.slip .more { font-size: 0.93rem; }

table { border-collapse: collapse; width: 100%; background: var(--surface); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
th { text-align: left; font-weight: 600; font-size: 0.86rem; color: var(--mute); padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; background: var(--surface); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num a { font-weight: 600; }
tbody tr:hover td { background: #f7f9fc; }
.empty { padding: 26px; text-align: center; color: var(--mute); background: var(--surface); border: 1px dashed var(--line); }

/* Shop identity: a coloured edge that follows the shop on every screen. */
.shop { display: inline-block; border-left: 6px solid var(--sw, var(--denim)); padding: 1px 8px 1px 7px; background: #f3f5fa; font-weight: 500; white-space: nowrap; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; text-decoration: none; color: var(--ink); }
a.shop:hover { background: #e6eaf4; color: var(--ink); }
.sw-0 { --sw: #24347a; } .sw-1 { --sw: #b3261e; } .sw-2 { --sw: #1b6e4b; } .sw-3 { --sw: #b9770a; } .sw-4 { --sw: #6b3fa0; }
.sw-5 { --sw: #0f7c8a; } .sw-6 { --sw: #a3345f; } .sw-7 { --sw: #4a5a1f; } .sw-8 { --sw: #8a4b20; } .sw-9 { --sw: #3d4a5c; }
.order-ref { white-space: nowrap; }
.order-ref a { font-weight: 600; margin-left: 6px; }

.badge { display: inline-block; padding: 0 7px; font-size: 0.82rem; font-weight: 500; border: 1px solid var(--line); background: #f3f5fa; white-space: nowrap; }
.badge.go { background: var(--go-soft); border-color: #a9d9c0; color: #114a32; }
.badge.tape { background: var(--tape-soft); border-color: #ecc95a; color: #5c4300; }
.badge.stop { background: var(--stop-soft); border-color: #eeb0ab; color: #7d1a14; }
.badge.demo { background: var(--tape); border-color: #1b1b1b; color: #1b1b1b; }
.alerts { margin: 0; padding: 0; list-style: none; font-size: 0.9rem; max-width: 46ch; }
.alerts li { padding-left: 12px; border-left: 3px solid var(--tape); margin-bottom: 4px; }
.alerts li.stop { border-color: var(--stop); color: #7d1a14; }
.unknown { color: var(--mute); font-style: italic; white-space: nowrap; }
.age.old { font-weight: 600; color: var(--stop); }

form.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 14px; }
label { display: block; font-size: 0.86rem; font-weight: 500; color: var(--mute); }
input[type="text"], input[type="search"], input[type="date"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  display: block; margin-top: 3px; padding: 6px 8px; border: 1px solid #a9b2c4; background: #fff; color: var(--ink); font: inherit; min-width: 0; border-radius: 0;
}
textarea { width: 100%; min-height: 9rem; font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; }
input[type="checkbox"] { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.check { color: var(--ink); font-size: 0.95rem; font-weight: 400; }
.btn { display: inline-block; padding: 7px 14px; background: var(--denim); color: #fff; border: 1px solid var(--denim); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; border-radius: 0; }
.btn:hover { background: var(--denim-deep); color: #fff; }
.btn.quiet { background: #fff; color: var(--denim); border-color: #a9b2c4; }
.btn.quiet:hover { background: #f3f5fa; }
.btn.danger { background: var(--stop); border-color: var(--stop); }
.btn.small { padding: 3px 9px; font-size: 0.88rem; }
.inline { display: inline; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }

.panel { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 16px; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 16px; margin: 0; }
dl.facts dt { color: var(--mute); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.groups { display: flex; flex-wrap: wrap; gap: 0; border: 2px solid var(--ink); background: var(--surface); margin-bottom: 16px; }
.groups a { flex: 1 1 140px; padding: 10px 14px; text-decoration: none; color: var(--ink); border-left: 2px dashed var(--line); }
.groups a:first-child { border-left: 0; }
.groups a[aria-current="true"] { background: var(--tape-soft); box-shadow: inset 0 -4px 0 var(--tape); }
.groups b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); }
.timeline time { display: block; font-size: 0.84rem; color: var(--mute); }
.token-box { background: #10173a; color: #fff; padding: 12px 14px; overflow-x: auto; white-space: pre; font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; }
.login { max-width: 380px; margin: 12vh auto; background: var(--surface); border: 2px solid var(--ink); padding: 26px 28px; }
.login h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin-bottom: 4px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 0; }
  .rail ul { display: flex; flex-wrap: wrap; }
  .rail li a { padding: 6px 12px; border-left: 0; border-bottom: 3px solid transparent; }
  .rail li a[aria-current="page"] { border-bottom-color: var(--tape); }
  .rail .sep { display: none; }
  .who { margin: 0 0 0 auto; padding: 0 14px; }
  main { padding: 16px 14px 40px; }
  .slip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slip > div:nth-child(3) { border-left: 0; }
  .slip > div:nth-child(n + 3) { border-top: 2px dashed var(--line); }
  .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .rail li a { transition: background-color 0.12s; } }
