:root {
  --brand: #00675e;
  --brand-dark: #004b45;
  --brand-soft: #e4efee;
  --nav: #081a2e;
  --nav-hover: #0c3a46;
  --canvas: #f3f6f5;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --ink: #071627;
  --ink-2: #334155;
  --ink-3: #718096;
  --line: #dbe2e1;
  --line-strong: #c9d3d1;
  --danger: #b42318;
  --danger-soft: #feeceb;
  --warning: #a15c00;
  --warning-soft: #fff4d8;
  --success: #19724a;
  --success-soft: #e6f5ed;
  --blue: #285d95;
  --blue-soft: #eaf1f8;
  --teal-soft: #e1f3f0;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(7 22 39 / 5%), 0 8px 22px rgb(7 22 39 / 5%);
  --sidebar-width: 236px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .52; }
:focus-visible { outline: 3px solid rgb(0 103 94 / 25%); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono, .order-link { font-family: "IBM Plex Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }

.sidebar {
  position: fixed;
  z-index: 50;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  background: var(--nav);
  color: #e7f1f4;
  box-shadow: 1px 0 0 rgb(255 255 255 / 5%);
}
.brand { display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 13px 16px; }
.brand-mark { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 13px; }
.brand small { margin-top: 1px; color: #87b3bd; font-size: 10.5px; }
.side-nav { padding: 4px 8px 30px; border-top: 1px solid rgb(255 255 255 / 9%); }
.nav-group { margin: 20px 10px 6px; color: #6da2b3; font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; }
.nav-link { display: flex; min-height: 38px; align-items: center; gap: 11px; margin: 2px 0; padding: 8px 11px; border-radius: 9px; color: #d7e6eb; font-weight: 570; }
.nav-link:hover { background: rgb(255 255 255 / 5%); }
.nav-link.is-active { background: #0b3d48; color: #fff; }
.nav-link.is-disabled { color: #78939e; cursor: default; }
.nav-link.is-disabled:hover { background: transparent; }
.nav-link small { margin-inline-start: auto; color: #66818d; font-size: 8.5px; font-weight: 500; }
.nav-symbol { width: 16px; color: #8dd5dc; text-align: center; }

.app-main { min-height: 100vh; margin-inline-start: var(--sidebar-width); }
.topbar { position: sticky; z-index: 40; top: 0; display: flex; min-height: 67px; align-items: center; padding: 9px 20px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); backdrop-filter: blur(10px); }
.page-heading { min-width: 0; }
.page-heading > span { display: block; color: var(--ink-3); font-size: 10.5px; }
.page-heading h1 { margin: 2px 0 0; font-size: 18px; line-height: 1.2; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.utility-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); font-size: 11.5px; font-weight: 600; }
.utility-button:hover { border-color: var(--brand); color: var(--brand); }
.account-menu { position: relative; }
.account-menu summary { display: flex; min-height: 36px; align-items: center; gap: 8px; padding: 3px 10px 3px 5px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); cursor: pointer; list-style: none; font-size: 11.5px; font-weight: 600; }
[dir="rtl"] .account-menu summary { padding: 3px 5px 3px 10px; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.account-menu form { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.account-menu form button { width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; text-align: start; }
.account-menu form button:hover { background: var(--surface-soft); color: var(--danger); }
.menu-toggle { display: none; width: 36px; height: 36px; margin-inline-end: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 19px 20px 42px; }

.range-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.segmented-control { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.segmented-control button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 11.5px; }
.segmented-control button.is-selected { background: var(--brand); color: #fff; font-weight: 700; }
.range-caption { color: var(--ink-3); font-size: 11px; }
.custom-range { display: none; align-items: end; gap: 7px; }
.custom-range.is-visible { display: flex; }
.custom-range label { color: var(--ink-3); font-size: 10px; }
.custom-range label span { display: block; }
.custom-range input { height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-card { min-height: 112px; padding: 14px 15px; border: 1px solid var(--line); border-inline-start: 3px solid var(--ink-3); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric-card span, .metric-card small { display: block; }
.metric-card span { color: var(--ink-2); font-size: 11px; font-weight: 570; }
.metric-card strong { display: block; margin: 10px 0 1px; font-size: 25px; line-height: 1; }
.metric-card small { color: var(--ink-3); font-size: 10px; }
.metric-warning { border-inline-start-color: var(--warning); }
.metric-blue { border-inline-start-color: var(--blue); }
.metric-teal { border-inline-start-color: var(--brand); }
.metric-success { border-inline-start-color: var(--success); }
.metric-danger { border-inline-start-color: var(--danger); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; }
.panel-heading h2, .panel-heading h3 { margin: 0; font-size: 13px; }
.panel-heading > span, .panel-heading div > span { color: var(--ink-3); font-size: 10.5px; }
.panel-heading div { display: flex; align-items: baseline; gap: 12px; }
.finance-panel { margin-bottom: 14px; padding-bottom: 11px; }
.finance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 15px 10px; }
.finance-grid > div { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.finance-grid span, .finance-grid strong { display: block; }
.finance-grid span { color: var(--ink-2); font-size: 10.5px; }
.money { margin-top: 5px; color: var(--ink-2); font-size: 18px; }
.money.positive { color: var(--brand); }
.money.negative { color: var(--danger); }
.panel-note { margin: 0 15px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--ink-3); font-size: 10px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); gap: 14px; }
.dashboard-rail { display: grid; align-content: start; gap: 14px; }
.queue-panel { overflow: hidden; }
.queue-panel > .panel-heading { border-bottom: 1px solid var(--line); }
.queue-row { display: flex; min-height: 61px; align-items: center; gap: 12px; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.queue-row > div { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.queue-row strong { font-size: 11.5px; }
.queue-row span { color: var(--ink-3); font-size: 10.5px; }
.queue-row .button { margin-inline-start: auto; }
.queue-row.compact { min-height: 53px; }
.panel-subheading { display: flex; align-items: baseline; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.panel-subheading h3 { margin: 0; font-size: 12px; }
.panel-subheading span { color: var(--ink-3); font-size: 10px; }
.order-link { color: var(--brand); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.order-link:hover, .text-link:hover, .back-link:hover { text-decoration: underline; }
.chart-panel { min-height: 226px; }
.bar-chart { display: flex; height: 167px; align-items: end; gap: 9px; padding: 18px 15px 12px; border-top: 1px solid var(--line); }
.bar-item { display: grid; flex: 1; height: 100%; grid-template-rows: 15px 1fr 18px; align-items: end; text-align: center; }
.bar-item span { font-size: 10px; }
.bar-item i { display: block; min-height: 3px; border-radius: 6px 6px 1px 1px; background: #d0e4e2; }
.bar-item:last-child i { background: var(--brand); }
.bar-item small { align-self: end; color: var(--ink-3); font-size: 9.5px; }
.ranked-panel { overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 25px minmax(150px, 1fr) 90px 20px; align-items: center; gap: 9px; min-height: 55px; padding: 8px 15px; border-top: 1px solid var(--line); }
.rank-row .rank { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: #edf2f3; color: var(--ink-2); font-size: 10px; font-weight: 700; }
.rank-row strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.rank-row i { height: 5px; overflow: hidden; border-radius: 99px; background: #e8eeee; }
.rank-row i b { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--brand); }

.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.button-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button-primary:hover { border-color: var(--brand-dark); background: var(--brand-dark); }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink-2); }
.button-secondary:hover { border-color: var(--brand); color: var(--brand); }
.button-small { min-height: 31px; padding: 0 11px; font-size: 10.5px; }
.button-block { width: 100%; min-height: 42px; }
.empty-state { margin: 0; padding: 22px 15px; color: var(--ink-3); text-align: center; }
.empty-state.spacious { padding: 70px 20px; }

.filter-panel { padding: 12px; }
.filter-grid { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(155px, .6fr)) repeat(2, minmax(130px, .5fr)) auto; align-items: end; gap: 9px; }
.search-field { display: flex; height: 39px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-soft); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11.5px; }
.field { display: grid; gap: 5px; }
.field > span:first-child { color: var(--ink-2); font-size: 11px; font-weight: 600; }
.field input, .field select, .field textarea, .compact-field select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; background: var(--surface); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .compact-field select:focus, .search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(0 103 94 / 10%); }
.date-field { display: grid; gap: 3px; color: var(--ink-3); font-size: 9.5px; }
.date-field input { width: 100%; height: 39px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); }
.filter-actions { display: flex; gap: 6px; }
.result-bar { display: flex; align-items: center; min-height: 39px; padding: 5px 3px; color: var(--ink-2); font-size: 11px; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 11px; }
.tailor-table { min-width: 980px; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--ink-3); font-size: 9.5px; font-weight: 650; letter-spacing: .045em; text-align: start; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: #f8fbfa; }
.data-table td strong, .data-table td small { display: block; }
.data-table td strong { font-size: 11px; }
.data-table td small { margin-top: 2px; color: var(--ink-3); font-size: 9.5px; }
.action-cell { text-align: end; }
.status-badge { display: inline-flex; min-height: 22px; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface-soft); font-size: 9.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.status-warning { border-color: #f1d69b; background: var(--warning-soft); color: var(--warning); }
.status-info { border-color: #b9d7de; background: #edf8fa; color: #17657a; }
.status-blue { border-color: #c6d9ed; background: var(--blue-soft); color: var(--blue); }
.status-teal { border-color: #b9ddd8; background: var(--teal-soft); color: var(--brand-dark); }
.status-success { border-color: #b8dfca; background: var(--success-soft); color: var(--success); }
.status-danger { border-color: #f1c0bc; background: var(--danger-soft); color: var(--danger); }
.status-neutral { color: var(--ink-3); }

.detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.back-link, .text-link { color: var(--brand); font-size: 11.5px; font-weight: 700; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 345px; align-items: start; gap: 14px; }
.detail-main, .detail-rail { display: grid; gap: 14px; }
.detail-summary { overflow: hidden; }
.detail-summary > .panel-heading { min-height: 72px; border-bottom: 1px solid var(--line); }
.detail-summary .panel-heading > div { display: block; }
.eyebrow { display: block; margin-bottom: 2px; color: var(--ink-3); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.detail-summary h2 { color: var(--brand); font-size: 17px; }
.summary-columns { display: grid; grid-template-columns: 1fr 1fr; }
.summary-columns article { min-height: 145px; padding: 15px; }
.summary-columns article + article { border-inline-start: 1px solid var(--line); }
.summary-columns h3 { margin: 0 0 12px; color: var(--ink-3); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.summary-columns p { margin: 4px 0 9px; color: var(--ink-2); font-size: 11.5px; }
.definition-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); background: var(--surface-soft); }
.definition-grid div { padding: 12px 15px; }
.definition-grid div + div { border-inline-start: 1px solid var(--line); }
.definition-grid dt { margin-bottom: 3px; color: var(--ink-3); font-size: 9.5px; }
.definition-grid dd { margin: 0; font-size: 11.5px; font-weight: 650; }
.history-panel { overflow: hidden; }
.history-panel > .panel-heading { border-bottom: 1px solid var(--line); }
.timeline { margin: 0; padding: 5px 15px 12px; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: 10px; padding: 11px 0; }
.timeline li:not(:last-child)::after { position: absolute; top: 35px; bottom: -10px; inset-inline-start: 11px; width: 1px; background: var(--line); content: ""; }
.timeline-marker { z-index: 1; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 9px; }
.timeline li strong, .timeline li span { display: block; }
.timeline li strong { font-size: 11.5px; }
.timeline li span { color: var(--ink-3); font-size: 9.5px; }
.timeline li p { margin: 5px 0 0; color: var(--ink-2); font-size: 10.5px; }
.history-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.history-row > div { display: grid; }
.history-row > div:last-of-type { text-align: end; }
.history-row span, .history-row time { color: var(--ink-3); font-size: 9.5px; }
.history-row p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 10.5px; }
.assignment-panel { scroll-margin-top: 82px; padding-bottom: 14px; }
.assignment-panel > .panel-heading, .compact-list-panel > .panel-heading { border-bottom: 1px solid var(--line); }
.assignment-panel form { padding: 0 14px; }
.guard-note { margin: 12px 14px; padding: 9px 10px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface-soft); color: var(--ink-2); font-size: 10px; }
.form-stack { display: grid; gap: 13px; }
.field-error { color: var(--danger) !important; font-size: 10px !important; font-weight: 500 !important; }
.validation-summary { display: none; padding: 9px 11px; border: 1px solid #f1c0bc; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 11px; }
.validation-summary.validation-summary-errors { display: block; }
.validation-summary ul { margin: 0; padding-inline-start: 18px; }
.compact-list-panel { overflow: hidden; }
.compact-record { padding: 11px 13px; border-bottom: 1px solid var(--line); }
.compact-record > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.compact-record > span, .compact-record > time { display: block; margin-top: 3px; color: var(--ink-3); font-size: 9px; }
.compact-record p { margin: 6px 0 0; color: var(--ink-2); font-size: 10.5px; }
.issue-panel { border-color: #ecd09c; }
.alert { margin-bottom: 13px; padding: 11px 13px; border: 1px solid; border-radius: 9px; font-size: 11.5px; font-weight: 600; }
.alert-success { border-color: #b8dfca; background: var(--success-soft); color: var(--success); }
.alert-error { border-color: #f1c0bc; background: var(--danger-soft); color: var(--danger); }

.auth-body { min-height: 100vh; background: var(--surface); }
.auth-language { position: fixed; z-index: 10; top: 18px; inset-inline-end: 20px; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .85fr) 1.15fr; }
.auth-brand-panel { display: flex; flex-direction: column; padding: 26px 38px 48px; background: var(--nav); color: #fff; }
.auth-brand { padding: 0; }
.auth-brand-copy { max-width: 500px; margin: auto 0; }
.auth-brand-copy h1 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 67px); font-weight: 720; letter-spacing: -.045em; line-height: 1.02; }
.auth-brand-copy p { max-width: 410px; margin: 0; color: #9db6c0; font-size: 15px; line-height: 1.7; }
.auth-form-panel { display: grid; place-items: center; padding: 80px 30px 40px; background: var(--canvas); }
.login-card { width: min(400px, 100%); padding: 31px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.login-kicker { display: block; margin-bottom: 8px; color: var(--brand); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.login-card h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.login-card > p { margin: 8px 0 24px; color: var(--ink-3); }
.check-field { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 11px; }
.check-field input { accent-color: var(--brand); }

@media (max-width: 1260px) {
  :root { --sidebar-width: 216px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-grid { grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(135px, .6fr)); }
  .date-field, .filter-actions { grid-row: 2; }
  .finance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .dashboard-columns { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-rail { grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); align-items: start; }
  .issue-panel { grid-column: 1 / -1; }
  .account-menu summary > span:last-child { display: none; }
}

@media (max-width: 820px) {
  .sidebar { width: min(280px, 82vw); transform: translateX(-102%); transition: transform .2s ease; }
  [dir="rtl"] .sidebar { transform: translateX(102%); }
  .sidebar.is-open, [dir="rtl"] .sidebar.is-open { transform: translateX(0); }
  .app-main { margin-inline-start: 0; }
  .menu-toggle { display: grid; place-items: center; }
  .content { padding: 14px 13px 35px; }
  .topbar { padding-inline: 13px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .range-bar { align-items: flex-start; flex-wrap: wrap; }
  .custom-range { width: 100%; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .date-field, .filter-actions { grid-row: auto; }
  .filter-actions { align-self: end; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; }
}

@media (max-width: 560px) {
  .page-heading > span { display: none; }
  .topbar-actions { gap: 4px; }
  .account-menu { display: none; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 102px; padding: 12px; }
  .finance-grid, .summary-columns, .definition-grid, .detail-rail { grid-template-columns: 1fr; }
  .summary-columns article + article, .definition-grid div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .dashboard-columns { gap: 10px; }
  .queue-row { align-items: flex-start; }
  .queue-row > div { display: grid; gap: 2px; }
  .queue-row .button { flex: 0 0 auto; }
  .filter-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .filter-actions .button { flex: 1; }
  .segmented-control { width: 100%; overflow-x: auto; }
  .segmented-control button { flex: 1 0 auto; }
  .custom-range { flex-wrap: wrap; }
  .rank-row { grid-template-columns: 25px 1fr 55px 18px; }
  .login-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
