/* Aerobrief Self Service Portal — all styling for the application.
   Plain CSS, no framework, no build step. Custom properties carry the palette
   so light and dark are one set of values rather than two stylesheets.

   The teal is the Aerobrief A-mark (#1b95b7), the same ink the PDFs use.
   Roboto is served from /static/fonts — the files PDFs already embed — not a
   CDN, so the Content-Security-Policy's font-src 'self' is sufficient. */

@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/Roboto-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/Roboto-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f3f7f8;
  --surface: #ffffff;
  --surface-2: #f7fbfc;
  --border: #d8e3e7;
  --border-strong: #c3d2d8;
  --text: #22323a;
  --text-muted: #6b7c86;
  --accent: #1b95b7;
  --accent-hover: #157a96;
  --accent-soft: #e8f4f7;
  --brand: #1b95b7;
  --brand-dark: #0e5c70;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --success: #1a7f4b;
  --success-soft: #e7f5ed;
  --warning: #8a5a00;
  --warning-soft: #fdf3e0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 92, 112, .06), 0 4px 14px rgba(14, 92, 112, .06);
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418;
    --surface: #181e24;
    --surface-2: #1f272e;
    --border: #2c373e;
    --border-strong: #3d4b54;
    --text: #e6eaef;
    --text-muted: #97a3b1;
    --accent: #5ec4dc;
    --accent-hover: #7ad1e5;
    --accent-soft: #17333b;
    --brand: #5ec4dc;
    --brand-dark: #9bdceb;
    --danger: #f2837a;
    --danger-soft: #33201e;
    --success: #6cc796;
    --success-soft: #172c22;
    --warning: #e0b062;
    --warning-soft: #2e2617;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Centres a single narrow card in the viewport (sign in, change password).
   The column direction matters: with the default row direction the top bar and
   <main> become side-by-side flex items, which puts the navigation beside the
   card instead of above it. Pages using this class may or may not have a top
   bar, so it has to work either way. */
body.centred {
  flex-direction: column;
  background-image: linear-gradient(180deg, #d5eef4 0%, var(--bg) 46%);
}
@media (prefers-color-scheme: dark) {
  body.centred {
    background-image: linear-gradient(180deg, #0c1c22 0%, var(--bg) 52%);
  }
}

h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1.15rem; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 1rem; margin: 0 0 8px; font-weight: 500; }

/* Trailing EUROCONTROL mark: 1em so it tracks the heading's own font-size. */
#eurocontrol-card > h2 {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.eurocontrol-mark {
  height: 1em;
  width: 1em;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
p { margin: 0 0 12px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.subtle { color: var(--text-muted); font-size: .875rem; }
.footnote { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.mono { font-family: var(--mono); font-size: .85em; }

/* --- Top bar ------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
body.chrome-admin .topbar {
  border-bottom: 2px solid var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: 0;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.wordmark {
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wordmark-lead { font-weight: 700; }
.brand-tagline {
  font-size: .62rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a {
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .9rem;
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.current { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.account { display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.who { color: var(--text-muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  white-space: nowrap;
}
body.chrome-admin .role-chip {
  background: var(--brand-dark);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  body.chrome-admin .role-chip {
    background: var(--accent-soft);
    color: var(--accent);
  }
}

.link-button {
  background: none; border: none; padding: 0;
  color: var(--accent); font: inherit; cursor: pointer;
}
.link-button:hover { text-decoration: underline; }
.link-button.danger { color: var(--danger); }

/* A cell holding several link-buttons. Without a gap they run together into
   one unreadable word — "PDFIssueDelete". */
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }

/* --- Layout ------------------------------------------------------------- */

.page { max-width: 1100px; margin: 0 auto; padding: 24px; width: 100%; flex: 1 0 auto; position: relative; z-index: 1; }
/* margin:auto absorbs the leftover space on all four sides, so the card is
   centred in whatever room the top bar leaves. */
body.centred .page { margin: auto; width: 100%; max-width: 420px; padding: 24px; }

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.auth-card { padding: 32px 28px; }
.auth-brand { text-align: center; margin: 0 0 8px; }
.auth-logo { width: 88px; height: auto; display: block; margin: 0 auto 12px; }
.auth-brand h1 { color: var(--brand-dark); margin: 0 0 2px; letter-spacing: .1em; }
.auth-tagline {
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat .value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.stat .label { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }

/* --- Forms -------------------------------------------------------------- */

label { display: block; font-size: .85rem; font-weight: 500; margin: 14px 0 5px; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=search], select, textarea {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: .85rem; }
input[type=file] { font: inherit; }

button {
  font: inherit;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--surface-2); }
button:disabled { opacity: .55; cursor: not-allowed; }

button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
@media (prefers-color-scheme: dark) {
  /* Keep the button on the logo teal so white label text stays readable.
     The lighter --accent is for links and highlights on a dark surface. */
  button.primary { background: #1b95b7; border-color: #1b95b7; color: #fff; }
  button.primary:hover:not(:disabled) { background: #157a96; border-color: #157a96; }
}
button.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
button.danger:hover:not(:disabled) { background: var(--danger-soft); }
button.small { padding: 4px 10px; font-size: .82rem; }

form .primary { margin-top: 18px; width: 100%; }
.card form.inline .primary { width: auto; }

.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.form-row > * { flex: 1; min-width: 160px; }

.form-error {
  margin: 14px 0 0;
  padding: 9px 12px;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius);
  font-size: .875rem;
}

.notice {
  padding: 10px 12px;
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: var(--radius);
  font-size: .875rem;
}

/* A notice defaults to amber because most of them are cautions. These name a
   tone explicitly, so a certificate that has already expired does not read the
   same as one that merely needs renewing. */
.notice.warn { background: var(--warning-soft); color: var(--warning); }
.notice.bad { background: var(--danger-soft); color: var(--danger); }
.notice.info { background: var(--accent-soft); color: var(--accent); }

/* Label/value pairs for read-only records — certificate metadata, and anything
   else that is read rather than edited. Two columns on anything wider than a
   phone, stacked below that, so a long distinguished name still wraps rather
   than forcing the card to scroll. */
.detail-list {
  display: grid;
  grid-template-columns: minmax(150px, max-content) minmax(0, 1fr);
  gap: 6px 20px;
  margin: 12px 0 0;
  min-width: 0;
}
.detail-list dt { color: var(--text-muted); font-size: .85rem; }
.detail-list dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .detail-list { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .detail-list dd { margin-bottom: 8px; }
}

/* One certificate on the Aerobrief Certificates tab. Separated by a rule
   rather than nested cards: a replacement being prepared alongside the live
   certificate should read as a second entry in one list, not a second panel. */
.cert-block + .cert-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.cert-block h3 { margin: 0; }

/* --- Tables ------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 500; }
tbody tr:hover { background: var(--surface-2); }
td.actions { text-align: right; white-space: nowrap; }
td.actions button + button { margin-left: 6px; }

.empty { padding: 32px; text-align: center; color: var(--text-muted); }
.empty::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: url("/static/assets/Aerobrief-A-Logo.svg") center / contain no-repeat;
  opacity: .14;
  filter: grayscale(1);
}

/* --- Badges ------------------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge.ok { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge.warn { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.value.tone-ok { color: var(--success); }
.value.tone-warn { color: var(--warning); }
.value.tone-bad { color: var(--danger); }
.value.tone-info { color: var(--accent); }

/* --- Toasts ------------------------------------------------------------- */

.toast-region {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 100; max-width: min(420px, calc(100vw - 40px));
}
.toast {
  padding: 11px 15px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: .875rem;
  animation: toast-in .18s ease-out;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--accent); }
.toast.leaving { opacity: 0; transition: opacity .25s ease; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .toast.leaving { transition: none; }
}

/* --- Misc --------------------------------------------------------------- */

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

@media (max-width: 720px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .brand-tagline { display: none; }
  .role-chip { display: none; }
  .page { padding: 16px; }
  .action-grid { grid-template-columns: 1fr; }
}

/* --- Utility classes ----------------------------------------------------
   These exist so that no template needs an inline style attribute. The
   Content-Security-Policy sets style-src 'self' with no 'unsafe-inline', so a
   style="..." attribute is silently dropped by the browser. Keeping the policy
   strict and the layout in classes is the right way round: inline styles are
   also the vehicle for a whole class of injection attacks. */

.checkbox-label { font-weight: 400; margin: 0; }
.checkbox-label input[type=checkbox] { width: auto; margin-right: 4px; }
input[type=checkbox] { width: auto; }

.field-auto { flex: 0 0 auto; }
.field-shrink { flex: 0 1 auto; }
.w-auto { width: auto; }
.mt-16 { margin-top: 16px; }
.mt-12 { margin-top: 12px; }
.ml-8 { margin-left: 8px; }

details.reject-group { margin-top: 12px; }
details.reject-group summary { cursor: pointer; font-size: .9rem; }

/* --- Confirmation modal --------------------------------------------------
   Styling for the <dialog> the server renders into every page. The element
   supplies the behaviour (focus trap, Escape, inert backdrop); this only makes
   it look like the rest of the application. */

.modal {
  max-width: 460px;
  width: calc(100vw - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(16, 24, 40, .18);
}
.modal::backdrop { background: rgba(16, 24, 40, .45); }

.modal-form { padding: 20px; }
.modal-title { font-size: 1.1rem; margin: 0 0 8px; }
.modal-body { margin: 0 0 12px; }
.modal-note { margin: 12px 0 0; font-size: .85rem; color: var(--text-muted); }

.modal-list {
  margin: 0; padding: 10px 12px;
  max-height: 240px; overflow-y: auto;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono); font-size: .82rem;
}
.modal-list li { padding: 1px 0; }

.modal-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 20px;
}
/* Override the generic "form .primary" sizing so the confirm button matches
   the cancel button's height instead of stretching to fill the row. */
.modal-actions .primary { margin-top: 0; width: auto; }

/* --- Users table: selection, sorting, toolbar --------------------------- */

.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
}
.toolbar .grow { flex: 1 1 200px; }
.toolbar label { margin: 0 0 4px; }
.toolbar select, .toolbar input { width: 100%; }
.toolbar-field { flex: 0 1 150px; }

th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--text); }
th.sortable::after { content: ""; opacity: .35; margin-left: 5px; }
th.sortable[aria-sort="none"]::after { content: "↕"; }
th.sortable[aria-sort="ascending"]::after { content: "↑"; opacity: 1; }
th.sortable[aria-sort="descending"]::after { content: "↓"; opacity: 1; }
th.sortable[aria-sort="ascending"], th.sortable[aria-sort="descending"] { color: var(--accent); }

td.select-cell, th.select-cell { width: 34px; padding-right: 0; }
tr.selected { background: var(--accent-soft); }
tr.row-removed td:not(.actions) { opacity: .55; }
tr.stale td:not(.actions) { opacity: .7; }

td.binding-org select,
td.binding-alias input[type=text] {
  width: 100%;
  min-width: 140px;
  padding: 5px 8px;
  font-size: .85rem;
}

/* Bulk action bar. Present in the DOM at all times so its appearance does not
   shift the table; hidden until something is selected. */
.bulk-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin: 12px 0;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
}
.bulk-bar[hidden] { display: none; }
.bulk-bar .count { font-weight: 700; }
.bulk-bar .spacer { flex: 1; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* --- Organisation tabs ---------------------------------------------------
   Generated from the tab registry in app/routes/admin_org.py. Each tab is a
   real link to its own URL, so it can be bookmarked, opened in a new tab and
   linked to from elsewhere — which a click-handled panel switcher cannot. */

.tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.tabs .tab {
  padding: 9px 14px;
  color: var(--text-muted);
  font-size: .9rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -1px;
}
.tabs .tab:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.tabs .tab.current {
  background: var(--surface);
  border-color: var(--border);
  color: var(--accent);
  font-weight: 500;
}

.tab-description { margin: 12px 0 0; }

/* Standing reminder that this is a client's data, not Aerobrief's own. */
.acting-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 20px;
}
.acting-notice .acting-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* --- Billing ------------------------------------------------------------- */

.quote-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.quote-table td { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.quote-table td.amount { text-align: right; white-space: nowrap; }
.quote-table tr.total-row td { font-weight: 700; border-bottom: none; border-top: 2px solid var(--border-strong); padding-top: 10px; }
.quote-table tr:last-child td { border-bottom: none; }

/* --- Brand watermark, footer, product mark ------------------------------
   The watermark is the faded A-mark used on every PDF, painted behind the
   page so the gutters and empty paper read as letterhead rather than a blank
   admin tool. pointer-events: none keeps it from eating clicks. */

.brand-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("/static/assets/Aerobrief-A-Logo.svg") center 38% / min(68vmin, 540px) no-repeat;
  opacity: .07;
  filter: grayscale(1);
}
body.centred .brand-watermark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-watermark {
    opacity: .12;
    filter: grayscale(1) brightness(1.7);
  }
}

.site-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 4px 24px 24px;
  color: var(--text-muted);
  font-size: .78rem;
  position: relative;
  z-index: 1;
}
.site-foot p { margin: 0; }
.site-foot-mark {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .45;
  filter: grayscale(1);
}

.page-head-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.kicker {
  margin: 0 0 4px;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Seat capacity. A native <progress> so fill width needs no inline style —
   the Content-Security-Policy forbids style attributes. */
.seat-usage {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
progress.seat-meter {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  max-width: 100%;
  height: 7px;
  border: none;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
progress.seat-meter::-webkit-progress-bar {
  background: var(--border);
  border-radius: 999px;
}
progress.seat-meter::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}
progress.seat-meter::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}
progress.seat-meter.is-full::-webkit-progress-value { background: var(--warning); }
progress.seat-meter.is-full::-moz-progress-bar { background: var(--warning); }

/* Client-administrator landing: a grid of destinations, not a sentence of
   links. */
.action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 20px;
}
.action-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  min-height: 132px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}
.action-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(27, 149, 183, .14);
}
.action-card h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.action-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .85rem;
}
.action-card .action-go {
  margin-top: auto;
  padding-top: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .action-card { transition: none; }
}
