/* GemSpot dashboard. Mobile first: base rules are for phones, the media
   query at the end widens the layout on larger screens. System fonts only
   (no web fonts, CLAUDE.md §8). */
:root {
  --fg: #1d2330; --muted: #5b6475; --bg: #f5f6f8; --card: #fff;
  --line: #dde1e7; --accent: #0b6e4f; --accent-fg: #fff; --danger: #b42318;
  --ok-bg: #e7f5ee; --err-bg: #fdecea;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
header.top { background: var(--card); border-bottom: 1px solid var(--line); padding: .5rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
header.top .brand { font-weight: 700; text-decoration: none; color: var(--fg); }
header.top .who { margin-left: auto; color: var(--muted); font-size: .9rem; }
nav.main { display: flex; flex-wrap: wrap; gap: .25rem 1rem; width: 100%; }
nav.main a { text-decoration: none; padding: .25rem 0; }
nav.main a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--accent); }
main { max-width: 60rem; margin: 0 auto; padding: 1rem; }
/* Same width and side padding as main, so the language links are never cut off at the screen edge. */
footer { max-width: 60rem; margin: 0 auto; padding: 0 1rem 1rem; }
h1 { font-size: 1.4rem; margin: .5rem 0 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.narrow { max-width: 24rem; margin: 2rem auto; }
label { display: block; margin: .75rem 0 .25rem; font-weight: 600; }
input, select { width: 100%; padding: .55rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
input[type=checkbox] { width: auto; }
button, .button { display: inline-block; margin-top: 1rem; padding: .55rem 1rem; font: inherit; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-fg); cursor: pointer; text-decoration: none; }
button.secondary { background: var(--line); color: var(--fg); }
button.danger { background: var(--danger); color: #fff; }
button.link { background: none; color: var(--accent); padding: 0; margin: 0; text-decoration: underline; }
.notice { padding: .75rem 1rem; border-radius: 6px; background: var(--ok-bg); margin-bottom: 1rem; }
.error { padding: .75rem 1rem; border-radius: 6px; background: var(--err-bg); color: var(--danger); margin-bottom: 1rem; }
.muted { color: var(--muted); font-size: .9rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
form.inline { display: inline; }
form.inline select, form.inline button { width: auto; margin: 0; }
input[type=radio] { width: auto; margin: 0 .25rem 0 0; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: .75rem 0; padding: .25rem .75rem .75rem; }
legend { font-weight: 600; padding: 0 .25rem; }
label.inline { display: inline-block; font-weight: normal; margin: .25rem 1rem .25rem 0; }
/* A number and its unit side by side: "2 [hours]". */
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row label { margin: 0; }
.row input { flex: 1 1 6rem; width: auto; }
.row select { flex: 0 1 9rem; width: auto; }
/* Wide tables scroll sideways on phones instead of breaking the page. */
.scroll { overflow-x: auto; }
.big { font-size: 1.3rem; letter-spacing: .05em; }
/* Voucher print sheet: tickets in a grid, cut along the dashed lines. */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0; }
.ticket { border: 1px dashed #999; padding: .6rem; display: flex; gap: .6rem; align-items: center; break-inside: avoid; page-break-inside: avoid; }
.ticket svg { width: 5.5rem; height: 5.5rem; flex: none; }
.ticket .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.ticket p { margin: .1rem 0; font-size: .85rem; }
@media print {
  header.top, footer, .no-print, .notice { display: none; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .tickets { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 48rem) {
  nav.main { width: auto; }
  header.top { padding: .5rem 2rem; }
}
/* Text for screen readers only (a label the layout does not show). */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gateways (provisioning module) */
.hint { font-size: .875rem; color: var(--muted); margin: .25rem 0 1rem; }
.enroll-code { font-size: 1.75rem; letter-spacing: .1em; font-weight: bold; margin: .5rem 0 1rem; }
svg.qr { display: block; width: 12rem; height: 12rem; margin: 0 0 1rem; }
.status-active { color: var(--accent); }
.status-offline { color: var(--danger); }

/* A tenant's logo on its portal and purchase page (and in settings). The
   stored picture is at most 480×160 for sharp high-density screens. */
.brand-logo { display: block; max-width: 240px; max-height: 80px; width: auto; height: auto; margin: .5rem 0; }
.brand-welcome { margin: -.5rem 0 1rem; }
input[type="color"] { height: 2.5rem; padding: .2rem; }
