:root {
  --accent: #fe2c55;
  --accent-2: #25f4ee;
  --sidebar: #111318;
  --sidebar-text: #f7f8fb;
  --ink: #182033;
  --muted: #758096;
  --line: #e7ebf2;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --green: #19a66a;
  --amber: #e58a13;
  --blue: #3157e7;
  --shadow: 0 14px 36px rgba(24, 38, 68, 0.08);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

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

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

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sim-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.sim-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 15px 16px;
  background:
    radial-gradient(circle at 15% 8%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 25%),
    var(--sidebar);
  color: var(--sidebar-text);
}

.sim-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sim-brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--sidebar);
  font-size: 12px;
  font-weight: 900;
}

.sim-brand b,
.sim-brand small {
  display: block;
}

.sim-brand b {
  font-size: 13px;
}

.sim-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 6.7px;
  letter-spacing: 0.7px;
}

.store-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 16px 0 13px;
  padding: 11px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.store-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
}

.store-card div {
  min-width: 0;
}

.store-card small,
.store-card b,
.store-card span {
  display: block;
}

.store-card small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 7.5px;
}

.store-card b {
  overflow: hidden;
  margin-top: 2px;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 7.5px;
}

.store-card > i {
  padding: 2px 5px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  color: var(--accent-2);
  font-size: 7px;
  font-style: normal;
}

.sim-nav {
  display: grid;
  gap: 3px;
}

.nav-caption {
  margin: 9px 8px 5px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sim-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

.sim-nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sim-nav button.active {
  background: color-mix(in srgb, var(--accent) 34%, transparent);
  color: #fff;
}

.sim-nav button span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 8px;
}

.sim-nav button.active span {
  background: var(--accent);
}

.learning-card {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.learning-card span,
.learning-card b {
  display: block;
}

.learning-card span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 7.5px;
}

.learning-card b {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.5;
}

.learning-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.learning-progress i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.learning-card small {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.44);
  font-size: 7.5px;
}

.learning-card small a {
  color: var(--accent-2);
}

.sim-main {
  min-width: 0;
}

.sim-topbar {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.sim-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}

.sim-breadcrumb i {
  color: #c2c8d4;
  font-style: normal;
}

.sim-breadcrumb b {
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-search {
  width: 255px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fc;
}

.sim-search svg,
.icon-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.sim-search svg {
  color: #9ca5b5;
}

.sim-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 9px;
}

.icon-button {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #6d7789;
  cursor: pointer;
}

.icon-button span {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--accent);
}

.sim-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-user > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.sim-user b,
.sim-user small {
  display: block;
}

.sim-user b {
  font-size: 9px;
}

.sim-user small {
  color: var(--muted);
  font-size: 7.5px;
}

.sim-content {
  padding: 18px 24px 30px;
}

.environment-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 15%, #e4e9f1);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, #fff);
  color: var(--muted);
  font-size: 8.5px;
}

.environment-strip > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.environment-strip > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(25, 166, 106, 0.1);
}

.environment-strip p {
  flex: 1;
  margin: 0;
}

.environment-strip select {
  padding: 5px 25px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 8.5px;
}

.content-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 16px;
}

.eyebrow {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.content-heading h1 {
  margin: 5px 0 4px;
  font-size: 24px;
  letter-spacing: -0.8px;
}

.content-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

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

.btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

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

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

.kpi-card,
.sim-panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(26, 43, 76, 0.04);
}

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 15px;
}

.kpi-card::after {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 75px;
  height: 75px;
  content: "";
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.kpi-card small,
.kpi-card strong,
.kpi-card span {
  display: block;
}

.kpi-card small {
  color: var(--muted);
  font-size: 8.5px;
}

.kpi-card strong {
  margin: 7px 0 4px;
  font-size: 24px;
  letter-spacing: -0.8px;
}

.kpi-card span {
  color: var(--green);
  font-size: 8px;
}

.kpi-card span.down {
  color: var(--amber);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.sim-panel {
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head p {
  margin: 0;
}

.panel-head h2 {
  font-size: 12px;
}

.panel-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.panel-tag {
  padding: 3px 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent);
  font-size: 7.5px;
}

.panel-tag.violet {
  background: #f1edff;
  color: #7650d8;
}

.sales-chart {
  height: 218px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  padding: 25px 18px 18px;
}

.chart-column {
  height: 100%;
  display: flex;
  align-items: flex-end;
  flex: 1;
  gap: 3px;
}

.chart-column i {
  width: 50%;
  min-height: 5px;
  border-radius: 5px 5px 2px 2px;
  background: color-mix(in srgb, var(--accent) 22%, #edf0f5);
}

.chart-column i:last-child {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff));
}

.chart-column span {
  position: absolute;
}

.task-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.task-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfe;
}

.task-row > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 11%, #fff);
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
}

.task-row b,
.task-row small {
  display: block;
}

.task-row b {
  font-size: 9.5px;
}

.task-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7.5px;
}

.task-row i {
  padding: 2px 6px;
  border-radius: 99px;
  background: #eef9f3;
  color: var(--green);
  font-size: 7px;
  font-style: normal;
}

.task-row:nth-child(3) i {
  background: #fff7e9;
  color: var(--amber);
}

.order-panel {
  overflow: hidden;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 8.5px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 15px;
  border-bottom: 1px solid #f0f2f6;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #fbfcfe;
  color: var(--muted);
  font-size: 7.7px;
  font-weight: 600;
}

td {
  color: #4f5c70;
  font-size: 8.7px;
}

td b {
  color: var(--ink);
}

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

.order-status {
  padding: 3px 7px;
  border-radius: 99px;
  background: #eef9f3;
  color: var(--green);
  font-size: 7.5px;
}

.order-status.pending {
  background: #fff7e9;
  color: var(--amber);
}

.auth-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 24, 42, 0.48);
  backdrop-filter: blur(7px);
}

.auth-gate[hidden] {
  display: none;
}

.auth-gate > section {
  width: min(430px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(14, 27, 52, 0.24);
  text-align: center;
}

.auth-gate-lock {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.auth-gate small {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.auth-gate h2 {
  margin: 8px 0 9px;
  font-size: 22px;
}

.auth-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.gate-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 22px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .sim-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sim-content {
    padding-right: 16px;
    padding-left: 16px;
  }

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

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

@media (max-width: 760px) {
  .sim-shell {
    display: block;
  }

  .sim-sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

  .sim-brand {
    padding-bottom: 12px;
  }

  .store-card {
    margin: 12px 0;
  }

  .sim-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-caption {
    display: none;
  }

  .sim-nav button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .learning-card {
    margin-top: 11px;
  }

  .sim-topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .top-actions {
    width: 100%;
  }

  .sim-search {
    flex: 1;
    width: auto;
  }

  .sim-user {
    display: none;
  }

  .sim-content {
    padding: 12px 12px 24px;
  }

  .environment-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .environment-strip p {
    flex-basis: 100%;
  }

  .content-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-heading h1 {
    font-size: 21px;
  }

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