:root {
  color-scheme: light;
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --line: #dfe7f1;
  --line-strong: #cbd7e6;
  --text: #17212b;
  --muted: #667789;
  --brand: #1f6feb;
  --brand-strong: #1559c7;
  --brand-soft: #e8f1ff;
  --blue: #1f6feb;
  --blue-soft: #e8f1ff;
  --amber: #b76815;
  --amber-soft: #fff2dc;
  --red: #b8332c;
  --red-soft: #fde7e4;
  --green: #267447;
  --green-soft: #e5f4eb;
  --shadow: 0 8px 22px rgba(31, 80, 140, 0.08);
  --radius: 4px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  min-height: 100vh;
}

.system-header {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 70px;
  background: #1f66e5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 15px;
}

.system-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.platform-logo svg {
  width: 54px;
  height: 42px;
  flex: 0 0 auto;
}

.platform-logo rect {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
}

.platform-logo .logo-book,
.platform-logo .logo-line,
.platform-logo .logo-star {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-logo .logo-dot {
  fill: currentColor;
}

.header-logo {
  width: 126px;
  padding-right: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.36);
}

.login-logo {
  color: #fff;
}

.login-logo svg {
  width: 72px;
  height: 58px;
}

.card-logo {
  color: var(--brand);
}

.card-logo span {
  color: #1e3f6f;
}

.brand-emblem {
  width: 124px;
  height: 44px;
  border-right: 1px solid rgba(255, 255, 255, 0.36);
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.system-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.system-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.header-icon {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
  border-radius: 50%;
}

.btn.cockpit-entry {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(9, 65, 158, 0.22) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn.cockpit-entry:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.btn.cockpit-entry svg {
  color: #fff;
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  min-height: calc(100vh - 70px);
  padding: 14px 8px;
  background: #fff;
  color: var(--text);
  border-right: 1px solid #d8e1ec;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: var(--brand);
  font-weight: 800;
}

.brand-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
}

.profile-name {
  margin: 0 0 6px;
  font-weight: 700;
}

.profile-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav button {
  border: 0;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #17212b;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.nav button:hover {
  background: #eef5ff;
  color: var(--brand);
}

.nav button.active {
  background: #2d74dd;
  color: #fff;
}

.nav svg,
.btn svg,
.icon-only svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.content {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 0 8px 22px;
}

.site-footer {
  grid-column: 1 / -1;
  grid-row: 3;
  background: #1f66e5;
  color: #fff;
}

.site-footer-inner {
  min-height: 98px;
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.footer-brand strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-title-only {
  justify-content: center;
  min-height: 52px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.breadcrumb {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 13px;
  padding: 0 12px;
  background: #e8f1ff;
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.page-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.page-desc {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 850px;
}

.mobile-menu {
  display: none;
}

.grid {
  display: grid;
  gap: 14px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  min-height: 112px;
  box-shadow: none;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin: 10px 0 4px;
  font-size: 28px;
  font-weight: 800;
}

.stat-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.panel-header {
  padding: 16px 16px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-title {
  margin: 0;
  font-size: 18px;
}

.panel-desc {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-body {
  padding: 16px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toolbar.spread {
  justify-content: space-between;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field label.required::before {
  content: "*";
  color: var(--red);
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  height: 40px;
  min-height: 40px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
}

.input[type="file"] {
  padding: 6px 10px;
}

.textarea {
  height: auto;
  min-height: 86px;
  resize: vertical;
}

.form-tip {
  grid-column: 1 / -1;
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid rgba(31, 111, 104, 0.24);
  border-color: var(--brand);
}

.btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

.btn.danger {
  border-color: var(--red);
  color: var(--red);
}

.btn.ghost {
  background: transparent;
  color: inherit;
}

.btn.full {
  width: 100%;
}

.icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: inline-grid;
  place-items: center;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: #fff;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
}

th {
  background: #f4f7fb;
  color: #304050;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
  border-color: #b8dec6;
}

.badge.amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #efd1a4;
}

.badge.red {
  background: var(--red-soft);
  color: var(--red);
  border-color: #f3bbb6;
}

.badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: #bad0ee;
}

.badge.neutral {
  background: #eef1f4;
  color: #52616f;
  border-color: #d7dde4;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.segmented button {
  border: 0;
  min-height: 38px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--brand);
  color: #fff;
}

.login-page {
  min-height: calc(100vh - 98px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 480px);
  background:
    radial-gradient(circle at 70% 42%, rgba(255, 255, 255, 0.68), transparent 26%),
    linear-gradient(90deg, #eaf7ff 0%, #dff2ff 58%, #eaf7ff 100%);
}

.login-visual {
  position: relative;
  padding: 54px 40px 42px 64px;
  color: #164071;
  background:
    linear-gradient(90deg, rgba(230, 245, 255, 0.04), rgba(230, 245, 255, 0.34) 78%, rgba(230, 245, 255, 0.82) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1180' height='760' viewBox='0 0 1180 760'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23f9fdff'/%3E%3Cstop offset='1' stop-color='%23cceaff'/%3E%3C/linearGradient%3E%3ClinearGradient id='blue' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%234da3ff'/%3E%3Cstop offset='1' stop-color='%230066ff'/%3E%3C/linearGradient%3E%3Cfilter id='s'%3E%3CfeDropShadow dx='0' dy='20' stdDeviation='22' flood-color='%237baee9' flood-opacity='.28'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='1180' height='760' fill='%23e5f5ff'/%3E%3Cpath d='M0 96 260 0h920v760H0z' fill='%23eef9ff' opacity='.7'/%3E%3Cg opacity='.55' fill='none' stroke='%23b8dcf7'%3E%3Cpath d='M90 620 1040 110'/%3E%3Cpath d='M0 452 870 0'/%3E%3Cpath d='M300 760 1180 310'/%3E%3C/g%3E%3Cg filter='url(%23s)' transform='translate(245 70)'%3E%3Cellipse cx='286' cy='426' rx='250' ry='66' fill='%23b9ddfb' opacity='.55'/%3E%3Cellipse cx='286' cy='382' rx='230' ry='58' fill='%23ffffff'/%3E%3Cellipse cx='286' cy='381' rx='178' ry='42' fill='%23d9efff'/%3E%3Cpath d='M95 234c132-86 283-86 420 0v162c-142 78-283 78-420 0z' fill='%23d5efff' opacity='.8'/%3E%3Cpath d='M162 206 305 128l148 78-148 88z' fill='%23ffffff'/%3E%3Cpath d='M305 128v166' stroke='%2388c4ff' stroke-width='4'/%3E%3Cpath d='M188 282 305 216l122 66-122 74z' fill='%23f8fdff'/%3E%3Cpath d='M254 258h88v88h-88z' fill='url(%23blue)'/%3E%3Cpath d='M352 188h80v80h-80z' fill='%23f6fbff' transform='rotate(18 392 228)'/%3E%3Cpath d='M196 216h76v76h-76z' fill='%23ffffff' transform='rotate(-18 234 254)'/%3E%3Cpath d='M448 326h80v54h-80z' fill='url(%23blue)' transform='rotate(-16 488 353)'/%3E%3Ccircle cx='141' cy='404' r='24' fill='url(%23blue)'/%3E%3Ccircle cx='520' cy='398' r='20' fill='url(%23blue)'/%3E%3Cpath d='M96 380c118 58 285 70 454 0' fill='none' stroke='%230066ff' stroke-width='4'/%3E%3Cpath d='M118 166 500 384' fill='none' stroke='%23ffffff' stroke-width='6' opacity='.86'/%3E%3Cpath d='M492 160 150 412' fill='none' stroke='%23ffffff' stroke-width='6' opacity='.82'/%3E%3Ccircle cx='118' cy='166' r='10' fill='%23ffffff'/%3E%3Ccircle cx='492' cy='160' r='10' fill='%23ffffff'/%3E%3Ccircle cx='500' cy='384' r='10' fill='%23ffffff'/%3E%3Ccircle cx='150' cy='412' r='10' fill='%23ffffff'/%3E%3C/g%3E%3Ccircle cx='930' cy='600' r='62' fill='%23bfe0ff' opacity='.42'/%3E%3Ccircle cx='1020' cy='420' r='18' fill='%23a5d2fb' opacity='.62'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}

.login-visual h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 760px;
  color: #1553a8;
}

.login-visual p {
  max-width: 720px;
  line-height: 1.8;
  color: #386b9d;
  margin: 0;
}

.login-panel {
  padding: 42px 44px 42px 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.login-card {
  display: grid;
  gap: 18px;
  width: 100%;
  min-height: 560px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 251, 255, 0.76));
  box-shadow: 0 26px 58px rgba(47, 104, 161, 0.2);
  backdrop-filter: blur(16px);
  align-content: center;
}

.login-brand-block {
  display: grid;
  align-content: start;
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.login-feature-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
}

.login-feature-grid strong {
  font-size: 17px;
}

.login-feature-grid span {
  color: #dceaff;
  line-height: 1.6;
  font-size: 13px;
}

.login-card-head {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.login-demo-title {
  color: #3d5168;
  font-weight: 700;
  font-size: 13px;
}

.demo-accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.demo-account {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 251, 255, 0.78);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.demo-account:hover {
  border-color: var(--brand);
  background: rgba(238, 245, 255, 0.94);
}

.demo-account p {
  margin: 0;
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 24, 31, 0.48);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 30;
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-header,
.modal-footer {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.modal-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-title {
  margin: 0;
  font-size: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast-item {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: #17212b;
  box-shadow: var(--shadow);
  line-height: 1.45;
}

.upload-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  background: #fbfcfd;
  display: grid;
  gap: 10px;
}

.chart-list {
  display: grid;
  gap: 10px;
}

.chart-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #e9eef3;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.material-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.material-chip {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #bad3f8;
  border-radius: 999px;
  background: #f0f6ff;
  color: #1f5fbf;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.material-chip svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.material-chip em {
  font-style: normal;
  color: var(--muted);
}

.calendar-hint {
  border: 1px solid #bad3f8;
  border-left: 4px solid var(--brand);
  background: #f0f6ff;
  color: #21456f;
  padding: 10px 12px;
  line-height: 1.6;
  border-radius: var(--radius);
}

.mobile-cards {
  display: none;
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .login-page {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .system-header {
    height: auto;
    min-height: 70px;
    padding: 10px 12px;
    gap: 10px;
  }

  .system-title {
    font-size: 18px;
  }

  .brand-emblem {
    width: 88px;
    font-size: 12px;
  }

  .header-logo {
    width: auto;
    padding-right: 10px;
  }

  .header-logo svg {
    width: 46px;
    height: 38px;
  }

  .system-user span {
    display: none;
  }

  .sidebar {
    position: fixed;
    inset: 70px auto 0 0;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    z-index: 25;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    grid-column: 1;
    grid-row: 2;
    padding: 16px;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .topbar {
    align-items: center;
  }

  .field-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .login-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-visual {
    min-height: auto;
    padding: 30px 22px;
  }

  .login-panel {
    padding: 24px 18px;
  }

  .login-card {
    min-height: auto;
    padding: 24px;
  }

  .site-footer-inner {
    width: min(100% - 28px, 620px);
    padding: 18px 0;
  }

  .footer-brand {
    white-space: normal;
  }

}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .demo-accounts {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .toolbar.spread {
    display: grid;
    justify-content: stretch;
  }

  .toolbar,
  .row-actions {
    align-items: stretch;
  }

  .toolbar .btn,
  .row-actions .btn,
  .toolbar .select,
  .toolbar .input {
    width: 100%;
  }

  .segmented {
    width: 100%;
    grid-auto-flow: row;
  }

  .desktop-table {
    display: none;
  }

  .mobile-cards {
    display: grid;
    gap: 10px;
  }

  .mobile-record {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: #fff;
    display: grid;
    gap: 10px;
  }

  .mobile-record-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .chart-row {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
