:root {
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--color-text);
  background: var(--color-bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-y: scroll; scroll-behavior: auto; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; background: var(--color-bg); color: var(--color-text); font-size: 15px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--color-primary); text-underline-offset: 2px; }
a:hover { color: var(--color-primary-hover); }
button { color: inherit; }
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 232px;
  display: flex; flex-direction: column; padding: 22px 14px 16px;
  background: var(--color-surface-subtle); border-right: 1px solid var(--color-border);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; color: var(--color-text); font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-sm); color: var(--color-surface); background: var(--color-accent); font-size: 10px; font-weight: 750; letter-spacing: .02em; box-shadow: var(--shadow-sm); }
.brand strong { font-weight: 680; }
.sidebar nav { min-height: 0; overflow-y: auto; }
.nav-label { margin: 10px 10px 8px; color: var(--color-text-faint); font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.section-label { margin-top: 22px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-link:hover { color: var(--color-text); background: var(--color-surface); }
.nav-link.active { color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.nav-icon { display: grid; flex: none; place-items: center; width: 21px; height: 21px; color: var(--color-text-faint); }
.nav-icon-svg { display: block; width: 19px; height: 19px; }
.nav-link:hover .nav-icon { color: var(--color-text-muted); }
.nav-link.active .nav-icon { color: var(--color-primary); }
.sidebar-foot { margin-top: auto; }
.user-menu { position: relative; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.user-menu > summary { list-style: none; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-block { display: flex; align-items: center; gap: 9px; padding: 7px 10px; cursor: pointer; border-radius: var(--radius-sm); }
.user-block:hover, .user-menu[open] .user-block { background: var(--color-surface); }
.user-block > b { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--color-surface); background: var(--color-accent); font-size: 10px; }
.user-block > span { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.user-block strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-block small { margin-top: 2px; overflow: hidden; color: var(--color-text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-block em { margin-top: 3px; color: var(--color-warning); font-size: 10px; font-style: normal; font-weight: 700; }
.user-block > i { flex: none; color: var(--color-text-faint); font-size: 13px; font-style: normal; transition: transform .15s ease; }
.user-menu[open] .user-block > i { transform: rotate(180deg); }
.profile-menu { position: absolute; right: 0; bottom: calc(100% + 8px); left: 0; z-index: 30; padding: 6px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); box-shadow: var(--shadow-md); }
.profile-menu p { margin: 5px 7px 7px; color: var(--color-text-muted); font-size: 11px; line-height: 1.4; }
.profile-menu form { margin: 0; }
.profile-menu form + form { border-top: 1px solid var(--color-border); }
.profile-menu input { display: none; }
.profile-menu button { width: 100%; padding: 9px 10px; cursor: pointer; border: 0; border-radius: var(--radius-sm); color: var(--color-text-muted); background: transparent; font-size: 12px; text-align: left; }
.profile-menu button:hover { color: var(--color-text); background: var(--color-surface-subtle); }
.link-button { cursor: pointer; border: 0; padding: 5px 0; color: var(--color-text-muted); background: transparent; font-size: 12px; }
.link-button:hover { color: var(--color-text); }

.main { min-width: 0; min-height: 100vh; margin-left: 232px; }
.topbar { position: sticky; top: 0; z-index: 15; height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.topbar > div:first-child { min-width: 0; }
.page-header h1 { margin: 0; font-size: 22px; font-weight: 680; letter-spacing: -.025em; }
.eyebrow { margin: 0 0 4px; color: var(--color-accent); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.topbar-actions, .header-actions { display: flex; align-items: center; gap: 14px; }
.service-state { display: inline-flex; align-items: center; gap: 7px; color: var(--color-text-muted); font-size: 12px; }
.service-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); outline: 3px solid var(--color-success-soft); }
.content { width: min(1420px, 100%); margin: 0 auto; padding: 34px; }

.panel { min-width: 0; margin: 0 0 18px; padding: 20px 21px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; }
.panel h2 { margin: 0 0 7px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.panel h2:not(:first-child) { margin-top: 24px; }
.panel > p { line-height: 1.55; }
.panel > p:first-child { margin-top: 0; }
.panel > p:last-child { margin-bottom: 0; }
.panel.table-wrap { padding: 0; }
.table-panel { padding: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px 15px; }
.panel-heading h2 { margin: 0; }
.panel-heading p { max-width: 720px; margin: 5px 0 0; line-height: 1.5; }
.table-panel > .table-wrap { border-top: 1px solid var(--color-border); }
.muted { color: var(--color-text-muted); font-size: 13px; }
.code { font-family: var(--font-mono); font-size: .88em; }

.request-details { margin-top: .65rem; }
.request-details summary { display: inline-flex; min-height: 24px; align-items: center; color: var(--color-primary); cursor: pointer; font-weight: 700; }
.request-details dl { display: grid; grid-template-columns: minmax(8rem, auto) minmax(10rem, 1fr); gap: .25rem .75rem; margin: .6rem 0 0; }
.request-details dt { color: var(--color-text-muted); font-size: .82rem; }
.request-details dd { margin: 0; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: .82rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.cards .panel { margin: 0; border: 0; border-right: 1px solid var(--color-border); border-radius: 0; }
.cards .panel:last-child { border-right: 0; }
.cards .muted { font-size: 13px; }
.metric { margin: 18px 0 4px; font-size: 30px; font-weight: 680; letter-spacing: -.04em; }

.overview-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; padding: 25px 27px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--color-surface), var(--color-accent-soft)); box-shadow: var(--shadow-sm); }
.overview-hero h2 { margin: 3px 0 7px; font-size: 24px; letter-spacing: -.025em; }
.overview-hero p:last-child { max-width: 760px; margin: 0; color: var(--color-text-muted); line-height: 1.55; }
.section-kicker { margin: 0 0 4px; color: var(--color-accent); font-size: 11px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.overview-section { margin-bottom: 30px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 2px 14px; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.section-heading p:not(.section-kicker) { max-width: 760px; margin: 5px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.5; }
.last-observed { flex: none; color: var(--color-text-muted); font-size: 11px; line-height: 1.45; text-align: right; }
.last-observed strong { color: var(--color-text); font-size: 12px; font-weight: 680; }

.attention-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.attention-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 13px; min-height: 130px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); background: var(--color-surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.attention-item:hover { color: var(--color-text); border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.attention-item.needs-review { border-left: 3px solid var(--color-warning); }
.attention-item.all-clear { border-left: 3px solid var(--color-success); }
.attention-count { display: grid; width: 32px; height: 32px; place-items: center; border-radius: var(--radius-pill); color: var(--color-text-muted); background: var(--color-surface-subtle); font-size: 14px; font-weight: 760; }
.needs-review .attention-count { color: var(--color-warning); background: var(--color-warning-soft); }
.all-clear .attention-count { color: var(--color-success); background: var(--color-success-soft); }
.attention-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.attention-copy strong { font-size: 14px; }
.attention-copy small { color: var(--color-text-muted); font-size: 12px; line-height: 1.45; }
.attention-action { grid-column: 2; align-self: end; margin-top: 7px; color: var(--color-primary); font-size: 12px; font-weight: 680; }

.health-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.health-panel h2 { margin-top: 12px; }
.health-panel a { flex: none; font-size: 12px; font-weight: 680; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { display: flex; min-width: 0; min-height: 128px; flex-direction: column; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-sm); text-decoration: none; }
a.metric-card:hover { color: var(--color-text); border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.metric-card > span { color: var(--color-text-muted); font-size: 12px; font-weight: 650; }
.metric-card > strong { margin: 14px 0 5px; font-size: 29px; font-weight: 680; letter-spacing: -.04em; }
.metric-card > small { margin-top: auto; color: var(--color-text-faint); font-size: 11px; line-height: 1.4; }
.metric-card-warning { border-color: var(--color-warning); }
.metric-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.capital-summary { margin-top: 12px; }
.capital-summary-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-border); }
.capital-summary-row { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 17px 20px; border-right: 1px solid var(--color-border); }
.capital-summary-row:nth-child(3n) { border-right: 0; }
.capital-summary-row > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.capital-summary-row strong { font-size: 18px; letter-spacing: -.02em; }
.capital-summary-row span, .capital-summary-row small { color: var(--color-text-muted); font-size: 11px; line-height: 1.4; }
.capital-summary-row small { max-width: 150px; text-align: right; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 18px 20px; color: var(--color-text-muted); font-size: 13px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.content > .actions:first-child { margin-top: 0; }
.panel > .actions:last-child, .panel form > .actions:last-child { margin-bottom: 0; }
.form-grid + .actions, .field + .actions, fieldset + .actions, .form-grid + .button { margin-top: 20px; }
.actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.actions form input:not([type="hidden"]) { width: 210px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; cursor: pointer; border: 1px solid var(--color-primary); border-radius: var(--radius-sm); color: var(--color-surface); background: var(--color-primary); font-size: 13px; font-weight: 680; line-height: 1; text-decoration: none; }
.button:hover { color: var(--color-surface); background: var(--color-primary-hover); }
.button.secondary { color: var(--color-text); border-color: var(--color-border); background: var(--color-surface); }
.button.secondary:hover { color: var(--color-text); background: var(--color-surface-subtle); border-color: var(--color-border-strong); }
.button.danger { color: var(--color-surface); border-color: var(--color-danger); background: var(--color-danger); }

.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th { padding: 11px 17px; border-block: 1px solid var(--color-border); color: var(--color-text-muted); background: var(--color-surface-subtle); text-align: left; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.panel.table-wrap th { border-top: 0; }
.table-panel th { border-top: 0; }
td { padding: 14px 17px; border-bottom: 1px solid var(--color-border); font-size: 13px; line-height: 1.45; vertical-align: top; }
td:first-child { white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--color-surface-subtle); }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-size: 14px; }
td .muted { display: inline-block; margin-top: 3px; font-size: 11px; }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: var(--radius-pill); color: var(--color-text-muted); background: var(--color-surface-subtle); font-size: 11px; font-weight: 680; text-transform: capitalize; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-text-faint); }
.status.enabled, .status.issued, .status.approved, .status.success, .status.resolved { color: var(--color-success); background: var(--color-success-soft); }
.status.enabled::before, .status.issued::before, .status.approved::before, .status.success::before, .status.resolved::before { background: var(--color-success); }
.status.pending { color: var(--color-warning); background: var(--color-warning-soft); }
.status.pending::before { background: var(--color-warning); }
.status.disabled, .status.denied, .status.error, .status.rejected, .status.expired { color: var(--color-danger); background: var(--color-danger-soft); }
.status.disabled::before, .status.denied::before, .status.error::before, .status.rejected::before, .status.expired::before { background: var(--color-danger); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: grid; align-content: start; gap: 6px; }
.field.full, .checkbox.full { grid-column: 1 / -1; }
label { color: var(--color-text-muted); font-size: 13px; font-weight: 680; }
input, select, textarea { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text); background: var(--color-bg); font-size: 14px; }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--color-text-faint); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--color-primary-soft); border-color: var(--color-focus); }
input[readonly], fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { color: var(--color-text-muted); background: var(--color-surface-subtle); }
.secret-input { position: relative; }
.secret-input input { padding-right: 47px; }
.secret-toggle { position: absolute; top: 50%; right: 5px; display: grid; width: 34px; height: 32px; padding: 0; cursor: pointer; transform: translateY(-50%); place-items: center; border: 0; border-radius: var(--radius-sm); color: var(--color-text-muted); background: transparent; }
.secret-toggle:hover { color: var(--color-text); background: var(--color-surface-subtle); }
.secret-toggle:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.secret-toggle svg { width: 18px; height: 18px; }
.checkbox { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.checkbox input { width: 14px; min-height: 14px; margin: 0; accent-color: var(--color-primary); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.binding { margin: 12px 0; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-subtle); }
.binding[hidden] { display: none; }
.binding .checkbox { margin-bottom: 12px; }
.binding h3 { margin: 0 0 12px; font-size: 14px; }
small.muted { display: block; margin-top: 2px; font-size: 11px; line-height: 1.45; }

.decision-form + .decision-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--color-border); }

.flash { margin: 0 0 16px; padding: 12px 14px; border: 1px solid; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.45; }
.flash.success { color: var(--color-success); border-color: var(--color-success); background: var(--color-success-soft); }
.flash.warning { color: var(--color-warning); border-color: var(--color-warning); background: var(--color-warning-soft); }
.flash.error { color: var(--color-danger); border-color: var(--color-danger); background: var(--color-danger-soft); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 2px 0; color: var(--color-text-faint); font-size: 10px; }
.login-main { display: grid; min-height: 100vh; margin-left: 0; place-items: center; padding: 32px 16px; background: var(--color-bg); }
.login-wrap { width: min(440px, 100%); }
.login-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 0 2px; }
.login-brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.login-brand strong { font-size: 14px; }
.login-brand small { color: var(--color-text-muted); font-size: 10px; }
.login-main .page-header { margin: 0 0 18px; }
.login-main .page-header h1 { margin-top: 5px; font-size: 30px; letter-spacing: -.04em; }
.login-main .panel { padding: 28px; }
.login-main .panel > p { color: var(--color-text-muted); font-size: 13px; line-height: 1.65; }
.login-main .panel .actions { margin-top: 22px; }
.login-main .panel form { margin: 0; }

.theme-control { display: inline-flex; flex: none; padding: 3px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-subtle); }
.theme-control button { min-height: 32px; padding: 4px 10px; cursor: pointer; border: 0; border-radius: var(--radius-sm); color: var(--color-text-muted); background: transparent; font-size: 12px; font-weight: 650; }
.theme-control button:hover { color: var(--color-text); }
.theme-control button[aria-pressed="true"] { color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.theme-control button:focus-visible, .button:focus-visible, .link-button:focus-visible, .profile-menu button:focus-visible, .user-block:focus-visible, a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

@media (max-width: 1120px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .panel:nth-child(2) { border-right: 0; }
  .cards .panel:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
  .cards .panel:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capital-summary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capital-summary-row:nth-child(3n) { border-right: 1px solid var(--color-border); }
  .capital-summary-row:nth-child(2n) { border-right: 0; }
}

@media (max-width: 800px) {
  .sidebar { width: 72px; padding-inline: 10px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand strong, .nav-label, .nav-text { display: none; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-icon { width: 25px; height: 25px; }
  .nav-icon-svg { width: 21px; height: 21px; }
  .user-block { justify-content: center; padding-inline: 0; }
  .user-block > span, .user-block > i { display: none; }
  .profile-menu { left: 0; min-width: 190px; }
  .main { margin-left: 72px; }
  .topbar { padding: 0 20px; }
  .content { padding: 26px 20px; }
  .attention-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sidebar { position: static; width: 100%; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .brand { justify-content: flex-start; padding: 0 0 9px; }
  .brand strong { display: block; }
  .sidebar nav { display: flex; gap: 6px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-link { min-width: max-content; min-height: 38px; padding: 0 10px; border: 1px solid transparent; }
  .nav-link:hover { border-color: var(--color-border); }
  .nav-link.active { border-color: var(--color-border); }
  .nav-text { display: inline; font-size: 13px; }
  .nav-label, .sidebar-foot { display: none; }
  .main { margin-left: 0; }
  .topbar { top: 0; height: 64px; padding: 0 14px; }
  .topbar h1 { overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
  .service-state { display: none; }
  .topbar-actions { gap: 8px; }
  .theme-control button { min-height: 34px; padding-inline: 8px; font-size: 11px; }
  .content { padding: 22px 14px; }
  .cards { grid-template-columns: 1fr; }
  .cards .panel:last-child:nth-child(odd) { grid-column: auto; }
  .cards .panel { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .cards .panel:last-child { border-bottom: 0; }
  .overview-hero, .section-heading, .health-panel { align-items: stretch; flex-direction: column; }
  .overview-hero { margin-bottom: 24px; padding: 21px; }
  .overview-hero .button, .section-heading .button { align-self: flex-start; }
  .last-observed { text-align: left; }
  .overview-section { margin-bottom: 25px; }
  .metric-grid, .metric-grid-compact, .capital-summary-list { grid-template-columns: 1fr; }
  .capital-summary-row, .capital-summary-row:nth-child(2n), .capital-summary-row:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .capital-summary-row:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .checkbox.full { grid-column: auto; }
  .actions { align-items: stretch; }
  .actions form { width: 100%; margin-left: 0; }
  .actions form input:not([type="hidden"]) { width: 100%; }
  .button { min-height: 38px; }
  .panel-heading { padding: 16px 16px 13px; }
  footer { flex-direction: column; gap: 5px; }
}

@media (max-width: 430px) {
  .theme-control button { min-width: 34px; font-size: 0; }
  .theme-control button::after { content: attr(data-short); font-size: 10px; }
  .login-heading { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
