/* The console's and the public pages' parts: forms, choices, guides, notes, tabs, dialogs, the GPU, people,
   profile, audit and alert blocks, the public pages. Their layout at smaller widths and with reduced motion is
   admin-responsive.css, which every page links right after this file. */
/* ---------- forms: field labels in Plex Mono uppercase, like the design system's u-kv ---------- */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .label { font: 500 var(--u-fs-xs)/1.4 var(--u-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--u-muted); }
.field .hint { font-size: var(--u-fs-sm); color: var(--u-muted); }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--u-line-2); border-radius: var(--u-radius); background: var(--u-surface); color: var(--u-fg); font: 400 var(--u-fs)/1.4 var(--u-font); }
.textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 32px; background: var(--u-surface) no-repeat right 10px center / 14px; cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: var(--u-muted); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--u-accent); box-shadow: var(--u-focus); }
.input.mono, .textarea.mono { font-family: var(--u-mono); font-size: 13px; }
.input[readonly] { background: var(--u-surface-2); }
.input[type=file] { height: auto; padding: 5px 6px; font-size: 13px; color: var(--u-muted); cursor: pointer; }
.input[type=file]::file-selector-button { height: 26px; margin-right: 10px; padding: 0 10px; border: 1px solid var(--u-line-2); border-radius: 3px;
  background: var(--u-surface-2); color: var(--u-fg); font: 600 12.5px/1 var(--u-font); cursor: pointer; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 11px; top: 50%; margin-top: -8px; width: 16px; height: 16px; color: var(--u-muted); }
.input-icon .input { padding-left: 34px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--u-accent); margin: 2px 0 0; flex: none; }
.check small { display: block; color: var(--u-muted); font-size: var(--u-fs-sm); }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 34px; height: 20px; border-radius: 10px; background: var(--u-line-2); position: relative; margin: 1px 0 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked { background: var(--u-accent); }
.switch input:checked::after { transform: translateX(14px); }
.switch input:focus-visible { box-shadow: var(--u-focus); outline: 0; }
.switch b { display: block; font-weight: 500; }
.switch small { display: block; color: var(--u-muted); font-size: var(--u-fs-sm); }

/* segmented control: the language picker and small choices */
.seg { display: inline-flex; padding: 2px; border-radius: var(--u-radius); background: var(--u-sunken); gap: 2px; max-width: 100%; }
.seg label { position: relative; display: block; }
.seg input, .rule input { position: absolute; left: 0; top: 0; margin: 0; opacity: 0; pointer-events: none; }  /* inside its label: focus never scrolls the control */
.seg span { display: block; padding: 4px 10px; border-radius: 3px; font-size: var(--u-fs-sm); font-weight: 500; color: var(--u-muted); cursor: pointer; white-space: nowrap; }
.seg span:hover { color: var(--u-fg); }
.seg input:checked + span { background: var(--u-surface); color: var(--u-fg); box-shadow: var(--u-shadow-1), 0 0 0 1px var(--u-line); }
.seg input:focus-visible + span { box-shadow: var(--u-focus); }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.field > .seg, .stack > .seg, .stack-lg > .seg, .stack > .rule, .stack-lg > .rule { justify-self: start; }
.lang > .ic { width: 16px; height: 16px; color: var(--u-muted); }

/* the rule for one tool: allow / if risky / ask / never */
.rule { display: inline-flex; border: 1px solid var(--u-line-2); border-radius: var(--u-radius); overflow: hidden; background: var(--u-surface); }
.rule label { position: relative; display: block; }
.rule label + label { border-left: 1px solid var(--u-line); }
.rule span { display: block; padding: 5px 10px; font-size: var(--u-fs-sm); font-weight: 500; color: var(--u-muted); cursor: pointer; white-space: nowrap; }
.rule span:hover { background: var(--u-surface-2); color: var(--u-fg); }
.rule input[value=allow]:checked + span { background: var(--u-good-soft); color: var(--u-good); }
.rule input[value=risky]:checked + span { background: var(--u-soft); color: var(--u-soft-fg); }
.rule input[value=ask]:checked + span { background: var(--u-accent); color: var(--u-accent-fg); }
.rule input[value=deny]:checked + span { background: var(--u-bad-soft); color: var(--u-bad); }
.rule input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--u-accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--u-fs-sm); color: var(--u-muted); }
.legend span { display: inline-flex; align-items: baseline; gap: 6px; }
.legend i { font-style: normal; font-weight: 600; padding: 1px 7px; border-radius: 3px; white-space: nowrap; }
.legend .allow { background: var(--u-good-soft); color: var(--u-good); }
.legend .risky { background: var(--u-soft); color: var(--u-soft-fg); }
.legend .ask { background: var(--u-accent); color: var(--u-accent-fg); }
.legend .deny { background: var(--u-bad-soft); color: var(--u-bad); }

/* choice cards: GPU, provider */
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--u-line-2); border-radius: var(--u-radius); cursor: pointer; background: var(--u-surface); }
.opt:hover { background: var(--u-surface-2); }
.opt:has(input:checked) { border-color: var(--u-accent); box-shadow: inset 0 0 0 1px var(--u-accent); background: var(--u-soft); }
.opt input { accent-color: var(--u-accent); margin: 0; }
.opt b { font-weight: 500; }
.opt small { display: block; color: var(--u-muted); font-size: var(--u-fs-sm); }
.opt .price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.opt .price small { font-weight: 400; }
.opt.off { cursor: not-allowed; background: var(--u-surface-2); border-style: dashed; }
.opt.off b, .opt.off .price { color: var(--u-muted); }

/* ---------- guides with numbered steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; counter-increment: s; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: relative; z-index: 1; width: 30px; height: 30px; border-radius: var(--u-radius); border: 1px solid var(--u-line-2); background: var(--u-surface); display: grid; place-items: center; font: 500 var(--u-fs-xs)/1 var(--u-mono); color: var(--u-muted); }
.steps > li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--u-line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li.done::before { content: ""; border-color: var(--u-good); background: var(--u-good) no-repeat center / 16px; }
.steps > li.now::before { border-color: var(--u-accent); color: var(--u-accent); box-shadow: 0 0 0 3px var(--u-soft); }
.steps .st { padding-top: 4px; display: grid; gap: 4px; min-width: 0; }
.steps .st > b { font-weight: 600; }
.steps .st > p { color: var(--u-muted); font-size: 13.5px; }
.steps .st > p b { color: var(--u-fg); font-weight: 600; }
.steps .st .more { margin-top: 8px; }
.steps li.done .st > b { color: var(--u-muted); font-weight: 500; }

.codebox { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--u-line-2); border-radius: var(--u-radius); background: var(--u-surface-2); min-width: 0; }
.codebox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }

/* ---------- notes (the design system's u-note: a tinted row with a rail), empty states ---------- */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--u-radius); background: var(--u-soft); border-left: 3px solid var(--u-accent); color: var(--u-fg); font-size: 13.5px; }
.note > .ic { width: 17px; height: 17px; color: var(--u-accent); flex: none; margin-top: 1px; }
.note.bad { background: var(--u-bad-soft); border-left-color: var(--u-bad); }
.note.bad > .ic { color: var(--u-bad); }
.note.plain { background: var(--u-surface-2); border-left-color: var(--u-line-2); }
.note.plain > .ic { color: var(--u-muted); }
.note.good { background: var(--u-good-soft); border-left-color: var(--u-good); }
.note.good > .ic { color: var(--u-good); }
.note > .btn { margin-left: auto; flex: none; align-self: center; }
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 34px 24px; }
.empty .em { width: 42px; height: 42px; border-radius: var(--u-radius-lg); background: var(--u-sunken); display: grid; place-items: center; color: var(--u-muted); margin-bottom: 6px; }
.empty .em .ic { width: 21px; height: 21px; }
.empty h3 { font-size: 15px; }
.empty p { max-width: 400px; color: var(--u-muted); font-size: 13.5px; }
.empty .btn { margin-top: 10px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--u-line); }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--u-muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--u-fg); }
.tabs a.on { color: var(--u-fg); border-bottom-color: var(--u-accent); }
.tabs .n { font: 500 var(--u-fs-xs)/1.5 var(--u-mono); background: var(--u-sunken); color: var(--u-muted); border-radius: 3px; padding: 0 6px; }
.tabs a.on .n { background: var(--u-soft); color: var(--u-soft-fg); }

/* ---------- dialog, toast, save bar ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(6, 13, 26, .5); display: none; place-items: center; padding: 24px; }
.overlay:target, .overlay.show { display: grid; }
.dialog { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--u-surface); border: 1px solid var(--u-line-2); border-radius: var(--u-radius-xl); box-shadow: var(--u-shadow-pop); }
.dialog-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 0; }
.dialog-h h2 { font-size: 17px; }
.dialog-h p { color: var(--u-muted); font-size: 13.5px; margin-top: 4px; }
.dialog-h .icon-btn { margin: -4px -6px 0 auto; }
.dialog-b { padding: 16px 20px; display: grid; gap: 16px; }
.dialog-f { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--u-line); background: var(--u-surface-2); border-radius: 0 0 var(--u-radius-xl) var(--u-radius-xl); }
.dialog-f .muted { margin-right: auto; font-size: var(--u-fs-sm); }
/* the toast and the save bar are navy, like the side column */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(460px, calc(100vw - 32px)); padding: 11px 12px 11px 14px;
  background: var(--u-brand-bg); color: var(--u-brand-fg); border: 1px solid var(--u-brand-line); border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-pop); font-size: 13.5px; }
.toast > .ic { width: 17px; height: 17px; color: #4ade80; flex: none; }
.toast .link { color: var(--u-rail); font-weight: 500; }
.toast .icon-btn { color: var(--u-brand-muted); width: 28px; height: 28px; }
.toast .icon-btn:hover { background: var(--u-brand-on); color: var(--u-brand-fg); }
.savebar { position: sticky; bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--u-brand-bg); color: var(--u-brand-fg);
  border: 1px solid var(--u-brand-line); border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-pop); font-size: 13.5px; }
.savebar .dot { background: var(--u-rail); }
.savebar .btn.sec { background: transparent; color: var(--u-brand-fg); border-color: var(--u-brand-line); }
.savebar .btn.sec:hover { background: var(--u-brand-on); }
.spin { width: 16px; height: 16px; border: 2px solid color-mix(in srgb, var(--u-accent) 25%, transparent); border-top-color: var(--u-accent); border-radius: 50%; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the boot of a pod: card taken, container up, model answers */
.boot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: var(--u-fs-sm); color: var(--u-muted); }
.boot > span { display: inline-flex; align-items: center; gap: 6px; }
.boot > span + span::before { content: ""; width: 16px; height: 1px; background: var(--u-line-2); margin: 0 8px; }
.boot .d { color: var(--u-good); }
.boot .c { color: var(--u-accent); font-weight: 500; }
.boot .ic { width: 14px; height: 14px; }
.boot .spin { width: 12px; height: 12px; border-width: 1.5px; }

/* pod card on the GPU page */
.pod { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; padding: 14px 16px; border-top: 1px solid var(--u-line); }
.pod:first-of-type { border-top: 0; }
.pod-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pod-name b { font-size: 15px; font-weight: 600; }
.pod-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.pod-facts div { display: grid; gap: 2px; }
.pod-facts .label { font: 500 11px/1.35 var(--u-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--u-muted); white-space: nowrap; }
.pod-facts .v { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pod-acts { display: flex; gap: 8px; align-items: flex-start; }
.idle { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--u-fs-sm); color: var(--u-muted); margin-top: 12px; white-space: nowrap; }
.idle .meter { flex: 0 1 180px; min-width: 80px; }

/* request card on the people page */
.req { display: grid; gap: 14px; padding: 14px 16px; }
.req-top { display: flex; gap: 12px; align-items: flex-start; }
.req-top .grow { flex: 1; min-width: 0; }
.req-top b { font-size: 15px; }
.req-top small { display: block; color: var(--u-muted); font-size: var(--u-fs-sm); }
.req-code { display: grid; justify-items: end; gap: 2px; }
.req-code .code-big { font: 500 17px/1.1 var(--u-mono); letter-spacing: .06em; color: var(--u-fg); }
.req-code small { font: 500 11px/1.35 var(--u-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--u-muted); }
.req-act { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; }
/* an employee's computers: rows under the employee, set in under the name (users.js) */
.t tr.pc td { padding-top: 7px; padding-bottom: 7px; background: var(--u-surface-2); }
.t tr.pc .who { padding-left: 38px; }
.t tr.pc .avatar { width: 24px; height: 24px; background: var(--u-surface); border: 1px solid var(--u-line); }
.t tr.pc .avatar .ic { width: 15px; height: 15px; }
.t td button.chip + .sub { margin-top: 4px; }
/* the invitation dialog: groups to tick, the temporary password with its two buttons (user-invite.js) */
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pw-row .input { flex: 1 1 210px; width: auto; min-width: 0; letter-spacing: .03em; }
.good-note .codebox { background: var(--u-surface); }

/* profile list (left column) */
.plist { display: grid; gap: 6px; }
.pcard { display: grid; gap: 2px; padding: 11px 14px; border-radius: var(--u-radius); border: 1px solid var(--u-line); background: var(--u-surface); color: var(--u-fg); text-decoration: none; }
.pcard:hover { background: var(--u-surface-2); text-decoration: none; }
.pcard.on { border-color: var(--u-accent); box-shadow: inset 3px 0 0 var(--u-accent), inset 0 0 0 1px var(--u-accent); }
.pcard b { font-weight: 600; }
.pcard small { color: var(--u-muted); font-size: var(--u-fs-sm); }
.pcard.add { border-style: dashed; border-color: var(--u-line-2); color: var(--u-accent); font-weight: 500; display: flex; align-items: center; gap: 8px; background: transparent; }
.pcard.add .ic { width: 16px; height: 16px; }
.settings-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.settings-tiles > div { padding: 14px 16px; border-left: 1px solid var(--u-line); display: grid; gap: 10px; align-content: start; }
.settings-tiles > div:first-child { border-left: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 3px; border: 1px solid var(--u-line-2); font: 400 12px/1 var(--u-mono); color: var(--u-muted); background: var(--u-surface); }
.chip.on { border-color: color-mix(in srgb, var(--u-accent) 40%, transparent); background: var(--u-soft); color: var(--u-soft-fg); }
.chip .ic { width: 13px; height: 13px; }
.chip em { font-style: normal; font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.plain-list li { display: flex; gap: 8px; align-items: flex-start; }
.plain-list .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.versions { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.versions li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; padding: 9px 0; border-top: 1px solid var(--u-line); }
.versions li:first-child { border-top: 0; padding-top: 0; }
.versions .v { font: 500 var(--u-fs-xs)/1.7 var(--u-mono); color: var(--u-muted); }
.versions small { grid-column: 2; color: var(--u-muted); }
.versions li.muted { display: block; }  /* "no versions yet" takes the whole line */

/* filter bar (audit) */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--u-line); background: var(--u-surface-2); }
.filters .input-icon { flex: 1 1 220px; max-width: 320px; }
.filters .select { width: auto; min-width: 150px; }

/* ---------- public pages: sign-in, invitation, the entry page (light, navy only in the mark tile) ---------- */
.public { min-height: 100vh; display: flex; flex-direction: column; background: var(--u-bg); }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; border-bottom: 1px solid var(--u-line); }
.pub-top .brand { padding: 0; min-width: 0; }
.pub-top .brand > span:last-child { font-size: 15px; font-weight: 600; }
.pub-top .brand svg { width: 30px; height: 30px; padding: 6px; border-radius: var(--u-radius); background: var(--u-navy); color: #ffffff; }
.pub-main { flex: 1; display: grid; justify-items: center; align-content: start; padding: 24px 20px 56px; gap: 16px; }
.pub-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px 32px 22px; border-top: 1px solid var(--u-line); color: var(--u-muted); font: 400 var(--u-fs-xs)/1.5 var(--u-mono); }
.auth-card { width: min(400px, 100%); background: var(--u-surface); border: 1px solid var(--u-line-2); border-top: 3px solid var(--u-navy); border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-1); padding: 24px 26px 26px; display: grid; gap: 18px; }
.auth-card .head { display: grid; gap: 6px; }
.auth-card h1 { font-size: 22px; }
.server-chip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; padding: 4px 9px 4px 8px; border-radius: 3px; background: var(--u-surface-2); border: 1px solid var(--u-line); font: 400 var(--u-fs-xs)/1.3 var(--u-mono); color: var(--u-muted); overflow-wrap: anywhere; }
.server-chip .dot { width: 7px; height: 7px; }
.side-note { width: min(400px, 100%); display: flex; gap: 12px; padding: 13px 16px; border-radius: var(--u-radius-lg); border: 1px dashed var(--u-line-2); font-size: 13.5px; color: var(--u-muted); }
.side-note .ic { width: 17px; height: 17px; flex: none; color: var(--u-muted); margin-top: 1px; }
.side-note b { color: var(--u-fg); }
.invite { width: min(760px, 100%); display: grid; gap: 20px; }
.invite-head { display: grid; gap: 10px; padding: 8px 0 4px; }
.invite-head h1 { font-size: 30px; letter-spacing: -.015em; line-height: 1.15; }
.invite-head .lead { font-size: 15.5px; color: var(--u-muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 3px 10px; border-radius: 3px; background: var(--u-surface-2); border: 1px solid var(--u-line); font: 400 var(--u-fs-xs)/1.3 var(--u-mono); color: var(--u-muted); overflow-wrap: anywhere; }
.fact b { color: var(--u-fg); font-weight: 500; }
.fact .ic { width: 14px; height: 14px; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; }
.can { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.can > div { padding: 14px 16px; border-left: 1px solid var(--u-line); display: grid; gap: 10px; align-content: start; }
.can > div:first-child { border-left: 0; }
.can h3 { display: flex; align-items: center; gap: 8px; font: 500 var(--u-fs-xs)/1.4 var(--u-mono); text-transform: uppercase; letter-spacing: .06em; }
.can h3 .ic { width: 15px; height: 15px; }
.only-mobile { display: none; }

/* ---------- the built console: what the mockups drew inline or did not need ---------- */
.pub-center { align-content: center; padding-bottom: 96px; }
.page > div:empty { display: none; }  /* a note slot with nothing to say takes no gap */
.row.nowrap { flex-wrap: nowrap; }
.panel-h h2, .section-h h2 { white-space: nowrap; }
.opts.cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.t .url { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-acts { display: flex; align-items: center; gap: 8px; }
.right, .t th.right { text-align: right; }
.w500 { font-weight: 500; }
.strong { color: var(--u-fg); font-weight: 600; }
.wrap { white-space: normal !important; }
.span-all { grid-column: 1 / -1; }
.empty-cell { padding: 22px 16px !important; text-align: center; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: default; pointer-events: none; }
.link:hover { text-decoration: underline; }
.dot.wait { background: var(--u-accent); box-shadow: 0 0 0 3px var(--u-soft); }
.dot.bad { box-shadow: 0 0 0 3px var(--u-bad-soft); }
.accent-h { color: var(--u-accent); }

/* the overview's one sentence */
.summary { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.summary .dot { width: 9px; height: 9px; }

/* strips and pods */
.strip.flat { box-shadow: none; }
.strip .value-sm { font-size: 15px; padding-top: 3px; display: flex; align-items: center; gap: 4px; }
.strip .value .ic { width: 16px; height: 16px; }
.pod .boot { margin-top: 12px; }
.pod-sub { margin-top: 6px; }
.pod.foreign .pod-name b { color: var(--u-muted); font-weight: 500; }
.pod-acts { flex-wrap: wrap; justify-content: flex-end; }
.codes .code { display: inline-block; margin: 1px 0; }

/* profile editor */
.pf-title { font-size: 17px; }
button.chip { cursor: pointer; font-family: var(--u-mono); }
button.chip:hover { border-color: var(--u-muted); color: var(--u-fg); }
button.chip.on:hover { border-color: var(--u-accent); color: var(--u-soft-fg); }
button.chip:focus-visible { outline: 0; box-shadow: var(--u-focus); }
.chip.dim { opacity: .62; }
.settings-tiles .field { margin-top: 4px; }
.settings-tiles .field .select { height: 32px; font-size: 13.5px; }
.pf-instr { background: var(--u-surface); }
.pf-instr-label { flex: none; font: 500 var(--u-fs-xs)/1.4 var(--u-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--u-muted); }
.pf-instr-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-fg); }
.pf-instr-edit { border-top: 1px solid var(--u-line); }
/* the profile's limits of the schedules: two numbers in one line, wrapping on a narrow page */
.pf-sched { flex-wrap: wrap; gap: 8px 18px; background: var(--u-surface); }
.pf-num { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--u-muted); }
.pf-num .input { width: 84px; height: 30px; font-size: 13.5px; }
.rules-head { display: grid; gap: 14px; padding: 12px 16px 14px; border-bottom: 1px solid var(--u-line); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.switch:has(input:disabled) { cursor: default; }

/* accounts */
.mini-steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--u-fs-sm); color: var(--u-muted); }
.mini-steps b { color: var(--u-fg); font-weight: 600; }

/* settings: label on the left (mono, like u-kv), value on the right */
.rows.kv > li { justify-content: space-between; gap: 16px; padding: 9px 16px; }
.kv .k { flex: 1 1 0; min-width: 0; font: 500 var(--u-fs-xs)/1.6 var(--u-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--u-muted); }
.kv .v { flex: 0 1 auto; max-width: 62%; text-align: right; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.kv .v .code { white-space: normal; overflow-wrap: anywhere; }
/* updates (updates.js): the offer's title, Unrote's lines as written, the last lines of update.sh folded */
.upd-title { margin: 0; font-size: 15px; font-weight: 600; }
.upd-notes { margin: 0; white-space: pre-wrap; }
.upd-lines summary { cursor: pointer; color: var(--u-accent); margin: 6px 0; }

/* dialogs */
.dialog-sm { width: min(440px, 100%); }
.dialog-h:has(+ .dialog-b[hidden]) { padding-bottom: 16px; }  /* a question with no body: its text keeps off the buttons' strip */
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.bare:disabled { opacity: .6; }
.opt-label { font-weight: 400; }
.good-note { display: grid; gap: 10px; background: var(--u-good-soft); border-left-color: var(--u-good); }
.good-line { color: var(--u-good); font-weight: 600; }

/* toast for an error */
.toast.err > .ic { color: #ff8a80; }

/* audit */
.col-time { width: 104px; }
.col-x { width: 44px; }
/* a long address in "who" wraps on a computer's screen, so the row's open button stays in view */
@media (min-width: 801px) { #au-rows .who { overflow-wrap: anywhere; min-width: 150px; } }

/* alerts (alerts.js): rows like "Needs attention", a read one goes grey; the overview's alert has Open and Mark read */
.attn .mark.good { background: var(--u-good-soft); color: var(--u-good); }
.al-list li { align-items: flex-start; }
.al-list .text b { font-weight: 500; overflow-wrap: anywhere; }
.al-list .al-n { font: 500 var(--u-fs-xs)/1 var(--u-mono); color: var(--u-muted); }
.al-list .al-d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 5px; font: 400 var(--u-fs-xs)/1.4 var(--u-mono); color: var(--u-muted); }
.al-meta a { font-family: var(--u-font); font-size: var(--u-fs-sm); }
.al-full { margin-top: 8px; max-height: 260px; overflow: auto; }
.al-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.al-read { font: 400 var(--u-fs-xs)/1 var(--u-mono); color: var(--u-muted); padding: 0 6px; }
.al-list li.read .mark { background: var(--u-sunken); color: var(--u-muted); }
.al-list li.read .text b { color: var(--u-muted); }
.al-list .al-empty { padding: 14px 16px; }
.al-where { font-size: var(--u-fs-sm); }
.attn-acts { display: flex; gap: 6px; flex: none; }
.attn-acts .btn, .al-acts .btn { margin-left: 0 !important; }

/* the invitation page */
.steps-panel { padding: 22px 22px 24px; }
.steps .more { min-width: 0; }  /* a long link shrinks inside its box instead of widening the page */
.mobile-note { display: grid; gap: 10px; }
.nowrap-row { align-items: flex-start; flex-wrap: nowrap; }
.invite-head .kicker:empty, .invite-head .lead:empty { display: none; }
