/* GenPlan, styled after the Centegix admin design system: navy shell (top bar + sidebar), a light content
   panel with a rounded corner, white 12px cards, DM Sans, blue primary buttons. */
:root {
  --shell: #0f172a;
  --shell-top: #020617;
  --shell-text: #fafafa;
  --shell-muted: #94a3b8;
  --shell-hover: #1e293b;
  --shell-active: #334155;
  --bg: #f2f2f2;
  --panel: #ffffff;
  --subtle: #f8fafc;
  --input: #ffffff;
  --text: #020617;
  --muted: #64748b;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-text: #fafafa;
  --tile: #020617;
  --tile-text: #fafafa;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --info: #2563eb;
  --radius: 6px;
  --radius-card: 12px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --shell: #020617;
    --bg: #0f172a;
    --panel: #1e293b;
    --subtle: #172033;
    --input: #0f172a;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #334155;
    --border-strong: #475569;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-text: #ffffff;
    --tile: #334155;
    --tile-text: #f8fafc;
    --ok: #4ade80;
    --warn: #fbbf24;
    --bad: #f87171;
    --info: #60a5fa;
    --shadow-xs: none;
    --shadow-sm: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font: 14px/1.5 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 18px; line-height: 28px; font-weight: 600; margin: 0 0 12px; }
h3 { font-weight: 600; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- shell: top bar, sidebar, content panel ---- */
body.app {
  height: 100vh; height: 100dvh; overflow: hidden; background: var(--shell);
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
}
header.top {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 16px; background: var(--shell-top); color: var(--shell-text);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--shell-text); text-decoration: none;
  font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: #fff; }
header.top form { margin: 0; display: flex; gap: 12px; align-items: center; color: var(--shell-muted); font-size: 14px; }
header.top button.link { color: var(--shell-text); }
.side { grid-row: 2; width: 232px; padding: 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; color: var(--shell-text); }
.side a { color: inherit; text-decoration: none; }
.side-context { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border-radius: 8px; background: var(--shell-hover); min-width: 0; }
.side-context .tile { background: var(--shell-active); }
.side-context > span:last-child { min-width: 0; display: grid; }
.side-context strong { font-size: 13px; font-weight: 600; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-context small { font-size: 12px; color: var(--shell-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-title { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: var(--radius); font-size: 14px; font-weight: 500; }
.side-title svg { flex: none; }
.side-title:hover, .side-item:hover, .side-min:hover { background: var(--shell-hover); }
.side-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 8px 16px; padding-left: 8px; border-left: 1px solid var(--shell-active); }
.side-item { display: block; padding: 4px 8px; border-radius: var(--radius); font-size: 13px; line-height: 20px; }
.side-item[aria-current=page] { background: var(--shell-active); }
.content { grid-column: 2; grid-row: 2; min-width: 0; overflow-y: auto; background: var(--bg); border-top-left-radius: 16px; padding: 16px; }
body.side-min .side { width: 56px; }
body.side-min .side .label, body.side-min .side-sub, body.side-min .side-context > span:last-child { display: none; }
body.side-min .side-context { padding: 0; background: none; justify-content: center; }
body.side-min .side-title, body.side-min .side-min { justify-content: center; padding: 0; }
@media (max-width: 860px) {
  /* narrow screens: the sidebar becomes a strip of links under the top bar */
  body.app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .side, body.side-min .side { grid-row: 2; width: auto; flex-direction: row; align-items: center; gap: 6px; padding: 0 12px 10px; overflow-x: auto; }
  .side-context, .side-title, .side-min { display: none !important; }
  .side-group { display: contents; }
  .side-sub, body.side-min .side-sub { display: flex; flex-direction: row; margin: 0; padding: 0; border: none; }
  .side-item { padding: 5px 12px; white-space: nowrap; }
  .content { grid-column: 1; grid-row: 3; border-top-right-radius: 16px; padding: 12px; }
}

/* ---- cards ---- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.panel.flush { padding: 4px 0 0; overflow: hidden; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 20px 24px; }
.page-head h1 .count { font-weight: 700; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.tile { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--tile); color: var(--tile-text); }
.tile.lg { width: 40px; height: 40px; border-radius: 10px; }

/* ---- forms and buttons ---- */
label { display: block; font-weight: 500; font-size: 14px; margin: 14px 0 6px; }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=search], input[type=password], textarea, input[type=file] {
  width: 100%; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--input); color: var(--text); font: inherit; box-shadow: var(--shadow-xs);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type=file] { padding: 5px 8px; }
input[type=range] { accent-color: var(--accent); }
textarea { min-height: 70px; resize: vertical; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 8px 20px;
  border-radius: var(--radius); border: 1px solid transparent; background: var(--btn-bg, var(--accent)); color: var(--accent-text);
  font: inherit; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-xs);
}
button:hover:not(:disabled), .button:hover { background: var(--btn-hover, var(--accent-hover)); }
button.secondary, .button.secondary { --btn-bg: var(--panel); --btn-hover: var(--subtle); color: var(--text); border-color: var(--border-strong); }
/* bare buttons: text links, chevrons, chip removers, the sidebar toggle */
button.link, button.chev, .chip-x, .side-min { --btn-bg: transparent; --btn-hover: transparent; height: auto; border: none; box-shadow: none; }
button.link { color: var(--muted); padding: 0; font-weight: 400; text-decoration: underline; }
.side-min { margin-top: auto; justify-content: flex-start; padding: 8px; color: var(--shell-text); font-size: 13px; font-weight: 400; --btn-hover: var(--shell-hover); }
button:disabled { opacity: .55; cursor: default; }
.button.small, button.small { height: 32px; padding: 4px 12px; font-size: 13px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }
.error { color: var(--bad); margin-top: 10px; }
.search { position: relative; display: inline-flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 32px; }

/* ---- tables, status chips ---- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 500; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--panel)); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.clean { --c: var(--ok); }
.badge.needs_attention, .badge.awaiting_approval { --c: var(--warn); }
.badge.failed, .badge.cancelled { --c: var(--bad); }
.badge.running, .badge.queued { --c: var(--info); }
.table-wrap { overflow-x: auto; }

/* ---- sign in ---- */
body.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: var(--shell); padding: 16px; }
.login { width: 100%; max-width: 380px; }
.login .panel { padding: 28px; margin: 0; }
.login .brand { color: var(--text); margin-bottom: 4px; }
.login button[type=submit] { width: 100%; margin-top: 8px; }

/* ---- job page ---- */
.back { margin: 0 0 12px; font-size: 13px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--text); }
.job-head { display: block; }
.job-head h1 { font-size: 24px; line-height: 32px; overflow-wrap: anywhere; }
.job-title { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.job-title .row { gap: 8px 12px; }
.job-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .job-layout { grid-template-columns: 1fr; } }
#map { height: 520px; border-radius: 8px; border: 1px solid var(--border); }
.log { font: 12.5px/1.45 var(--mono); max-height: 620px; overflow: auto; background: var(--subtle); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.log div { padding: 2px 0; white-space: pre-wrap; word-break: break-word; }
.log .tool { color: var(--muted); }
.log .tool::before { content: "› "; }
.log .status, .log .result { color: var(--info); font-weight: 600; }
.log .error { color: var(--bad); margin: 0; }
.log time { color: var(--muted); margin-right: 8px; }
.files { list-style: none; padding: 0; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.steps li::before { counter-increment: step; content: counter(step); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; border: 1px solid var(--border-strong); color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: var(--panel); }
.steps li.running::before, .steps li.waiting::before { border-color: var(--info); color: var(--info); font-weight: 700; }
.steps li.failed::before, .steps li.cancelled::before { content: "✕"; border-color: var(--bad); color: var(--bad); }
.steps li.skipped { opacity: .55; }
.steps li.skipped::before { content: "–"; }
.steps .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.steps .desc { grid-column: 2 / 4; font-size: 12.5px; }
.files li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; }
.files li:last-child, .steps li:last-child, .runs li:last-child, .notes li:last-child { border-bottom: none; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.previews figure { margin: 0; }
.previews img { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.previews figcaption { font-size: 12.5px; color: var(--muted); }
.issues li { margin-bottom: 6px; }
.cleanup-img { display: block; width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.cleanup-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; margin: 12px 0; }
.cleanup-notes h3 { font-size: 14px; margin: 6px 0; }
.inventory { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0; font-size: 13.5px; }
.inventory dt { color: var(--muted); }
.inventory dd { margin: 0; overflow-wrap: anywhere; }
/* segmented choices (floors, map view) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { height: 32px; padding: 4px 12px; font-size: 13px; --btn-bg: var(--tile); --btn-hover: var(--tile); color: var(--tile-text); }
.tabs button[aria-pressed=false] { --btn-bg: var(--panel); --btn-hover: var(--subtle); color: var(--text); border-color: var(--border-strong); }
label.toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; color: var(--muted); cursor: pointer; }

/* ---- progress ---- */
.progress { display: grid; gap: 4px; min-width: 150px; }
.progress .bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress .bar > span { display: block; height: 100%; border-radius: inherit; background: var(--info); transition: width .6s ease; }
.progress.done .bar > span { background: var(--ok); }
.progress.waiting .bar > span { background: var(--warn); }
.progress.stopped .bar > span { background: var(--bad); }
.progress.queued .bar > span { background: var(--muted); }
.progress.active .bar > span {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, .25) 75%, transparent 75%);
  background-size: 16px 16px; animation: progress-stripes 1s linear infinite;
}
@keyframes progress-stripes { to { background-position: 16px 0; } }
@media (prefers-reduced-motion: reduce) { .progress.active .bar > span { animation: none; } }
.progress .label { font-size: 12px; color: var(--muted); line-height: 1.3; }
.progress.large .bar { height: 10px; }
.progress.large .label { font-size: 13px; }

/* ---- job list grouped by site ---- */
#site-filter { width: 280px; }
table.jobs th:first-child, table.jobs td:first-child { padding-left: 20px; }
table.jobs th:last-child, table.jobs td:last-child { padding-right: 20px; }
table.jobs tbody tr:last-child td { border-bottom: none; }
table.jobs tr.site { cursor: pointer; }
table.jobs tr.site:hover td { background: var(--subtle); }
table.jobs tr.site.open td { background: var(--subtle); border-bottom-color: transparent; }
.site-name { display: flex; gap: 8px; align-items: flex-start; width: 100%; }
button.chev { color: var(--muted); padding: 0 2px; font-size: 14px; line-height: 1.5; transition: transform .15s; }
tr.site.open button.chev { transform: rotate(90deg); }
table.jobs tr.run td { background: var(--subtle); font-size: 13.5px; }
table.jobs tr.run.depth-1 td:first-child { padding-left: 46px; }
table.jobs tr.run.depth-2 td:first-child { padding-left: 64px; }
table.jobs tr.run.depth-3 td:first-child { padding-left: 82px; }
.run-name a { font-weight: 500; }
@media (max-width: 720px) { #site-filter, .search { width: 100%; } }

/* job page: runs of this site, revision breadcrumb */
.chain { margin: 8px 0 0; font-size: 13.5px; }
.chain a, .chain strong { white-space: nowrap; }
.runs { list-style: none; padding: 0; margin: 0; }
.runs li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.runs li.current { font-weight: 600; }
.runs li .progress { grid-column: 1 / 3; }
.runs li.depth-1 { padding-left: 16px; } .runs li.depth-2 { padding-left: 32px; } .runs li.depth-3 { padding-left: 48px; }
.runs li > .badge { align-self: start; }
@media (max-width: 720px) {
  /* phones: each run stacks (name and status, then progress); submitted, by and cost are on the job page */
  table.jobs, table.jobs tbody { display: block; }
  table.jobs thead { display: none; }
  table.jobs tr.site, table.jobs tr.run { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  table.jobs tr.run { background: var(--subtle); }
  table.jobs tr.site td, table.jobs tr.run td { display: block; padding: 0 !important; border: none; background: none !important; }
  table.jobs tr.site td:nth-child(3), table.jobs tr.run td:nth-child(3) { grid-row: 2; }
  table.jobs tr.site td:nth-child(2), table.jobs tr.run td:nth-child(2) { grid-row: 3; }
  table.jobs tr.site td:nth-child(n+4), table.jobs tr.run td:nth-child(n+4) { display: none; }
  table.jobs tr.run.depth-1 { padding-left: 28px; } table.jobs tr.run.depth-2 { padding-left: 44px; } table.jobs tr.run.depth-3 { padding-left: 60px; }
  table.jobs .progress { min-width: 0; }
  h1 { font-size: 24px; line-height: 32px; }
  .page-head { padding: 16px; }
}
.nowrap { white-space: nowrap; }
.site-link { font-weight: 600; color: var(--text); text-decoration: none; }
.site-link:hover { text-decoration: underline; }
.site-name .export { margin-left: auto; }

/* ---- admin chat: full-height conversation, composer pinned to the bottom (ChatGPT / Claude layout) ---- */
.content.chat-pane { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.chat-col { width: 100%; max-width: 820px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.chat-bar { flex: none; padding: 14px 0; border-bottom: 1px solid var(--border); }
.chat-bar strong { font-size: 18px; font-weight: 700; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.chat { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
.chat-empty { margin: 12vh auto 0; max-width: 560px; text-align: center; }
.chat-empty h2 { font-size: 24px; line-height: 32px; font-weight: 700; margin-bottom: 8px; }
.msg { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 22px; }
.msg table { font-size: 13.5px; margin: 6px 0; }
.msg th, .msg td { padding: 7px 8px; }
.msg code { font: 12.5px var(--mono); }
.msg.user { align-self: flex-end; max-width: 80%; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-xs); }
.msg.user .msg-text { white-space: pre-wrap; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-files:last-child { margin-bottom: 0; }
.msg.assistant { align-self: stretch; }
.msg.tool { font: 12px var(--mono); color: var(--muted); margin: -8px 0; }
.msg.tool.typing { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .msg.tool.typing { animation: none; } }
.msg.error { color: var(--bad); }
.composer-wrap { flex: none; padding: 8px 0 16px; background: linear-gradient(transparent, var(--bg) 30%); }
.composer { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--panel);
  padding: 10px 12px 8px; max-width: 788px; box-shadow: var(--shadow-sm); }
.composer:focus-within { border-color: var(--accent); }
.composer textarea { border: none; background: transparent; box-shadow: none; padding: 4px 6px; min-height: 0; resize: none; outline: none; max-height: 220px; line-height: 1.5; font-size: 15px; }
.composer-row { display: flex; align-items: center; gap: 10px; }
.composer-hint { flex: 1; font-size: 12.5px; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 0; border-radius: var(--radius); cursor: pointer; color: var(--muted); }
.icon-button:hover { background: var(--subtle); color: var(--text); }
.icon-button input { display: none; }
.send-button { width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 6px 5px 10px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--panel); font-size: 13px; }
.msg-files .chip { padding-right: 10px; }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.chip-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.chip-x { color: var(--muted); padding: 0 4px; font-size: 16px; line-height: 1; }
.chip-x:hover { color: var(--text); }
.drop-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(37, 99, 235, .12);
  border: 3px dashed var(--accent); pointer-events: none; }
.drop-overlay div { padding: 16px 24px; border-radius: var(--radius-card); background: var(--panel); font-weight: 600; box-shadow: 0 4px 20px rgba(0, 0, 0, .2); }
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { padding: 8px 0; border-bottom: 1px solid var(--border); white-space: pre-wrap; }

/* ---- pricing: the cost column shows for the master user only (the server also leaves the numbers out) ---- */
.cost-col { display: none; }
body.pricing .cost-col { display: table-cell; }

/* ---- users, account ---- */
header.top #who a { color: inherit; text-decoration: none; }
header.top #who a:hover { text-decoration: underline; }
.notice { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--panel));
  background: color-mix(in srgb, var(--ok) 10%, var(--panel)); overflow-wrap: anywhere; }
.notice code { font-weight: 600; user-select: all; }
form .notice { margin: 12px 0 0; }
.panel.narrow { max-width: 460px; }
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
table.users td { vertical-align: middle; }
table.users th:first-child, table.users td:first-child { padding-left: 20px; }
table.users th:last-child, table.users td:last-child { padding-right: 20px; }
table.users tbody tr:last-child td { border-bottom: none; }
table.users td.actions { text-align: right; white-space: nowrap; }
table.users td.actions button + button { margin-left: 8px; }
table.users tr.set-pw td { background: var(--subtle); }
table.users tr.set-pw .pw-row { max-width: 720px; flex-wrap: wrap; }
table.users tr.set-pw .pw-row input { flex: 1 1 280px; }
button.danger { color: var(--bad); }
@media (max-width: 860px) {
  table.users .added { display: none; }
  table.users td.actions { white-space: normal; }
  table.users td.actions button { margin: 2px 0 2px 8px; }
}
