/* Stage 34: production implementation of the approved login and Business Center concepts. */
:root {
  --approved-canvas: #07090c;
  --approved-panel: #0d1014;
  --approved-panel-raised: #12161b;
  --approved-line: rgba(205, 211, 220, .16);
  --approved-line-strong: rgba(220, 225, 232, .28);
  --approved-text: #f4f6f8;
  --approved-muted: #9da5b0;
}

body.srm-page {
  background:
    radial-gradient(circle at 16% 18%, rgba(68, 72, 80, .12), transparent 32%),
    radial-gradient(circle at 86% 78%, rgba(44, 48, 56, .09), transparent 34%),
    linear-gradient(135deg, #07080a, #050609 62%, #090a0d);
  color: var(--approved-text);
}

body.srm-page .ambient {
  opacity: .28;
  filter: blur(110px);
}

/* Unified login */
body.srm-page .auth-layout {
  width: min(1400px, 100%);
  min-height: min(850px, calc(100dvh - 48px));
  grid-template-columns: minmax(0, 1fr) minmax(480px, .98fr);
  border-color: var(--approved-line-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 255, 255, .018), transparent 42%),
    linear-gradient(132deg, #0b0d11, #080a0d 52%, #111319);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .48);
}

body.srm-page .brand-panel {
  isolation: isolate;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 28px;
  padding: clamp(48px, 6vw, 86px);
  border-right-color: var(--approved-line);
  background-color: #090b0f;
  background-image:
    radial-gradient(circle at 44% 42%, rgba(67, 72, 82, .12), transparent 29%),
    radial-gradient(circle at 72% 70%, rgba(31, 35, 42, .16), transparent 34%),
    repeating-linear-gradient(117deg, rgba(255, 255, 255, .012) 0, rgba(255, 255, 255, .012) 1px, transparent 1px, transparent 5px),
    linear-gradient(142deg, #0d1015, #080a0e 58%, #0e1116);
  overflow: hidden;
}

body.srm-page .brand-panel::before,
body.srm-page .brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 0;
  transform: none;
}

body.srm-page .brand-panel::before {
  width: 260px;
  height: 170px;
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 72% 76%, 0 100%);
  background:
    linear-gradient(155deg, transparent 0 54%, rgba(196, 202, 211, .13) 54.4% 55%, transparent 55.4%),
    linear-gradient(rgba(27, 30, 36, .52), rgba(8, 10, 14, .7)),
    url("/assets/graphite-concrete-texture.jpg") center / 440px 440px,
    linear-gradient(145deg, #1a1d23, #11141a 64%, #0d1015);
  background-blend-mode: normal, multiply, soft-light, normal;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .42));
}

body.srm-page .brand-panel::after {
  width: 390px;
  height: 470px;
  right: -105px;
  bottom: -120px;
  clip-path: polygon(66% 0, 100% 0, 100% 100%, 0 100%, 47% 58%);
  background:
    repeating-linear-gradient(123deg, transparent 0 70px, rgba(191, 197, 207, .15) 70.5px 71.5px, transparent 72px 98px),
    linear-gradient(rgba(21, 24, 29, .34), rgba(5, 7, 10, .7)),
    url("/assets/graphite-concrete-texture.jpg") center / 560px 560px,
    linear-gradient(132deg, transparent 0 43%, rgba(31, 35, 42, .88) 43.5% 52%, rgba(10, 12, 16, .96) 52.5%);
  background-blend-mode: normal, multiply, soft-light, normal;
}

body.srm-page .brand-panel > div:not(.security-note) {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

body.srm-page .brand-panel > div:not(.security-note) .brand-logo {
  width: clamp(210px, 18vw, 286px);
  height: clamp(210px, 18vw, 286px);
  margin: -24px 0 -32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .58));
}

body.srm-page .brand-panel > div:not(.security-note) .eyebrow {
  order: 3;
  margin: 2px 0 0;
  color: #7f8792;
  font-size: 12px;
  letter-spacing: .08em;
}

body.srm-page .brand-panel > div:not(.security-note) h1 {
  order: 2;
  margin: 0;
  color: #f7f8fa;
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 1.04;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .52);
}

body.srm-page .brand-panel > div:not(.security-note) .brand-copy {
  order: 4;
  max-width: 460px;
  color: #9aa2ad;
  font-size: 15px;
  line-height: 1.65;
}

body.srm-page .brand-panel .security-note {
  width: min(520px, 100%);
  justify-content: center;
  color: #7f8792;
  text-align: center;
}

body.srm-page .auth-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 72px);
  background-color: #13151a;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .035), transparent 34%),
    radial-gradient(circle at 86% 74%, rgba(72, 77, 87, .07), transparent 32%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.01) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #17191f, #101217 58%, #15171c);
  scrollbar-width: none;
}

body.srm-page .auth-card::-webkit-scrollbar { width: 0; height: 0; }

body.srm-page .auth-card .card-head {
  align-items: center;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent !important;
  background-image: none !important;
}

body.srm-page .auth-card-title .eyebrow { display: none; }
body.srm-page .auth-card-title h2 { margin: 0; font-size: clamp(32px, 3vw, 44px); }
body.srm-page .auth-card .version { color: #737b87; }

body.srm-page .surface-switcher {
  width: 100%;
  min-height: 54px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid var(--approved-line-strong);
  border-radius: 10px;
  background: #090b0e;
}

html body.srm-page .auth-layout .auth-card .surface-switcher .surface-choice {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  overflow: hidden;
  border-color: rgba(220, 225, 232, .14) !important;
  border-radius: 7px;
  background: #111419 !important;
  color: #b4bbc4 !important;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html body.srm-page .auth-layout .auth-card .surface-switcher .surface-choice:hover:not(.active) {
  border-color: rgba(226, 231, 238, .3) !important;
  background: #171a1f !important;
  color: #e1e5ea !important;
}

html body.srm-page .auth-layout .auth-card .surface-switcher .surface-choice.active {
  border-color: rgba(238, 241, 245, .78) !important;
  background-color: #1c2025 !important;
  background-image: linear-gradient(180deg, #2a2e34 0%, #1c2025 100%) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .13),
    inset 0 1px rgba(255, 255, 255, .1),
    0 0 0 1px rgba(238, 241, 245, .08),
    0 9px 24px rgba(0, 0, 0, .38),
    0 0 18px rgba(221, 226, 233, .08) !important;
}

html body.srm-page .auth-layout .auth-card .surface-switcher .surface-choice.active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 9px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  background: #eef1f5;
  box-shadow: 0 0 0 3px rgba(238, 241, 245, .08), 0 0 10px rgba(238, 241, 245, .24);
}

html body.srm-page .auth-layout .auth-card .surface-switcher .surface-choice.active svg {
  color: #f4f6f8;
  filter: drop-shadow(0 0 5px rgba(238, 241, 245, .18));
}

html body.srm-page .auth-layout .auth-card .surface-switcher .surface-choice:focus-visible {
  outline: 2px solid #f0f2f5;
  outline-offset: 3px;
}

body.srm-page .auth-card .form { gap: 16px; }
body.srm-page .auth-card .form > label:not(.auth-remember) { gap: 8px; color: #d5d9df; }

body.srm-page .auth-card input,
body.srm-page .auth-card select {
  min-height: 50px;
  border-color: var(--approved-line);
  border-radius: 8px;
  background-color: #0b0d10 !important;
  background-image: none;
  color: #eff1f4;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, .22);
}

body.srm-page .auth-card input:hover,
body.srm-page .auth-card select:hover,
body.srm-page .auth-card input:focus,
body.srm-page .auth-card select:focus {
  border-color: rgba(224, 228, 234, .34);
  background-color: #0e1014 !important;
  box-shadow: 0 0 0 3px rgba(224, 228, 234, .055), inset 0 1px 8px rgba(0, 0, 0, .24);
}

body.srm-page .auth-card :where(input, select):-webkit-autofill,
body.srm-page .auth-card :where(input, select):-webkit-autofill:hover,
body.srm-page .auth-card :where(input, select):-webkit-autofill:focus {
  background: #0b0d10 !important;
  background-image: none !important;
  -webkit-text-fill-color: #eff1f4 !important;
  caret-color: #eff1f4;
  -webkit-box-shadow: 0 0 0 1000px #0b0d10 inset !important;
  box-shadow: 0 0 0 1000px #0b0d10 inset !important;
  filter: none !important;
  transition: background-color 9999s ease-out 0s;
}

body.srm-page .auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  color-scheme: dark;
  background: #0b0d10 !important;
  background-image: none !important;
  -webkit-box-shadow: inset 0 0 0 1000px #0b0d10 !important;
  box-shadow: inset 0 0 0 1000px #0b0d10 !important;
}

body.srm-page .auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
body.srm-page .auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus {
  background: #0e1014 !important;
  background-image: none !important;
  -webkit-box-shadow: inset 0 0 0 1000px #0e1014, 0 0 0 3px rgba(224, 228, 234, .055) !important;
  box-shadow: inset 0 0 0 1000px #0e1014, 0 0 0 3px rgba(224, 228, 234, .055) !important;
}

body.srm-page .auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):autofill,
body.srm-page .auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):-webkit-autofill {
  background: #0b0d10 !important;
  background-image: none !important;
  -webkit-text-fill-color: #eff1f4 !important;
  caret-color: #eff1f4 !important;
  -webkit-box-shadow: inset 0 0 0 1000px #0b0d10 !important;
  box-shadow: inset 0 0 0 1000px #0b0d10 !important;
}

body.srm-page .auth-guidance {
  gap: 5px;
  padding: 10px 12px;
  border-color: rgba(205, 211, 220, .11);
  border-radius: 8px;
  background: #0d1014;
}

body.srm-page #loginForm .auth-guidance {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.srm-page #loginForm .auth-guidance p { font-size: 11px; }
body.srm-page .auth-remember { color: #c1c7cf; }
body.srm-page .auth-remember input { accent-color: #e3e6ea; }

body.srm-page .auth-card .button.primary,
body.srm-page .auth-card .provider-button,
body.srm-page .auth-card .auth-link-action,
body.srm-page .auth-card > .auth-legal-link {
  min-height: 50px;
  border: 1px solid var(--approved-line-strong);
  border-radius: 8px;
  background: #171b20;
  color: #f3f5f7;
  box-shadow: none;
}

body.srm-page .auth-card .button.primary:hover,
body.srm-page .auth-card .provider-button:hover,
body.srm-page .auth-card .auth-link-action:hover,
body.srm-page .auth-card > .auth-legal-link:hover {
  border-color: rgba(232, 235, 240, .4);
  background: #20252b;
}

body.srm-page .provider-button::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  background: url("/assets/google-g-mark.svg") center / contain no-repeat;
}

body.srm-page .auth-card .provider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

body.srm-page .auth-card .form-links { display: grid; grid-template-columns: 1fr 1fr; }
body.srm-page .auth-card > .auth-legal-link {
  width: min(380px, 100%);
  margin: 28px auto 0;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
  line-height: 1.25;
}

/* Business Center */
#workspaceBody:has(.business-hub-tabs) > .section-help-banner { display: none; }
body.srm-page .business-hub-tabs { margin: 0; }
body.srm-page .business-hub-shell { gap: 10px; }

body.srm-page .business-hub-toolbar {
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 8px;
  border: 0;
  background: transparent;
}

body.srm-page .business-hub-toolbar > .business-hub-tabs { display: flex; }

body.srm-page .business-hub-kpis { gap: 12px; }
body.srm-page .business-hub-kpis article,
body.srm-page .business-hub-kpis .business-hub-kpi-action,
body.srm-page .business-hub-chart-card,
body.srm-page .business-hub-stores,
body.srm-page .business-hub-detail,
body.srm-page .business-hub-report {
  border-color: var(--approved-line);
  background: #0d1014;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

body.srm-page .business-hub-kpis article,
body.srm-page .business-hub-kpis .business-hub-kpi-action {
  position: relative;
  min-height: 84px;
  padding: 12px 14px;
  overflow: hidden;
}

body.srm-page .business-hub-kpis article::after,
body.srm-page .business-hub-kpis .business-hub-kpi-action::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(211, 217, 225, .13);
  border-radius: 8px;
  background: #15191e;
  pointer-events: none;
}

body.srm-page .business-hub-kpis article > span,
body.srm-page .business-hub-kpis .business-hub-kpi-action > span { padding-right: 38px; }
body.srm-page .business-hub-kpis article svg,
body.srm-page .business-hub-kpis .business-hub-kpi-action > span > svg:first-child { position: absolute; z-index: 1; top: 16px; right: 16px; }
body.srm-page .business-hub-kpis .business-hub-kpi-chevron { display: none; }
body.srm-page .business-hub-kpis article strong,
body.srm-page .business-hub-kpis .business-hub-kpi-action strong { font-size: clamp(21px, 1.8vw, 27px); }

body.srm-page .business-hub-layout { grid-template-columns: minmax(0, 1fr) minmax(310px, 350px); gap: 12px; }
body.srm-page .business-hub-layout > main { gap: 12px; }
body.srm-page .business-hub-chart-card,
body.srm-page .business-hub-stores,
body.srm-page .business-hub-detail,
body.srm-page .business-hub-report { border-radius: 10px; }

body.srm-page .business-hub-hourly {
  display: block;
  height: 168px;
  margin-top: 4px;
  border: 0;
}

body.srm-page .business-hub-hourly svg { width: 100%; height: 100%; overflow: visible; }
body.srm-page .business-hub-chart-guides line { stroke: rgba(203, 209, 218, .11); stroke-width: 1; stroke-dasharray: 5 5; }
body.srm-page .business-hub-chart-area { fill: rgba(196, 202, 211, .1); }
body.srm-page .business-hub-chart-line { fill: none; stroke: #e0e4e9; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
body.srm-page .business-hub-chart-dots circle { fill: #f5f6f8; stroke: #676f7a; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
body.srm-page .business-hub-chart-labels text { fill: #818a96; font-size: 10px; }
body.srm-page .business-hub-chart-head { align-items: center; }
body.srm-page .business-hub-chart-actions { min-width: 0; }
body.srm-page .business-hub-granularity { border-color: var(--approved-line); background: #090b0e; }
body.srm-page .business-hub-segmented button { border: 1px solid transparent; }
body.srm-page .business-hub-granularity button.active,
body.srm-page .business-hub-segmented button.active,
body.srm-page .business-hub-insight-tabs button.active {
  border-color: rgba(229, 233, 238, .72);
  background: #20242a;
  color: #f7f8fa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 16px rgba(211, 217, 225, .08);
}

body.srm-page .business-hub-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
body.srm-page .business-hub-store-card { min-height: 124px; gap: 6px; padding: 10px; border-color: var(--approved-line); border-radius: 9px; background: #0a0d10; }
body.srm-page .business-hub-store-metrics strong { font-size: 15px; }
body.srm-page .business-hub-store-footer { font-size: 10px; }
body.srm-page .business-hub-store-card.selected { border-color: #d9dde3; background: #15191e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
body.srm-page .business-hub-detail { top: 78px; gap: 10px; max-height: calc(100dvh - 96px); padding: 13px; }
body.srm-page .business-hub-detail-kpis span,
body.srm-page .business-hub-plan,
body.srm-page .business-hub-employee,
body.srm-page .business-hub-shift-summary { border-radius: 8px; background: #090b0e; }
body.srm-page .business-hub-detail-kpis span { padding: 8px; }
body.srm-page .business-hub-plan { gap: 7px; padding: 9px 10px; }
body.srm-page .business-hub-employee { padding: 7px 8px; }
body.srm-page .business-hub-employees { gap: 5px; }

body.srm-page .business-hub-insight-tabs { margin-top: 2px; }
body.srm-page .business-hub-table-wrap { border-color: var(--approved-line); }
body.srm-page .business-hub-report { padding: 12px; }
body.srm-page .business-hub-report .business-hub-section-head > div > p:last-child { max-width: 720px; font-size: 10.5px; }
body.srm-page .business-hub-table-wrap { max-height: 190px; margin-top: 10px; }
body.srm-page .business-hub-table th,
body.srm-page .business-hub-table td { padding: 8px 10px; }
body.srm-page .business-hub-table th { background: #14181d; }
body.srm-page .business-hub-table td { background: #0a0d10; }
body.srm-page .business-hub-report-summary > div,
body.srm-page .business-hub-report-details > summary { border-radius: 8px; border-color: var(--approved-line); background: #090b0e; }

@media (min-width: 1241px) {
  body.srm-page .business-hub-store-grid { gap: 7px; margin-top: 10px; }
  body.srm-page .business-hub-insight-tabs { width: 100%; }
  body.srm-page .business-hub-insight-tabs button { flex: 1; min-width: 0; padding-inline: 8px; }
  body.srm-page .business-hub-report .business-hub-section-head { gap: 10px; }
  body.srm-page .business-hub-report .business-hub-section-head h3 { font-size: 14px; }
  body.srm-page .business-hub-report .business-hub-section-head > div > p:last-child { display: none; }
  body.srm-page .business-hub-report .button span { display: none; }
  body.srm-page .business-hub-report .button { width: 36px; min-width: 36px; padding: 0; }
}

/* Business structure */
body.srm-page .structure-matrix-shell { gap: 12px; }
body.srm-page .structure-commandbar {
  padding: 2px 0 8px;
  border: 0;
  background: transparent;
}

body.srm-page .structure-commandbar > div:first-child { display: none; }
body.srm-page .structure-command-actions { width: 100%; justify-content: flex-end; }
body.srm-page .structure-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
body.srm-page .structure-kpis > div {
  min-height: 76px;
  padding: 12px 13px;
  border-color: var(--approved-line);
  background: #0d1014;
}

body.srm-page .structure-kpis strong { font-size: 22px; }
body.srm-page .structure-scope-tabs { width: fit-content; max-width: 100%; overflow-x: auto; }
body.srm-page .structure-scope-tabs button { min-width: 126px; }

body.srm-page .structure-workbench { grid-template-columns: minmax(0, 1fr) minmax(320px, 375px); gap: 14px; overflow-anchor: none; }
body.srm-page .structure-registry,
body.srm-page .structure-inspector { border-color: var(--approved-line); background: #090b0e; }

body.srm-page .structure-registry-tools { min-height: 58px; background: #0d1014; }
body.srm-page .structure-registry-tools label { min-width: min(580px, 78%); }
body.srm-page .structure-tree { padding: 9px; background: #080a0d; }

body.srm-page .structure-tree-row {
  --tree-indent: calc(var(--tree-level) * 24px);
  min-height: 48px;
  border-radius: 6px;
}

body.srm-page .structure-tree-row::before {
  display: none;
  content: none;
}

body.srm-page .structure-tree-row[style*="--tree-level:0"]::before { display: none; }
body.srm-page .structure-tree-row.selected { border-color: rgba(226, 230, 235, .36); background: #171b20; box-shadow: inset 3px 0 #e1e4e8; }
body.srm-page .structure-tree-row.group { background: #0c0f13; }
body.srm-page .structure-object-icon,
body.srm-page .structure-inspector-icon { background: #15191e; }

body.srm-page .structure-inspector > header { padding: 14px; background: #101318; }
body.srm-page .structure-inspector dl > div { padding: 8px 0; }

body.srm-page .structure-store-people,
body.srm-page .structure-store-devices {
  display: grid;
  gap: 5px;
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid rgba(203, 209, 218, .13);
  border-radius: 7px;
  background: #07090b;
}

body.srm-page .structure-store-people > header,
body.srm-page .structure-store-devices > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 6px;
}

body.srm-page .structure-store-people > header > div,
body.srm-page .structure-store-devices > header > div { min-width: 0; display: grid; gap: 2px; }
body.srm-page .structure-store-people > header strong,
body.srm-page .structure-store-devices > header strong { color: #e8ebef; font-size: 11px; }
body.srm-page .structure-store-people > header span,
body.srm-page .structure-store-devices > header span { color: #747d89; font-size: 9.5px; }
body.srm-page .structure-store-people > header b,
body.srm-page .structure-store-devices > header b { min-width: 24px; padding: 3px 6px; border-radius: 999px; background: #15191e; color: #d7dce3; font-size: 10px; text-align: center; }
body.srm-page .structure-store-people > p { margin: 4px 2px; color: #7f8894; font-size: 10.5px; }

body.srm-page .structure-person-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(203, 209, 218, .1);
  border-radius: 6px;
  background: #0d1014;
}

body.srm-page .structure-person-avatar { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(203, 209, 218, .16); border-radius: 50%; background: #171b20; color: #eef1f4; font-size: 9px; font-weight: 800; }
body.srm-page .structure-person-card > div { min-width: 0; display: grid; gap: 2px; }
body.srm-page .structure-person-card strong,
body.srm-page .structure-person-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.srm-page .structure-person-card strong { color: #e9ecf0; font-size: 10.5px; }
body.srm-page .structure-person-card small { color: #7f8894; font-size: 9px; }
body.srm-page .structure-person-state { color: #adb4bd; font-size: 9px; }

@media (max-width: 1240px) {
  body.srm-page .structure-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.srm-page .business-hub-layout { grid-template-columns: 1fr; }
  body.srm-page .business-hub-detail { position: static; max-height: none; }
}

@media (min-width: 901px) and (max-height: 800px) {
  body.srm-page .shell { padding: 12px; }
  body.srm-page .auth-layout { height: calc(100dvh - 24px); min-height: 0; }
  body.srm-page .brand-panel { padding: 30px 42px; }
  body.srm-page .brand-panel > div:not(.security-note) { gap: 7px; }
  body.srm-page .brand-panel > div:not(.security-note) .brand-logo { width: 170px; height: 170px; margin: -18px 0 -28px; border-radius: 0; }
  body.srm-page .brand-panel > div:not(.security-note) h1 { font-size: 40px; }
  body.srm-page .brand-panel > div:not(.security-note) .eyebrow { font-size: 10px; }
  body.srm-page .brand-panel > div:not(.security-note) .brand-copy { max-width: 410px; font-size: 12px; line-height: 1.5; }
  body.srm-page .brand-panel .security-note { display: none; }
  body.srm-page .auth-card { justify-content: flex-start; padding: 20px 34px; overflow-y: auto; }
  body.srm-page .auth-card .card-head { margin-bottom: 10px; }
  body.srm-page .auth-card-title h2 { font-size: 34px; }
  body.srm-page .surface-switcher { min-height: 46px; margin-bottom: 10px; }
  body.srm-page .surface-choice { min-height: 36px; }
  body.srm-page .auth-card .form { gap: 9px; }
  body.srm-page #loginForm .auth-guidance { padding: 7px 9px; }
  body.srm-page #loginForm .auth-guidance p { font-size: 9.5px; }
  body.srm-page .auth-card input,
  body.srm-page .auth-card select { min-height: 42px; }
  body.srm-page .auth-card .button.primary,
  body.srm-page .auth-card .provider-button,
  body.srm-page .auth-card .auth-link-action,
  body.srm-page .auth-card > .auth-legal-link { min-height: 42px; }
  body.srm-page .auth-card > .auth-legal-link { margin-top: 10px; }
}

@media (max-width: 900px) {
  body.srm-page .shell { padding: 14px; }
  body.srm-page .auth-layout { min-height: calc(100dvh - 28px); grid-template-columns: 1fr; }
  body.srm-page .brand-panel { min-height: 270px; grid-template-rows: 1fr; padding: 32px; border-right: 0; border-bottom: 1px solid var(--approved-line); }
  body.srm-page .brand-panel > div:not(.security-note) { gap: 8px; }
  body.srm-page .brand-panel > div:not(.security-note) .brand-logo { width: 160px; height: 160px; margin: -16px 0 -26px; }
  body.srm-page .brand-panel > div:not(.security-note) h1 { font-size: 34px; }
  body.srm-page .brand-panel > div:not(.security-note) .brand-copy { font-size: 13px; }
  body.srm-page .brand-panel .security-note { display: none; }
  body.srm-page .auth-card { padding: 34px; }
  body.srm-page .structure-workbench { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.srm-page .shell { padding: 0; }
  body.srm-page .auth-layout { min-height: 100dvh; border: 0; border-radius: 0; }
  body.srm-page .brand-panel { min-height: 228px; padding: 20px; }
  body.srm-page .brand-panel > div:not(.security-note) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 108px auto auto;
    align-content: center;
    justify-items: center;
    gap: 5px;
  }
  body.srm-page .brand-panel > div:not(.security-note) .brand-logo {
    position: static !important;
    grid-row: 1;
    align-self: center;
    width: 104px;
    height: 104px;
    margin: 0 !important;
    border-radius: 0;
  }
  body.srm-page .brand-panel > div:not(.security-note) h1 {
    grid-row: 2;
    margin: 0;
    font-size: 28px;
    line-height: 1.08;
  }
  body.srm-page .brand-panel > div:not(.security-note) .eyebrow {
    grid-row: 3;
    margin: 0;
    font-size: 10px;
    line-height: 1.3;
  }
  body.srm-page .brand-panel > div:not(.security-note) .brand-copy { display: none; }
  body.srm-page .auth-card { justify-content: flex-start; padding: 26px 18px max(26px, env(safe-area-inset-bottom)); }
  body.srm-page .auth-card .card-head { margin-bottom: 18px; }
  body.srm-page .auth-card-title h2 { font-size: 30px; }
  body.srm-page #loginForm .auth-guidance { grid-template-columns: 1fr; }
  body.srm-page .auth-card .form-links { grid-template-columns: 1fr; }
  body.srm-page .business-hub-toolbar { align-items: stretch; }
  body.srm-page .business-hub-store-grid { grid-template-columns: 1fr; }
  body.srm-page .structure-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.srm-page .structure-scope-tabs { width: 100%; display: flex; }
  body.srm-page .structure-scope-tabs button { min-width: 138px; }
  body.srm-page .structure-registry-tools label { min-width: 0; width: 100%; }
}

@media (max-width: 420px) {
  body.srm-page .brand-panel { min-height: 220px; }
  body.srm-page .brand-panel > div:not(.security-note) { grid-template-rows: 100px auto auto; }
  body.srm-page .brand-panel > div:not(.security-note) .brand-logo { width: 96px; height: 96px; }
  body.srm-page .surface-choice { padding-inline: 8px; font-size: 12px; }
  body.srm-page .business-hub-hourly { height: 170px; }
  body.srm-page .structure-command-actions { grid-template-columns: 1fr 1fr; }
  body.srm-page .structure-command-actions .button { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.srm-page *,
  body.srm-page *::before,
  body.srm-page *::after { scroll-behavior: auto !important; }
}
