/* Lumi Cloud portal. The Lumi palette: gold light on night, and ink on paper.
   Light tokens are the default; dark applies from the system setting unless
   the person chose light, or whenever they chose dark. */

:root {
  --bg: #f6f4ee;
  --panel: #fbfaf6;
  --elem: #efece3;
  --hover: #e6e2d6;
  --input: #ffffff;
  --text: #15172e;
  --muted: #64667d;
  --border: rgba(21, 23, 46, 0.12);
  --border-strong: rgba(21, 23, 46, 0.22);
  --brand: #8a5600;
  --brand-text: #6b4300;
  --brand-soft: #f3e2bb;
  --on-brand: #ffffff;
  --light: #ffc24b;
  --mark-l: #15172e;
  /* Status text reaches 4.5:1 on its own 16% tint (.status chips) and on the page. */
  --ok: #166534;
  --warn: #9a3412;
  --danger: #b91c1c;
  --danger-soft: #fde2e2;
  --shadow: 0 1px 2px rgba(21, 23, 46, 0.06), 0 8px 24px rgba(21, 23, 46, 0.06);
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1126;
    --panel: #13152e;
    --elem: #1a1d3d;
    --hover: #242850;
    --input: #111329;
    --text: #ecebf6;
    --muted: #9a9dbd;
    --border: rgba(236, 235, 246, 0.1);
    --border-strong: rgba(236, 235, 246, 0.2);
    --brand: #ffc24b;
    --brand-text: #ffe9b8;
    --brand-soft: #4a3a12;
    --on-brand: #15172e;
    --mark-l: #f6f4ee;
    --ok: #42d392;
    --warn: #ff9f43;
    --danger: #ff8a8a;
    --danger-soft: #3d1a22;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1126;
  --panel: #13152e;
  --elem: #1a1d3d;
  --hover: #242850;
  --input: #111329;
  --text: #ecebf6;
  --muted: #9a9dbd;
  --border: rgba(236, 235, 246, 0.1);
  --border-strong: rgba(236, 235, 246, 0.2);
  --brand: #ffc24b;
  --brand-text: #ffe9b8;
  --brand-soft: #4a3a12;
  --on-brand: #15172e;
  --mark-l: #f6f4ee;
  --ok: #42d392;
  --warn: #ff9f43;
  --danger: #ff8a8a;
  --danger-soft: #3d1a22;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
}

a { color: var(--brand-text); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2 { line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 26px; letter-spacing: -0.01em; }
h2 { font-size: 17px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 8px 12px; background: var(--brand); color: var(--on-brand); border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text) !important; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.mark-glow { fill: var(--light); opacity: 0.18; }
.mark-l { fill: none; stroke: var(--mark-l); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.mark-light { fill: var(--light); stroke: var(--mark-l); stroke-width: 0; }
:root:not([data-theme="dark"]) .mark-light { stroke-width: 2.5; }
:root:not([data-theme="dark"]) .mark-glow { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark-light { stroke-width: 0; }
  :root:not([data-theme="light"]) .mark-glow { opacity: 0.18; }
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-name span { font-weight: 500; color: var(--muted); }

.switcher { display: flex; gap: 8px; flex-wrap: wrap; }
.switcher form { display: flex; gap: 6px; }
.switcher select { max-width: 220px; }

.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.icon-button:hover { background: var(--hover); }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: none; }
.theme-icon .fill { fill: currentColor; stroke: none; }
[data-theme-choice="system"] .theme-system,
[data-theme-choice="light"] .theme-light,
[data-theme-choice="dark"] .theme-dark { display: block; }

.menu { position: relative; }
.menu summary {
  list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 999px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--hover); }
.avatar {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 13px;
}
.menu-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu-panel a, .menu-panel button {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--text) !important; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--hover); }
.menu-email { margin: 4px 10px 6px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: calc(100vh - 57px); }
.sidenav {
  flex: 0 0 210px; padding: 16px 12px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.sidenav a {
  padding: 8px 12px; border-radius: 8px; color: var(--text) !important; text-decoration: none; font-weight: 500;
}
.sidenav a:hover { background: var(--hover); }
.sidenav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text) !important; }
main { flex: 1; min-width: 0; padding: 28px 32px 48px; max-width: 1100px; }
main:focus { outline: none; }

.page-header { margin-bottom: 20px; }
.lead { color: var(--muted); margin: 0 0 16px; max-width: 70ch; }
.fine-print { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); }

.notice, .error {
  margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-strong);
}
.notice { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }
.error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

.panel {
  margin: 0 0 20px; padding: 18px 20px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.page-narrow, .page-message { max-width: 560px; }

/* ── Stats ───────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { margin: 4px 0; font-size: 28px; font-weight: 700; }
.stat-value span { font-size: 15px; font-weight: 500; color: var(--muted); }
.stat-note { margin: 0; color: var(--muted); font-size: 13px; }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--border); }
.activity li:first-child { border-top: 0; }
.activity-what::first-letter { text-transform: uppercase; }
.activity-meta { color: var(--muted); font-size: 13px; }

/* ── Tables ──────────────────────────────────────────────────────────── */
/* Positioned so a visually hidden label in a column scrolled out of view stays
   inside the scroll area instead of widening the page on a phone. */
.table-wrap { position: relative; overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--border); vertical-align: middle; }
thead th { border-top: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: flex-start; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-text);
}

/* ── Forms and buttons ───────────────────────────────────────────────── */
label { font-weight: 600; font-size: 14px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--input);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; min-height: 38px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
.stack { display: grid; gap: 8px; }
.stack .button { justify-self: start; margin-top: 6px; }
.narrow { max-width: 420px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input { min-width: 0; flex: 1 1 200px; }
fieldset { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--elem); color: var(--text) !important; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { background: var(--hover); }
.button.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand) !important; }
.button.primary:hover { filter: brightness(1.06); }
.button.danger { color: var(--danger) !important; }
.button.danger:hover { background: var(--danger-soft); }
.button.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
details.inline-edit > summary { list-style: none; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
details.inline-edit[open] > summary { display: none; }

.js .no-js-only { display: none; }

/* ── Sign-in pages ───────────────────────────────────────────────────── */
.auth-panel {
  max-width: 440px; margin: 48px auto; padding: 28px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.provider-buttons { display: grid; gap: 8px; margin-bottom: 8px; }
.provider-buttons .button { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

.mail pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 var(--mono); margin: 8px 0 0; }

/* ── Narrow screens ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .topbar { padding: 8px 16px; }
  .switcher { order: 3; width: 100%; }
  .switcher form { flex: 1 1 140px; }
  .switcher select { flex: 1; max-width: none; min-width: 0; }
  .menu-name { display: none; }
  .menu summary { padding: 3px; }
  .layout { flex-direction: column; }
  .sidenav {
    flex: none; flex-direction: row; overflow-x: auto; gap: 4px; padding: 8px 16px;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .sidenav a { white-space: nowrap; }
  main { padding: 20px 16px 40px; }
  .auth-panel { margin: 24px 16px; padding: 22px; }
  h1 { font-size: 22px; }
  .row-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .icon-button, .sidenav a, .menu summary { transition: background-color 0.12s ease; }
}

/* ── Members ─────────────────────────────────────────────────────────── */
.person-name { display: block; font-weight: 600; }
.person-email { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.seat { font-size: 13px; color: var(--muted); }
.seat.yes { color: var(--ok); }
.inline-form.compact { display: inline-flex; margin-right: 6px; }
.link-button {
  cursor: pointer; color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px;
  list-style: none;
}
.link-button::-webkit-details-marker { display: none; }
details.inline-edit[open] > summary.link-button { display: block; margin-bottom: 6px; }
.checklist fieldset { flex-direction: column; gap: 4px; margin-bottom: 8px; }
.form-row { display: flex; align-items: center; gap: 10px; }
.invite-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
textarea { width: 100%; resize: vertical; }

/* ── Models and policy ───────────────────────────────────────────────── */
code { font-family: var(--mono); font-size: 0.92em; background: var(--elem); padding: 1px 5px; border-radius: 4px; }
.code-block {
  margin: 8px 0 0; padding: 12px 14px; overflow-x: auto; background: var(--elem);
  border: 1px solid var(--border); border-radius: 8px; font: 13px/1.5 var(--mono); white-space: pre;
}
.table-wrap.flat { margin-bottom: 0; }
.grid-form, .settings-grid {
  display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 360px); gap: 8px 14px; align-items: center;
}
.grid-form .button { grid-column: 2; justify-self: start; }
.settings-grid legend { grid-column: 1 / -1; margin-bottom: 4px; }
fieldset legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.button[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 760px) {
  .grid-form, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-form .button { grid-column: 1; }
}

/* ── Devices ─────────────────────────────────────────────────────────── */
.status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.status.stale { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.status.revoked { background: var(--danger-soft); color: var(--danger); }
.muted-row td { color: var(--muted); }
.reveal { border-color: var(--brand); }

/* ── Security ────────────────────────────────────────────────────────── */
.sso-steps { display: grid; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.sso-steps fieldset { flex-direction: column; gap: 6px; }

/* Members: what each role can do. */
.role-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0.6rem 0 0; }
.role-list dt { font-weight: 600; color: var(--text); }
.role-list dd { margin: 0; }

/* Workspaces: the settings form inside a row. */
.workspace-settings { min-width: min(22rem, 80vw); }
@media (max-width: 640px) {
  .role-list { grid-template-columns: 1fr; }
  .role-list dd { margin-bottom: 0.4rem; }
}

/* Policy: a version's changes. */
.diff .diff-add { color: var(--ok); display: block; }
.diff .diff-remove { color: var(--danger); display: block; }
.diff .diff-hunk { color: var(--muted); display: block; }
.diff .diff-same { display: block; }
.publish-form { max-width: 34rem; }

/* Activity: the filter row. Alerts: a failed delivery. */
.filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem 0.75rem; }
.filter-form label { font-size: 0.85rem; color: var(--muted); }
.error-text { display: block; color: var(--danger); font-size: 0.85rem; }
.grid-form .span-2 { grid-column: 1 / -1; }

/* Usage: spend by day, and number columns. */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bars li { display: grid; grid-template-columns: 3.5rem 1fr 6rem; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.bars .bar { width: 100%; height: 0.8rem; }
.bars .bar-value { text-align: right; font-variant-numeric: tabular-nums; }
.bar-label { color: var(--muted); font-variant-numeric: tabular-nums; }
td.number, th.number { text-align: right; font-variant-numeric: tabular-nums; }

/* Overview: the first steps. */
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.setup-steps .step-mark { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: 0.4rem; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 0.8rem; }
.setup-steps .done { color: var(--muted); }
.setup-steps .done .step-mark { border-color: var(--ok); color: var(--ok); }
.billing-banner { border-color: var(--warn); }

.credit-meter { width: 100%; height: 0.9rem; margin: 0.25rem 0 0.75rem; }

/* A shared session (web/templates/shared_session.html). */
.shared-transcript { display: grid; gap: 14px; }
.shared-message { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.shared-user { background: color-mix(in srgb, var(--text) 4%, transparent); }
.shared-who { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.shared-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.shared-action { margin: 0; padding-left: 14px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--border-strong); overflow-wrap: anywhere; }
.shared-action.is-failed { color: var(--danger); border-left-color: var(--danger); }
.handoff-repo { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.handoff-repo dt { color: var(--muted); }
.handoff-repo dd { margin: 0; overflow-wrap: anywhere; }
.library-body { font-family: var(--mono, ui-monospace, monospace); font-size: 13px; max-height: 60vh; overflow: auto; }
.library-subhead { font-size: 14px; margin: 14px 0 6px; }
.approval-command { display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 4px; }
/* A command is shown exactly as it runs: no capital first letter. */
.activity-what.command-what::first-letter { text-transform: none; }

/* Trust center (lumi_cloud/trust.py), and muted text anywhere. */
.muted { color: var(--muted); }
.plain-list { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.qa { display: grid; gap: 0.35rem; margin: 0.8rem 0 0; }
.qa dt { font-weight: 600; color: var(--text); margin-top: 0.7rem; }
.qa dd { margin: 0; }
.site-footer { margin: 2rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 13px; }
/* ── Oversight ───────────────────────────────────────────────────────── */
/* Severity chips reach 4.5:1: the text is the page's, on a tint of the severity's colour. */
.severity { display: inline-block; min-width: 4.2em; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; text-transform: capitalize; color: var(--text); white-space: nowrap; }
.severity-high { border-color: var(--danger); background: var(--danger-soft); }
.severity-medium { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.severity-low { background: color-mix(in srgb, var(--text) 5%, transparent); }
h1 .severity { vertical-align: middle; font-size: 13px; }
.oversight-transcript { display: grid; gap: 18px; }
.oversight-turn { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.oversight-turn:last-child { border-bottom: 0; padding-bottom: 0; }
.oversight-turn-head { font-size: 15px; margin: 0; }
.oversight-turn-head .person-email { font-weight: 400; }
.oversight-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.oversight-arg { display: block; margin-left: 1rem; overflow-wrap: anywhere; }
.oversight-flag-line { margin: 0; font-size: 14px; }
.oversight-audited { margin-top: 8px; }
/* "Scheduled" and "Unattended": turns, sessions and flags with nobody at the computer. */
.run-badge { margin-left: 2px; white-space: nowrap; }
.oversight-filter { margin: 0 0 16px; }
/* A select is as wide as its longest option, and a fieldset as wide as its widest content: the
   messages levels are sentences, which would push the Policy page sideways on a phone. */
.oversight-choices { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.oversight-choices select { max-width: 100%; }

/* Encryption keys (web/templates/encryption.html). */
.key-status { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0 0 14px; }
.key-status dt { color: var(--muted); }
.key-status dd { margin: 0; overflow-wrap: anywhere; }
.key-status code, .key-help code { overflow-wrap: anywhere; }
.key-help { margin: 0 0 14px; }
.key-help summary { cursor: pointer; font-weight: 600; }
.unavailable-text { color: var(--muted); font-style: italic; }
@media (max-width: 560px) {
  .key-status { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .key-status dd { margin-bottom: 8px; }
}

/* The marketplace (web/templates/marketplace*.html). */
.market-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.market-nav a {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  color: var(--text) !important; text-decoration: none; font-weight: 500;
}
.market-nav a:hover { background: var(--hover); }
.market-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text) !important; border-color: transparent; }
.search-form { display: grid; gap: 6px; max-width: 560px; margin: 0 0 24px; }
.pack-list, .version-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.pack-list > .panel, .version-list > .panel { margin: 0; }
.pack-card h3, .version-card h3, .review-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.pack-byline { margin: 0 0 6px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.pack-description { margin: 0 0 6px; overflow-wrap: anywhere; }
.pack-card .fine-print { margin: 0; }
.details-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; overflow-wrap: anywhere; }
code.wrap { overflow-wrap: anywhere; }
.version-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; }
.version-actions details[open] { flex-basis: 100%; }
.review-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
@media (max-width: 560px) {
  .details-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .details-list dd { margin-bottom: 8px; }
}

.status.closed { background: var(--elem); color: var(--muted); }
.feedback-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
.feedback-counts a[aria-current="page"] { font-weight: 700; }
.feedback-table td { vertical-align: top; }
.feedback-when { white-space: nowrap; }
.feedback-summary { min-width: 14rem; }  /* on a phone the table scrolls in its frame rather than squeezing it */
.feedback-summary a { display: block; overflow-wrap: anywhere; }
.feedback-flags { display: block; color: var(--muted); font-size: 13px; }
.feedback-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.feedback-diagnostics { max-height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-statuses { gap: 8px 20px; }
.feedback-export { margin-top: 12px; }
.feedback-export #export-code { max-width: 12rem; }
@media (max-width: 640px) {
  .feedback-when { white-space: normal; min-width: 6rem; }
}
