/* Wagls host overlay: loaded after the wireframe files. Never edit static/wireframe/. */
.brand-icon-img { width: 32px; height: 32px; border-radius: 6px; }
/* Breathing room under every page, so the last thing on it (the calendar, a table) never touches the footer. */
.shell-main > .page-frame { padding-bottom: 2rem; }
.wagls-form { max-width: 23.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.wagls-form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: var(--fs-small); }
.wagls-form input {
  background: var(--bg-input); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius, 6px); padding: 0.5rem 0.625rem; font: inherit;
}
.copyright .tenant-name { cursor: help; position: relative; }
/* The tenant id shows ABOVE the name (the footer sits at the bottom of the window). */
.copyright .tenant-name::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: calc(100% + 0.5rem);
  white-space: nowrap; padding: 0.375rem 0.625rem; border-radius: 6px;
  background: var(--hive-surface-raised, #1f2937); color: var(--hive-text, #f3f4f6);
  border: 1px solid var(--hive-border, #4b5563); font-size: 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 50;
}
.copyright .tenant-name:hover::after,
.copyright .tenant-name:focus::after { opacity: 1; visibility: visible; }

/* A field the server says is wrong: set by toast.js (aria-invalid + .field-invalid). */
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.field-invalid > label, label.field-invalid { color: var(--danger); }

/* Super admin page (layout from the original test admin; colours from wireframe tokens) */
.da-msg { min-height: 1.4em; font-weight: 600; margin: .4rem 0; }
.da-msg.err { color: var(--danger); }
.da-msg.ok { color: var(--success); }
.da-split { display: grid; grid-template-columns: 18rem 1fr; gap: 1.5rem; align-items: start; }
.da-list #da-new { width: 100%; margin-bottom: .6rem; }
.da-list .da-filter { margin-bottom: .6rem; }
.da-list ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 6px; }
.da-list li { padding: .5rem .7rem; border-bottom: 1px solid var(--border-dim); cursor: pointer; }
.da-list li:last-child { border-bottom: 0; }
.da-list li.on { background: var(--bg-hover); }
.da-list li small { display: block; color: var(--text-muted); word-break: break-all; }
.da-empty { color: var(--text-muted); cursor: default; }
.da-field { margin-bottom: .9rem; }
.da-id { font-style: italic; color: var(--text-muted); font-size: var(--fs-small); margin: 0 0 1rem; }
.da-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.da-cols { align-items: start; }
@media (max-width: 700px) { .da-grid2 { grid-template-columns: 1fr; } }
.da-field label { display: block; font-weight: 600; margin-bottom: .2rem; }
.da-field input:not([type=checkbox]), .da-field select, .da-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; padding: .4rem .5rem;
  background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: 6px;
}
.da-field input[readonly] { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; }
.da-field small { color: var(--text-muted); display: block; }
.da-actions { display: flex; gap: .6rem; margin-top: 1.2rem; }
@media (max-width: 700px) { .da-split { grid-template-columns: 1fr; } }


/* Super admin > System logs */
.sys-logs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; margin-bottom: 1rem; }
.sys-logs h2, .sys-logs .da-hint { flex-basis: 100%; margin: 0; }
.sys-logs label { display: flex; flex-direction: column; gap: 0.25rem; font-size: var(--fs-small); }
.sys-logs input { width: 8rem; background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 0.375rem 0.5rem; font: inherit; }

/* ---------- Blue and Green: wagls's own extra colour modes (the owner's reference is home_theater's palettes) ----------
   Complete token sets on top of wireframe's dark base: the page has class "blue" or "green" and neither "light" nor
   "bzz" (static/extra_modes.js keeps it so). wireframe's header button and appearance.js only know dark, light and
   bzz; extra_modes.js adds these two. Every value passes AA (4.5:1) text on --bg and --bg-panel (tests/test_extra_modes.py). */
html.blue {
  color-scheme: dark;
  --bg: #0d1117; --bg-deep: #090c10; --bg-panel: #161b22; --bg-panel-raised: #1c2330; --bg-input: #0d1117; --bg-hover: #212a37;
  --border: #30363d; --border-dim: #21262d; --border-strong: #484f58;
  --text: #dde4ec; --text-head: #f3f6fa; --text-muted: #9aa7b6; --text-dim: #8493a4; --text-faint: #66727f; --text-ghost: #444c57;
  --primary: #58a6ff; --primary-hover: #79b8ff; --primary-soft: rgba(88, 166, 255, .16); --on-accent: #04101f;
  --success: #5ed18f; --success-bg: rgba(94, 209, 143, .16); --success-button: #5ed18f;
  --warning: #e8c068; --warning-bg: rgba(232, 192, 104, .16);
  --danger: #f47c85; --danger-bg: rgba(244, 124, 133, .16); --danger-button: #f47c85;
  --info: #b392f0; --info-bg: rgba(179, 146, 240, .15);
  --focus-ring: rgba(88, 166, 255, .45);
}
html.green {
  color-scheme: dark;
  --bg: #0c1210; --bg-deep: #070b09; --bg-panel: #131c18; --bg-panel-raised: #19251f; --bg-input: #0d1511; --bg-hover: #1f2d26;
  --border: #2b3b33; --border-dim: #1d2a24; --border-strong: #3f5549;
  --text: #dbe8e0; --text-head: #f1f8f4; --text-muted: #9bb0a4; --text-dim: #86a092; --text-faint: #667d70; --text-ghost: #435248;
  --primary: #3fc487; --primary-hover: #62d8a0; --primary-soft: rgba(63, 196, 135, .16); --on-accent: #02150c;
  --success: #7ee2a8; --success-bg: rgba(94, 209, 143, .16); --success-button: #7ee2a8;
  --warning: #e8c068; --warning-bg: rgba(232, 192, 104, .16);
  --danger: #f47c85; --danger-bg: rgba(244, 124, 133, .16); --danger-button: #f47c85;
  --info: #7cb7ff; --info-bg: rgba(124, 183, 255, .15);
  --focus-ring: rgba(63, 196, 135, .45);
}
/* The two extra chips on the Appearance page use wireframe's chip look; only their swatch colours are ours. */
.appearance-swatch[data-mode="blue"] { --sw-a: #58a6ff; --sw-b: #161b22; }
.appearance-swatch[data-mode="green"] { --sw-a: #3fc487; --sw-b: #131c18; }
/* The restart dialog's sweeping bar at half the size (owner, 2026-11-17): half as wide (30% -> 15%),
   still sweeping left to right and back. wireframe owns the bar; this only overrides it here. */
.restart-progress .restart-bar { animation-name: restart-marquee-half; }
@keyframes restart-marquee-half {
  0%   { margin-left: 0;   width: 15%; }
  50%  { margin-left: 85%; width: 15%; }
  100% { margin-left: 0;   width: 15%; }
}

/* ── Connections page box: the old marketing app's rules, copied unchanged (static/features.css
   .ck-*, .cs-actions, .cs-message and style.css .card). The tokens are wireframe's, as there. ── */
.card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.75rem; }
.ck-step { display: grid; gap: 0.875rem; }
.ck-title { margin: 0; }
.ck-section { display: grid; gap: 0.375rem; }
.ck-label { margin: 0; color: var(--text-dim); font-size: var(--type-label-font-size, .8125rem); }
.ck-callback { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.75rem;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel); }
.ck-callback code { overflow-wrap: anywhere; }
.ck-settings { margin: 0; padding-left: 1.125rem; display: grid; gap: 0.25rem; color: var(--text); }
.cs-actions { display: flex; gap: 0.625rem; margin-top: 0.75rem; flex-wrap: wrap; }
.cs-message.cs-info { color: var(--text-dim); }
.ck-add { margin: .5rem 0 1rem; }
/* Gap between the Connection picker and the box below it; channel picker with its callback address to the right. */
.wagls-form { margin-bottom: 1.5rem; }
.ck-pick-row { display: grid; grid-template-columns: 15rem minmax(0, 28rem); gap: 0 1.5rem; align-items: start; max-width: 100%; }
.ck-pick-row select { width: 100%; }
@media (max-width: 900px) { .ck-pick-row { grid-template-columns: minmax(0, 28rem); gap: 0.875rem; } }
.ck-callback-box { display: flex; flex-direction: column; gap: 0.375rem; font-size: var(--type-label-font-size, .8125rem); min-width: 0; }
/* The requirements note: no box, small italic text, tucked right under the Channel pick (owner, 2026-11-18). */
.ck-accordion { border: 0; padding: 0; margin: -0.5rem 0 0; font-size: 0.75rem; font-style: italic; color: var(--text-dim); }
.ck-accordion summary { cursor: pointer; color: var(--text-dim); font-size: inherit; font-style: italic; }
.ck-accordion .ck-settings { margin-top: 0.25rem; color: var(--text-dim); font-size: inherit; }
.ck-callback-label { color: var(--text); }
/* The callback box is the same size as the Channel select beside it; Copy is an icon. */
.ck-callback-box .ck-callback { box-sizing: border-box; width: 100%; padding: 0.6875rem 0.75rem; background: var(--bg-input); }
.ck-callback-box code { font-size: var(--type-label-font-size, .8125rem); overflow-wrap: anywhere; }
.ck-copy { flex: none; display: inline-flex; padding: 0.125rem; background: transparent; border: 0; color: var(--text-dim); cursor: pointer; border-radius: 6px; }
.ck-copy:hover, .ck-copy:focus-visible { color: var(--text); }
/* Fields and buttons inside the box, as in the old Channels page: every field on its own row (label, then a
   dark rounded input), the danger button an outline. */
.card form { display: grid; gap: 0.875rem; }
.card label { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--text); font-size: var(--type-label-font-size, .8125rem); }
.card input, .card select {
  background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.6875rem 0.75rem; font: inherit; width: 23.75rem; max-width: 100%;
}
.card input[type="checkbox"] { width: auto; }
.card input:focus, .card select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); outline: 0; }
.card .hive-btn--danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); filter: none; }
.card .hive-btn--danger:hover { background: transparent; color: var(--danger); filter: brightness(1.15); }
.card .cs-actions { margin-top: 0; }
.wagls-form select { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.625rem; font: inherit; }
.ck-below { margin-top: 1rem; }
.card a.hive-btn { text-decoration: none; }
.ck-step form:empty { display: none; }
/* Labels sit above their fields (owner, 2026-11-17). */
.card label { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
/* The one connection form: two fields per row (keys left and right, then the limits), each as wide as before. */
.ck-grid { display: grid; grid-template-columns: repeat(2, 23.75rem); gap: 0.875rem 1.5rem; max-width: 100%; }
@media (max-width: 900px) { .ck-grid { grid-template-columns: minmax(0, 23.75rem); } }
/* "Switched on" is a toggle: the checkbox is hidden and the track beside it shows the state. */
.card label.ck-switch { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; align-self: end; padding-bottom: 10px; }
.ck-switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.ck-switch-track { order: 2; position: relative; width: 44px; height: 24px; border-radius: 12px; background: var(--border-strong, var(--border)); transition: background .15s; flex: none; }
.ck-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.ck-switch input:checked + .ck-switch-track { background: var(--accent); }
.ck-switch input:checked + .ck-switch-track::after { transform: translateX(20px); background: var(--on-accent, #fff); }
.ck-switch input:focus-visible + .ck-switch-track { box-shadow: 0 0 0 3px var(--focus-ring); }
.ck-status { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.25rem 0.625rem; padding: 0.625rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); font-size: var(--type-label-font-size, .8125rem); }
.ck-status strong { color: var(--warning, var(--text)); }
.ck-status--ok { border-color: var(--success); }
.ck-status--ok strong { color: var(--success); }
.card label.ck-switch--off { cursor: not-allowed; }
.ck-switch--off .ck-switch-track { opacity: .45; }
.ck-switch input:disabled { cursor: not-allowed; }
/* The post composer and the drafts list (Connections page). */
.card textarea { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.6875rem 0.75rem; font: inherit; width: 100%; max-width: 49rem; height: 7.5rem; box-sizing: border-box; resize: vertical; }
.card textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); outline: 0; }
.ck-compose-bar { margin-top: -0.5rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; max-width: 49rem; }
.ck-held { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.625rem 0.75rem;
  border: 1px solid var(--border); border-radius: 8px; }
.ck-held-text { margin: 0 0 0.25rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.ck-held form.cs-actions { display: flex; flex: none; }
/* The standard approval dialog (static/confirm.js): the restart card with two buttons under it. */
.wagls-confirm-actions { display: flex; justify-content: flex-end; gap: 0.625rem; padding: 0 1.25rem 1.125rem; }
.wagls-confirm-actions .restart-close { margin: 0; align-self: auto; }
.wagls-confirm-actions .wagls-confirm-ok { background: var(--warning, #ba7f04); border-color: var(--warning, #ba7f04); color: #000; font-weight: 700; }
.wagls-confirm .restart-caption { color: #000; }
.wagls-confirm .restart-body { color: var(--text); font-size: 0.875rem; }
/* Posts page and Calendar. */
.ck-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.875rem; }
.ck-table { width: 100%; border-collapse: collapse; font-size: var(--type-label-font-size, .8125rem); }
.ck-table th, .ck-table td { text-align: left; padding: 0.375rem 0.625rem; border-bottom: 1px solid var(--border); }
.ck-table th { color: var(--text-dim); font-weight: 600; }
/* All posts: search beside the title, sortable headings, and the Stack page's pager (stack.css .stack-pager*:
   the count left in muted type, "Rows per page", a small select and two small square buttons right). */
.ck-table th button { all: unset; cursor: pointer; font-weight: 600; white-space: nowrap; }
.ck-table th button:hover { color: var(--text); }
.ck-table th button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ck-table th[aria-sort="ascending"] button, .ck-table th[aria-sort="descending"] button { color: var(--text); }
.pl-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  padding: .75rem .25rem 0; color: var(--text-dim); font-size: .8125rem; }
.pl-pager-range { white-space: nowrap; }
.pl-pager-controls { display: flex; align-items: center; gap: .5rem; }
.pl-pager-size-label { margin-right: .1rem; }
.card select.pl-pager-size { width: auto; height: 1.75rem; padding: 0 .5rem; margin: 0; font-size: .8125rem; min-width: 0; border-radius: 6px; }
.pl-pager-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem;
  padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-input); color: var(--text);
  font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.pl-pager-btn:hover:not(:disabled) { border-color: var(--text-dim); }
.pl-pager-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pl-pager-btn:disabled { opacity: .45; cursor: default; }
.card input[type="file"] { width: auto; padding: 0.375rem; }
.cal-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin: 0.75rem 0; }
.cal-filters label { display: grid; gap: 0.25rem; color: var(--text-dim); font-size: var(--type-label-font-size, .8125rem); }
.cal-filters select, .cal-filters input[type="search"] { min-width: 12rem; padding: 0.375rem 0.625rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-input); color: var(--text); font: inherit; }
.cal-filters select:focus, .cal-filters input[type="search"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); outline: 0; }
.cal-filters .ck-label { padding-bottom: 0.5rem; }
.cal-filters .cal-add { margin-left: auto; }
/* A filter row that also carries .wagls-form (a 24rem column) would stack its Add + under the pull-down: one full-width row, pull-down left, Add + right. */
.wagls-form.cal-filters { max-width: none; flex-direction: row; }
.cal-rule { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.75rem 0; }
.cal-bar .hive-h2 { margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.375rem; }
.cal-head { color: var(--text-dim); font-size: var(--type-label-font-size, .8125rem); padding: 2px 0.375rem; }
.cal-day { min-height: 6.875rem; padding: 0.375rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel);
  display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.cal-empty { border-color: transparent; background: none; }
.cal-today { border-color: var(--accent); }
.cal-num { color: var(--text-dim); font-size: .75rem; }
.cal-post { display: block; padding: 3px 0.375rem; border-radius: 6px; border-left: 3px solid var(--accent); background: var(--bg-input);
  color: var(--text); text-decoration: none; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-post:hover { filter: brightness(1.2); }
.cal-time { color: var(--text-dim); margin-right: 0.375rem; }
.cal-sent { border-left-color: var(--success); }
.cal-failed { border-left-color: var(--danger); }
.cal-draft { border-left-color: var(--text-dim); }

/* Home page (ported from the old marketing app's home.css). Text and the boxes round it are in rem. */
.home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.home-head-text { min-width: 0; flex: 1 1 18rem; }
.home-greeting { margin: 0; color: var(--text-head); }
.home-date { margin: 0.25rem 0 0; color: var(--text-muted); font-size: var(--fs-small); }
.home-new-post { text-decoration: none; white-space: nowrap; }
.home-error { color: var(--danger); font-weight: 600; }
.home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.home-tile { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.875rem 1rem; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; }
.home-tile-label { color: var(--text-muted); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em; }
.home-tile-value { color: var(--text-head); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.home-tile-value.is-empty { color: var(--text-muted); font-size: 1rem; font-weight: 600; }
.home-tile-value.is-warn { color: var(--warning); }
.home-tile-sub { color: var(--text-muted); font-size: var(--fs-small); min-height: 1.4em; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
.home-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
@media (min-width: 900px) { .home-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.home-panel { padding: 1rem 1.25rem; }
.home-panel-title { margin: 0 0 0.75rem; color: var(--text-muted); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.home-empty { margin: 0; color: var(--text-muted); }
.home-note { margin: 0.5rem 0 0; color: var(--text-muted); font-size: var(--fs-small); }
.home-list { list-style: none; margin: 0; padding: 0; }
.home-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--border-dim); }
.home-row:first-child { border-top: 0; }
.home-row-stack { flex-direction: column; align-items: flex-start; gap: 0.125rem; }
.home-row-title { min-width: 0; color: var(--text-head); overflow-wrap: anywhere; }
.home-row-title a { color: inherit; text-decoration: none; }
.home-icon { display: inline-flex; vertical-align: middle; margin-left: 0.5rem; color: var(--text-muted); }
.home-icon:hover, .home-icon:focus-visible { color: var(--text-head); }
.home-icon .wagls-icon { width: 1rem; height: 1rem; }
.home-row-sub { color: var(--text-muted); font-size: var(--fs-small); }
.home-badge { flex: none; padding: 0.0625rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.home-table { width: 100%; border-collapse: collapse; }
.home-table th { text-align: left; color: var(--text-muted); font-size: var(--fs-small); font-weight: 600; padding: 0 0.75rem 0.5rem 0; border-bottom: 1px solid var(--border); }
.home-table tr:nth-child(2) td { border-top: 0; }   /* the header's own rule is the line above the first row */
/* Connection shrinks to its longest name, so the Edit and Post columns sit right beside it; "Signed in as" keeps the
   room it had (its left padding). */
.home-table.has-icons { table-layout: fixed; }   /* "Signed in as" starts at the middle of the card */
.home-table.has-icons th:first-child { width: 7rem; }   /* the name's own room; the icons follow it directly */
.home-table.has-icons th.home-col-gap { width: calc(20%); }   /* spacer: 7rem name + 2 x 1.5rem icons = 10rem before it */
.home-table th.home-col-icon, .home-table td.home-col-icon { width: 1.5rem; padding-right: 0.25rem; text-align: left; }
.home-table.has-icons th:last-child { width: 8rem; }
.home-table td.home-col-icon .home-icon { margin-left: 0; }
.home-table td.home-col-icon:nth-child(2) .home-icon { margin-left: -1rem; }   /* the pencil only: a negative number moves it left, a positive one right */
.home-table td { padding: 0.5rem 0.75rem 0.5rem 0; border-top: 1px solid var(--border-dim); overflow-wrap: anywhere; }
.home-table th:last-child, .home-table td:last-child { width: 1%; white-space: nowrap; text-align: left; padding-right: 0; }   /* Status is as wide as its pills, flush right, and its heading starts where the pills start */
.home-badge.is-ok { color: var(--success); border-color: var(--success); }
.home-badge.is-warn { color: var(--warning); border-color: var(--warning); }
.home-bars { display: flex; align-items: flex-end; gap: 0.25rem; height: 6rem; }
.home-bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; background: var(--bg-hover); border-radius: 3px; }
.home-bar span { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px; }

/* Sign-in card: brand icon left, form and providers right (stacks on a narrow screen). Sizes in rem so they follow the text size. */
.login-card {
  display: flex; flex-wrap: wrap; max-width: 52rem; margin: 1.5rem auto;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg, 10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25); overflow: hidden;
}
.login-brand { flex: 1 1 15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; background: var(--bg-panel-raised); }
.login-brand-icon { width: min(calc(12rem + 10px), 70%); height: auto; }
.login-body { flex: 1.4 1 20rem; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.login-body .hive-h1 { margin: 0; }
.login-form, .login-linkedin { max-width: none; }
.login-register { margin: 0; text-align: center; font-size: var(--fs-small); }
.login-or { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: var(--fs-small); }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.login-providers { display: flex; flex-direction: column; gap: 0.75rem; }
.login-providers > form { margin: 0; max-width: none; }
.login-providers > form { margin: 0; padding: 0; max-width: none; }
.login-providers .hive-btn { width: 100%; justify-content: center; text-align: center; }
.login-consent { flex-direction: row !important; align-items: flex-start; gap: 0.5rem !important; }
.login-providers .hive-btn { display: inline-flex; align-items: center; gap: 0.625rem; }
.login-logo { width: 1.25rem; height: 1.25rem; flex: none; }
.login-consent-row { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; }
.login-consent-box { display: flex; align-items: center; justify-content: center; }
.login-consent-text { text-align: left; align-self: start; }
.login-consent-text label { display: inline; }
.login-brand { min-width: max-content; }
.login-more { display: inline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--primary); }
.login-more:hover, .login-more:focus-visible { text-decoration: underline; }
.login-names { margin: 0; padding: 0; list-style: none; text-align: center; white-space: nowrap; display: flex; flex-direction: column; gap: 1.25rem; font-size: calc(var(--fs-h2) * 1.2); font-weight: 600; color: var(--accent); }
.login-names .lt { color: var(--accent); }
.login-tagline { margin: 0; text-align: center; font-size: var(--fs-h1); font-weight: 600; color: var(--text-head); }
/* Icons only also applies to the nav row (wireframe's rule covers only .top-bar and .copyright; see proposed_framework_changes/wireframe-nav-tabs-icons-only.md) */
html[data-nav="icons"] .nav-tabs .lbl { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Super admin > Tenants: the Microsoft Azure sign-in panel under its tick box */
.da-ms { margin: .5rem 0 0 1.6rem; padding: .75rem 1rem; border: 1px solid var(--hive-border, #8884); border-radius: 6px; }
.da-ms[hidden] { display: none; }
.da-ms h4 { margin: 0; }
.da-method-line { display: flex; align-items: baseline; gap: 1rem; }
.da-method-line > label { margin: 0; }
.da-ms-toggle { font-size: var(--fs-small); }
.da-ms-toggle[hidden] { display: none; }
.da-ms-body { margin-top: .5rem; }
.da-ms-body[hidden] { display: none; }

.ck-limit { color: var(--danger, #e5484d); font-size: var(--type-label-font-size, .8125rem); }
.ck-limit[hidden] { display: none; }

/* Standard button icons (static/icons.js, data-icon="save|edit|update|delete|cancel"). */
.hive-btn .wagls-icon { width: 1rem; height: 1rem; flex: none; margin-right: 0.4rem; vertical-align: -0.2em; }

.ck-audit p { margin: 0; }
/* Session timeout: Days, Hours and Minutes boxes side by side (text sized in rem so they follow the text size). */
.card .ck-field { display: flex; flex-direction: column; gap: 0.375rem; }
.duration-fields { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.duration-fields input { width: 6rem; }
/* The verify-your-email banner across the top of every page for a person who has not confirmed their address. */
.verify-banner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 0.625rem 1rem;
  background: var(--warning-bg, #fff3cf); color: var(--text); border-bottom: 1px solid var(--warning, #b45309);
  font-size: var(--fs-sm, 0.875rem); }
.verify-banner form { margin: 0; }
