:root {
  --work-ink: #18213b;
  --work-muted: #5e687e;
  --work-rule: #e0e3ee;
  --work-action: #5146d5;
  --work-wash: #efedff;
  --customer-action: #5544cc;
  --pool-action: #352e89;
  --task-action: #5144cd;
  --action-hover: #4037b5;
  --control-radius: 6px;
  --panel-radius: 12px;
  --focus-ring: rgba(81, 70, 213, .18);
  --ink: var(--work-ink);
  --muted: var(--work-muted);
  --paper: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eff0f8;
  --line: var(--work-rule);
  --forest: var(--pool-action);
  --forest-2: #4b43b7;
  --acid: #d4ceff;
  --coral: #f48367;
  --blue: #4d7cfe;
  --danger: #b84231;
  --shadow: 0 18px 48px rgba(20, 32, 31, 0.09);
  --radius: var(--panel-radius);
  --font:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei',
    'Noto Sans Khmer', 'Noto Sans Lao', sans-serif;
}
.brand-sign {
  width: 35px;
  height: 37px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: linear-gradient(145deg, #6c60ee, #4539bb);
  border-radius: 7px;
}
.channel-header, .boot-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px max(20px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.035em;
}
.boot-shell a { text-decoration: none; }
.boot-brand { display: inline-flex; align-items: center; gap: 10px; }
.boot-shell + .boot {
  min-height: 0;
  width: min(100% - 40px, 1040px);
  margin: 40px auto;
  display: block;
}
.boot-shell + .boot h1 { font-size: 26px; margin: 0; }
.boot-shell + .boot p { font-size: 14px; font-weight: 500; color: var(--muted); }
.channel-card {
  width: min(32rem, calc(100% - 32px));
  margin: clamp(20px, 6vh, 64px) auto;
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
}
.channel-card h1 { font-size: clamp(23px, 3vw, 28px); line-height: 1.25; letter-spacing: -.025em; margin: 0; }
.channel-instructions { color: var(--muted); margin: 8px 0 20px; }
.channel-status { margin: 0; border-block: 1px solid var(--line); padding: 14px 0; }
.channel-status dt { font-size: 13px; color: var(--muted); }
.channel-status dd { color: var(--ink); font-size: 22px; font-weight: 700; margin: 3px 0 0; overflow-wrap: anywhere; }
.channel-reference { font-size: 13px; overflow-wrap: anywhere; color: var(--muted); margin: 12px 0 20px; }
.channel-card .action-row > button { flex: 1; min-height: 44px; }
.channel-card .button-primary { background: var(--customer-action); }
.channel-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; text-underline-offset: 4px; color: var(--work-action); font-size: 14px; }
:where(a, button, summary, select):focus-visible { outline: 2px solid var(--work-action); outline-offset: 2px; }
a:is(.button, .nav-button, .task-card-detail, .customer-view-order, .icon-button) { text-decoration: none; }

* {
  box-sizing: border-box;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
html {
  min-width: 320px;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--forest);
}
.skip-link:focus {
  top: 12px;
}
.boot {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.menu-scrim {
  display: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: end;
  gap: 3px;
  padding: 7px;
  border-radius: 10px;
  background: var(--forest);
  transform: rotate(-2deg);
}
.brand-mark i {
  display: block;
  width: 5px;
  border-radius: 6px;
  background: var(--acid);
}
.brand-mark i:nth-child(1) {
  height: 10px;
}
.brand-mark i:nth-child(2) {
  height: 19px;
}
.brand-mark i:nth-child(3) {
  height: 14px;
}

.login-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(330px, 1.1fr) minmax(380px, 0.9fr);
}
.login-art {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(30px, 7vw, 92px);
  color: #fff;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art::before,
.login-art::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  opacity: 0.9;
}
.login-art::before {
  width: 44vw;
  height: 44vw;
  top: -17vw;
  right: -14vw;
  border: 1px solid rgba(200, 240, 106, 0.28);
  box-shadow:
    0 0 0 7vw rgba(200, 240, 106, 0.045),
    0 0 0 14vw rgba(200, 240, 106, 0.025);
}
.login-art::after {
  width: 180px;
  height: 180px;
  right: 12%;
  bottom: 11%;
  background: var(--coral);
  filter: blur(0.2px);
  transform: rotate(23deg);
  border-radius: 45% 55% 60% 40%;
}
.login-brand,
.top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.login-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 15vh 0 8vh;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.login-art .eyebrow {
  color: var(--acid);
}
.login-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}
.login-copy p {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
}
.login-panel {
  padding: clamp(28px, 7vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}
.login-panel-inner {
  width: min(100%, 480px);
  margin: auto;
}
.login-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 54px;
}
.portal-back {
  color: var(--forest-2);
  font-weight: 650;
  text-underline-offset: 3px;
}
.login-panel h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.login-panel .lede {
  margin: 12px 0 34px;
  color: var(--muted);
}
.form-stack {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.02em;
}
.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus,
.select:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
textarea.input {
  min-height: 90px;
  resize: vertical;
}
.button {
  min-height: 43px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--control-radius);
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}
.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}
.button-primary {
  color: #fff;
  background: var(--work-action);
}
.button-primary:hover {
  background: var(--action-hover);
}
.button-acid {
  color: var(--forest);
  background: var(--acid);
}
.button-soft {
  background: var(--surface-2);
}
.button-ghost {
  border: 1px solid var(--line);
  background: transparent;
}
.button-danger {
  color: var(--danger);
  background: #fbe7e2;
}
.button-small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}
.button-block {
  width: 100%;
}
.demo-box {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.demo-box h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.demo-box p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.demo-accounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.demo-account {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.demo-account:hover {
  border-color: var(--forest-2);
  background: var(--surface-2);
}
.demo-account strong,
.demo-account span {
  display: block;
}
.demo-account span {
  color: var(--muted);
  font-size: 11px;
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 24px 18px;
  color: #fff;
  background: var(--forest);
  display: flex;
  flex-direction: column;
}
.top-brand {
  padding: 2px 8px 28px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-weight: 670;
  cursor: pointer;
}
.nav-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.nav-button.active {
  color: var(--forest);
  background: var(--acid);
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
}
.user-card {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.user-line {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--coral);
  font-weight: 900;
}
.user-meta {
  min-width: 0;
  flex: 1;
}
.user-meta strong,
.user-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-meta span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: capitalize;
}
.logout-link {
  width: 100%;
  margin-top: 12px;
  padding: 7px 0 0;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 239, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mobile-brand,
.mobile-menu {
  display: none;
}
.top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-left: auto;
}
.compact-select {
  width: auto;
  min-height: 38px;
  padding: 8px 32px 8px 11px;
}
.page {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 52px) 70px;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.page-head p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
}
.page-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.metric {
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric:nth-child(1) {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}
.metric:nth-child(1) .metric-label {
  color: rgba(255, 255, 255, 0.58);
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.metric-value {
  font-size: 37px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 850;
}
.metric-note {
  color: var(--muted);
  font-size: 11px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(20, 32, 31, 0.015);
  overflow: hidden;
}
.panel + .panel {
  margin-top: 18px;
}
.panel-head {
  min-height: 69px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.panel-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}
.panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.panel-body {
  padding: 20px;
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: start;
}
.new-order {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}
.new-order .panel-head {
  border-color: rgba(255, 255, 255, 0.12);
}
.new-order .panel-head p,
.new-order .field > span {
  color: rgba(255, 255, 255, 0.58);
}
.new-order .input,
.new-order .select {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: white;
}
.new-order option {
  color: var(--ink);
  background: white;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1 / -1;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.exchange-rate-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 20px;
}
.exchange-rate-panel .panel-head {
  padding: 0;
  border: 0;
}
.exchange-rate-form,
.exchange-rate-input {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.exchange-rate-input {
  font-weight: 600;
  white-space: nowrap;
  min-width: 0;
}
.exchange-rate-input .input {
  min-width: 0;
  width: 7.5em;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.data-table th {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.data-table td {
  padding: 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:hover td {
  background: rgba(235, 238, 231, 0.45);
}
.cell-title {
  font-weight: 750;
}
.cell-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.money {
  font-weight: 820;
  white-space: nowrap;
}
.action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #31524d;
  background: #deebe5;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: currentColor;
}
.badge-warn {
  color: #8c5e1f;
  background: #f8e9c9;
}
.badge-good {
  color: #24633b;
  background: #dff0df;
}
.badge-bad {
  color: #933d31;
  background: #f7ded8;
}
.badge-neutral {
  color: #5f6d69;
  background: #e8ebe7;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.task-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.task-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.task-card h3 {
  margin: 14px 0 5px;
  font-size: 18px;
}
.task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.task-card .action-row {
  margin-top: 18px;
}
.countdown {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
}
.countdown strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.04em;
}
.countdown span {
  color: var(--muted);
  font-size: 10px;
}
.empty {
  min-height: 220px;
  padding: 50px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}
.empty-symbol {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--surface-2);
  font-size: 24px;
}
.empty h3 {
  margin: 0 0 5px;
}
.empty p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 18px;
  background: rgba(24, 33, 59, .48);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}
.modal {
  width: min(100%, 590px);
  max-height: min(90dvh, 820px);
  overflow: auto;
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  margin: 0;
  font-size: 21px;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.modal-body {
  padding: 22px;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.detail {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.detail span,
.detail strong {
  display: block;
}
.detail > span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.timeline {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  margin-left: 6px;
  padding: 0 0 20px 26px;
  border-left: 1px solid var(--line);
}
.timeline li::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  left: -5px;
  top: 5px;
  border-radius: 99px;
  background: var(--forest-2);
  box-shadow: 0 0 0 4px var(--surface);
}
.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline strong,
.timeline span {
  display: block;
}
.timeline span {
  color: var(--muted);
  font-size: 11px;
}
.toast-region {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}
.toast {
  max-width: 390px;
  padding: 13px 16px;
  border-radius: 12px;
  color: white;
  background: var(--forest);
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease-out;
}
.toast.error {
  background: var(--danger);
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}
.skeleton {
  border-radius: 8px;
  color: transparent !important;
  background: linear-gradient(100deg, #e8ebe5 30%, #f6f7f3 45%, #e8ebe5 60%);
  background-size: 250% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  to {
    background-position-x: -150%;
  }
}

@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 360px;
  }
  .login-copy {
    margin: 60px 0;
  }
  .login-copy h1 {
    font-size: clamp(42px, 13vw, 64px);
  }
  .login-panel {
    min-height: 620px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 40;
    width: min(82vw, 280px);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }
  .app-shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(11, 28, 27, 0.45);
  }
  .app-shell.menu-open .menu-scrim {
    display: block;
  }
  .topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 64px;
    padding: 10px 16px;
  }
  .mobile-brand,
  .mobile-menu {
    display: flex;
  }
  .mobile-brand {
    align-items: center;
    gap: 8px;
    font-weight: 850;
  }
  .mobile-brand .brand-mark {
    width: 29px;
    height: 29px;
    padding: 6px;
  }
  .mobile-menu {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    align-items: center;
    justify-content: center;
  }
  .top-actions .button {
    display: none;
  }
  .page {
    padding: 28px 16px 58px;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .button {
    flex: 1;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide,
  .form-actions {
    grid-column: auto;
  }
  .form-actions .button {
    flex: 1;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .login-panel,
  .login-art {
    padding: 25px 20px;
  }
  .login-tools {
    margin-bottom: 36px;
  }
  .demo-accounts {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric {
    min-height: 125px;
    padding: 15px;
  }
  .metric-value {
    font-size: 30px;
  }
  .panel-head,
  .panel-body {
    padding-left: 15px;
    padding-right: 15px;
  }
  .top-actions .compact-select {
    max-width: 118px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
