/*
 * Tech9IQ VMware vCenter — UI styles. No inline styles are used (strict CSP: style-src 'self').
 * Colours come only from the Tech9IQ role tokens (tokens.css, light and dark, the same --t9-*
 * roles as the Ops Console and the other modules); the names below are the module's own roles
 * mapped onto them. The shell (sidebar, top bar, menus) follows the IBM Power module's.
 */
:root {
  --bg: var(--t9-bg-page);
  --surface: var(--t9-bg-surface);
  --surface-2: var(--t9-bg-sunken);
  --border: var(--t9-border);
  --border-control: var(--t9-border-control);
  --text: var(--t9-text);
  --muted: var(--t9-text-secondary);
  --accent: var(--t9-primary);
  --accent-hover: var(--t9-primary-hover);
  --on-accent: var(--t9-on-primary);
  --accent-weak: var(--t9-selected-bg);
  --ok: var(--t9-good);
  --ok-weak: var(--t9-good-soft);
  --warn: var(--t9-warn);
  --warn-weak: var(--t9-warn-soft);
  --crit: var(--t9-critical);
  --crit-weak: var(--t9-critical-soft);
  --info: var(--t9-info);
  --info-weak: var(--t9-info-soft);
  --shadow: var(--t9-shadow-card);
  --radius: 8px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t9-font: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--t9-font); background: var(--bg); color: var(--text); }
a { color: var(--t9-link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
h1 { font-size: 20px; margin: 0; font-weight: 600; color: var(--t9-text); }
h2 { font-size: 16px; margin: 0 0 10px; font-weight: 600; color: var(--t9-text-title2); }
h3 { font-size: 14px; margin: 14px 0 8px; font-weight: 600; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ Shell (IBM Power module's) */
.t9-shell { height: 100vh; height: 100dvh; display: flex; overflow: hidden; background: var(--t9-bg-page); color: var(--t9-text); }
.t9-body { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.t9-main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 24px; }
.t9-main:focus { outline: none; }

.t9-side { width: 18rem; flex: none; height: 100%; display: flex; flex-direction: column; background: var(--t9-bg-surface);
  border-right: 1px solid var(--t9-border); transition: width .15s ease; }
.t9-side.is-collapsed { width: 4rem; }
.t9-side__brand { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--t9-border); }
.t9-side__brand--mark { justify-content: center; padding: 0; }
.t9-side__mark { width: 32px; height: 32px; display: block; }
.t9-logo { height: 34px; width: auto; display: block; }
.t9-logo--dark { display: none; }
:root[data-theme="dark"] .t9-logo--light { display: none; }
:root[data-theme="dark"] .t9-logo--dark { display: block; }
.t9-side__divider { width: 1px; height: 20px; background: var(--t9-border); flex: none; }
.t9-side__product { min-width: 0; line-height: 1.25; flex: 1; }
.t9-side__name { display: block; font-size: 14px; font-weight: 600; color: var(--t9-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t9-side__org { display: block; font-size: 12px; color: var(--t9-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t9-side__close { margin-left: auto; }
.t9-side__back, .t9-side__item { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 14px; color: var(--t9-text-muted); text-decoration: none; }
.t9-side__back { flex: none; padding: 10px 16px; border-bottom: 1px solid var(--t9-border); }
.t9-side__back svg, .t9-side__item svg { width: 16px; height: 16px; flex: none; }
.t9-side__item svg { color: var(--t9-text-faint); }
.t9-side__back:hover, .t9-side__item:hover { background: var(--t9-bg-muted); color: var(--t9-text); text-decoration: none; }
.t9-side__nav { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0; }
.t9-side__heading { margin: 0; padding: 12px 16px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--t9-text-secondary); }
.t9-side__section:first-child .t9-side__heading { padding-top: 4px; }
.t9-side__item { padding: 8px 16px; }
.t9-side__item span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t9-side__item.is-active { background: var(--t9-selected-bg); color: var(--t9-selected-text); font-weight: 500; }
.t9-side__item.is-active svg { color: var(--t9-primary); }
.t9-side__rule { margin: 8px 12px; border-top: 1px solid var(--t9-border); }
.t9-side.is-collapsed .t9-side__back, .t9-side.is-collapsed .t9-side__item { justify-content: center; padding-left: 0; padding-right: 0; }
.t9-side__foot { flex: none; display: flex; justify-content: flex-end; padding: 8px; border-top: 1px solid var(--t9-border); }
.t9-side.is-collapsed .t9-side__foot { justify-content: center; }
.t9-side__context { flex: none; display: grid; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--t9-border); }
.t9-side__context label { margin: 0; font-size: 12px; font-weight: 500; color: var(--t9-text-secondary); }
.t9-side__context select { width: 100%; }
.t9-side.is-collapsed .t9-side__context { display: none; }

.t9-top { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--t9-bg-surface); border-bottom: 1px solid var(--t9-border); }
.t9-top__crumbs { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.t9-top__right { flex: none; display: flex; align-items: center; gap: 8px; }
.t9-top .t9-top__menu { display: none; }
.t9-crumbs { display: flex; align-items: center; min-width: 0; gap: 6px; font-size: 14px; color: var(--t9-text-secondary); white-space: nowrap; overflow: hidden; }
.t9-crumbs a { color: var(--t9-text-secondary); }
.t9-crumbs a:hover { color: var(--t9-text); }
.t9-crumbs__current { color: var(--t9-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.t9-crumbs__sep { color: var(--t9-text-faint); }

.t9-iconbtn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--t9-text-secondary); cursor: pointer; }
.t9-iconbtn:hover:not(:disabled) { background: var(--t9-bg-sunken); color: var(--t9-text); border-color: transparent; }
.t9-iconbtn svg { width: 16px; height: 16px; }
.t9-iconbtn--boxed { border-color: var(--t9-border); background: var(--t9-bg-surface); color: var(--t9-text-muted); }
.t9-iconbtn--boxed:hover:not(:disabled) { border-color: var(--t9-border); background: var(--t9-bg-muted); }

.t9-user { position: relative; }
.t9-avatar { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 9999px; border: 0;
  background: var(--t9-selected-bg); color: var(--t9-selected-text); font-size: 14px; font-weight: 600; box-shadow: 0 0 0 1px var(--t9-border); cursor: pointer; }
.t9-avatar:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--t9-primary); background: var(--t9-selected-bg); }
.t9-avatar:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--t9-focus); }
.t9-menu { position: absolute; right: 0; top: 40px; z-index: 40; width: 16rem; padding: 4px; background: var(--t9-bg-surface);
  border: 1px solid var(--t9-border); border-radius: 8px; box-shadow: var(--t9-shadow-lg); }
.t9-menu__who, .t9-menu__block { padding: 8px 12px; }
.t9-menu__name { margin: 0; font-size: 14px; font-weight: 500; color: var(--t9-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t9-menu__role, .t9-menu__label { margin: 0; font-size: 12px; color: var(--t9-text-secondary); }
.t9-menu__label { margin-bottom: 6px; font-weight: 500; }
.t9-menu__rule { margin: 4px 0; border-top: 1px solid var(--t9-border); }
.t9-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 2px; border-radius: 6px; background: var(--t9-bg-sunken); }
.t9-seg button { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 6px; border: 0; border-radius: 4px;
  background: transparent; color: var(--t9-text-muted); font-size: 12px; }
.t9-seg button svg { width: 14px; height: 14px; }
.t9-seg button.is-on { background: var(--t9-bg-surface); color: var(--t9-text); font-weight: 500; box-shadow: var(--t9-shadow-card); }
.t9-menu__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent;
  color: var(--t9-text-muted); font-size: 14px; text-align: left; }
.t9-menu__item:hover:not(:disabled) { background: var(--t9-bg-muted); color: var(--t9-text); }
.t9-menu__item svg { width: 16px; height: 16px; }

.t9-scrim { display: none; }
@media (max-width: 767px) {
  .t9-side, .t9-side.is-collapsed { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(18rem, 86vw); transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--t9-shadow-lg); }
  .t9-side.is-drawer { transform: none; }
  .t9-side.is-drawer .t9-side__context { display: grid; }
  .t9-scrim.is-open { display: block; position: fixed; inset: 0; z-index: 55; background: var(--t9-overlay); }
  .t9-top { padding: 0 12px; gap: 8px; }
  .t9-top .t9-top__menu { display: grid; }
  .t9-main { padding: 16px; }
}

/* The page while it checks the session or signs someone in. */
.t9-loading { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 16px;
  color: var(--t9-text-secondary); font-weight: 500; text-align: center; }
.t9-loading__bar { position: relative; width: 160px; height: 3px; overflow: hidden; border-radius: 9999px; background: var(--t9-chart-track); }
.t9-loading__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: inherit; background: var(--t9-primary);
  animation: t9-loading-slide 1.2s cubic-bezier(.4, 0, .2, 1) infinite; }
:root[data-theme="dark"] .t9-loading__bar::before { background: var(--t9-accent); }
@keyframes t9-loading-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .t9-loading__bar::before { animation: none; width: 100%; opacity: .45; } }

.content { padding: 0; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid.k4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid.k2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.grid.k3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stat { padding: 14px 16px; }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 24px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .detail { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kv { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.source { font-size: 11.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.source .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
.source.live .dot { background: var(--ok); }
.source.cache .dot { background: var(--info); }
.source.history .dot { background: var(--warn); }

/* Buttons & forms */
button, .btn { font: inherit; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 6px 12px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
button:hover, .btn:hover { background: var(--surface-2); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
button.primary:hover, .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { background: var(--crit); border-color: var(--crit); color: #fff; }
:root[data-theme="dark"] button.danger { color: #1a0b0b; }
button.ghost { border-color: transparent; background: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.small { padding: 3px 8px; font-size: 12.5px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-control); border-radius: 6px; padding: 6px 9px; min-width: 0; }
textarea { width: 100%; min-height: 70px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--t9-focus); outline-offset: 1px; }
label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.field { margin-bottom: 12px; }
.field .help { color: var(--muted); font-size: 12px; margin-top: 2px; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; }
.field.check { display: flex; gap: 8px; align-items: center; }
.field.check label { margin: 0; color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 14px; }
fieldset { border: 1px dashed var(--border); border-radius: 6px; padding: 8px 10px; margin: 0 0 12px; }
legend { font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.toolbar input[type=search] { width: 260px; }
.toolbar .grow { flex: 1; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-size: 12px; color: var(--muted); white-space: nowrap; position: sticky; top: 0; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { white-space: nowrap; text-align: right; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 8px; color: var(--muted); font-size: 12.5px; }
.empty { padding: 26px; text-align: center; color: var(--muted); }

/* Badges & status */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge.ok { background: var(--ok-weak); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-weak); color: var(--warn); border-color: transparent; }
.badge.crit { background: var(--crit-weak); color: var(--crit); border-color: transparent; }
.badge.info { background: var(--info-weak); color: var(--info); border-color: transparent; }
.badge.accent { background: var(--accent-weak); color: var(--accent); border-color: transparent; }
.dot-status { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot-status.green { background: var(--ok); }
.dot-status.yellow { background: var(--warn); }
.dot-status.red { background: var(--crit); }

/* Meter bars */
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); min-width: 70px; }
.bar > span { display: block; height: 100%; background: var(--accent); width: 0; }
.bar.warn > span { background: var(--warn); }
.bar.crit > span { background: var(--crit); }
.bar-row { display: flex; gap: 8px; align-items: center; }
.bar-row .bar { flex: 1; }
.bar-row .v { font-size: 12px; color: var(--muted); min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 12px; color: var(--muted); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }

/* Modal & drawer */
.overlay { position: fixed; inset: 0; background: var(--t9-overlay); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 10px; width: min(860px, 100%); box-shadow: var(--t9-shadow-lg); border: 1px solid var(--border); }
.modal.wide { width: min(1100px, 100%); }
.modal header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.modal header h2 { margin: 0; flex: 1; }
.modal .body { padding: 16px 18px; max-height: 72vh; overflow-y: auto; }
.modal footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal footer .note { margin-right: auto; color: var(--muted); font-size: 12.5px; }
.drawer { position: fixed; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.job-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 13px; }
.job-card .head { display: flex; gap: 8px; align-items: center; }
.job-card .head b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-card .msg { color: var(--muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.toast-stack { position: fixed; top: 14px; right: 14px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 6px; box-shadow: var(--shadow); max-width: 420px; font-size: 13px; }
.toast.error { border-left-color: var(--crit); }
.toast.ok { border-left-color: var(--ok); }

/* Plan */
.plan-section { margin-bottom: 12px; }
.plan-section ul { margin: 4px 0; padding-left: 18px; }
.check-row { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 13px; }
.check-row .ico { width: 18px; flex: none; text-align: center; font-weight: 700; }
.check-row.pass .ico { color: var(--ok); }
.check-row.fail .ico { color: var(--crit); }
.check-row.warn .ico { color: var(--warn); }
.check-row.info .ico { color: var(--info); }
.callout { border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; border: 1px solid transparent; }
.callout.crit { background: var(--crit-weak); color: var(--crit); }
.crit-text { color: var(--crit); font-weight: 600; }
.callout.warn { background: var(--warn-weak); color: var(--warn); }
.callout.info { background: var(--info-weak); color: var(--info); }
.callout.ok { background: var(--ok-weak); color: var(--ok); }
.callout ul { margin: 4px 0 0; padding-left: 18px; }

/* Tree */
.tree ul { list-style: none; margin: 0; padding-left: 16px; }
.tree > ul { padding-left: 0; }
.tree li { padding: 1px 0; }
.tree .node { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.tree .node:hover { background: var(--surface-2); }
.tree .node.sel { background: var(--accent-weak); }
.tree .tw { width: 14px; display: inline-block; color: var(--muted); font-size: 10px; text-align: center; }
.split { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 14px; align-items: start; }

/* Charts */
.chart { width: 100%; height: 160px; }
.chart .axis { stroke: var(--border); }
.chart .gridline { stroke: var(--border); stroke-dasharray: 2 3; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.chart .line.s2 { stroke: var(--ok); }
.chart .line.s3 { stroke: var(--warn); }
.chart .line.s4 { stroke: var(--crit); }
.chart text { fill: var(--muted); font-size: 10px; }
.chart .gap { fill: var(--surface-2); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 3px; background: var(--accent); margin-right: 4px; vertical-align: middle; }
.legend i.s2 { background: var(--ok); }
.legend i.s3 { background: var(--warn); }
.legend i.s4 { background: var(--crit); }

/* Login */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 16px; background: var(--t9-bg-page); }
.login .card { width: min(400px, 100%); padding: 24px; }
.login .login__brand { display: flex; justify-content: center; }
.login h1 { margin-bottom: 4px; }
.login a.button { display: block; text-align: center; text-decoration: none; padding: 9px 12px; border-radius: 6px; margin: 12px 0 4px; font-weight: 600; }
.login a.button.primary { background: var(--accent); color: var(--on-accent); }
.login a.button.primary:hover { background: var(--accent-hover); }
.login .or { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0; }
.login .linkish { background: none; border: 0; color: var(--accent); padding: 0; margin-bottom: 8px; cursor: pointer; text-decoration: underline; }
.login .sub { color: var(--muted); margin-bottom: 16px; font-size: 13px; }
.err { color: var(--crit); font-size: 13px; margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wrap-anywhere { overflow-wrap: anywhere; }
pre.log { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px; max-height: 260px; overflow: auto; font-size: 12px; margin: 0; white-space: pre-wrap; }
.print-only { display: none; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .toolbar input[type=search] { width: 100%; }
}
@media print {
  .t9-side, .t9-top, .toolbar, .actions, .drawer, .no-print, .pager { display: none !important; }
  .t9-shell { display: block; height: auto; overflow: visible; }
  .t9-body, .t9-main { overflow: visible; }
  .card, .table-wrap { box-shadow: none; border-color: #999; }
  .print-only { display: block; }
  body { background: #fff; color: #000; }
}

/* Sign-in from Tech9IQ (Ops Console / customer portal) */
.handoff-links { display: grid; gap: 8px; margin: 12px 0 4px; }
.handoff-links a.button { margin: 0; }
.login a.button:not(.primary) { border: 1px solid var(--border); color: var(--text); }

/* Back/forward cache guard: hidden until the server confirms the session (app.js). */
html.t9-guarded body { visibility: hidden; }
.mt8 { margin-top: 8px; }
.t9-loading .t9-logo, .login__brand .t9-logo { height: 40px; }
