:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #162033;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --blue: #1f6feb;
  --blue-dark: #1557c0;
  --blue-soft: #eff6ff;
  --green: #17965f;
  --green-soft: #e8f8ef;
  --amber: #c47b0a;
  --amber-soft: #fff4d8;
  --red: #d23b3b;
  --red-soft: #feeceb;
  --nav: #0c1b2d;
  --nav-soft: #132944;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  --focus: 0 0 0 3px rgba(31, 111, 235, 0.16);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

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

.sidebar-collapsed .app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .brand {
  justify-content: center;
  min-height: 14px;
  padding: 7px 8px;
}

body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .brand-copy,
body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .brand-tools,
body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .primary-nav-item > span,
body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .primary-nav-item > svg:last-child,
body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .secondary-nav,
body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .collapse-button span {
  display: none;
}

body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .brand-main {
  justify-content: center;
  gap: 0;
}

body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .primary-nav {
  padding: 14px 8px;
}

body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .primary-nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: 0;
}

body.sidebar-collapsed:not(.sidebar-hover):not(:has(.sidebar:hover)) .collapse-button {
  justify-content: center;
  padding: 0;
}

.sidebar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 220px;
  min-height: 0;
  background: linear-gradient(180deg, var(--nav), #081421);
  color: #d7e3f4;
  transition: width 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-collapsed .sidebar {
  width: 72px;
}

.sidebar-collapsed.sidebar-hover .sidebar,
body.sidebar-collapsed .sidebar:hover {
  width: 220px;
  box-shadow: 18px 0 42px rgba(8, 20, 33, 0.24);
}

.brand {
  display: grid;
  align-content: center;
  min-height: 96px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #1f6feb;
  color: #fff;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: #8aa4c2;
  font-size: 12px;
}

.brand-tools {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.brand-search {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #eef6ff;
}

.brand-tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-notification {
  flex: 0 0 38px;
  width: 38px;
  min-height: 38px;
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #eef6ff;
}

.brand-user-button {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  justify-content: flex-start;
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #eef6ff;
  padding: 0 9px;
}

.brand-search:hover,
.brand-notification:hover,
.brand-user-button:hover {
  border-color: rgba(191, 219, 254, 0.62);
  background: rgba(255, 255, 255, 0.14);
}

.brand-user-button strong,
.brand-user-button small {
  min-width: 0;
}

.brand-user-button small {
  color: #9fb5cf;
}

.primary-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 8px;
}

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

.primary-nav-item,
.secondary-nav-item,
.collapse-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.primary-nav-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 12px;
  color: #cbd8e8;
  font-weight: 650;
}

.primary-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.primary-nav-item.active {
  background: linear-gradient(135deg, #1f6feb, #1557c0);
  color: #fff;
}

.secondary-nav {
  display: grid;
  gap: 2px;
  padding: 7px 0 8px;
}

.secondary-nav-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0 12px 0 28px;
  color: #b4c8df;
}

.secondary-nav-item span {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.secondary-nav-item.active {
  background: var(--nav-soft);
  color: #fff;
  font-weight: 700;
}

.secondary-nav-item.active span {
  border-color: var(--blue);
  background: var(--blue);
}

.sidebar-foot {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.collapse-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border-radius: var(--radius);
  padding: 0 10px;
  color: #a9bfd8;
}

.collapse-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main-shell {
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.topbar {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 22px;
}

.topbar-spacer {
  flex: 1;
}

.workspace-tabs {
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.96);
  padding: 6px 22px 0;
}

.workspace-tabs-track {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  height: 36px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.workspace-tab {
  display: inline-flex;
  align-items: center;
  min-width: 112px;
  max-width: 210px;
  height: 32px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 7px 7px 0 0;
  background: #eef2f7;
  color: var(--muted);
  flex: 0 0 auto;
  overflow: hidden;
}

.workspace-tab.active {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  border-bottom-color: var(--surface);
  box-shadow: 0 -1px 8px rgba(15, 23, 42, 0.04);
}

.workspace-tab-main,
.workspace-tab-close {
  border: 0;
  background: transparent;
  color: inherit;
}

.workspace-tab-main {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 10px;
  font-weight: 600;
}

.workspace-tab-main span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 100%;
  color: var(--subtle);
  flex: 0 0 auto;
}

.workspace-tab-close:hover {
  color: var(--red);
  background: var(--red-soft);
}

.workspace-tab-main:focus-visible,
.workspace-tab-close:focus-visible {
  outline: none;
  box-shadow: inset var(--focus);
}

.content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px 26px 32px;
}

body:not(.login-page-active) .content {
  padding-top: 14px;
}

.login-page-active .app-shell {
  display: block;
  min-height: 100vh;
  height: 100vh;
}

.login-page-active .sidebar,
.login-page-active .topbar,
.login-page-active .workspace-tabs {
  display: none;
}

.login-page-active .main-shell {
  display: block;
  height: 100vh;
}

.login-page-active .content {
  display: grid;
  min-height: 100vh;
  padding: 0;
  overflow: auto;
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(420px, 520px);
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(115deg, #fbf7ec 0%, #f7fbf7 58%, #ffffff 100%);
}

.login-visual-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: clamp(24px, 4vh, 42px);
  min-width: 0;
  padding: clamp(42px, 5.2vw, 76px);
  color: #0b3f36;
  overflow: hidden;
}

.login-visual-panel::before {
  position: absolute;
  left: -12%;
  right: -5%;
  bottom: -14%;
  height: 46%;
  border-top: 1px solid rgba(210, 166, 73, 0.32);
  background:
    linear-gradient(150deg, transparent 0 19%, rgba(15, 94, 77, 0.18) 20% 28%, rgba(255, 255, 255, 0.36) 29% 31%, rgba(213, 164, 72, 0.24) 32% 36%, transparent 37%),
    linear-gradient(172deg, rgba(2, 82, 67, 0.14), rgba(255, 255, 255, 0.5) 46%, transparent 72%);
  content: "";
  transform: skewY(-7deg);
  transform-origin: left top;
}

.login-visual-panel::after {
  position: absolute;
  right: clamp(36px, 8vw, 136px);
  bottom: 18%;
  width: 210px;
  height: 128px;
  border: 1px solid rgba(13, 86, 70, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(to top, rgba(13, 86, 70, 0.15) 0 54%, transparent 54%) 18px 40px / 28px 88px,
    linear-gradient(to top, rgba(13, 86, 70, 0.11) 0 72%, transparent 72%) 66px 18px / 34px 110px,
    linear-gradient(to top, rgba(13, 86, 70, 0.10) 0 45%, transparent 45%) 122px 56px / 30px 72px,
    linear-gradient(to top, rgba(13, 86, 70, 0.12) 0 64%, transparent 64%) 166px 30px / 32px 98px;
  background-repeat: no-repeat;
  opacity: 0.58;
  content: "";
}

.login-access-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  border-left: 1px solid rgba(181, 158, 112, 0.24);
  background: rgba(255, 255, 255, 0.86);
  padding: clamp(28px, 4vw, 64px);
}

.login-brand-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 95, 75, 0.22);
  background: linear-gradient(145deg, #087058, #073f35);
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 78, 62, 0.18);
}

.login-brand-mark svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.4;
}

.login-brand-panel strong {
  display: block;
  color: #082f29;
  font-size: 22px;
  font-weight: 860;
  line-height: 1.1;
}

.login-brand-panel span {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 720;
}

.login-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.login-hero-copy > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-bottom: 2px solid rgba(213, 164, 72, 0.46);
  color: #8b6f37;
  font-size: 17px;
  font-weight: 760;
}

.login-hero-copy h1 {
  margin-top: 22px;
  color: #073d34;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-chain-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.login-chain-grid article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 92px;
  border: 1px solid rgba(14, 83, 69, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  padding: 14px;
  box-shadow: 0 18px 42px rgba(32, 55, 48, 0.07);
  backdrop-filter: blur(16px);
}

.login-chain-grid article > span {
  grid-row: span 2;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #0a745c, #063f35);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 88, 70, 0.18);
}

.login-chain-grid article > span svg {
  width: 23px;
  height: 23px;
}

.login-chain-grid strong {
  color: #10262c;
  font-size: 16px;
  font-weight: 840;
}

.login-chain-grid small {
  color: #8b6f37;
  font-size: 13px;
  font-weight: 720;
}

.login-route-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  min-height: 300px;
  margin-top: 8px;
  border: 1px solid rgba(14, 83, 69, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(238, 246, 242, 0.74)),
    linear-gradient(155deg, transparent 0 39%, rgba(10, 101, 81, 0.25) 40% 46%, rgba(255, 255, 255, 0.58) 47% 49%, rgba(213, 164, 72, 0.35) 50% 53%, transparent 54%);
  box-shadow: 0 24px 64px rgba(24, 58, 52, 0.09);
  overflow: hidden;
}

.route-node,
.route-truck {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(14, 83, 69, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0b4f42;
  box-shadow: 0 14px 32px rgba(17, 48, 42, 0.1);
  backdrop-filter: blur(14px);
}

.route-node {
  min-height: 38px;
  padding: 0 13px;
  font-weight: 760;
}

.route-node svg {
  color: #d5a448;
}

.node-order {
  left: 10%;
  bottom: 34%;
}

.node-stock {
  left: 34%;
  bottom: 16%;
}

.node-delivery {
  right: 25%;
  top: 26%;
}

.node-finance {
  right: 9%;
  bottom: 28%;
}

.route-truck {
  left: 48%;
  top: 46%;
  width: 86px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 239, 226, 0.88));
}

.route-truck svg {
  width: 36px;
  height: 36px;
  color: #075443;
  stroke-width: 1.7;
}

.login-card {
  display: grid;
  width: min(440px, 100%);
  justify-self: center;
  gap: 18px;
  margin: 0;
  border: 1px solid rgba(16, 55, 49, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 44px;
  box-shadow: 0 34px 90px rgba(31, 58, 48, 0.12);
}

.login-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.login-card-head strong {
  color: #10262c;
  font-size: 27px;
  font-weight: 860;
  line-height: 1.18;
}

.login-card-head span {
  color: #667085;
  font-weight: 650;
}

.login-card-head .login-error-text {
  color: var(--red);
}

.login-field {
  gap: 9px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap > svg {
  position: absolute;
  left: 16px;
  z-index: 1;
  width: 19px;
  height: 19px;
  color: #7b8b83;
  pointer-events: none;
}

.login-input-wrap input {
  min-height: 54px;
  border-color: rgba(142, 160, 150, 0.58);
  border-radius: 6px;
  background: rgba(251, 253, 251, 0.92);
  padding-left: 48px;
  font-size: 15px;
}

.login-input-wrap.has-toggle input {
  padding-right: 54px;
}

.login-input-wrap:focus-within > svg {
  color: #087058;
}

.login-input-wrap:focus-within input {
  border-color: #087058;
  box-shadow: 0 0 0 3px rgba(0, 122, 97, 0.10);
}

.login-password-toggle {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7b8b83;
}

.login-password-toggle:hover {
  background: rgba(0, 122, 97, 0.08);
  color: #087058;
}

.login-password-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.primary-button.login-submit {
  width: 100%;
  justify-content: center;
  min-height: 54px;
  margin-top: 8px;
  border-color: #075443;
  border-radius: 6px;
  background: linear-gradient(180deg, #087058, #075443);
  box-shadow: 0 18px 34px rgba(0, 88, 70, 0.22);
  font-size: 17px;
  font-weight: 850;
}

.primary-button.login-submit:hover {
  background: #06463a;
}

.login-footnote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  color: #54666e;
  font-size: 13px;
  font-weight: 700;
}

.login-footnote svg {
  width: 17px;
  height: 17px;
  color: #087058;
}

.login-submit .lucide-loader-circle {
  animation: spin 0.9s linear infinite;
}

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

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

  .login-visual-panel {
    min-height: 56vh;
    padding: 34px 28px 42px;
  }

  .login-access-panel {
    border-top: 1px solid rgba(181, 158, 112, 0.24);
    border-left: 0;
    padding: 28px;
  }

  .login-route-card {
    min-height: 230px;
  }
}

.login-screen {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 100vh;
  overflow: auto;
  background: #eef2f4;
  padding: clamp(22px, 4vw, 42px);
}

.login-stage {
  display: grid;
  width: min(1040px, 100%);
  gap: 18px;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1d2932;
}

.login-brand-row .login-brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(20, 121, 92, 0.22);
  border-radius: 8px;
  background: #14795c;
  color: #fff;
  box-shadow: none;
}

.login-brand-row .login-brand-mark svg {
  width: 23px;
  height: 23px;
}

.login-brand-row strong {
  display: block;
  color: #19343b;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.login-brand-row span {
  display: block;
  margin-top: 3px;
  color: #6d7c86;
  font-size: 12px;
  font-weight: 700;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: stretch;
  gap: 16px;
}

.login-card {
  display: grid;
  align-content: start;
  width: auto;
  gap: 12px;
  justify-self: stretch;
  margin: 0;
  border: 1px solid #dce4e7;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 10px 22px rgba(17, 24, 39, 0.045);
}

.login-card h2 {
  margin: 0;
  color: #1d2932;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.25;
}

.login-card p {
  margin: 0 0 4px;
  color: #6d7c86;
  font-size: 13px;
  line-height: 1.7;
}

.login-card .login-error-text {
  color: var(--red);
}

.login-card .field {
  display: grid;
  gap: 7px;
}

.login-card .field span {
  color: #31414a;
  font-size: 13px;
  font-weight: 700;
}

.login-card input {
  min-height: 40px;
  border-color: #c7d1d6;
  border-radius: 7px;
  background: #fff;
  padding: 8px 11px;
}

.login-card input:focus {
  border-color: #14795c;
  box-shadow: 0 0 0 3px rgba(20, 121, 92, 0.13);
}

.primary-button.login-submit {
  width: auto;
  min-height: 38px;
  margin-top: 2px;
  border-color: #14795c;
  border-radius: 7px;
  background: #14795c;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 780;
}

.primary-button.login-submit:hover {
  border-color: #0b604c;
  background: #0b604c;
}

.login-rule-list {
  display: grid;
  gap: 9px;
}

.login-rule-list div {
  padding: 11px;
  border: 1px solid #dce4e7;
  border-radius: 8px;
  background: #f6f8f9;
}

.login-rule-list b,
.login-rule-list span {
  display: block;
}

.login-rule-list b {
  color: #1d2932;
  font-size: 13px;
  font-weight: 780;
}

.login-rule-list span {
  margin-top: 5px;
  color: #6d7c86;
  font-size: 12px;
  line-height: 1.55;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 0;
  gap: 16px;
  margin-bottom: 16px;
}

body:not(.login-page-active) .page-head {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 6px;
  border: 0;
  background: transparent;
  padding: 0;
}

body:not(.login-page-active) .page-head > div:first-child {
  display: none;
}

.compact-page-head {
  margin-bottom: 10px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 760;
}

.page-desc {
  max-width: 760px;
  margin-top: 4px;
  color: #344054;
  font-weight: 650;
  line-height: 1.45;
}

body:not(.login-page-active) .page-desc,
body:not(.login-page-active) .source-note,
body:not(.login-page-active) .report-source-card small,
body:not(.login-page-active) .section-title p,
body:not(.login-page-active) .config-table-head p,
body:not(.login-page-active) .quick-action em,
body:not(.login-page-active) .profile-note,
body:not(.login-page-active) .connection-panel p,
body:not(.login-page-active) .modal-subsection-head p,
body:not(.login-page-active) .field > small {
  display: none;
}

h2 {
  font-size: 17px;
  font-weight: 760;
}

h3 {
  font-size: 15px;
  font-weight: 760;
}

.head-actions,
.row-actions,
.pager,
.read-chips,
.modal-foot {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.login-page-active) .head-actions {
  width: auto;
  max-width: 100%;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

body:not(.login-page-active) .head-actions .primary-button,
body:not(.login-page-active) .head-actions .secondary-button {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 9px;
  gap: 5px;
  font-size: 13px;
  line-height: 1;
}

body:not(.login-page-active) .head-actions .secondary-button {
  border-color: #d8e0ec;
  background: rgba(255, 255, 255, 0.86);
  color: #1f2937;
}

body:not(.login-page-active) .head-actions .primary-button {
  box-shadow: 0 5px 12px rgba(31, 111, 235, 0.14);
}

body:not(.login-page-active) .head-actions .primary-button svg,
body:not(.login-page-active) .head-actions .secondary-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.25;
}

.primary-button,
.secondary-button,
.ghost-action,
.icon-button,
.user-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 12px;
  font-weight: 680;
  white-space: nowrap;
}

.primary-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-action:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.danger-button {
  border-color: #f4b3b0;
  color: var(--red);
}

.secondary-button.danger-button:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.danger-solid,
.danger-solid:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.secondary-button:hover,
.ghost-action:hover,
.icon-button:hover,
.user-button:hover {
  border-color: #b8c7dc;
  background: var(--surface-soft);
}

.icon-button {
  width: 36px;
  padding: 0;
}

.icon-button.small {
  width: 32px;
  min-height: 32px;
}

.notification {
  position: relative;
}

.notification span {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

.notification span[hidden] {
  display: none;
}

.user-button span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #2d6cdf;
  color: #fff;
  font-size: 12px;
}

.user-button strong {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 720;
}

.user-button small {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.brand .brand-tools {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.brand .brand-search {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: #edf5ff;
}

.brand .brand-search svg,
.brand .brand-notification svg,
.brand .brand-user-button svg {
  color: #d9e7f7;
}

.brand .brand-tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand .brand-notification {
  flex: 0 0 38px;
  width: 38px;
  min-height: 38px;
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: #edf5ff;
}

.brand .brand-user-button {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  justify-content: flex-start;
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: #edf5ff;
  padding: 0 9px;
}

.brand .brand-search:hover,
.brand .brand-notification:hover,
.brand .brand-user-button:hover {
  border-color: rgba(191, 219, 254, 0.64);
  background: rgba(255, 255, 255, 0.15);
}

.brand .brand-user-button span {
  flex: 0 0 auto;
}

.brand .brand-user-button strong,
.brand .brand-user-button small {
  min-width: 0;
}

.brand .brand-user-button strong {
  max-width: 74px;
}

.brand .brand-user-button small {
  display: none;
}

.filter-panel,
.table-card,
.config-tabs,
.batch-bar,
.approval-metrics {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(138px, 1fr)) auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
  padding: 10px 12px;
}

body:not(.login-page-active) .filter-panel {
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 10px;
}

body:not(.login-page-active) .filter-panel .search-field,
body:not(.login-page-active) .filter-panel .filter-control {
  gap: 0;
  min-width: 0;
}

body:not(.login-page-active) .filter-panel input,
body:not(.login-page-active) .filter-panel select {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

body:not(.login-page-active) .filter-panel .inline-filter-control select {
  color: #1d2939;
  font-weight: 650;
}

.inline-filter-control span {
  display: none;
}

.customer-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(96px, 0.56fr)) minmax(392px, auto);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 10px;
}

.customer-filter-panel .search-field {
  min-width: 210px;
}

.customer-filter-panel .filter-control {
  min-width: 92px;
}

.customer-filter-panel .search-field,
.customer-filter-panel .filter-control {
  gap: 0;
}

.customer-filter-panel input,
.customer-filter-panel select {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.customer-filter-panel .customer-inline-select select,
.customer-tag-filter-panel .customer-inline-select select {
  color: #1d2939;
  font-weight: 650;
}

.customer-filter-panel .customer-inline-select select:has(option[value=""]:checked) {
  color: #667085;
}

.customer-tag-filter-panel {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) repeat(2, minmax(112px, 0.5fr)) minmax(560px, auto);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 10px;
}

.customer-tag-filter-panel .search-field,
.customer-tag-filter-panel .filter-control {
  gap: 0;
  min-width: 0;
}

.customer-tag-filter-panel input,
.customer-tag-filter-panel select {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.customer-filter-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
  min-width: 0;
  width: 100%;
}

.customer-tag-filter-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
  min-width: 0;
  width: 100%;
}

.customer-filter-actions .primary-button,
.customer-filter-actions .secondary-button,
.customer-tag-filter-actions .primary-button,
.customer-tag-filter-actions .secondary-button {
  min-height: 34px;
  padding: 0 10px;
}

.filter-action-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 24px;
  background: var(--line);
}

.batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.batch-summary,
.batch-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.batch-summary {
  color: #344054;
}

.batch-summary svg {
  color: var(--blue);
}

.batch-summary span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.finance-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.metric-card {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 72px;
  border-radius: var(--radius);
  padding: 11px 14px;
  background: #fbfcfe;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.metric-card strong {
  font-size: 23px;
  line-height: 1;
}

.metric-card.good {
  border-left: 3px solid var(--green);
}

.metric-card.warning {
  border-left: 3px solid var(--amber);
}

.metric-card.danger {
  border-left: 3px solid var(--red);
}

.metric-card.blue {
  border-left: 3px solid var(--blue);
}

.metric-card.neutral {
  border-left: 3px solid var(--line-strong);
}

.metric-card.metric-button {
  width: 100%;
  border: 0;
  border-left: 3px solid var(--line-strong);
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.metric-card.metric-button.good {
  border-left-color: var(--green);
}

.metric-card.metric-button.warning {
  border-left-color: var(--amber);
}

.metric-card.metric-button.danger {
  border-left-color: var(--red);
}

.metric-card.metric-button.blue {
  border-left-color: var(--blue);
}

.metric-card.metric-button:hover,
.metric-card.metric-button.active {
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.metric-card.metric-button.active {
  outline: 2px solid rgba(37, 99, 235, 0.16);
  outline-offset: 1px;
}

.workbench-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.report-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.report-source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 14px;
}

.report-source-card.good {
  border-left-color: var(--green);
}

.report-source-card.warning {
  border-left-color: var(--amber);
}

.report-source-card.blue {
  border-left-color: var(--blue);
}

.report-source-card strong {
  display: block;
  margin-bottom: 4px;
}

.report-source-card > div {
  min-width: 0;
}

.report-source-card span,
.report-source-card p,
.report-source-card small {
  color: var(--muted);
  line-height: 1.45;
}

body:not(.login-page-active) .report-source-card span,
body:not(.login-page-active) .report-source-card p {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-filter-panel {
  grid-template-columns: minmax(220px, 1.35fr) repeat(7, minmax(86px, 0.56fr)) auto;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
}

.section-title > div {
  min-width: 0;
}

.section-title h2 {
  line-height: 1.25;
}

.section-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.section-title .secondary-button,
.section-title .primary-button {
  flex: 0 0 auto;
}

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

.report-mini-table {
  min-width: 720px;
}

.report-table {
  min-width: 1180px;
}

.report-detail-table {
  min-width: 980px;
}

.order-filter-panel {
  grid-template-columns: minmax(220px, 1.35fr) repeat(7, minmax(86px, 0.56fr)) auto;
}

.inventory-filter-panel {
  grid-template-columns: minmax(220px, 1.35fr) repeat(6, minmax(94px, 0.62fr)) auto;
}

.finance-filter-panel {
  grid-template-columns: minmax(220px, 1.35fr) repeat(5, minmax(100px, 0.66fr)) auto;
}

.inventory-table {
  min-width: 1240px;
}

.inventory-grid {
  align-items: start;
}

.finance-table {
  min-width: 1280px;
}

.finance-balance-table {
  min-width: 1360px;
}

.finance-ledger-table {
  min-width: 1320px;
}

.finance-grid {
  align-items: start;
}

.order-table {
  min-width: 1320px;
}

.order-audit-table {
  min-width: 1520px;
}

.order-workbench-grid {
  align-items: start;
}

.order-inline-warning {
  margin-bottom: 14px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background: #fff7ed;
  color: #9a3412;
  padding: 10px 12px;
  font-weight: 650;
}

.order-detail-grid {
  margin-bottom: 18px;
}

.order-modal-section {
  margin-top: 18px;
}

.order-modal-table {
  min-width: 760px;
}

.order-modal-table th:last-child,
.order-modal-table td:last-child {
  position: static;
  min-width: auto;
  background: inherit;
  box-shadow: none;
}

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

.order-timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.order-timeline-item > span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
}

.order-timeline-item div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

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

.order-timeline-item p,
.order-timeline-item small {
  color: var(--muted);
  line-height: 1.45;
}

.report-rate {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 124px;
}

.report-rate span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.report-rate i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.report-rate strong {
  color: #344054;
  font-size: 13px;
}

.setup-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.setup-wizard-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-wizard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 18px;
  overflow: hidden;
}

.setup-wizard-card.full {
  margin-bottom: 0;
}

.setup-wizard-list {
  display: grid;
  gap: 0;
  padding: 0 16px 16px;
}

.setup-wizard-list.compact {
  padding-top: 0;
}

.setup-wizard-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 120px auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.setup-wizard-row:first-child {
  border-top: 0;
}

.setup-wizard-row strong {
  font-weight: 780;
}

.setup-wizard-row p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.setup-wizard-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.setup-wizard-row.missing em,
.setup-wizard-row.warning em {
  color: var(--text);
}

.workbench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.workbench-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  text-align: left;
}

.workbench-card:hover {
  border-color: #b8c7dc;
  background: #fbfdff;
}

.workbench-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.workbench-card strong {
  font-size: 16px;
}

.workbench-card em,
.workbench-card small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.dependency-list {
  display: grid;
  padding: 8px 18px 18px;
}

.dependency-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.dependency-row:last-child {
  border-bottom: 0;
}

.dependency-row span {
  color: var(--muted);
}

.change-log-card {
  margin-top: 18px;
}

.data-table.change-log-table {
  min-width: 0;
  table-layout: fixed;
}

.data-table.change-log-table th:last-child,
.data-table.change-log-table td:last-child {
  position: static;
  min-width: auto;
  box-shadow: none;
}

.data-table.change-log-table th,
.data-table.change-log-table td {
  white-space: normal;
}

.data-table.change-log-table th:nth-child(1),
.data-table.change-log-table td:nth-child(1) {
  width: 136px;
}

.data-table.change-log-table th:nth-child(5),
.data-table.change-log-table td:nth-child(5) {
  width: 74px;
}

.data-table.change-log-table td:nth-child(3),
.data-table.change-log-table td:nth-child(4) {
  white-space: normal;
}

.search-field,
.filter-control,
.field {
  display: grid;
  gap: 7px;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--subtle);
  transform: translateY(-50%);
}

.search-field input {
  padding-left: 36px;
}

.filter-control span,
.field span,
.field legend {
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

.field b {
  margin-left: 3px;
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 7px 10px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.table-card {
  overflow: hidden;
}

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

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

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th {
  background: #fbfcfe;
  color: #475467;
  font-size: 13px;
  font-weight: 760;
}

.data-table td {
  color: #26334d;
}

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

.data-table th:last-child,
.data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  min-width: 148px;
  background: #fff;
  box-shadow: -10px 0 16px rgba(15, 23, 42, 0.06);
}

.data-table th:last-child {
  z-index: 2;
  background: #fbfcfe;
}

.data-table tbody tr:hover td:last-child {
  background: #f8fbff;
}

.check-cell {
  width: 44px;
  padding-right: 8px !important;
  text-align: center !important;
}

.check-cell input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.approval-table {
  min-width: 1240px;
}

.approval-summary-grid {
  margin-bottom: 18px;
}

.approval-compare-section {
  display: grid;
  gap: 12px;
}

.approval-compare-table {
  min-width: 760px;
}

.approval-compare-table td {
  white-space: normal;
}

.approval-compare-table th:last-child,
.approval-compare-table td:last-child {
  position: static;
  min-width: auto;
  background: inherit;
  box-shadow: none;
}

.approval-compare-table td:first-child {
  width: 150px;
  color: var(--muted);
  font-weight: 720;
}

.approval-compare-table .compare-changed td {
  background: #fff7ed;
}

.approval-compare-table .compare-changed td:last-child {
  color: #9a3412;
  font-weight: 760;
}

.product-table {
  min-width: 1280px;
}

.product-price-table {
  min-width: 1180px;
}

.product-rule-table {
  min-width: 1040px;
}

.product-filter-panel {
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(110px, 0.58fr)) auto auto;
}

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

.customer-tag-table {
  min-width: 1320px;
}

.tag-dictionary-card,
.archive-support-grid {
  margin-top: 18px;
}

.tag-dictionary-table {
  min-width: 980px;
}

.archive-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.compact-support-table {
  min-width: 680px;
}

.compact-support-table th:last-child,
.compact-support-table td:last-child {
  min-width: 104px;
}

.product-name-cell {
  display: grid;
  gap: 4px;
}

.product-name-cell span,
.muted-mini {
  color: var(--muted);
  font-size: 12px;
}

.empty-cell {
  height: 180px;
  color: var(--muted);
  text-align: center !important;
}

.row-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0 3px;
  font-weight: 680;
  line-height: 1;
}

.row-actions button:hover {
  text-decoration: underline;
}

.row-actions .danger {
  color: var(--red);
}

.row-actions .enable {
  color: var(--green);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 760;
}

.chip.good {
  background: var(--green-soft);
  color: var(--green);
}

.chip.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.chip.danger {
  background: var(--red-soft);
  color: var(--red);
}

.chip.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.chip.neutral {
  background: #f2f4f7;
  color: #667085;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 0 18px;
  color: var(--muted);
}

.source-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.pager strong {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
}

.pager select {
  min-height: 32px;
  width: 100px;
}

.config-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.customer-config-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 7px 10px;
}

.config-tab-strip {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.config-tab-strip::-webkit-scrollbar {
  display: none;
}

.config-tabs > button,
.config-tab-strip > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  padding: 0 14px;
  color: #475467;
  font-weight: 700;
  white-space: nowrap;
}

.config-tabs > button:hover,
.config-tab-strip > button:hover {
  background: var(--surface-soft);
}

.config-tabs > button.active,
.config-tab-strip > button.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.config-tabs > button b,
.config-tab-strip > button b {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.customer-config-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.customer-config-actions .primary-button,
.customer-config-actions .secondary-button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.config-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.config-table-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.config-table {
  min-width: 980px;
}

.setup-table {
  min-width: 1120px;
}

.note-cell {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.modal {
  width: min(760px, calc(100vw - 48px));
  max-height: min(880px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal.small {
  width: min(620px, calc(100vw - 48px));
}

.modal.medium {
  width: min(840px, calc(100vw - 48px));
}

.modal.large {
  width: min(980px, calc(100vw - 48px));
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.modal-head h2 {
  font-size: 18px;
}

.modal-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 18px;
}

.modal-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  background: #fbfcfe;
}

.edit-form {
  display: grid;
  gap: 16px;
}

.form-section {
  display: grid;
  gap: 11px;
}

.form-section h3 {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

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

.field.wide {
  grid-column: 1 / -1;
}

.select-line,
.input-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.input-with-suffix em {
  color: var(--muted);
  font-style: normal;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.product-source {
  background: var(--green-soft);
  color: var(--green);
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

.readonly-field {
  align-content: start;
  min-height: 65px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 10px 11px;
}

.readonly-field strong {
  font-weight: 720;
}

.radio-field {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.radio-field legend {
  display: block;
  margin-bottom: 9px;
}

.radio-field label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 18px;
  color: #344054;
}

.radio-field input {
  width: auto;
  min-height: auto;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px 14px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.checkbox-grid legend {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #344054;
}

.checkbox-grid input {
  width: auto;
  min-height: auto;
}

.multi-check-field {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.multi-check-field legend {
  display: block;
  margin-bottom: 9px;
}

.multi-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.multi-check-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
  color: #26334d;
  font-size: 13px;
  font-weight: 620;
}

.multi-check-option input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.multi-check-option:has(input:checked) {
  border-color: rgba(31, 111, 235, 0.45);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.multi-check-option.stale {
  border-color: rgba(210, 59, 59, 0.35);
  background: var(--red-soft);
  color: #9f2d2d;
}

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

.detail-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 10px 11px;
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
}

.detail-item strong {
  font-weight: 720;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.notification-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 12px;
}

.notification-item > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.notification-item.warning > span {
  background: var(--amber-soft);
  color: var(--amber);
}

.notification-item.danger > span {
  background: var(--red-soft);
  color: var(--red);
}

.notification-item strong {
  font-weight: 760;
}

.notification-item p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 650;
}

.user-menu-profile {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 14px;
}

.user-menu-profile > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: #2d6cdf;
  color: #fff;
  font-weight: 760;
}

.user-menu-profile p {
  margin-top: 5px;
  color: var(--muted);
}

.connection-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 14px;
}

.connection-panel strong {
  font-weight: 760;
}

.connection-panel p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.connection-state {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.connection-state span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.connection-state em {
  max-width: 320px;
  color: var(--red);
  font-style: normal;
  line-height: 1.45;
}

.login-connection-panel {
  margin-top: 16px;
}

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

.quick-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  text-align: left;
}

.quick-action:hover {
  border-color: #b8c7dc;
  background: #fbfdff;
}

.quick-action span {
  display: grid;
  grid-row: span 2;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.quick-action strong {
  font-weight: 760;
}

.quick-action em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.profile-note {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.profile-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.display-filter-panel {
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(106px, 0.62fr)) auto;
}

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

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

.display-table,
.display-task-table,
.display-photo-table,
.display-fee-table,
.display-settlement-table,
.display-report-table,
.display-settings-table {
  min-width: 1180px;
}

.progress-cell {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.progress-cell span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.progress-cell i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.progress-cell b {
  color: #344054;
  font-size: 12px;
  text-align: right;
}

.settings-landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.settings-landing-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  text-align: left;
}

.settings-landing-card:hover {
  border-color: #b8c7dc;
  background: #fbfdff;
}

.settings-landing-card span {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.settings-landing-card strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-weight: 760;
  white-space: nowrap;
}

.settings-landing-card em {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.settings-landing-card b {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.permission-matrix-card {
  margin-bottom: 18px;
}

.permission-matrix-table {
  min-width: 1040px;
}

.permission-matrix-table td {
  vertical-align: top;
}

.permission-matrix-table td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
  white-space: normal;
}

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

.read-source {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 12px;
}

.read-source > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.transfer-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 12px;
}

.transfer-summary span {
  color: var(--muted);
  line-height: 1.45;
}

.import-issues {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid #f4b3b0;
  border-radius: var(--radius);
  background: var(--red-soft);
  padding: 12px;
  color: #7a2b2b;
}

.import-issues strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #912323;
}

.import-issues p {
  line-height: 1.45;
}

.import-issues ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.import-issues li {
  line-height: 1.45;
}

.modal-table-wrap {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-height: min(330px, 46vh);
  overflow: auto;
}

.modal-search-field {
  margin-bottom: 16px;
}

.health-table,
.search-table {
  min-width: 760px;
}

.health-table .note-cell {
  max-width: 260px;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.modal-price-table {
  min-width: 760px;
}

.customer-price-table {
  min-width: 1120px;
}

.customer-price-table th:first-child,
.customer-price-table td:first-child {
  min-width: 190px;
}

.customer-price-table th:nth-child(6),
.customer-price-table td:nth-child(6) {
  min-width: 180px;
}

.price-history-table {
  min-width: 860px;
}

.product-conversion-table {
  min-width: 760px;
}

.product-rule-lines-table {
  min-width: 920px;
}

.tag-condition-table {
  min-width: 1120px;
}

.tag-scope-grid {
  display: grid;
  grid-template-columns: minmax(100px, 0.85fr) minmax(140px, 1fr);
  gap: 8px;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
}

.modal-price-table th,
.modal-price-table td {
  padding: 10px 12px;
}

.modal .data-table th,
.modal .data-table td {
  padding: 10px 12px;
}

.modal .data-table th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.modal .data-table th:last-child {
  z-index: 4;
}

.modal .empty-cell {
  height: 96px;
}

.modal .field {
  gap: 6px;
}

.modal-price-table input,
.modal-price-table select {
  min-height: 34px;
  padding: 6px 8px;
}

.modal-price-table th:last-child,
.modal-price-table td:last-child {
  position: static;
  min-width: auto;
  box-shadow: none;
}

.modal-reason-field {
  margin-top: 2px;
}

.modal-subsection {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.config-form > .modal-subsection {
  grid-column: 1 / -1;
}

.modal-subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-subsection-head h3 {
  font-size: 15px;
}

.modal-subsection-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.customer-price-wrap {
  margin-bottom: 0;
}

.empty-customer-price {
  height: 72px;
  color: var(--muted) !important;
  text-align: center !important;
}

.danger-confirm {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #f4b3b0;
  border-radius: var(--radius);
  background: var(--red-soft);
  padding: 16px;
}

.danger-confirm svg {
  width: 22px;
  height: 22px;
  color: var(--red);
}

.danger-confirm strong {
  color: #912323;
  font-size: 15px;
}

.danger-confirm p {
  margin-top: 6px;
  color: #7a2b2b;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 80;
  min-width: 160px;
  border-radius: var(--radius);
  background: #101828;
  color: #fff;
  padding: 11px 14px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .content {
    padding: 22px;
  }

  .finance-metric-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
  }

  .finance-metric-grid .metric-card {
    min-height: 68px;
    padding: 10px 12px;
  }

  .finance-metric-grid .metric-card strong {
    font-size: 22px;
    white-space: nowrap;
  }

  .filter-panel {
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(118px, 1fr)) auto;
  }

  .report-filter-panel {
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(118px, 1fr)) auto;
  }

  .inventory-filter-panel {
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(118px, 1fr)) auto;
  }

  .finance-filter-panel {
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(118px, 1fr)) auto;
  }

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

  .archive-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .topbar {
    padding: 0 12px;
  }

  .workspace-tabs {
    padding-left: 12px;
    padding-right: 12px;
  }

  .workspace-tab {
    min-width: 104px;
    max-width: 164px;
  }

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

  .head-actions {
    width: 100%;
  }

  .filter-panel,
  .product-filter-panel,
  .customer-tag-filter-panel,
  .report-filter-panel,
  .inventory-filter-panel,
  .finance-filter-panel,
  .display-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(110px, 0.5fr));
  }

  .customer-filter-panel .search-field {
    grid-column: 1 / -1;
  }

  .customer-filter-panel .filter-control {
    min-width: 0;
  }

  .customer-filter-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

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

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

  .filter-panel .search-field,
  .product-filter-panel .search-field,
  .customer-tag-filter-panel .search-field,
  .report-filter-panel .search-field,
  .inventory-filter-panel .search-field,
  .finance-filter-panel .search-field,
  .display-filter-panel .search-field {
    grid-column: 1 / -1;
  }

  .filter-panel button,
  .product-filter-panel button,
  .customer-tag-filter-panel button,
  .report-filter-panel button,
  .inventory-filter-panel button,
  .finance-filter-panel button,
  .display-filter-panel button {
    width: 100%;
  }

  .customer-filter-actions button {
    width: auto;
  }

  .customer-config-toolbar,
  .customer-tag-filter-panel {
    grid-template-columns: 1fr;
  }

  .config-tab-strip,
  .customer-config-actions,
  .customer-tag-filter-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .customer-config-actions,
  .customer-tag-filter-actions {
    width: 100%;
    margin-left: 0;
  }

  .customer-config-actions button,
  .customer-tag-filter-actions button {
    width: auto;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }
}

@media (max-width: 760px) {
  .login-screen {
    align-items: start;
    padding: 18px;
  }

  .login-stage {
    gap: 14px;
  }

  .login-panel {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 18px;
  }

  .filter-panel,
  .product-filter-panel,
  .customer-tag-filter-panel,
  .report-filter-panel,
  .inventory-filter-panel,
  .finance-filter-panel,
  .display-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-config-toolbar,
  .customer-tag-filter-panel {
    grid-template-columns: 1fr;
  }

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

  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .sidebar {
    width: 72px;
  }

  .brand {
    justify-content: center;
    min-height: 14px;
    padding: 7px 8px;
  }

  .brand-copy,
  .brand-tools,
  .primary-nav-item > span,
  .primary-nav-item > svg:last-child,
  .secondary-nav,
  .collapse-button span {
    display: none;
  }

  .brand-main {
    justify-content: center;
    gap: 0;
  }

  .primary-nav {
    padding: 14px 8px;
  }

  .primary-nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 0;
  }

  .collapse-button {
    justify-content: center;
    padding: 0;
  }

  .content {
    padding: 18px;
  }

  .quick-action-grid,
  .settings-landing-grid,
  .display-grid,
  .detail-grid,
  .connection-panel,
  .config-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .connection-state {
    justify-items: start;
    text-align: left;
  }

  .notification-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .notification-item .row-actions {
    grid-column: 2;
  }
}

body.login-page-active {
  background: #f5fafb;
}

.login-page-active .login-screen {
  position: relative;
  display: block;
  min-height: 100vh;
  padding: 0;
  place-items: initial;
  color: #10262c;
  background:
    radial-gradient(circle at 83% 16%, rgba(104, 164, 213, 0.2), transparent 28%),
    radial-gradient(circle at 44% 88%, rgba(0, 122, 97, 0.1), transparent 34%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.98) 0 32%, rgba(246, 251, 251, 0.94) 54%, rgba(231, 242, 249, 0.92) 100%),
    #f5fafb;
  overflow: hidden;
}

.login-page-active .login-screen::before,
.login-page-active .login-screen::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

.login-page-active .login-screen::before {
  background-image:
    linear-gradient(rgba(20, 78, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 78, 92, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(110deg, transparent 0 43%, #000 55%, transparent 100%);
}

.login-page-active .login-screen::after {
  opacity: 0.36;
  background:
    linear-gradient(to top, rgba(83, 108, 120, 0.25) 0 122px, transparent 122px) calc(100% - 520px) 190px / 48px 210px,
    linear-gradient(to top, rgba(83, 108, 120, 0.2) 0 168px, transparent 168px) calc(100% - 455px) 144px / 56px 260px,
    linear-gradient(to top, rgba(83, 108, 120, 0.18) 0 96px, transparent 96px) calc(100% - 380px) 218px / 44px 190px,
    linear-gradient(to top, rgba(83, 108, 120, 0.17) 0 148px, transparent 148px) calc(100% - 320px) 166px / 58px 250px,
    linear-gradient(to top, rgba(83, 108, 120, 0.14) 0 112px, transparent 112px) calc(100% - 236px) 206px / 50px 205px;
  background-repeat: no-repeat;
}

.login-page-active .old-pc-login-shell {
  --old-ink: #10262c;
  --old-muted: #657783;
  --old-card: rgba(255, 255, 255, 0.72);
  --old-line: rgba(28, 68, 78, 0.13);
  --old-green: #007a61;
  --old-green-dark: #005f4b;
  --old-green-soft: #e7f4f1;
  --old-blue: #6099e8;
  --old-gold: #d5a448;
  --old-red: #b84a43;
  --old-red-soft: #fbe9e7;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(900px, 1fr) 600px;
  gap: 72px;
  width: 100%;
  min-height: 100vh;
  padding: 54px 72px 52px;
}

.login-page-active .old-pc-login-shell button,
.login-page-active .old-pc-login-shell input {
  font: inherit;
}

.login-page-active .old-pc-login-shell button {
  color: inherit;
}

.login-page-active .old-pc-login-shell .dashboard-area {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.login-page-active .old-pc-login-shell .brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.login-page-active .old-pc-login-shell .brand-mark,
.login-page-active .old-pc-login-shell .metric-card > span,
.login-page-active .old-pc-login-shell .process-step > span,
.login-page-active .old-pc-login-shell .trust-bar svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--old-green);
}

.login-page-active .old-pc-login-shell .brand-mark {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0, 101, 80, 0.18);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #0b8369, #075343);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 42px rgba(0, 91, 72, 0.17);
}

.login-page-active .old-pc-login-shell .brand-mark svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.35;
}

.login-page-active .old-pc-login-shell .brand-row h1,
.login-page-active .old-pc-login-shell .brand-row p,
.login-page-active .old-pc-login-shell .metric-card p,
.login-page-active .old-pc-login-shell .chain-board h2,
.login-page-active .old-pc-login-shell .chart-card h3,
.login-page-active .old-pc-login-shell .login-heading h2,
.login-page-active .old-pc-login-shell .login-heading p {
  margin: 0;
}

.login-page-active .old-pc-login-shell .brand-row h1 {
  color: var(--old-ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
}

.login-page-active .old-pc-login-shell .brand-row p {
  margin-top: 7px;
  color: #38535e;
  font-size: 16px;
  font-weight: 700;
}

.login-page-active .old-pc-login-shell .metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.login-page-active .old-pc-login-shell .metric-card,
.login-page-active .old-pc-login-shell .chain-board,
.login-page-active .old-pc-login-shell .chart-card,
.login-page-active .old-pc-login-shell .trust-bar article,
.login-page-active .old-pc-login-shell .login-card {
  border: 1px solid var(--old-line);
  border-radius: 8px;
  background: var(--old-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 22px 62px rgba(28, 58, 66, 0.07);
  backdrop-filter: blur(20px) saturate(1.08);
}

.login-page-active .old-pc-login-shell .metric-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 132px;
  padding: 20px 12px;
}

.login-page-active .old-pc-login-shell .metric-card > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--old-green-soft);
  box-shadow: 0 14px 30px rgba(0, 96, 76, 0.11);
}

.login-page-active .old-pc-login-shell .metric-card svg {
  width: 24px;
  height: 24px;
}

.login-page-active .old-pc-login-shell .metric-card p {
  color: #5b6e78;
  font-size: 14px;
  font-weight: 750;
}

.login-page-active .old-pc-login-shell .metric-card b {
  display: block;
  margin-top: 7px;
  color: var(--old-ink);
  font-size: 27px;
  font-weight: 870;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.login-page-active .old-pc-login-shell .metric-card em {
  display: block;
  margin-top: 9px;
  color: var(--old-green);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
}

.login-page-active .old-pc-login-shell .chain-board {
  min-height: 548px;
  padding: 26px 24px 20px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.76) 0 58%, rgba(244, 250, 251, 0.62) 100%),
    linear-gradient(145deg, transparent 0 58%, rgba(85, 156, 180, 0.1) 59% 60%, transparent 61% 100%);
}

.login-page-active .old-pc-login-shell .board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-page-active .old-pc-login-shell .board-heading h2 {
  color: var(--old-ink);
  font-size: 21px;
  font-weight: 880;
  letter-spacing: 0;
}

.login-page-active .old-pc-login-shell .filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(96, 119, 129, 0.2);
  border-radius: 6px;
  color: #667985;
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 720;
}

.login-page-active .old-pc-login-shell .filter-pill svg {
  width: 15px;
  height: 15px;
}

.login-page-active .old-pc-login-shell .process-flow {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr 54px 1fr 54px 1fr;
  align-items: start;
  gap: 8px;
  padding: 18px 4px 20px;
}

.login-page-active .old-pc-login-shell .process-step {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.login-page-active .old-pc-login-shell .process-step > span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(38, 78, 88, 0.1);
}

.login-page-active .old-pc-login-shell .process-step svg {
  width: 31px;
  height: 31px;
}

.login-page-active .old-pc-login-shell .process-step b {
  color: #203942;
  font-size: 17px;
  font-weight: 860;
}

.login-page-active .old-pc-login-shell .process-step p {
  margin: 0;
  color: #586b75;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.55;
}

.login-page-active .old-pc-login-shell .process-arrow {
  position: relative;
  display: block;
  height: 1px;
  margin-top: 32px;
  border-top: 2px dashed rgba(31, 118, 126, 0.48);
}

.login-page-active .old-pc-login-shell .process-arrow::after {
  position: absolute;
  top: -5px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(31, 118, 126, 0.56);
  border-right: 2px solid rgba(31, 118, 126, 0.56);
  transform: rotate(45deg);
  content: "";
}

.login-page-active .old-pc-login-shell .analytics-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
}

.login-page-active .old-pc-login-shell .chart-card {
  min-height: 250px;
  padding: 18px 18px 14px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 36px rgba(31, 71, 80, 0.05);
}

.login-page-active .old-pc-login-shell .chart-card h3 {
  color: #203942;
  font-size: 16px;
  font-weight: 850;
}

.login-page-active .old-pc-login-shell .trend-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.login-page-active .old-pc-login-shell .chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #586f7a;
  font-size: 12px;
  font-weight: 680;
}

.login-page-active .old-pc-login-shell .chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-page-active .old-pc-login-shell .chart-legend i,
.login-page-active .old-pc-login-shell .inventory-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--old-blue);
}

.login-page-active .old-pc-login-shell .chart-legend span:nth-child(2) i {
  background: #42b79b;
}

.login-page-active .old-pc-login-shell .trend-chart {
  margin-top: 8px;
}

.login-page-active .old-pc-login-shell .trend-chart svg {
  display: block;
  width: 100%;
  height: 196px;
}

.login-page-active .old-pc-login-shell .grid-lines path {
  fill: none;
  stroke: rgba(73, 101, 112, 0.12);
  stroke-width: 1;
}

.login-page-active .old-pc-login-shell .axis-labels text,
.login-page-active .old-pc-login-shell .date-labels text {
  fill: #748791;
  font-size: 12px;
  font-weight: 650;
}

.login-page-active .old-pc-login-shell .line-blue,
.login-page-active .old-pc-login-shell .line-green {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.login-page-active .old-pc-login-shell .line-blue {
  stroke: var(--old-blue);
}

.login-page-active .old-pc-login-shell .line-green {
  stroke: #45b69a;
}

.login-page-active .old-pc-login-shell .line-points circle {
  fill: #fff;
  stroke-width: 3;
}

.login-page-active .old-pc-login-shell .line-points.blue circle {
  stroke: var(--old-blue);
}

.login-page-active .old-pc-login-shell .line-points.green circle {
  stroke: #45b69a;
}

.login-page-active .old-pc-login-shell .inventory-content {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 24px;
  min-height: 198px;
}

.login-page-active .old-pc-login-shell .donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 166px;
  height: 166px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: conic-gradient(#42b79b 0 33%, #6ba4ed 33% 58%, #78a6e6 58% 74%, var(--old-gold) 74% 90%, #94a1aa 90% 100%);
  box-shadow: 0 18px 38px rgba(31, 77, 83, 0.09);
}

.login-page-active .old-pc-login-shell .donut::before {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  content: "";
}

.login-page-active .old-pc-login-shell .donut div {
  position: absolute;
  text-align: center;
}

.login-page-active .old-pc-login-shell .donut span {
  display: block;
  color: #6a7c85;
  font-size: 13px;
  font-weight: 720;
}

.login-page-active .old-pc-login-shell .donut b {
  display: block;
  margin-top: 7px;
  color: var(--old-ink);
  font-size: 27px;
  font-weight: 870;
}

.login-page-active .old-pc-login-shell .inventory-legend {
  display: grid;
  gap: 13px;
}

.login-page-active .old-pc-login-shell .inventory-legend p {
  display: grid;
  grid-template-columns: 10px 68px 1fr;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: #5b6e78;
  font-size: 14px;
  font-weight: 720;
}

.login-page-active .old-pc-login-shell .inventory-legend p:nth-child(1) i { background: #42b79b; }
.login-page-active .old-pc-login-shell .inventory-legend p:nth-child(2) i { background: #6ba4ed; }
.login-page-active .old-pc-login-shell .inventory-legend p:nth-child(3) i { background: #78a6e6; }
.login-page-active .old-pc-login-shell .inventory-legend p:nth-child(4) i { background: var(--old-gold); }
.login-page-active .old-pc-login-shell .inventory-legend p:nth-child(5) i { background: #94a1aa; }

.login-page-active .old-pc-login-shell .inventory-legend b {
  color: #536873;
  font-weight: 720;
}

.login-page-active .old-pc-login-shell .trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.login-page-active .old-pc-login-shell .trust-bar article {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 22px 24px;
}

.login-page-active .old-pc-login-shell .trust-bar svg {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  stroke-width: 1.7;
}

.login-page-active .old-pc-login-shell .trust-bar b {
  color: var(--old-ink);
  font-size: 16px;
  font-weight: 860;
}

.login-page-active .old-pc-login-shell .trust-bar span {
  margin-top: 6px;
  color: #60717a;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.login-page-active .old-pc-login-shell .access-area {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
}

.login-page-active .old-pc-login-shell .access-area::before {
  position: absolute;
  inset: 8% -18% 4% -30%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 58% 28%, rgba(80, 199, 211, 0.18), transparent 20%),
    linear-gradient(130deg, transparent 0 48%, rgba(101, 183, 205, 0.16) 49% 50%, transparent 51%),
    linear-gradient(27deg, transparent 0 42%, rgba(101, 183, 205, 0.12) 43% 44%, transparent 45%),
    linear-gradient(90deg, rgba(107, 174, 195, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(107, 174, 195, 0.12) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
  opacity: 0.55;
  content: "";
}

.login-page-active .old-pc-login-shell .login-card {
  display: block;
  gap: normal;
  justify-self: auto;
  width: 100%;
  min-height: 820px;
  padding: 70px 78px 48px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 34px 92px rgba(30, 58, 68, 0.1);
}

.login-page-active .old-pc-login-shell .security-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 210px;
}

.login-page-active .old-pc-login-shell .security-ring {
  position: absolute;
  border: 1px solid rgba(72, 196, 204, 0.34);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.login-page-active .old-pc-login-shell .ring-one {
  width: 438px;
  height: 116px;
}

.login-page-active .old-pc-login-shell .ring-two {
  width: 344px;
  height: 88px;
  border-color: rgba(72, 196, 204, 0.44);
}

.login-page-active .old-pc-login-shell .security-shield {
  position: relative;
  display: grid;
  place-items: center;
  width: 106px;
  height: 124px;
  color: #19a58d;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(221, 236, 241, 0.64));
  clip-path: polygon(50% 0, 90% 15%, 90% 58%, 50% 100%, 10% 58%, 10% 15%);
  filter: drop-shadow(0 18px 28px rgba(56, 102, 113, 0.13));
}

.login-page-active .old-pc-login-shell .security-shield::before {
  position: absolute;
  inset: 10px 14px 13px;
  border: 1px solid rgba(91, 126, 138, 0.12);
  clip-path: polygon(50% 0, 90% 15%, 90% 58%, 50% 100%, 10% 58%, 10% 15%);
  content: "";
}

.login-page-active .old-pc-login-shell .security-shield svg {
  width: 64px;
  height: 64px;
  stroke-width: 3.6;
}

.login-page-active .old-pc-login-shell .login-heading {
  margin-top: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.login-page-active .old-pc-login-shell .login-heading h2 {
  color: var(--old-ink);
  font-size: 42px;
  font-weight: 920;
  line-height: 1.12;
  letter-spacing: 0;
}

.login-page-active .old-pc-login-shell .login-heading p {
  margin-top: 14px;
  color: #798a93;
  font-size: 18px;
  font-weight: 680;
}

.login-page-active .old-pc-login-shell .login-heading .login-error-text {
  color: var(--old-red);
}

.login-page-active .old-pc-login-shell form {
  display: grid;
  gap: 22px;
}

.login-page-active .old-pc-login-shell .field {
  display: grid;
  gap: 10px;
}

.login-page-active .old-pc-login-shell .field > span {
  color: #203942;
  font-size: 15px;
  font-weight: 850;
}

.login-page-active .old-pc-login-shell .input-frame {
  position: relative;
  display: flex;
  align-items: center;
}

.login-page-active .old-pc-login-shell .field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px 0 50px;
  border: 1px solid rgba(142, 160, 168, 0.56);
  border-radius: 6px;
  color: var(--old-ink);
  background: rgba(255, 255, 255, 0.7);
  outline: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.login-page-active .old-pc-login-shell .has-toggle input {
  padding-right: 52px;
}

.login-page-active .old-pc-login-shell .input-frame > svg,
.login-page-active .old-pc-login-shell .password-toggle {
  position: absolute;
  top: 50%;
  z-index: 1;
  color: #7a8b94;
  transform: translateY(-50%);
}

.login-page-active .old-pc-login-shell .input-frame > svg {
  left: 17px;
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.login-page-active .old-pc-login-shell .password-toggle {
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.login-page-active .old-pc-login-shell .password-toggle:hover {
  color: var(--old-green);
  background: rgba(0, 122, 97, 0.07);
}

.login-page-active .old-pc-login-shell .password-toggle svg {
  width: 19px;
  height: 19px;
}

.login-page-active .old-pc-login-shell .field input::placeholder {
  color: #95a3aa;
}

.login-page-active .old-pc-login-shell .input-frame:focus-within > svg {
  color: var(--old-green);
}

.login-page-active .old-pc-login-shell .input-frame:focus-within input {
  border-color: var(--old-green);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 122, 97, 0.09);
}

.login-page-active .old-pc-login-shell .login-submit {
  min-height: 62px;
  margin-top: 8px;
  border: 1px solid var(--old-green-dark);
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(180deg, #0b846b, #00634f);
  box-shadow: 0 16px 32px rgba(0, 107, 85, 0.22);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.login-page-active .old-pc-login-shell .login-submit:hover:not(:disabled) {
  border-color: var(--old-green-dark);
  background: var(--old-green-dark);
  box-shadow: 0 20px 38px rgba(0, 107, 85, 0.26);
  transform: translateY(-1px);
}

.login-page-active .old-pc-login-shell .login-submit:disabled {
  cursor: default;
  opacity: 0.68;
  transform: none;
}

.login-page-active .old-pc-login-shell .login-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: #54666e;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.6;
}

.login-page-active .old-pc-login-shell .login-footnote p {
  margin: 0;
}

.login-page-active .old-pc-login-shell .login-footnote svg {
  width: 18px;
  height: 18px;
  color: var(--old-green);
}

@media (max-width: 1680px) {
  .login-page-active .login-screen {
    overflow: auto;
    overflow-x: hidden;
  }

  .login-page-active .old-pc-login-shell {
    grid-template-columns: minmax(780px, 1fr) 520px;
    gap: 44px;
    padding: 44px 48px;
  }

  .login-page-active .old-pc-login-shell .metric-card {
    min-height: 116px;
    padding: 16px 14px;
  }

  .login-page-active .old-pc-login-shell .metric-card b {
    font-size: 24px;
  }

  .login-page-active .old-pc-login-shell .chain-board {
    min-height: 520px;
  }

  .login-page-active .old-pc-login-shell .login-card {
    min-height: 760px;
    padding: 56px 60px 44px;
  }
}

@media (max-width: 1180px) {
  .setup-wizard-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .setup-wizard-row em,
  .setup-wizard-row .row-actions {
    grid-column: 2;
    text-align: left;
  }

  .login-page-active .old-pc-login-shell {
    display: flex;
    flex-direction: column-reverse;
    min-height: 100vh;
    padding: 22px;
    gap: 22px;
  }

  .login-page-active .old-pc-login-shell .dashboard-area,
  .login-page-active .old-pc-login-shell .access-area {
    width: 100%;
  }

  .login-page-active .old-pc-login-shell .login-card {
    min-height: auto;
  }

  .login-page-active .old-pc-login-shell .metric-row,
  .login-page-active .old-pc-login-shell .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-page-active .old-pc-login-shell .process-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-page-active .old-pc-login-shell .process-arrow {
    display: none;
  }

  .login-page-active .old-pc-login-shell .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-page-active .old-pc-login-shell {
    padding: 14px;
  }

  .login-page-active .old-pc-login-shell .brand-row {
    align-items: flex-start;
  }

  .login-page-active .old-pc-login-shell .metric-row,
  .login-page-active .old-pc-login-shell .trust-bar,
  .login-page-active .old-pc-login-shell .inventory-content {
    grid-template-columns: 1fr;
  }

  .login-page-active .old-pc-login-shell .chain-board,
  .login-page-active .old-pc-login-shell .chart-card,
  .login-page-active .old-pc-login-shell .login-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .login-page-active .old-pc-login-shell .login-heading h2 {
    font-size: 34px;
  }

  .login-page-active .old-pc-login-shell .security-visual {
    height: 150px;
  }

  .login-page-active .old-pc-login-shell .ring-one {
    width: 260px;
  }

  .login-page-active .old-pc-login-shell .ring-two {
    width: 210px;
  }
}
