/* MMOS, styled to Bots For That Brand Guidelines 2026, in the same language as PMOS.
 *
 * Core palette:       Mulberry #362838 · Raspberry #E21766 · Peony #FDE5EE · White
 * Supporting palette: Misty Grey #E5E5E5 · Aquamarine #7CD5CB
 * Chrome uses Mulberry, Peony and White with Raspberry as the single accent; the
 * supporting palette carries data, as section 2.4 of the guidelines reserves it for.
 */

:root {
  --mulberry: #362838;
  --raspberry: #e21766;
  --raspberry-deep: #8e0f45;
  --peony: #fde5ee;
  --peony-deep: #f7cfdd;
  --white: #ffffff;
  --misty-grey: #e5e5e5;
  --aquamarine: #7cd5cb;
  --purple: #6523af;

  --ink: var(--mulberry);
  --ink-soft: #4a3d4c;
  --ink-faint: #5c4f5e;
  --ground: #f4f1f4;
  --surface: var(--white);
  --rule: #e0d8e0;
  --rule-soft: #efeaef;

  --gap: 16px;
  --rail: 248px;
  --r-card: 14px;
  --r-ctl: 10px;

  --sans: 'Garet', 'Avenir Next', Avenir, 'Poppins', 'Century Gothic', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--ground); color: var(--ink); font: 400 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--raspberry); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--raspberry-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--raspberry); outline-offset: 2px; }
.num, td, .kpi__value { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 8px; }

/* ----------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.shell--collapsed { grid-template-columns: 66px minmax(0, 1fr); }

.rail { position: sticky; top: 0; height: 100vh; background: var(--peony); border-right: 1px solid var(--peony-deep);
  padding: 20px 0 24px; display: flex; flex-direction: column; }
.rail-toggle-form { position: absolute; top: 16px; right: -13px; z-index: 5; margin: 0; }
.rail-toggle { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--peony-deep);
  border-radius: 50%; background: var(--white); color: var(--mulberry); cursor: pointer; box-shadow: 0 1px 3px rgba(54, 40, 56, .16); }
.rail-toggle:hover { background: var(--raspberry); color: var(--white); border-color: var(--raspberry); }
.shell--collapsed .rail-toggle svg { transform: rotate(180deg); }

.brand { flex: none; padding: 0 20px 18px; border-bottom: 1px solid var(--peony-deep); }
.brand a { text-decoration: none; }
.brand small { display: block; margin-top: 13px; font-size: 11.5px; color: var(--ink-soft); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--mulberry); }
.wordmark__words { font-weight: 700; font-size: 21px; line-height: .95; letter-spacing: -.02em; }
.wordmark__tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--raspberry) 0%, var(--purple) 100%); color: var(--white); font-weight: 700; font-size: 17px; }
.wordmark--large .wordmark__words { font-size: 27px; }
.wordmark--large .wordmark__tile { width: 54px; height: 54px; font-size: 21px; border-radius: 13px; }

.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--raspberry); padding: 14px 10px 7px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.nav a:hover { background: var(--white); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--mulberry); color: var(--peony); font-weight: 700; }
.nav .icon { flex: none; opacity: .85; }
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { margin-left: auto; font-size: 11.5px; color: var(--ink-faint); }
.nav a[aria-current="page"] .count { color: rgba(253, 229, 238, .7); }
.count.warn { color: var(--raspberry-deep); font-weight: 700; }

.rail-foot { flex: none; padding: 16px 20px 0; border-top: 1px solid var(--peony-deep); }
.rail-foot .who { font-size: 13px; font-weight: 700; word-break: break-word; }
.role { display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--raspberry); color: var(--white); }
.rail-foot a, .linkbtn { font-size: 12.5px; color: var(--ink-soft); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--raspberry); }
.rail-foot form { margin: 8px 0 0; }
.initials { display: none; width: 32px; height: 32px; margin: 0 auto; place-items: center; border-radius: 50%; background: var(--mulberry); color: var(--peony); font-size: 11.5px; font-weight: 700; }

.shell--collapsed .rail { padding: 20px 0 24px; }
.shell--collapsed .brand { padding: 0 8px 14px; text-align: center; }
.shell--collapsed .wordmark__words, .shell--collapsed .brand small { display: none; }
.shell--collapsed .wordmark__tile { width: 36px; height: 36px; font-size: 14px; }
.shell--collapsed .nav { padding: 14px 8px; align-items: center; }
.shell--collapsed .nav a { justify-content: center; width: 42px; padding: 10px 0; gap: 0; }
.shell--collapsed .nav-text, .shell--collapsed .count { display: none; }
.shell--collapsed .nav-label { height: 1px; width: 22px; padding: 0; margin: 14px auto 9px; overflow: hidden; text-indent: -999px; background: var(--peony-deep); }
.shell--collapsed .rail-foot { padding: 14px 8px 0; text-align: center; }
.shell--collapsed .rail-foot .who, .shell--collapsed .rail-foot .role, .shell--collapsed .rail-foot .foot-links { display: none; }
.shell--collapsed .initials { display: grid; }

.main { min-width: 0; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ pulse */
.pulse { background: var(--mulberry); color: var(--peony); padding: 12px 24px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pulse__field { display: flex; align-items: baseline; gap: 8px; }
.pulse .k { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(253, 229, 238, .62); }
.pulse .v { color: var(--white); font-weight: 700; }
.pulse .v.ok { color: var(--aquamarine); }
.pulse .v.bad { color: #ff8fb4; }
.pulse a.v { text-decoration: none; }
.pulse .live { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aquamarine); display: inline-block; }
.dot.off { background: rgba(253, 229, 238, .35); }
.tag-demo { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(253, 229, 238, .45); }

/* --------------------------------------------------------------- headings */
.page { padding: 24px 24px 48px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: var(--gap); flex-wrap: wrap; margin-bottom: 20px; }
.page-head__title { flex: 1 1 320px; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.page-head p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13.5px; max-width: 70ch; }
.eyebrow { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--raspberry); margin-bottom: 8px; }
.section { margin: 28px 0 14px; }
.section p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* --------------------------------------------------------------- controls */
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.filters label, .field > span:first-child { display: flex; flex-direction: column; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
select, input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], textarea {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--white);
  font: 400 13px var(--sans); color: var(--mulberry); letter-spacing: 0; text-transform: none; max-width: 100%; }
textarea { padding: 10px 14px; min-height: 80px; resize: vertical; }
select { padding-right: 30px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--raspberry); outline-offset: 0; border-color: transparent; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > span:first-child { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.hint { font-size: 11.5px; color: var(--ink-soft); }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--raspberry); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
fieldset { border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 8px 14px 6px; margin: 0 0 14px; }
legend { font-size: 12px; font-weight: 700; padding: 0 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--raspberry); background: var(--raspberry);
  color: var(--white); font: 700 12.5px/1 var(--sans); padding: 0 18px; min-height: 40px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--raspberry-deep); border-color: var(--raspberry-deep); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--white); border-color: var(--mulberry); color: var(--mulberry); }
.btn.danger { background: transparent; color: #a3201a; border-color: #f0c2bd; }
.btn.danger:hover { background: #a3201a; color: var(--white); border-color: #a3201a; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 12px; }
.btn.wide { width: 100%; min-height: 46px; font-size: 14px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.inline { display: inline; margin: 0; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13px; text-decoration: none;
  background: var(--white); color: var(--mulberry); border: 1.5px solid var(--rule); }
.tabs a:hover { border-color: var(--mulberry); color: var(--mulberry); }
.tabs a[aria-current="page"] { background: var(--mulberry); color: var(--peony); border-color: var(--mulberry); font-weight: 700; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 20px; margin-bottom: var(--gap); min-width: 0; }
.card__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card__head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card__head.has-sub { margin-bottom: 4px; }
.card__sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 12.5px; }
.source { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(var(--min, 300px), 1fr)); margin-bottom: var(--gap); }
.grid > .card { margin-bottom: 0; }
.grid--2 { --min: 420px; }
.grid--3 { --min: 300px; }
.grid--kpi { --min: 160px; gap: 12px; }
.grid--wide { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 900px) { .grid--wide { grid-template-columns: 1fr; } .grid--2 { --min: 260px; } }

.kpi { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 16px 18px; min-width: 0; }
.kpi__label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.kpi__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.kpi__value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi__note { font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; }

.tile { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 16px 18px; text-decoration: none; color: var(--ink); min-width: 0; }
.tile:hover { border-color: var(--mulberry); color: var(--ink); }
.tile__name { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.tile__name .icon { color: var(--raspberry); }
.tile__big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.tile__unit { font-size: 12px; color: var(--ink-soft); }
.tile__sub { font-size: 12px; color: var(--ink-soft); }
.tile__open { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--raspberry); display: inline-flex; align-items: center; gap: 6px; }

.delta { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.up { background: var(--aquamarine); color: var(--mulberry); }
.delta.down { background: var(--peony); color: var(--raspberry-deep); box-shadow: inset 0 0 0 1px var(--raspberry); }
.delta.flat { background: var(--misty-grey); color: var(--mulberry); }
.delta__note { font-size: 11px; color: var(--ink-soft); }

.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; color: var(--white); background: var(--mulberry); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pill.ok { background: var(--aquamarine); color: var(--mulberry); }
.pill.warn { background: var(--peony); color: var(--raspberry-deep); box-shadow: inset 0 0 0 1px var(--raspberry); }
.pill.bad { background: var(--raspberry); }
.pill.grey { background: var(--misty-grey); color: var(--ink); }
.pill.outline { background: none; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--rule); }

.flash { padding: 13px 16px; border-radius: var(--r-ctl); margin-bottom: var(--gap); background: var(--surface); border-left: 5px solid var(--mulberry); font-size: 13.5px; }
.flash.ok { border-left-color: var(--aquamarine); }
.flash.warn, .flash.error { border-left-color: var(--raspberry); background: var(--peony); }
.flash.error { color: var(--raspberry-deep); }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--peony); border-radius: var(--r-ctl); padding: 12px 14px; font-size: 12.5px; margin-bottom: var(--gap); }
.note .icon { color: var(--raspberry); flex: none; }
.empty { color: var(--ink-soft); font-size: 12.5px; margin: 6px 0; }
.muted { color: var(--ink-soft); font-size: 12px; }

/* ----------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  padding: 0 10px 9px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; font-size: 13px; }
table.data tr:last-child td { border-bottom: 0; }
table.data .r { text-align: right; }
table.data td.c, table.data th.c { text-align: center; }
table.data .strong { font-weight: 700; }
.ellipsis { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------------- charts */
.spark { display: block; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__line { width: 16px; border-top: 2.5px solid; display: inline-block; }
.legend__line.is-dashed { border-top-style: dashed; }
.legend__swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-line { display: block; width: 100%; }
.axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-faint); margin-top: 6px; }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bars__row { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 12.5px; }
.bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__track { height: 12px; background: var(--rule-soft); border-radius: 6px; overflow: hidden; display: block; }
.bars__fill { display: block; height: 100%; border-radius: 6px; }
.bars__value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.stacked { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; margin-bottom: 10px; }
.stacked span { display: block; }
.cols { display: flex; align-items: flex-end; gap: 14px; border-bottom: 1px solid var(--rule); padding: 0 4px; }
.cols__group { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; }
.cols__bar { display: block; width: 100%; max-width: 26px; border-radius: 5px 5px 0 0; min-height: 1px; }
.cols__labels { display: flex; gap: 14px; padding: 6px 4px 0; }
.cols__labels span { flex: 1 1 0; text-align: center; font-size: 11px; color: var(--ink-soft); }

.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.funnel li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.funnel__bar { min-width: 150px; color: var(--white); border-radius: 8px; padding: 7px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.funnel__bar span { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel__bar b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.funnel__step { font-size: 10.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.funnel__foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule-soft); font-size: 12px; color: var(--ink-soft); }
.funnel__foot b { color: var(--ink); }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.strip__step { border: 1px solid var(--rule); border-radius: 12px; padding: 14px; background: var(--white); }
.strip__step .label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.strip__step b { display: block; font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.strip__track { display: block; height: 6px; background: var(--rule-soft); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.strip__track span { display: block; height: 100%; background: var(--mulberry); }
.strip__step.is-last .strip__track span { background: var(--raspberry); }
.strip__note { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 6px; }

.highlights a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); text-decoration: none; color: var(--ink); }
.highlights a:last-child { border-bottom: 0; }
.highlights .k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.highlights .p { grid-row: span 2; align-self: center; }

.conn { display: flex; flex-direction: column; gap: 10px; }
.conn__head { display: flex; align-items: center; gap: 12px; }
.conn__mark { width: 40px; height: 40px; border-radius: 10px; color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.conn__name { font-weight: 700; font-size: 15px; }
.conn__meta { font-size: 11.5px; color: var(--ink-soft); border-top: 1px solid var(--rule-soft); padding-top: 8px; }
.conn details summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--raspberry); min-height: 32px; display: flex; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
code { background: var(--peony); color: var(--raspberry-deep); padding: 2px 6px; border-radius: 5px; font-size: .92em; font-weight: 700; word-break: break-all; }

/* ---------------------------------------------------------------- sign in */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--white); }
.auth__panel { background: var(--mulberry); color: var(--peony); padding: 56px clamp(32px, 5vw, 76px); display: flex; flex-direction: column;
  justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.auth__panel::after { content: ''; position: absolute; right: -90px; bottom: -110px; width: 460px; height: 460px; border-radius: 96px;
  background: linear-gradient(135deg, var(--raspberry), var(--purple)); opacity: .1; pointer-events: none; }
.auth__panel .eyebrow { position: relative; }
.auth__quote { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.3; max-width: 20ch; margin: 0; position: relative; }
.auth__quote em { font-style: normal; color: var(--raspberry); font-weight: 800; }
.auth__chips { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.auth__chips span { font-size: 11px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(253, 229, 238, .35); }
.auth__attrib { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(253, 229, 238, .65); margin: 0; position: relative; }
.auth__side { display: flex; align-items: center; justify-content: center; padding: 56px 32px; }
.auth__form { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 420px; }
.auth__form h1 { margin: 0 0 6px; font-size: 30px; }
.auth__form .field { margin: 0; }
.auth__form .flash { margin: 0; }
.or { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .14em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.btn.ms { background: var(--white); color: var(--mulberry); border-color: var(--rule); }
.btn.ms:hover { border-color: var(--mulberry); }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__panel { padding: 34px 24px; gap: 12px; }
}

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: var(--peony); }
.error-page .card { max-width: 520px; width: 100%; }

@media (max-width: 760px) {
  .shell, .shell--collapsed { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; }
  .rail-toggle-form { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-label { width: 100%; }
  .page { padding: 18px 14px 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .rail, .pulse, .filters, .btn { display: none !important; } .shell { display: block; } }
