:root {
  --navy-950: #0d152b;
  --navy-900: #111a33;
  --navy-800: #182442;
  --navy-700: #243354;
  --navy-600: #394a72;
  --ink-900: #172033;
  --ink-700: #46536a;
  --ink-500: #7c879b;
  --paper: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --line: #e3e7ed;
  --line-strong: #d2d8e1;
  --gold: #c6a46a;
  --gold-soft: #f2e7d2;
  --teal: #2d8d7f;
  --teal-soft: #dff2ed;
  --danger: #b45353;
  --danger-soft: #f8e5e5;
  --warning: #a87524;
  --warning-soft: #f8edd8;
  --blue: #3a6f9e;
  --blue-soft: #e6f0f8;
  --sidebar-width: 232px;
  --topbar-height: 68px;
  --radius: 8px;
  --shadow: 0 12px 30px rgb(22 32 51 / 7%);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink-900);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
}

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

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(460px, 0.92fr);
  background:
    linear-gradient(120deg, rgb(13 21 43 / 98%), rgb(17 26 51 / 92%)),
    url("/admin/assets/brand-logo.jpg") center / cover;
}

.login-brand-panel {
  min-height: 100vh;
  padding: 54px 64px 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgb(255 255 255 / 10%);
  background:
    radial-gradient(circle at 24% 24%, rgb(198 164 106 / 10%), transparent 26%),
    linear-gradient(145deg, transparent 42%, rgb(255 255 255 / 3%) 42.2%, transparent 42.4%);
}

.login-brand,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand img,
.sidebar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 18%);
}

.login-brand strong,
.sidebar-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.login-brand span,
.sidebar-brand span {
  display: block;
  margin-top: 4px;
  color: rgb(255 255 255 / 52%);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.login-statement {
  max-width: 620px;
  padding: 48px 0;
}

.login-statement > span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.login-statement h1 {
  margin: 22px 0 20px;
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.login-statement p {
  margin: 0;
  color: rgb(255 255 255 / 64%);
  font-size: 17px;
  line-height: 1.8;
}

.login-facts {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 11%);
}

.login-facts div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.login-facts b {
  font-family: Georgia, serif;
  font-size: 32px;
  color: var(--gold);
  font-weight: 400;
}

.login-facts span {
  color: rgb(255 255 255 / 47%);
  font-size: 12px;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    linear-gradient(90deg, #f6f7f8, #eef1f4),
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(20 31 54 / 2%) 40px);
}

.login-card {
  width: min(420px, 100%);
  padding: 42px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 28px 80px rgb(17 26 51 / 12%);
}

.login-card h2 {
  margin: 14px 0 10px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.login-card > p {
  margin: 0 0 28px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.login-card label,
.form-field {
  display: block;
  margin-bottom: 18px;
}

.login-card label span,
.form-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-900);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 110px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.65;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgb(57 74 114 / 8%);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-button {
  background: var(--navy-900);
  color: #fff;
}

.primary-button:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
}

.secondary-button {
  background: var(--surface);
  border-color: var(--line-strong);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--navy-600);
}

.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #ebcaca;
}

.ghost-button {
  background: transparent;
  border-color: transparent;
  color: var(--ink-700);
}

.large-button {
  width: 100%;
  height: 44px;
}

.login-card small {
  display: block;
  margin-top: 20px;
  color: var(--ink-500);
  text-align: center;
  font-size: 11px;
}

.form-error {
  min-height: 18px;
  margin: -6px 0 12px !important;
  color: var(--danger) !important;
  font-size: 12px !important;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 2%), transparent 20%),
    var(--navy-950);
  border-right: 1px solid rgb(255 255 255 / 6%);
}

.sidebar-brand {
  height: var(--topbar-height);
  padding: 0 20px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.sidebar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.sidebar-brand strong {
  font-size: 14px;
}

.sidebar-brand span {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 12px;
  scrollbar-width: thin;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-title {
  display: block;
  padding: 0 12px 8px;
  color: rgb(255 255 255 / 31%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 6px;
  color: rgb(255 255 255 / 62%);
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.nav-item:hover {
  color: #fff;
  background: rgb(255 255 255 / 5%);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgb(198 164 106 / 17%), rgb(255 255 255 / 4%));
  box-shadow: inset 2px 0 var(--gold);
}

.nav-item .nav-count {
  min-width: 22px;
  height: 18px;
  margin-left: auto;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--gold-soft);
  color: #705a31;
  font-size: 10px;
}

.sidebar-footer {
  margin: 12px;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 7px;
  background: rgb(255 255 255 / 3%);
}

.system-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #65c8a8;
  box-shadow: 0 0 0 4px rgb(101 200 168 / 10%);
}

.sidebar-footer strong {
  display: block;
  font-size: 11px;
}

.sidebar-footer span {
  display: block;
  margin-top: 3px;
  color: rgb(255 255 255 / 37%);
  font-size: 9px;
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-500);
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--ink-900);
  font-weight: 700;
}

.breadcrumb b {
  color: var(--line-strong);
  font-weight: 400;
}

.topbar-actions {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-search {
  width: 290px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.global-search svg {
  width: 15px;
  color: var(--ink-500);
}

.global-search input {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-700);
  cursor: pointer;
  text-decoration: none;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.sidebar-toggle {
  display: none;
}

.admin-menu {
  height: 46px;
  padding: 0 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.admin-menu strong,
.admin-menu small {
  display: block;
}

.admin-menu strong {
  font-size: 12px;
}

.admin-menu small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.admin-menu > svg {
  width: 14px;
  color: var(--ink-500);
}

.admin-popover {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 40;
  width: 160px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-popover button {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.admin-popover button:hover {
  background: var(--surface-soft);
}

.page-viewport {
  min-height: calc(100vh - var(--topbar-height));
  padding: 26px;
}

.page-head {
  margin-bottom: 21px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-head h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.page-head p {
  margin: 7px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 108px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #f7f8fa, #e9edf1);
  color: var(--navy-700);
}

.metric-icon.gold {
  background: linear-gradient(145deg, #fbf4e7, #ead8b7);
  color: #846a3c;
}

.metric-icon svg {
  width: 21px;
  height: 21px;
}

.metric-copy span {
  display: block;
  color: var(--ink-500);
  font-size: 11px;
}

.metric-copy strong {
  display: block;
  margin: 4px 0 5px;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.metric-copy small {
  color: var(--teal);
  font-size: 10px;
}

.metric-copy small.warn {
  color: var(--warning);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.panel-header {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 14px;
}

.panel-header span,
.panel-header p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
}

.panel-body {
  padding: 18px;
}

.chart-wrap {
  position: relative;
  height: 268px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  padding: 7px 9px;
  border-radius: 5px;
  background: var(--navy-900);
  color: #fff;
  font-size: 10px;
  box-shadow: 0 8px 20px rgb(17 26 51 / 22%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 150ms ease;
}

.chart-wrap:hover .chart-tooltip {
  opacity: 1;
}

.donut-layout {
  height: 268px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.donut {
  position: relative;
  width: 134px;
  height: 134px;
  flex: none;
  border-radius: 50%;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #fff;
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center strong {
  font-size: 21px;
}

.donut-center span {
  color: var(--ink-500);
  font-size: 9px;
}

.legend {
  min-width: 132px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 11px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-row b {
  margin-left: auto;
  font-weight: 700;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.data-table td {
  height: 62px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f4;
  color: var(--ink-700);
  font-size: 11px;
  vertical-align: middle;
}

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

.data-table tbody tr:hover {
  background: #fafbfc;
}

.cell-main {
  color: var(--ink-900);
  font-weight: 700;
}

.cell-sub {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.product-cell img,
.thumb {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef1f4;
}

.rank {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-500);
  font-size: 10px;
}

.rank:first-child {
  background: var(--gold-soft);
  color: #7a5e2d;
}

.money {
  color: var(--ink-900);
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-weight: 600;
}

.status {
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status.success,
.status.paid,
.status.on_sale,
.status.completed,
.status.approved,
.status.active,
.status.won {
  color: var(--teal);
  background: var(--teal-soft);
}

.status.warning,
.status.pending_payment,
.status.pending_shipment,
.status.pending,
.status.reviewing,
.status.submitted,
.status.new {
  color: var(--warning);
  background: var(--warning-soft);
}

.status.info,
.status.shipped,
.status.reserved,
.status.assigned,
.status.contacted {
  color: var(--blue);
  background: var(--blue-soft);
}

.status.danger,
.status.refunding,
.status.cancelled,
.status.rejected,
.status.sold,
.status.disabled,
.status.hidden,
.status.lost {
  color: var(--danger);
  background: var(--danger-soft);
}

.status.muted,
.status.draft,
.status.off_sale,
.status.ended,
.status.outbid {
  color: var(--ink-500);
  background: #eef1f4;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  cursor: pointer;
}

.text-action.danger {
  color: var(--danger);
}

.toolbar {
  min-height: 58px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.toolbar-search {
  min-width: 220px;
  max-width: 340px;
  flex: 1;
}

.toolbar select {
  width: auto;
  min-width: 118px;
}

.toolbar-spacer {
  flex: 1;
}

.empty-row {
  padding: 54px 20px !important;
  color: var(--ink-500) !important;
  text-align: center;
}

.pagination {
  min-height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 10px;
}

.pagination button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.pagination button.active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.loading-state,
.empty-state {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--ink-500);
  font-size: 12px;
}

.loading-state span {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--navy-700);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(13 21 43 / 32%);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(520px, 94vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -20px 0 50px rgb(13 21 43 / 14%);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

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

.drawer-header {
  min-height: 78px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-header span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.drawer-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-footer {
  min-height: 68px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-section-title {
  margin: 24px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.detail-line {
  min-height: 42px;
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #edf0f3;
  font-size: 11px;
}

.detail-line span {
  color: var(--ink-500);
}

.detail-line strong {
  max-width: 64%;
  text-align: right;
  font-weight: 700;
}

.upload-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-preview {
  width: 82px;
  height: 82px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface-soft);
}

.upload-actions {
  display: grid;
  gap: 7px;
}

.upload-actions small {
  color: var(--ink-500);
  font-size: 9px;
}

.json-editor {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 100;
  min-width: 180px;
  max-width: 80vw;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 12px 34px rgb(17 26 51 / 22%);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #742e2e;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-filter {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: var(--ink-700);
  font-size: 11px;
  cursor: pointer;
}

.quick-filter.active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
}

.list-panel {
  padding: 8px;
}

.list-row {
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.list-row:hover {
  background: var(--surface-soft);
}

.list-row.active {
  background: #eef2f7;
}

.list-row-copy {
  min-width: 0;
  flex: 1;
}

.list-row-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-row-copy span {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.overview-strip div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.overview-strip span {
  display: block;
  color: var(--ink-500);
  font-size: 9px;
}

.overview-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.modal-note {
  padding: 11px 13px;
  border-left: 2px solid var(--gold);
  background: #fbf8f1;
  color: var(--ink-700);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 210px;
  }

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

  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .global-search {
    width: 220px;
  }
}

@media (max-width: 860px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 300px;
    padding: 30px;
  }

  .login-statement {
    padding: 28px 0 0;
  }

  .login-statement h1 {
    font-size: 44px;
  }

  .login-facts {
    display: none;
  }

  .login-form-panel {
    padding: 28px 20px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    transform: translateX(-104%);
    transition: transform 200ms ease;
  }

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

  .workspace {
    grid-column: 1;
  }

  .sidebar-toggle {
    display: inline-grid;
  }

  .global-search,
  .breadcrumb {
    display: none;
  }

  .page-viewport {
    padding: 18px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .metric-grid,
  .overview-strip {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 12px;
  }

  .page-viewport {
    padding: 12px;
  }

  .page-head h1 {
    font-size: 23px;
  }

  .topbar-actions > .icon-button {
    display: none;
  }

  .admin-menu > span:nth-child(2),
  .admin-menu > svg {
    display: none;
  }

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

  .form-field {
    grid-column: 1 !important;
  }

  .donut-layout {
    flex-direction: column;
  }
}
