/* TECHN22 Service Desk — brand: signal orange on warm grey, Montserrat */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('/static/fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url('/static/fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('/static/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('/static/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }

:root {
  --brand: #FF4100;          /* logo orange: marks, rules, indicators */
  --brand-strong: #CC3400;   /* orange that passes contrast for text and buttons */
  --grey: #5E5E59;           /* logo background grey: navigation */
  --grey-deep: #4E4E4A;
  --ink: #1B201F;            /* monitor bezel */
  --paper: #F2F2EF;
  --surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --line: #DCDCD6;
  --muted: #66665F;
  --focus: #FF4100;
  --ok: #2F7D3B; --ok-bg: #E5F2E6;
  --warn: #8A5A00; --warn-bg: #FFF1D6;
  --bad: #B3261E; --bad-bg: #FCE4E2;
  --blue: #1F5FA8; --blue-bg: #E3EDF9;
  --purple: #6A3FA0; --purple-bg: #EEE7F7;
  --radius: 4px;
  --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-strong: #FF6A33; --grey: #3F403C; --grey-deep: #353632; --ink: #ECECE8; --paper: #1B201F; --surface: #242928;
    --surface-2: #2B302F; --line: #3A3F3E; --muted: #A5A59E;
    --ok: #7FCB8A; --ok-bg: #20352A; --warn: #F2C467; --warn-bg: #3A3020; --bad: #FF8A80; --bad-bg: #402424;
    --blue: #8AB8F0; --blue-bg: #1F2D40; --purple: #C2A6EC; --purple-bg: #2E2640; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; margin-top: 1.25rem; }
p { margin: 0 0 .75rem; }
code { font-size: .85em; background: var(--surface-2); padding: .05rem .3rem; border-radius: 3px; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.text-alert { color: var(--bad); font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* ---------- shell ---------- */
.has-shell { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.has-shell > .t22-ribbon { grid-column: 1 / -1; }   /* the shared top ribbon (ribbon.css), 48px, above sidebar and page */
.sidebar { background: var(--grey); color: #fff; display: flex; flex-direction: column; position: sticky; top: 48px; height: calc(100vh - 48px); }
.brand { display: block; padding: 1.6rem 1.4rem 1.4rem; color: #fff; text-decoration: none !important; }
.wordmark { display: inline-block; border-left: 1px solid var(--brand); padding-left: .9rem; color: var(--brand); font-weight: 600; letter-spacing: .55em; font-size: 1.15rem; line-height: 2.2rem; }
.brand-sub { display: block; font-size: .8rem; color: #E4E4DF; margin-top: .35rem; padding-left: calc(.9rem + 1px); }
.sidebar nav { flex: 1; overflow-y: auto; padding: .5rem 0; }
.sidebar nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem 1.4rem; color: #F0F0EC; text-decoration: none; font-weight: 500; border-left: 3px solid transparent; }
.sidebar nav a:hover { background: var(--grey-deep); }
.sidebar nav a.active { background: var(--grey-deep); border-left-color: var(--brand); color: #fff; font-weight: 600; }
.sidebar nav a.active .icon { color: var(--brand); }
.sidebar nav a.nav-sub { padding: .45rem 1.4rem .45rem 2.9rem; font-size: .92em; }   /* child item, e.g. Assets under Clients */
.sidebar-foot { padding: 1rem 1.4rem 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: end; gap: .5rem; }
.sidebar-foot small { color: #C9C9C2; font-size: .75rem; }
.me { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.me strong { display: block; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.me small { color: #D6D6D0; text-transform: capitalize; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none; }
.sidebar .btn-link { color: #E4E4DF; font-size: .8rem; }

.shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; gap: 1rem; align-items: center; padding: .8rem 2rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 48px; z-index: 5; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.3rem; color: var(--ink); cursor: pointer; }
.global-search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: .5rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 .7rem; color: var(--muted); }
.global-search input { border: 0; background: transparent; padding: .55rem 0; width: 100%; font: inherit; color: var(--ink); }
.global-search input:focus { outline: none; }
.global-search:focus-within { border-color: var(--brand); }
main { padding: 1.8rem 2rem 3rem; max-width: 1400px; width: 100%; }
main:focus { outline: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .9rem; padding: .55rem 1rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: #B32E00; border-color: #B32E00; }
.btn-danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-strong); cursor: pointer; text-decoration: underline; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }

.form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; font-size: .87rem; margin-bottom: .9rem; }
.form label small { font-weight: 400; }
input, select, textarea { font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .65rem; width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,65,0,.15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand-strong); }
.form label.check, label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; } fieldset[disabled] { opacity: .75; }
legend { font-weight: 600; font-size: .87rem; margin-bottom: .4rem; }
.form.compact label { margin-bottom: .65rem; }
.grid-2, .grid-3 { display: grid; gap: 0 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions { display: flex; gap: 1rem; align-items: center; margin-top: .5rem; }
.actions.spaced { margin: 1rem 0 1.5rem; }
.inline-form summary { cursor: pointer; color: var(--brand-strong); font-weight: 600; font-size: .9rem; margin-top: 1rem; }
.inline-form[open] summary { margin-bottom: 1rem; }
.danger-zone { margin-top: 1.5rem; }

/* ---------- page structure ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.page-head p { margin: .2rem 0 0; }
.head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .3rem !important; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.card-head h2 { margin: 0; } .card-head a { font-size: .85rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split-side.card, .split-side > .card { padding: 1.1rem 1.2rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; font-size: .9rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.flash { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border-left: 4px solid; font-weight: 500; }
.flash-success { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.flash-error { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.empty-state { text-align: center; padding: 3rem 1rem; max-width: 520px; margin: 0 auto; }
.empty-state.small { padding: 2rem 1rem; color: var(--muted); }
.status-code { font-size: 3rem; font-weight: 700; color: var(--brand); margin: 0; letter-spacing: .2em; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.filters input[type=search] { flex: 1 1 260px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }
.view-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.view-tabs a { padding: .6rem .9rem; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; font-size: .9rem; }
.view-tabs a.active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.view-tabs .count { display: inline-block; min-width: 1.5em; text-align: center; padding: 0 .35rem; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: .75rem; }
.view-tabs a.alert .count { background: var(--bad); border-color: var(--bad); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chips a { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--ink); text-decoration: none; background: var(--surface); }
.chips a.active { border-color: var(--brand); color: var(--brand-strong); font-weight: 600; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .table-wrap { border: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); padding: .65rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table td small { display: block; color: var(--muted); }
.table .num { text-align: right; } .table .center { text-align: center; }
.table tr.inactive td { color: var(--muted); }
.row-actions { text-align: right; white-space: nowrap; }
.matrix tr.group th { background: var(--surface); color: var(--ink); text-transform: capitalize; padding-top: 1rem; }
.details pre { white-space: pre-wrap; font-size: .75rem; max-width: 420px; }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; padding: 1rem; font-size: .9rem; color: var(--muted); }

/* tickets: the priority edge is the signature element */
.tickets td:first-child { border-left: 4px solid transparent; }
.tickets tr.pri-red td:first-child { border-left-color: var(--brand); }
.tickets tr.pri-amber td:first-child { border-left-color: #F2A000; }
.tickets tr.pri-blue td:first-child { border-left-color: var(--line); }
.tickets .subject a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; font-weight: 600; }
.tickets .subject a:hover span:last-child { text-decoration: underline; }
.ref { font-size: .78rem; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pri-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .45rem; vertical-align: middle; background: var(--muted); }
.pri-dot.tone-red { background: var(--brand); } .pri-dot.tone-amber { background: #F2A000; } .pri-dot.tone-blue { background: var(--blue); }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .12rem .5rem; border-radius: 3px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tone-blue { background: var(--blue-bg); color: var(--blue); border-color: transparent; }
.tone-purple { background: var(--purple-bg); color: var(--purple); border-color: transparent; }
.tone-amber { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tone-green { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tone-red { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.sla { font-size: .82rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sla-ok, .sla-met { color: var(--ok); } .sla-warn { color: var(--warn); } .sla-breach { color: var(--bad); } .sla-paused, .sla-none { color: var(--muted); }

/* ticket detail */
.ticket-head h1 .ref { font-size: 1rem; margin-right: .25rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .87rem; color: var(--muted); }
.sla-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.sla-block { background: var(--surface); padding: .9rem 1.2rem; display: flex; flex-direction: column; border-top: 3px solid transparent; }
.sla-block span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.sla-block strong { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sla-block small { color: var(--muted); }
.sla-block.sla-ok { border-top-color: var(--ok); } .sla-block.sla-met { border-top-color: var(--ok); }
.sla-block.sla-warn { border-top-color: #F2A000; } .sla-block.sla-breach { border-top-color: var(--brand); background: var(--bad-bg); }
.sla-block.sla-paused { border-top-color: var(--muted); }
.description { line-height: 1.6; overflow-wrap: anywhere; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; }
.segmented label { margin: 0 !important; flex-direction: row !important; padding: .4rem .85rem; cursor: pointer; font-size: .85rem; gap: .4rem !important; }
.segmented label:has(input:checked) { background: var(--ink); color: var(--paper); }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.composer textarea { margin-bottom: .75rem; }
.composer-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.composer-row label { margin: 0 !important; }
.composer-row .btn { margin-left: auto; }
.time-input { display: inline-flex; gap: .4rem; align-items: center; }
.time-input label { flex-direction: row !important; align-items: center; gap: .35rem !important; }
.time-input input { width: 4.2rem; }
label.inline { flex-direction: row !important; align-items: center; gap: .5rem !important; }
label.inline select { width: auto; }
.timeline { margin-top: .5rem; }
.entry { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; margin-bottom: .6rem; }
.entry header { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; font-size: .85rem; margin-bottom: .35rem; }
.entry header time, .entry .kind { color: var(--muted); }
.entry-body { overflow-wrap: anywhere; line-height: 1.55; }
.entry-reply { border-left-color: var(--brand); }
.entry-client { border-left-color: var(--blue); background: var(--blue-bg); }
.entry-system { background: transparent; border-style: dashed; border-left-style: solid; font-size: .85rem; color: var(--muted); padding: .5rem 1.1rem; }
.entry-system .entry-body { font-size: .85rem; }
.time-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--surface-2); padding: .05rem .45rem; border-radius: 3px; }
.time-chip .icon { width: 13px; height: 13px; }

/* lists & widgets */
.ticket-mini { list-style: none; padding: 0; margin: 0; }
.ticket-mini li { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ticket-mini li:last-child { border-bottom: 0; }
.ticket-mini a { color: var(--ink); text-decoration: none; font-weight: 500; flex: 1 1 200px; }
.ticket-mini a:hover { color: var(--brand-strong); }
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.widget-full { grid-column: 1 / -1; }
.stat-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.stat { background: var(--surface); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
a.stat:hover { background: var(--surface-2); }
.stat strong { font-size: 1.8rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--muted); }
.stat-alert { box-shadow: inset 0 3px 0 var(--brand); } .stat-alert strong { color: var(--bad); }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .6rem; }
.article-list p { margin: .3rem 0; font-size: .9rem; }
.prose { max-width: 75ch; line-height: 1.7; font-size: 1rem; }
.rating { font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 3px; }
.rating-awesome { background: #DDF3DF; color: #23702F; } .rating-good { background: #EAF5DA; color: #4F7A1E; }
.rating-average { background: #FBF3C7; color: #7A6200; } .rating-poor { background: #FCE0DE; color: #A6261D; }
.csat-row { display: grid; grid-template-columns: 80px 1fr 2rem; gap: .6rem; align-items: center; margin-bottom: .35rem; }
.csat meter { width: 100%; height: 10px; accent-color: var(--brand); }
.mail-rows { display: grid; grid-template-columns: minmax(220px, auto) 1fr; gap: .6rem 1rem; align-items: center; margin-bottom: 1rem; }
.mail-rows label { margin: 0 !important; }

/* sign-in & public pages */
.bare { background: var(--grey); }
.signin, .public-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.signin-card, .public-card { background: var(--surface); width: 100%; max-width: 420px; padding: 2.2rem; border-radius: var(--radius); text-align: center; border-top: 4px solid var(--brand); }
.public-card { text-align: left; max-width: 560px; } .public-card.wide { max-width: 760px; }
.signin-logo { display: block; margin: 0 auto .5rem; }
.signin-card h1 { font-size: 1.3rem; }
.btn-ms { width: 100%; justify-content: center; padding: .75rem; margin: 1rem 0 .5rem; background: var(--surface); border-color: var(--ink); }
.dev-login { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
/* Sign-in page: Techn22 logo greys in light and dark mode, everything centred. */
body.bare:has(.signin) { background: #5E5E59; }
.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.signin .signin-card { background: #4A4A46; color: #F4F4F0; box-shadow: 0 18px 48px rgba(0,0,0,.28); display: flex; flex-direction: column; align-items: center; }
.signin .signin-card .muted, .signin .signin-card .small { color: #D9D9D3; }
.signin .signin-logo { width: 112px; height: 112px; margin: 0 auto 1rem; border-radius: 10px; }
.signin .signin-card h1 { color: #fff; margin: 0 0 .4rem; }
.signin .signin-card form { width: 100%; }
.signin .btn-ms { background: #fff; color: #262622; border-color: #fff; font-weight: 600; }
.signin .btn-ms:hover { background: #F0F0EC; border-color: #F0F0EC; }
.signin .dev-login { border-top-color: rgba(255,255,255,.25); }
.signin .dev-login .btn { background: transparent; color: #F4F4F0; border-color: rgba(255,255,255,.4); }
.brand-bar { background: var(--brand); margin: -2.2rem -2.2rem 1.5rem; padding: 1rem; text-align: center; }
.brand-bar .wordmark { color: #fff; border-color: #fff; font-size: .95rem; line-height: 1.6rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .stat-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .has-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 48px auto 0 0; height: auto; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .menu-toggle { display: block; }
  .topbar, main { padding-left: 1rem; padding-right: 1rem; }
  .topbar .btn-primary { padding: .55rem .7rem; font-size: 0; gap: 0; } .topbar .btn-primary .icon { width: 18px; height: 18px; }
  .grid-2, .grid-3, .widgets, .split.even, .mail-rows { grid-template-columns: 1fr; }
  .sla-strip { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .page-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Microsoft 365 module ---------- */
.stat-row.stat-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.check-col { width: 2.2rem; text-align: center; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1rem; }
.form-actions form { margin: 0; }
@media (max-width: 720px) { .stat-row.stat-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Wide tables inside a split layout scroll inside their card instead of widening the page on phones. */
.split > * { min-width: 0; }
