:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: #0b101a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f8fb;
  --muted: #a8b2c3;
  --cyan: #6ee7ff;
  --purple: #6f4dff;
  --green: #33d69f;
  --amber: #ffcc66;
  --red: #ff5c8a;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8fc;
  --panel: #ffffff;
  --line: rgba(12, 27, 48, 0.12);
  --text: #0d1728;
  --muted: #43536a;
  --cyan: #006faa;
  --purple: #6f4dff;
  --green: #007a5d;
  --amber: #b87800;
  --red: #d93666;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(110, 231, 255, 0.12), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(111, 77, 255, 0.16), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

:root[data-theme="light"] body,
:root[data-theme="light"] body.dashboard-body,
:root[data-theme="light"] body.admin-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 139, 210, 0.11), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(111, 77, 255, 0.12), transparent 30%),
    #f4f8fc;
  color: #0d1728;
}

body.dashboard-body {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 231, 255, 0.13), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(111, 77, 255, 0.16), transparent 30%),
    #05070d;
}

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

button,
input,
select {
  font: inherit;
}

.portal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .portal-header,
:root[data-theme="light"] .customer-sidebar,
:root[data-theme="light"] .admin-sidebar {
  border-color: rgba(12, 27, 48, 0.1);
  background:
    linear-gradient(180deg, rgba(0, 139, 210, 0.05), transparent 44%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(30, 48, 76, 0.08);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.portal-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  filter: drop-shadow(0 14px 28px rgba(110, 231, 255, 0.15));
}

.portal-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
}

.theme-toggle {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 12px;
  padding: 0;
  white-space: nowrap;
  background:
    radial-gradient(circle at 34% 28%, rgba(110, 231, 255, 0.18), transparent 46%),
    rgba(255, 255, 255, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.08);
}

.theme-icon {
  width: 19px;
  height: 19px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.theme-toggle[data-theme-target="light"] .theme-icon {
  color: #ffcc66;
  filter: drop-shadow(0 0 10px rgba(255, 204, 102, 0.28));
}

.theme-toggle[data-theme-target="dark"] .theme-icon {
  color: #5a6fff;
  filter: drop-shadow(0 0 10px rgba(90, 111, 255, 0.22));
}

:root[data-theme="light"] .theme-toggle {
  background:
    radial-gradient(circle at 65% 35%, rgba(118, 87, 255, 0.18), transparent 46%),
    rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] .portal-nav,
:root[data-theme="light"] .customer-menu a,
:root[data-theme="light"] .admin-menu button {
  color: rgba(13, 23, 40, 0.72);
}

.portal-nav {
  display: flex;
  gap: 14px;
  color: rgba(246, 248, 251, 0.72);
  font-size: 14px;
  font-weight: 780;
}

.portal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.customer-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(8, 12, 20, 0.92);
  padding: 22px 18px;
}

.customer-menu {
  display: grid;
  gap: 6px;
}

.customer-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(246, 248, 251, 0.7);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 820;
}

.nav-icon {
  width: 30px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.customer-menu a.is-active,
.customer-menu a:hover {
  border-color: rgba(110, 231, 255, 0.24);
  background: rgba(110, 231, 255, 0.1);
  color: #fff;
}

.customer-support-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.customer-support-card strong {
  display: block;
  color: #fff;
}

.customer-support-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.customer-support-card a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  color: #090e18;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.customer-main {
  min-width: 0;
  padding: 26px;
}

.customer-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}

.customer-topbar h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.customer-login {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.72fr) auto;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.customer-login[hidden] {
  display: none;
}

.customer-session {
  display: flex;
  width: auto;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.customer-session[hidden] {
  display: none;
}

.customer-session div {
  min-width: 0;
  margin-right: 6px;
}

.customer-session span,
.customer-session strong {
  display: block;
}

.customer-session span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.customer-session strong {
  max-width: 340px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-login input,
.account-form input,
.customer-buy-form input,
.customer-buy-form select,
.customer-buy-form textarea,
.order-searchbar input,
.wallet-form input {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #090e18;
  color: #fff;
  padding: 0 12px;
}

.customer-buy-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(54px, 1fr));
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
}

.auth-mode-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-mode-toggle button.is-active {
  background: rgba(110, 231, 255, 0.14);
  color: #fff;
}

:root[data-theme="light"] .auth-mode-toggle {
  border-color: rgba(12, 27, 48, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .auth-mode-toggle button {
  color: #43536a;
}

:root[data-theme="light"] .auth-mode-toggle button.is-active {
  background:
    linear-gradient(135deg, rgba(0, 111, 170, 0.15), rgba(118, 87, 255, 0.12)),
    #ffffff;
  color: #0d1728;
  box-shadow:
    0 0 0 1px rgba(0, 111, 170, 0.26) inset,
    0 8px 18px rgba(30, 48, 76, 0.08);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

.portal-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.status-order-badge {
  min-width: 260px;
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.status-order-badge span,
.status-order-badge strong {
  display: block;
}

.status-order-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.status-order-badge strong {
  margin-top: 4px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.primary-link,
.primary-button,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 860;
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.primary-link,
.primary-button {
  border: 0;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 16px 34px rgba(111, 77, 255, 0.26);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.metric-grid,
.result-grid,
.delivery-card,
.lookup-card,
.orders-panel,
.status-panel,
.monitor-panel,
.resource-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 26, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-card {
  padding: 18px;
  background: #090e18;
}

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

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
}

.customer-notice,
.customer-panel,
.customer-metrics article,
.customer-line-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 26, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.customer-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
}

.customer-notice.success {
  border-color: rgba(48, 224, 152, 0.36);
  background:
    linear-gradient(135deg, rgba(48, 224, 152, 0.12), transparent 58%),
    rgba(11, 16, 26, 0.76);
}

.customer-notice strong {
  display: block;
  color: #fff;
}

.customer-notice.success strong {
  color: #8cffd2;
}

.customer-notice p {
  margin: 6px 0 0;
  color: var(--muted);
}

.customer-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.customer-metrics article {
  min-height: 96px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 48%),
    rgba(11, 16, 26, 0.78);
  padding: 16px;
}

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

.customer-metrics strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.customer-stack {
  display: grid;
  gap: 18px;
}

.customer-panel {
  padding: 18px;
}

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

.product-tile {
  min-height: 98px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 14px;
  text-align: left;
}

.product-tile.is-active {
  border-color: rgba(110, 231, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.14), rgba(111, 77, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.product-tile span,
.product-tile em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.product-tile strong {
  display: block;
  margin: 8px 0;
  font-size: 16px;
}

.product-tile em {
  color: var(--green);
  font-weight: 900;
}

.customer-buy-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.customer-buy-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.customer-buy-form .wide-control {
  grid-column: span 4;
}

.customer-buy-form .socks-fields {
  grid-column: span 4;
  align-items: end;
}

.customer-buy-form .upstream-protocol-control {
  align-self: end;
}

.buy-summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  grid-column: span 4;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.035);
  padding: 12px 14px;
}

.buy-summary span,
.buy-summary b,
.buy-summary small,
.buy-summary strong {
  display: block;
}

.buy-summary b {
  color: #fff;
  font-size: 15px;
}

.buy-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.buy-summary strong {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.customer-buy-form .primary-button {
  min-height: 44px;
}

.traffic-topup-panel {
  display: grid;
  gap: 16px;
}

.traffic-topup-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.09), transparent 52%),
    rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.traffic-topup-hero strong,
.traffic-topup-card strong,
.ticket-card strong {
  display: block;
  color: #fff;
}

.traffic-topup-hero p,
.traffic-topup-card em,
.ticket-card p,
.ticket-card span {
  color: var(--muted);
}

.traffic-topup-list,
.ticket-list {
  display: grid;
  gap: 12px;
}

.traffic-topup-card,
.ticket-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.traffic-topup-card span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.traffic-topup-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
}

.traffic-topup-card button {
  min-height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
}

.ticket-form {
  display: grid;
  gap: 12px;
}

.ticket-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.ticket-form input,
.ticket-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 11px 12px;
}

.ticket-attachment-control input[type="file"] {
  cursor: pointer;
  padding: 10px 12px;
}

.ticket-attachment-control span,
.ticket-attachment-preview span,
.ticket-attachment-thumb span {
  color: var(--muted);
  font-size: 12px;
}

.ticket-attachment-preview,
.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-attachment-preview span {
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.07);
  padding: 7px 9px;
}

.ticket-attachments {
  margin-top: 8px;
}

.ticket-attachment-thumb {
  display: grid;
  width: 112px;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.ticket-attachment-thumb img {
  width: 112px;
  height: 78px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.ticket-card {
  display: grid;
}

.ticket-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ticket-card-head em {
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.09);
  color: #fff;
  padding: 3px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

:root[data-theme="light"] .ticket-card-head em {
  border-color: rgba(0, 111, 170, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 111, 170, 0.13), rgba(118, 87, 255, 0.1)),
    #ffffff;
  color: #005b8d;
  box-shadow: 0 8px 18px rgba(30, 48, 76, 0.08);
}

:root[data-theme="light"] .admin-readiness-hero {
  background:
    linear-gradient(135deg, rgba(0, 111, 170, 0.1), transparent 48%),
    linear-gradient(100deg, rgba(118, 87, 255, 0.08), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .admin-readiness-hero h2 {
  color: #0d1728;
  text-shadow: none;
}

:root[data-theme="light"] .admin-readiness-hero span {
  color: #43536a;
}

:root[data-theme="light"] .admin-readiness-hero .eyebrow {
  color: #006fae;
}

:root[data-theme="light"] .readiness-score {
  border-color: rgba(0, 111, 170, 0.24);
  background:
    radial-gradient(circle, rgba(0, 111, 170, 0.12), transparent 58%),
    #ffffff;
  color: #0d1728;
}

.admin-range-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-date {
  width: 138px;
  min-height: 38px;
}

.admin-secondary-grid {
  margin-top: 12px;
}

.admin-internal-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.08), rgba(111, 77, 255, 0.05));
  color: rgba(246, 248, 251, 0.82);
  padding: 12px 14px;
}

.admin-internal-rule strong {
  color: #fff;
  white-space: nowrap;
}

.admin-internal-rule span {
  color: var(--muted);
}

.admin-ticket-list {
  display: grid;
  gap: 12px;
}

.admin-ticket-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.admin-ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-ticket-head strong,
.admin-ticket-head span,
.admin-ticket-card p {
  display: block;
}

.admin-ticket-head strong {
  color: #fff;
  font-size: 16px;
}

.admin-ticket-head span,
.admin-ticket-card p {
  color: var(--muted);
}

.admin-ticket-head em {
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.09);
  color: #fff;
  padding: 4px 9px;
  font-style: normal;
  font-weight: 900;
}

.admin-ticket-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.admin-ticket-actions textarea {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px 12px;
  resize: vertical;
}

.admin-ticket-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
}

.monitor-panel,
.resource-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.panel-head,
.resource-top,
.resource-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.ghost-button.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.ghost-button.compact.theme-toggle {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.primary-button.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

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

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

.monitor-tile {
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.monitor-tile.online {
  border-color: rgba(51, 214, 159, 0.22);
  background:
    linear-gradient(135deg, rgba(51, 214, 159, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.monitor-tile.issue {
  border-color: rgba(255, 92, 138, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 92, 138, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.monitor-tile span,
.monitor-tile em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.monitor-tile strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

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

.monitor-lists article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.mini-head,
.mini-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-head {
  margin-bottom: 10px;
}

.mini-head strong {
  color: #fff;
}

.mini-head span,
.mini-empty,
.mini-order em,
.mini-order small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-order {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.38);
  padding: 10px;
}

.mini-order span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mini-order strong {
  overflow: hidden;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-order b {
  justify-self: end;
  font-style: normal;
}

.mini-empty {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.resource-metrics article {
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.resource-metrics span,
.resource-top span,
.resource-specs,
.resource-endpoint {
  color: var(--muted);
  font-size: 12px;
}

.resource-metrics strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 540px;
  overflow: auto;
  padding-right: 2px;
}

.resource-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.resource-top {
  align-items: flex-start;
}

.resource-top strong,
.resource-top span {
  display: block;
}

.resource-top strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.resource-status {
  flex: 0 0 auto;
  border: 1px solid rgba(110, 231, 255, 0.28);
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.1);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.resource-status.standby {
  border-color: rgba(255, 204, 102, 0.28);
  background: rgba(255, 204, 102, 0.1);
}

.resource-status.watch {
  border-color: rgba(255, 92, 138, 0.28);
  background: rgba(255, 92, 138, 0.11);
}

.resource-status.offline {
  border-color: rgba(168, 178, 195, 0.24);
  background: rgba(168, 178, 195, 0.08);
  color: rgba(246, 248, 251, 0.68);
}

.resource-bar {
  height: 8px;
  overflow: hidden;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.resource-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.resource-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.resource-specs span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
}

.resource-endpoint {
  overflow: hidden;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-actions {
  justify-content: flex-start;
}

.resource-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 820;
}

.compact-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 248, 251, 0.78);
  padding: 0 12px;
  font-weight: 780;
}

.filter-button.is-active {
  border-color: rgba(110, 231, 255, 0.38);
  background: rgba(110, 231, 255, 0.1);
  color: #fff;
}

.orders-panel,
.status-panel,
.lookup-card {
  padding: 18px;
}

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

.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.order-card-head,
.order-actions,
.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.order-id {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(110, 231, 255, 0.25);
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.09);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 860;
}

.status-pill.issue {
  border-color: rgba(255, 92, 138, 0.32);
  background: rgba(255, 92, 138, 0.12);
}

.order-fields,
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.order-fields div,
.result-grid article {
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.order-fields span,
.result-grid span,
.delivery-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order-fields strong,
.result-grid strong,
.delivery-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.order-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.order-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 820;
}

.order-actions button.primary {
  border-color: rgba(110, 231, 255, 0.32);
  background: rgba(110, 231, 255, 0.12);
}

.line-list {
  display: grid;
  gap: 12px;
}

.customer-line-card {
  padding: 16px;
}

.line-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.line-card-title-row {
  display: flex;
  align-items: baseline;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.line-card-title-row strong {
  color: #fff;
  font-size: 18px;
  white-space: nowrap;
}

.line-card-title-row span {
  color: var(--cyan);
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 860;
  min-width: 0;
  overflow-wrap: anywhere;
}

.line-title-editor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(100%, 360px);
  min-width: 0;
}

.line-title-editor input {
  width: min(220px, 44vw);
  min-width: 120px;
  height: 34px;
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 7px;
  background: rgba(6, 15, 30, 0.64);
  color: #fff;
  padding: 0 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.line-title-editor input::placeholder {
  color: rgba(202, 226, 255, 0.68);
}

.line-title-editor button {
  height: 34px;
  border: 1px solid rgba(110, 231, 255, 0.3);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(123, 74, 255, 0.92), rgba(0, 142, 218, 0.9));
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.line-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.line-meta-grid div {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.line-meta-grid span,
.line-subscription span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.line-meta-grid strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  overflow-wrap: anywhere;
}

.line-subscription {
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.07);
  padding: 10px;
}

.line-subscription a {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.line-detail-empty,
.line-detail-panel {
  margin-top: 12px;
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.line-detail-empty strong,
.line-detail-empty span,
.line-detail-title strong,
.line-detail-title span {
  display: block;
}

.line-detail-empty strong,
.line-detail-title strong {
  color: #fff;
}

.line-detail-empty span,
.line-detail-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.line-detail-cancelled,
.line-detail-issue {
  border-color: rgba(255, 183, 77, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 183, 77, 0.1), transparent 52%),
    rgba(255, 255, 255, 0.035);
}

.line-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.line-detail-item {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.42);
  padding: 12px;
}

.line-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.line-detail-head strong,
.line-detail-head span {
  display: block;
}

.line-detail-head strong {
  color: #fff;
  font-size: 16px;
}

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

.line-detail-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(51, 214, 159, 0.28);
  border-radius: 999px;
  background: rgba(51, 214, 159, 0.1);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

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

.line-universal-card {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 10px 0 8px;
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.line-qr-box {
  display: grid;
  align-self: center;
  width: min(220px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.line-qr-box a,
.delivery-qr-box a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.line-qr-box img {
  display: block;
  width: 100%;
  height: 100%;
}

.line-qr-box span {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.line-universal-content {
  min-width: 0;
}

.line-universal-content span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.line-universal-content strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.line-universal-content p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.line-subscription-inline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(110, 231, 255, 0.16);
}

.line-subscription-inline strong {
  margin-top: 7px;
}

.line-subscription-inline p {
  margin-top: 7px;
}

.line-detail-grid div,
.line-detail-sub {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.line-detail-grid span,
.line-detail-sub span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.line-detail-grid strong,
.line-detail-sub strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.line-detail-sub {
  margin-top: 8px;
}

.line-detail-sub strong {
  color: var(--cyan);
}

.line-remark-editor {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.line-remark-editor span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.line-remark-editor input {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.54);
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-weight: 760;
}

.line-remark-editor p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.line-remark-editor button {
  min-height: 34px;
  margin-top: 10px;
  border: 1px solid rgba(110, 231, 255, 0.24);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.12);
  color: #fff;
  padding: 0 12px;
  font-weight: 860;
}

.traffic-meter {
  margin: 12px 0;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 54%),
    rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.traffic-meter.is-warning {
  border-color: rgba(255, 204, 102, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 204, 102, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.035);
}

.traffic-meter.is-danger {
  border-color: rgba(255, 92, 138, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 92, 138, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.035);
}

.traffic-meter-head,
.traffic-meter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.traffic-meter-head span,
.traffic-meter-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.traffic-meter-head strong {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.traffic-meter-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.traffic-meter-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.traffic-meter.is-warning .traffic-meter-bar i {
  background: linear-gradient(90deg, #ffd166, var(--cyan));
}

.traffic-meter.is-danger .traffic-meter-bar i {
  background: linear-gradient(90deg, #ff5c8a, #ff2fa7);
}

.traffic-meter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.traffic-meter-actions .line-action-payment {
  min-height: 34px;
}

.traffic-meter-actions a,
.traffic-meter-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  margin-top: 0;
}

.traffic-meter-actions a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

.traffic-meter-actions a[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.56;
}

.traffic-meter-actions .traffic-addon-button,
.traffic-meter-actions .traffic-renew-button {
  min-height: 38px;
  border: 0;
  padding: 0 16px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(123, 74, 255, 0.24);
}

.traffic-meter-actions .traffic-addon-button,
.traffic-meter-actions .traffic-renew-button {
  background: linear-gradient(135deg, #7b4aff, #ff2fa7);
}

.traffic-meter-actions .traffic-addon-button:hover,
.traffic-meter-actions .traffic-addon-button:focus-visible,
.traffic-meter-actions .traffic-renew-button:hover,
.traffic-meter-actions .traffic-renew-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.line-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.line-detail-actions a,
.line-detail-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 860;
}

.line-detail-actions button:first-child {
  border-color: rgba(110, 231, 255, 0.32);
  background: rgba(110, 231, 255, 0.12);
}

.line-detail-actions button.is-copied {
  border-color: rgba(51, 214, 159, 0.32);
  background: rgba(51, 214, 159, 0.12);
}

.line-detail-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.line-action-payment {
  display: inline-grid;
  grid-template-columns: auto minmax(112px, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 840;
}

.line-action-payment select {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: rgba(5, 7, 13, 0.82);
  color: #fff;
  font-weight: 860;
}

.line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.line-actions a,
.line-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 820;
}

.line-actions a:first-child {
  border-color: rgba(110, 231, 255, 0.3);
  background: rgba(110, 231, 255, 0.12);
}

.side-panel {
  margin-bottom: 18px;
}

.side-panel h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.side-panel p {
  color: var(--muted);
}

.dark-card {
  background:
    linear-gradient(135deg, rgba(111, 77, 255, 0.18), transparent 46%),
    #0d0e14;
}

.renew-mini-list {
  display: grid;
  gap: 8px;
}

.renew-mini-item {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 10px;
  text-align: left;
}

.renew-mini-item span,
.renew-mini-item em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.renew-mini-item strong {
  display: block;
  margin: 3px 0;
}

.invite-code {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

:root[data-theme="light"] .invite-code {
  border-color: rgba(0, 111, 170, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 111, 170, 0.1), rgba(118, 87, 255, 0.08)),
    #ffffff;
  color: #005b8d;
  box-shadow: 0 10px 24px rgba(30, 48, 76, 0.08);
}

.dashboard-page {
  display: grid;
  gap: 18px;
  contain: layout paint;
}

.dashboard-page.is-entering {
  animation: dashboard-page-enter 180ms ease-out both;
}

.dashboard-page[hidden] {
  display: none;
}

.dashboard-grid-two,
.wallet-layout,
.affiliate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.overview-lines,
.quick-action-grid,
.guide-mini-grid,
.wallet-ledger {
  display: grid;
  gap: 10px;
}

.customer-line-card.is-compact {
  box-shadow: none;
}

.customer-line-card.is-compact .line-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-line-card.is-compact .line-subscription {
  display: none;
}

.action-panel p:not(.eyebrow),
.affiliate-grid p {
  color: var(--muted);
}

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

.quick-action-grid button,
.quick-action-grid a {
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 14px;
  text-align: left;
}

.quick-action-grid span {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.quick-action-grid strong {
  display: block;
  margin-top: 8px;
  color: rgba(246, 248, 251, 0.86);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.55;
}

.line-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.order-searchbar {
  margin-bottom: 14px;
}

.order-searchbar input {
  width: 100%;
}

.dashboard-table {
  display: grid;
  gap: 8px;
}

.dashboard-table-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(74px, 0.7fr) minmax(92px, 0.7fr) minmax(140px, 1fr) minmax(68px, 0.55fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.dashboard-table-head {
  background: rgba(110, 231, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-table-row a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 231, 255, 0.28);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.1);
  color: #fff;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 820;
}

.resource-status.online {
  border-color: rgba(51, 214, 159, 0.28);
  background: rgba(51, 214, 159, 0.1);
}

.wallet-hero {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(118deg, rgba(110, 231, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(111, 77, 255, 0.34), rgba(51, 214, 159, 0.12)),
    rgba(11, 16, 26, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  padding: 22px 28px;
}

.wallet-hero span {
  display: block;
  color: rgba(246, 248, 251, 0.78);
  font-weight: 820;
}

.wallet-hero strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
}

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

.wallet-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 860;
}

.wallet-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 180px) 44px;
  width: min(100%, 280px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #090e18;
}

.wallet-stepper input {
  border: 0;
  border-radius: 0;
  text-align: center;
}

.wallet-stepper button,
.wallet-amounts button {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 900;
}

.wallet-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-amounts button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 12px;
}

.wallet-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px;
}

.payment-method-card {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 0 16px;
}

.payment-method-card.is-active {
  border-color: rgba(110, 231, 255, 0.44);
  background: rgba(110, 231, 255, 0.1);
}

.payment-method-card input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--cyan);
}

.payment-method-card span {
  font-size: 16px;
  font-weight: 900;
}

.wallet-tips {
  display: grid;
  gap: 8px;
  width: min(100%, 760px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
}

.wallet-submit {
  width: min(100%, 220px);
}

.ledger-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.ledger-item span,
.ledger-item strong,
.ledger-item em {
  display: block;
}

.ledger-item strong {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ledger-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ledger-item b {
  color: #fff;
}

.ledger-item i {
  font-style: normal;
}

.guide-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-mini-grid article {
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.guide-mini-grid span,
.affiliate-stats span,
.invite-link-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.guide-mini-grid strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 17px;
}

.guide-mini-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.affiliate-stats div,
.invite-link-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.affiliate-stats strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
}

.invite-link-box strong {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

:root[data-theme="light"] .invite-link-box strong {
  color: #005b8d;
}

.affiliate-ledger {
  margin-top: 14px;
}

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

.account-summary div {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.account-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.account-summary strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  overflow-wrap: anywhere;
}

.affiliate-hint-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.08);
  color: var(--cyan);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 860;
}

.account-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.account-form:last-child {
  margin-bottom: 0;
}

.account-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
}

.payment-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.payment-modal[hidden] {
  display: none;
}

.payment-modal-card {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid rgba(110, 231, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(110, 231, 255, 0.16), transparent 40%),
    linear-gradient(135deg, rgba(111, 77, 255, 0.14), transparent 42%),
    #080d16;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  padding: 24px;
  text-align: center;
}

.dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.payment-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.payment-modal-card h2 {
  margin-bottom: 16px;
  padding: 0 36px;
  font-size: 28px;
}

.payment-modal-qr {
  position: relative;
  display: grid;
  width: 260px;
  height: 260px;
  place-items: center;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 12px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.payment-modal-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-modal-loader {
  display: grid;
  gap: 12px;
  place-items: center;
  color: #1d2635;
  font-size: 13px;
  font-weight: 900;
}

.payment-modal-loader i {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, transparent, var(--purple), var(--cyan), transparent 78%);
  animation: modal-spin 1.05s linear infinite;
}

.payment-modal-qr.is-success .payment-modal-loader i {
  position: relative;
  display: grid;
  place-items: center;
  background: #25d69b;
  animation: payment-success-pop 480ms cubic-bezier(0.2, 1.2, 0.32, 1) both;
}

.payment-modal-qr.is-success .payment-modal-loader i::before,
.payment-modal-qr.is-success .payment-modal-loader i::after {
  position: absolute;
  height: 5px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform-origin: left center;
}

.payment-modal-qr.is-success .payment-modal-loader i::before {
  width: 15px;
  transform: translate(15px, 30px) rotate(45deg);
}

.payment-modal-qr.is-success .payment-modal-loader i::after {
  width: 31px;
  transform: translate(24px, 40px) rotate(-45deg);
}

.payment-modal-qr.is-error .payment-modal-loader i {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--red);
  animation: payment-error-pop 420ms cubic-bezier(0.2, 1.08, 0.32, 1) both;
}

.payment-modal-qr.is-error .payment-modal-loader i::before,
.payment-modal-qr.is-error .payment-modal-loader i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform-origin: center;
}

.payment-modal-qr.is-error .payment-modal-loader i::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.payment-modal-qr.is-error .payment-modal-loader i::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.payment-modal-meta strong {
  display: block;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.payment-modal-meta p {
  margin: 10px 0 0;
  color: var(--muted);
}

.payment-modal-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.payment-modal-actions .ghost-button[hidden] {
  display: none;
}

.reconfigure-modal-card {
  width: min(620px, 100%);
  text-align: left;
}

.reconfigure-modal-card h2 {
  margin-bottom: 8px;
  text-align: center;
}

.reconfigure-target {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.reconfigure-form {
  display: grid;
  gap: 14px;
}

.reconfigure-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reconfigure-form select,
.reconfigure-form input,
.reconfigure-form textarea {
  width: 100%;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 7, 18, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  outline: none;
}

.reconfigure-form select {
  min-height: 44px;
  padding: 0 12px;
}

.reconfigure-form input {
  min-height: 44px;
  padding: 0 12px;
}

.reconfigure-form textarea {
  min-height: 140px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

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

.socks-fields[hidden] {
  display: none;
}

.socks-fields label {
  min-width: 0;
}

.reconfigure-meta {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(0, 214, 163, 0.2);
  border-radius: 8px;
  background: rgba(0, 214, 163, 0.08);
}

.reconfigure-meta strong {
  color: #6ee7ff;
  font-size: 14px;
}

.reconfigure-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.reconfigure-actions {
  grid-template-columns: 1fr 1.3fr;
}

.service-modal-card {
  width: min(780px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  text-align: left;
}

.service-modal-card h2 {
  margin: 2px 44px 14px;
  text-align: left;
}

.service-target-card,
.service-impact {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.service-target-card strong,
.service-impact strong {
  color: #fff;
  font-size: 14px;
}

.service-target-card span,
.service-impact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-target-grid,
.service-line-list,
.service-form-grid {
  display: grid;
  gap: 10px;
}

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

.service-target-grid div,
.service-line-item {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(2, 7, 18, 0.32);
  padding: 10px;
}

.service-target-grid em,
.service-line-item em {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.service-line-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.service-line-item.is-selected {
  border-color: rgba(110, 231, 255, 0.44);
  background: rgba(110, 231, 255, 0.08);
}

.service-form {
  display: grid;
  gap: 14px;
}

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

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

.service-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.service-field select,
.service-field input,
.service-field textarea {
  width: 100%;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 7, 18, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  outline: none;
}

.service-field select,
.service-field input {
  min-height: 44px;
  padding: 0 12px;
}

.service-field textarea {
  min-height: 104px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

.service-checkbox {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.service-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.service-impact {
  border-color: rgba(255, 199, 91, 0.24);
  background: rgba(255, 199, 91, 0.08);
}

.service-impact.is-safe {
  border-color: rgba(0, 214, 163, 0.22);
  background: rgba(0, 214, 163, 0.08);
}

.service-impact.is-danger {
  border-color: rgba(255, 92, 138, 0.28);
  background: rgba(255, 92, 138, 0.1);
}

.service-modal-actions {
  grid-template-columns: 1fr 1.4fr;
}

@media (max-width: 760px) {
  .service-modal {
    padding: 12px;
  }

  .service-modal-card {
    max-height: 92vh;
    padding: 18px;
  }

  .service-modal-card h2 {
    margin-right: 38px;
    font-size: 24px;
  }

  .service-target-grid,
  .service-form-grid,
  .service-socks-grid,
  .service-modal-actions {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .reconfigure-target,
:root[data-theme="light"] .reconfigure-meta {
  border-color: rgba(20, 39, 68, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #0d1728;
}

:root[data-theme="light"] .reconfigure-form select,
:root[data-theme="light"] .reconfigure-form input,
:root[data-theme="light"] .reconfigure-form textarea {
  border-color: rgba(20, 39, 68, 0.16);
  background: #ffffff;
  color: #0d1728;
}

:root[data-theme="light"] .reconfigure-meta strong {
  color: #006f9b;
}

:root[data-theme="light"] .service-target-card,
:root[data-theme="light"] .service-target-grid div,
:root[data-theme="light"] .service-line-item,
:root[data-theme="light"] .service-checkbox {
  border-color: rgba(20, 39, 68, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #0d1728;
}

:root[data-theme="light"] .service-field select,
:root[data-theme="light"] .service-field input,
:root[data-theme="light"] .service-field textarea {
  border-color: rgba(20, 39, 68, 0.16);
  background: #ffffff;
  color: #0d1728;
}

:root[data-theme="light"] .service-target-card strong,
:root[data-theme="light"] .service-target-grid em,
:root[data-theme="light"] .service-line-item em,
:root[data-theme="light"] .service-impact strong {
  color: #0d1728;
}

:root[data-theme="light"] .service-impact {
  border-color: rgba(154, 103, 0, 0.22);
  background: rgba(255, 199, 91, 0.16);
}

@keyframes modal-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes payment-success-pop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  55% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes payment-error-pop {
  0% {
    opacity: 0;
    transform: scale(0.74) rotate(-4deg);
  }

  55% {
    opacity: 1;
    transform: scale(1.06) rotate(3deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes dashboard-page-enter {
  from {
    opacity: 0.82;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-payment {
  margin-top: 14px;
}

.dashboard-payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(51, 214, 159, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(51, 214, 159, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.dashboard-payment-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-payment-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.dashboard-payment-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.dashboard-payment-card img,
.payment-placeholder {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: #fff;
}

.payment-placeholder {
  display: grid;
  place-items: center;
  color: #090e18;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.empty-state {
  padding: 44px 18px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.lookup-card {
  margin-bottom: 18px;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.lookup-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090e18;
  color: #fff;
  padding: 0 12px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.timeline span {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 248, 251, 0.7);
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 820;
}

.timeline .is-done {
  border-color: rgba(51, 214, 159, 0.32);
  background: rgba(51, 214, 159, 0.1);
  color: #fff;
}

.timeline .is-current {
  border-color: rgba(110, 231, 255, 0.34);
  background: rgba(110, 231, 255, 0.12);
  color: #fff;
}

.provision-card {
  margin: 18px 0;
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.provision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.provision-head span {
  color: #fff;
  font-weight: 900;
}

.provision-head strong {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.72);
}

.progress-track span {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 24px rgba(110, 231, 255, 0.35);
  transition: width 680ms ease;
}

.progress-track span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: progress-sheen 1.4s linear infinite;
  content: "";
}

.provision-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.payment-review-card {
  margin-top: 18px;
  border: 1px solid rgba(255, 204, 102, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 204, 102, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.payment-review-card strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.payment-review-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

@keyframes progress-sheen {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.delivery-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  background: rgba(125, 215, 255, 0.14);
}

.delivery-card > div {
  padding: 14px;
  background: #09111d;
  min-height: 78px;
}

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

.delivery-card-universal {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #09111d;
  min-height: 0;
}

.delivery-card-universal .delivery-qr-box {
  margin: 0;
}

.delivery-card-universal .delivery-qr-box a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.delivery-card-universal-content {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.delivery-card-universal-content > span {
  color: #f8fbff;
  font-size: 16px;
  font-weight: 900;
}

.delivery-card-universal p {
  margin: 0;
  color: var(--muted);
}

.delivery-card-universal .delivery-main-link {
  display: block;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.delivery-subscription-inline {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(110, 231, 255, 0.14);
}

.delivery-subscription-inline span {
  color: #f8fbff;
  font-size: 14px;
  font-weight: 900;
}

.delivery-card > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.delivery-card a {
  color: #28baff;
}

.delivery-line-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.delivery-line-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.055);
  padding: 14px;
}

.delivery-line-item strong,
.delivery-line-item span {
  display: block;
}

.delivery-line-item strong {
  color: #fff;
}

.delivery-line-item span,
.delivery-line-item dt {
  color: var(--muted);
  font-size: 12px;
}

.delivery-line-item dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.delivery-line-item dd {
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.delivery-line-item a {
  color: var(--cyan);
}

.delivery-brief,
.delivery-guide,
.delivery-universal-card {
  margin-top: 18px;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.delivery-universal-card {
  display: grid;
  grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.delivery-qr-box {
  display: grid;
  width: min(240px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.delivery-qr-box img {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-large-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 800;
}

.delivery-qr-box span {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.delivery-brief strong,
.delivery-guide strong,
.delivery-universal-card strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.delivery-brief p,
.delivery-universal-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.delivery-universal-card a {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.delivery-universal-card .delivery-qr-box a {
  display: grid;
  width: 100%;
  height: 100%;
  margin-top: 0;
  place-items: center;
}

.delivery-universal-card a.qr-large-link {
  display: inline-flex;
  width: fit-content;
  font-family: inherit;
  font-size: 13px;
}

.delivery-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.delivery-action-row button,
.delivery-action-row a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.08);
  color: #fff;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 860;
}

.delivery-action-row button {
  cursor: pointer;
}

.delivery-action-row button:disabled {
  cursor: default;
  opacity: 0.72;
}

.delivery-action-row a {
  margin-top: 0;
  color: var(--cyan);
}

.delivery-guide {
  display: grid;
  gap: 8px;
}

.delivery-guide span {
  color: var(--muted);
  font-size: 14px;
}

.delivery-guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.guide-link {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 860;
}

.secondary-guide-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 231, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.18), rgba(111, 77, 255, 0.1)),
    rgba(110, 231, 255, 0.08);
  width: fit-content;
  color: #e9fbff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 194, 255, 0.12);
}

.secondary-guide-link:hover,
.secondary-guide-link:focus-visible {
  border-color: rgba(110, 231, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.24), rgba(111, 77, 255, 0.14)),
    rgba(110, 231, 255, 0.12);
  color: #fff;
}

.guide-support {
  border-color: rgba(110, 231, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.guide-support a {
  color: var(--cyan);
  font-weight: 900;
}

.guide-shell {
  max-width: 1120px;
}

.guide-hero {
  align-items: center;
}

.guide-start,
.guide-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 26, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.guide-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.guide-start article {
  min-height: 150px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 48%),
    #090e18;
}

.guide-start span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 900;
}

.guide-start strong,
.guide-steps strong,
.client-grid strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 17px;
}

.guide-start p,
.guide-steps p,
.client-grid p,
.guide-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.guide-section {
  margin-bottom: 18px;
  padding: 18px;
}

.guide-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(51, 214, 159, 0.3);
  border-radius: 999px;
  background: rgba(51, 214, 159, 0.1);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.guide-steps,
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.guide-steps article,
.client-grid article {
  min-height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.proxy-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.proxy-box div {
  padding: 14px;
  background: #090e18;
}

.proxy-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.proxy-box strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

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

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

body.admin-body {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    radial-gradient(circle at 8% 0%, rgba(110, 231, 255, 0.12), transparent 28%),
    radial-gradient(circle at 92% 6%, rgba(111, 77, 255, 0.16), transparent 32%),
    #05070d;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(110, 231, 255, 0.06), transparent 42%),
    rgba(8, 12, 20, 0.93);
  padding: 22px 18px;
}

.admin-menu {
  display: grid;
  gap: 6px;
}

.admin-menu button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(246, 248, 251, 0.68);
  padding: 0 12px;
  font-weight: 860;
  text-align: left;
}

.admin-menu button span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.admin-menu button.is-active,
.admin-menu button:hover {
  border-color: rgba(110, 231, 255, 0.24);
  background: rgba(110, 231, 255, 0.1);
  color: #fff;
}

.admin-side-card,
.admin-panel,
.admin-metric-grid article,
.admin-order-card,
.admin-customer-card,
.admin-route-card,
.admin-readiness-hero,
.admin-readiness-item,
.admin-contract-card,
.admin-exception-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 26, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.admin-side-card {
  margin-top: auto;
  padding: 14px;
}

.admin-side-card strong {
  display: block;
  color: #fff;
}

.admin-side-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.admin-side-card a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  color: #090e18;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.admin-main {
  min-width: 0;
  padding: 26px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-topbar h1 {
  margin-bottom: 4px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.admin-topbar span {
  color: var(--muted);
}

.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-token-state {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.admin-token-state.ok {
  border-color: rgba(51, 214, 159, 0.28);
  background: rgba(51, 214, 159, 0.1);
  color: #fff;
}

.admin-token-state.issue {
  border-color: rgba(255, 92, 138, 0.32);
  background: rgba(255, 92, 138, 0.12);
  color: #fff;
}

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

.admin-metric-grid article {
  min-height: 116px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 50%),
    rgba(11, 16, 26, 0.82);
  padding: 16px;
}

.admin-metric-grid.compact article {
  min-height: 100px;
}

.admin-metric-grid span,
.admin-metric-grid em,
.admin-monitor-tile span,
.admin-monitor-tile em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-metric-grid strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.admin-readiness-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 176px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.1), transparent 44%),
    linear-gradient(100deg, rgba(255, 47, 167, 0.08), rgba(111, 77, 255, 0.08)),
    rgba(11, 16, 26, 0.84);
  padding: 22px;
}

.admin-readiness-hero h2 {
  max-width: 760px;
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.admin-readiness-hero span {
  color: var(--muted);
  font-size: 14px;
}

.admin-provisioning-hero {
  background:
    linear-gradient(135deg, rgba(51, 214, 159, 0.1), transparent 44%),
    linear-gradient(100deg, rgba(110, 231, 255, 0.08), rgba(255, 47, 167, 0.05)),
    rgba(11, 16, 26, 0.84);
}

.readiness-score {
  display: grid;
  width: 124px;
  height: 124px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.045);
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.readiness-score.online,
.readiness-label.online {
  color: #b8ffe8;
}

.readiness-score.watch,
.readiness-label.watch,
.readiness-score.pending,
.readiness-label.pending {
  color: #ffe2a3;
}

.readiness-score.issue,
.readiness-label.issue {
  color: #ff9dba;
}

.readiness-metrics {
  margin-top: 14px;
}

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

.admin-readiness-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.admin-readiness-item.online {
  border-color: rgba(51, 214, 159, 0.22);
  background:
    linear-gradient(135deg, rgba(51, 214, 159, 0.08), transparent 60%),
    rgba(11, 16, 26, 0.76);
}

.admin-readiness-item.watch,
.admin-readiness-item.pending {
  border-color: rgba(255, 204, 102, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 204, 102, 0.09), transparent 60%),
    rgba(11, 16, 26, 0.76);
}

.admin-readiness-item.issue {
  border-color: rgba(255, 92, 138, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 92, 138, 0.12), transparent 60%),
    rgba(11, 16, 26, 0.76);
}

.readiness-mark {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.readiness-action-button {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px solid rgba(110, 241, 255, 0.28);
  border-radius: 8px;
  background: rgba(110, 241, 255, 0.08);
  color: #a9f7ff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.readiness-action-button:hover {
  border-color: rgba(255, 93, 164, 0.45);
  background: rgba(255, 93, 164, 0.12);
  color: #ffd6e8;
}

.readiness-action-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-readiness-item strong,
.admin-readiness-item span,
.admin-readiness-item em {
  display: block;
}

.admin-readiness-item strong {
  color: #fff;
  font-size: 16px;
}

.admin-readiness-item span {
  margin-top: 4px;
  color: rgba(246, 248, 251, 0.72);
  font-size: 13px;
}

.admin-readiness-item em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-panel {
  padding: 18px;
}

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

.admin-monitor-tile {
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 54%),
    rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.admin-monitor-tile.online {
  border-color: rgba(51, 214, 159, 0.24);
  background:
    linear-gradient(135deg, rgba(51, 214, 159, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.035);
}

.admin-monitor-tile.watch {
  border-color: rgba(255, 204, 102, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 204, 102, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.035);
}

.admin-monitor-tile.issue {
  border-color: rgba(255, 92, 138, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 92, 138, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.035);
}

.admin-monitor-tile strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1.15;
}

.admin-monitor-details {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-monitor-details div {
  display: grid;
  gap: 3px;
}

.admin-monitor-details span,
.admin-monitor-details small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-monitor-details span {
  color: var(--text);
  font-weight: 700;
}

.admin-mini-list,
.admin-order-list,
.admin-customer-list,
.admin-route-list,
.admin-contract-list,
.admin-exception-list,
.admin-op-log {
  display: grid;
  gap: 10px;
}

.admin-mini-item {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 10px;
  text-align: left;
}

.admin-mini-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-mini-item strong,
.admin-table-row span:first-child {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mini-item em,
.admin-mini-item small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(160px, 1.2fr) minmax(140px, 1fr) minmax(84px, 0.6fr) minmax(92px, 0.65fr) minmax(108px, 0.75fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 12px;
  text-align: left;
}

.admin-table-head {
  background: rgba(110, 231, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-search {
  width: min(340px, 100%);
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #090e18;
  color: #fff;
  padding: 0 12px;
}

.admin-order-card,
.admin-customer-card,
.admin-route-card,
.admin-contract-card {
  padding: 16px;
}

.admin-dns-runtime {
  border-color: rgba(110, 231, 255, 0.18);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.08), rgba(255, 47, 167, 0.045));
}

.admin-route-monitor.online {
  border-color: rgba(51, 214, 159, 0.2);
  background: linear-gradient(135deg, rgba(51, 214, 159, 0.08), rgba(110, 231, 255, 0.04));
}

.admin-route-monitor.watch {
  border-color: rgba(255, 204, 102, 0.22);
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.08), rgba(110, 231, 255, 0.035));
}

.admin-route-monitor.issue {
  border-color: rgba(255, 92, 138, 0.28);
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.1), rgba(110, 231, 255, 0.035));
}

.admin-regional-probe.online {
  border-color: rgba(110, 231, 255, 0.22);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.09), rgba(51, 214, 159, 0.04));
}

.admin-regional-probe.watch {
  border-color: rgba(255, 204, 102, 0.22);
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.075), rgba(110, 231, 255, 0.035));
}

.admin-regional-probe.issue {
  border-color: rgba(255, 92, 138, 0.32);
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.11), rgba(255, 47, 167, 0.035));
}

.admin-order-card.is-highlighted {
  border-color: rgba(110, 231, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(110, 231, 255, 0.16), 0 28px 90px rgba(0, 0, 0, 0.24);
}

.admin-order-head,
.admin-customer-head,
.admin-route-head,
.admin-contract-head,
.admin-exception-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-order-head h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.admin-order-head span,
.admin-customer-head span,
.admin-route-head span,
.admin-contract-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-order-grid,
.admin-customer-grid,
.admin-route-grid,
.admin-contract-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.admin-order-grid div,
.admin-customer-grid div,
.admin-route-grid div,
.admin-contract-grid div {
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.admin-order-grid span,
.admin-customer-grid span,
.admin-route-grid span,
.admin-contract-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-order-grid strong,
.admin-customer-grid strong,
.admin-route-grid strong,
.admin-contract-grid strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  overflow-wrap: anywhere;
}

.admin-order-note {
  margin: 0 0 12px;
  border: 1px solid rgba(255, 92, 138, 0.22);
  border-radius: 8px;
  background: rgba(255, 92, 138, 0.1);
  color: #fff;
  padding: 10px;
}

.admin-order-actions,
.admin-customer-orders,
.admin-route-standby {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-order-actions a,
.admin-order-actions button,
.admin-customer-orders button,
.admin-route-standby button,
.admin-exception-card button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 860;
}

.admin-order-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-customer-head strong,
.admin-route-head strong,
.admin-contract-head strong,
.admin-exception-card strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.admin-customer-head em,
.admin-route-head em,
.admin-contract-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(51, 214, 159, 0.28);
  border-radius: 999px;
  background: rgba(51, 214, 159, 0.1);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.admin-contract-card.ready {
  border-color: rgba(51, 214, 159, 0.22);
  background:
    linear-gradient(135deg, rgba(51, 214, 159, 0.08), transparent 58%),
    rgba(11, 16, 26, 0.76);
}

.admin-contract-card.blocked {
  border-color: rgba(255, 204, 102, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 204, 102, 0.1), transparent 58%),
    rgba(11, 16, 26, 0.76);
}

.admin-contract-card.blocked .admin-contract-head em {
  border-color: rgba(255, 204, 102, 0.3);
  background: rgba(255, 204, 102, 0.1);
}

.admin-contract-card.is-compact .admin-contract-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-contract-note {
  margin: 0 0 12px;
  border: 1px solid rgba(255, 204, 102, 0.22);
  border-radius: 8px;
  background: rgba(255, 204, 102, 0.08);
  color: #fff;
  padding: 10px;
  font-size: 13px;
  font-weight: 820;
}

.admin-contract-note.danger {
  border-color: rgba(255, 92, 138, 0.28);
  background: rgba(255, 92, 138, 0.1);
}

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

.admin-contract-actions span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.08);
  color: #d9fbff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

.admin-contract-actions button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(51, 214, 159, 0.24);
  border-radius: 999px;
  background: rgba(51, 214, 159, 0.1);
  color: #c8ffec;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.admin-contract-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.admin-contract-probe {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.admin-contract-probe.online {
  border-color: rgba(51, 214, 159, 0.24);
  background: rgba(51, 214, 159, 0.08);
}

.admin-contract-probe.issue {
  border-color: rgba(255, 92, 138, 0.28);
  background: rgba(255, 92, 138, 0.09);
}

.admin-contract-probe span,
.admin-contract-probe em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-contract-probe strong {
  color: #fff;
  font-size: 14px;
}

.admin-contract-json {
  margin-top: 12px;
}

.admin-contract-json summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.admin-contract-json pre {
  max-height: 320px;
  overflow: auto;
  margin: 10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #070b12;
  color: rgba(246, 248, 251, 0.82);
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.admin-customer-orders span,
.admin-route-standby span {
  color: var(--muted);
  font-size: 13px;
}

.admin-route-standby button {
  border-color: rgba(110, 231, 255, 0.28);
  background: rgba(110, 231, 255, 0.1);
}

.admin-probe-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-probe-list span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 840;
}

.admin-probe-list span.online {
  border-color: rgba(51, 214, 159, 0.22);
  background: rgba(51, 214, 159, 0.1);
}

.admin-probe-list span.issue {
  border-color: rgba(255, 92, 138, 0.28);
  background: rgba(255, 92, 138, 0.12);
}

.admin-probe-list span.stale,
.admin-probe-list span.waiting {
  border-color: rgba(255, 204, 102, 0.22);
  background: rgba(255, 204, 102, 0.08);
}

.admin-exception-card {
  align-items: center;
  padding: 14px;
}

.admin-exception-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-exception-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.admin-exception-card.issue {
  border-color: rgba(255, 92, 138, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 92, 138, 0.1), transparent 58%),
    rgba(11, 16, 26, 0.76);
}

.admin-exception-card.watch {
  border-color: rgba(255, 204, 102, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 204, 102, 0.1), transparent 58%),
    rgba(11, 16, 26, 0.76);
}

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

.admin-ops-grid button,
.admin-ops-grid a {
  display: grid;
  grid-template-rows: 28px 1fr;
  align-content: start;
  min-height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 14px;
  text-align: left;
}

.admin-ops-grid span {
  display: flex;
  min-height: 28px;
  align-items: center;
  color: var(--cyan);
  font-weight: 900;
  line-height: 1.25;
}

.admin-ops-grid strong {
  display: block;
  margin-top: 10px;
  color: rgba(246, 248, 251, 0.84);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.55;
}

.admin-op-log {
  margin-top: 14px;
}

.admin-op-log div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 10px;
  font-size: 13px;
}

.admin-audit-item {
  display: grid;
  gap: 5px;
}

.admin-audit-item strong,
.admin-audit-item span,
.admin-audit-item em {
  display: block;
}

.admin-audit-item strong {
  color: #fff;
  font-size: 14px;
}

.admin-audit-item span {
  color: rgba(246, 248, 251, 0.62);
  font-size: 12px;
}

.admin-audit-item em {
  color: var(--muted);
  font-style: normal;
}

.admin-audit-item.failed {
  border-color: rgba(255, 92, 138, 0.26);
  background: rgba(255, 92, 138, 0.08);
}

:root[data-theme="light"] .customer-login,
:root[data-theme="light"] .customer-session,
:root[data-theme="light"] .customer-support-card,
:root[data-theme="light"] .status-order-badge,
:root[data-theme="light"] .metric-grid,
:root[data-theme="light"] .orders-panel,
:root[data-theme="light"] .status-panel,
:root[data-theme="light"] .monitor-panel,
:root[data-theme="light"] .resource-panel,
:root[data-theme="light"] .customer-notice,
:root[data-theme="light"] .customer-panel,
:root[data-theme="light"] .customer-metrics article,
:root[data-theme="light"] .customer-line-card,
:root[data-theme="light"] .monitor-tile,
:root[data-theme="light"] .monitor-lists article,
:root[data-theme="light"] .mini-order,
:root[data-theme="light"] .mini-empty,
:root[data-theme="light"] .resource-metrics article,
:root[data-theme="light"] .resource-card,
:root[data-theme="light"] .product-tile,
:root[data-theme="light"] .filter-button,
:root[data-theme="light"] .order-card,
:root[data-theme="light"] .order-fields div,
:root[data-theme="light"] .result-grid article,
:root[data-theme="light"] .delivery-card,
:root[data-theme="light"] .line-meta-grid div,
:root[data-theme="light"] .line-subscription,
:root[data-theme="light"] .line-detail-empty,
:root[data-theme="light"] .line-detail-panel,
:root[data-theme="light"] .line-detail-item,
:root[data-theme="light"] .line-universal-card,
:root[data-theme="light"] .line-detail-grid div,
:root[data-theme="light"] .line-detail-sub,
:root[data-theme="light"] .line-remark-editor,
:root[data-theme="light"] .traffic-meter,
:root[data-theme="light"] .buy-summary,
:root[data-theme="light"] .quick-action-grid button,
:root[data-theme="light"] .quick-action-grid a,
:root[data-theme="light"] .dashboard-table-row,
:root[data-theme="light"] .wallet-hero,
:root[data-theme="light"] .wallet-stepper,
:root[data-theme="light"] .payment-method-card,
:root[data-theme="light"] .wallet-tips,
:root[data-theme="light"] .ledger-item,
:root[data-theme="light"] .traffic-topup-hero,
:root[data-theme="light"] .traffic-topup-card,
:root[data-theme="light"] .ticket-card,
:root[data-theme="light"] .guide-mini-grid article,
:root[data-theme="light"] .affiliate-stats div,
:root[data-theme="light"] .invite-link-box,
:root[data-theme="light"] .account-summary div,
:root[data-theme="light"] .payment-modal-card,
:root[data-theme="light"] .dashboard-payment-card,
:root[data-theme="light"] .guide-hero,
:root[data-theme="light"] .guide-start article,
:root[data-theme="light"] .guide-steps article,
:root[data-theme="light"] .proxy-box,
:root[data-theme="light"] .client-grid article,
:root[data-theme="light"] .admin-metric-grid article,
:root[data-theme="light"] .admin-readiness-hero,
:root[data-theme="light"] .admin-panel,
:root[data-theme="light"] .admin-readiness-item,
:root[data-theme="light"] .admin-monitor-tile,
:root[data-theme="light"] .admin-mini-item,
:root[data-theme="light"] .admin-table-row,
:root[data-theme="light"] .admin-order-card,
:root[data-theme="light"] .admin-customer-card,
:root[data-theme="light"] .admin-route-card,
:root[data-theme="light"] .admin-contract-card,
:root[data-theme="light"] .admin-dns-runtime,
:root[data-theme="light"] .admin-exception-card,
:root[data-theme="light"] .admin-ticket-card,
:root[data-theme="light"] .admin-order-grid div,
:root[data-theme="light"] .admin-customer-grid div,
:root[data-theme="light"] .admin-route-grid div,
:root[data-theme="light"] .admin-contract-grid div,
:root[data-theme="light"] .admin-contract-note,
:root[data-theme="light"] .admin-contract-probe,
:root[data-theme="light"] .admin-contract-json pre,
:root[data-theme="light"] .admin-op-log div,
:root[data-theme="light"] .admin-ops-grid button,
:root[data-theme="light"] .admin-internal-rule,
:root[data-theme="light"] .admin-ops-grid a {
  border-color: rgba(20, 39, 68, 0.12);
  background:
    linear-gradient(135deg, rgba(0, 139, 210, 0.055), transparent 54%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 55px rgba(30, 48, 76, 0.08);
  color: #0d1728;
}

:root[data-theme="light"] .customer-menu a.is-active,
:root[data-theme="light"] .customer-menu a:hover,
:root[data-theme="light"] .admin-menu button.is-active,
:root[data-theme="light"] .admin-menu button:hover,
:root[data-theme="light"] .filter-button.is-active,
:root[data-theme="light"] .product-tile.is-active,
:root[data-theme="light"] .payment-method-card.is-active {
  border-color: rgba(0, 139, 210, 0.3);
  background: rgba(0, 139, 210, 0.08);
  color: #082033;
}

:root[data-theme="light"] .customer-login input,
:root[data-theme="light"] .account-form input,
:root[data-theme="light"] .customer-buy-form input,
:root[data-theme="light"] .customer-buy-form select,
:root[data-theme="light"] .customer-buy-form textarea,
:root[data-theme="light"] .line-remark-editor input,
:root[data-theme="light"] .order-searchbar input,
:root[data-theme="light"] .wallet-form input,
:root[data-theme="light"] .ticket-form input,
:root[data-theme="light"] .ticket-form textarea,
:root[data-theme="light"] .admin-ticket-actions textarea,
:root[data-theme="light"] .admin-search {
  border-color: rgba(20, 39, 68, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #0d1728;
}

:root[data-theme="light"] .admin-ticket-actions button {
  border-color: rgba(0, 139, 210, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #006fae;
}

:root[data-theme="light"] .line-remark-editor button {
  border-color: rgba(0, 139, 210, 0.24);
  background: rgba(0, 139, 210, 0.08);
  color: #006fae;
}

:root[data-theme="light"] .portal-brand,
:root[data-theme="light"] .portal-header,
:root[data-theme="light"] .customer-topbar,
:root[data-theme="light"] .admin-topbar,
:root[data-theme="light"] .customer-session strong,
:root[data-theme="light"] .customer-support-card strong,
:root[data-theme="light"] .status-order-badge strong,
:root[data-theme="light"] .metric-card strong,
:root[data-theme="light"] .customer-notice strong,
:root[data-theme="light"] .customer-metrics strong,
:root[data-theme="light"] .product-tile,
:root[data-theme="light"] .product-tile strong,
:root[data-theme="light"] .mini-head strong,
:root[data-theme="light"] .mini-order strong,
:root[data-theme="light"] .resource-metrics strong,
:root[data-theme="light"] .resource-top strong,
:root[data-theme="light"] .line-card-head strong,
:root[data-theme="light"] .line-meta-grid strong,
:root[data-theme="light"] .line-detail-empty strong,
:root[data-theme="light"] .line-detail-title strong,
:root[data-theme="light"] .line-detail-head strong,
:root[data-theme="light"] .line-detail-grid strong,
:root[data-theme="light"] .line-universal-content strong,
:root[data-theme="light"] .traffic-meter-head strong,
:root[data-theme="light"] .buy-summary b,
:root[data-theme="light"] .traffic-topup-hero strong,
:root[data-theme="light"] .traffic-topup-card strong,
:root[data-theme="light"] .ticket-card strong,
:root[data-theme="light"] .quick-action-grid strong,
:root[data-theme="light"] .wallet-hero strong,
:root[data-theme="light"] .payment-method-card,
:root[data-theme="light"] .ledger-item strong,
:root[data-theme="light"] .ledger-item b,
:root[data-theme="light"] .guide-mini-grid strong,
:root[data-theme="light"] .affiliate-stats strong,
:root[data-theme="light"] .account-summary strong,
:root[data-theme="light"] .payment-modal-meta strong,
:root[data-theme="light"] .dashboard-payment-card strong,
:root[data-theme="light"] .guide-hero h1,
:root[data-theme="light"] .guide-start strong,
:root[data-theme="light"] .guide-steps strong,
:root[data-theme="light"] .proxy-box strong,
:root[data-theme="light"] .client-grid strong,
:root[data-theme="light"] .admin-topbar h1,
:root[data-theme="light"] .admin-side-card strong,
:root[data-theme="light"] .admin-metric-grid strong,
:root[data-theme="light"] .readiness-score,
:root[data-theme="light"] .admin-readiness-item strong,
:root[data-theme="light"] .admin-monitor-tile strong,
:root[data-theme="light"] .admin-mini-item strong,
:root[data-theme="light"] .admin-table-row span:first-child,
:root[data-theme="light"] .admin-order-head h3,
:root[data-theme="light"] .admin-customer-head strong,
:root[data-theme="light"] .admin-route-head strong,
:root[data-theme="light"] .admin-contract-head strong,
:root[data-theme="light"] .admin-exception-card strong,
:root[data-theme="light"] .admin-ticket-head strong,
:root[data-theme="light"] .admin-internal-rule strong,
:root[data-theme="light"] .admin-order-grid strong,
:root[data-theme="light"] .admin-customer-grid strong,
:root[data-theme="light"] .admin-route-grid strong,
:root[data-theme="light"] .admin-contract-grid strong,
:root[data-theme="light"] .admin-contract-probe strong,
:root[data-theme="light"] .admin-ops-grid strong,
:root[data-theme="light"] .admin-audit-item strong {
  color: #0d1728;
}

:root[data-theme="light"] .portal-nav,
:root[data-theme="light"] .customer-menu a,
:root[data-theme="light"] .customer-session span,
:root[data-theme="light"] .customer-support-card p,
:root[data-theme="light"] .portal-hero p:not(.eyebrow),
:root[data-theme="light"] .status-order-badge span,
:root[data-theme="light"] .metric-card span,
:root[data-theme="light"] .customer-notice p,
:root[data-theme="light"] .customer-metrics span,
:root[data-theme="light"] .customer-buy-form label,
:root[data-theme="light"] .product-tile span,
:root[data-theme="light"] .product-tile em,
:root[data-theme="light"] .monitor-tile span,
:root[data-theme="light"] .monitor-tile em,
:root[data-theme="light"] .mini-head span,
:root[data-theme="light"] .mini-empty,
:root[data-theme="light"] .mini-order em,
:root[data-theme="light"] .mini-order small,
:root[data-theme="light"] .resource-metrics span,
:root[data-theme="light"] .resource-top span,
:root[data-theme="light"] .resource-specs,
:root[data-theme="light"] .resource-endpoint,
:root[data-theme="light"] .line-card-head span,
:root[data-theme="light"] .line-meta-grid span,
:root[data-theme="light"] .line-subscription span,
:root[data-theme="light"] .line-detail-empty span,
:root[data-theme="light"] .line-detail-title span,
:root[data-theme="light"] .line-detail-head span,
:root[data-theme="light"] .line-detail-grid span,
:root[data-theme="light"] .line-detail-sub span,
:root[data-theme="light"] .line-universal-content p,
:root[data-theme="light"] .traffic-meter-head span,
:root[data-theme="light"] .traffic-meter-meta span,
:root[data-theme="light"] .traffic-topup-hero p,
:root[data-theme="light"] .traffic-topup-card em,
:root[data-theme="light"] .ticket-card p,
:root[data-theme="light"] .ticket-card span,
:root[data-theme="light"] .ticket-form label,
:root[data-theme="light"] .buy-summary small,
:root[data-theme="light"] .action-panel p:not(.eyebrow),
:root[data-theme="light"] .affiliate-grid p,
:root[data-theme="light"] .dashboard-table-head,
:root[data-theme="light"] .wallet-hero span,
:root[data-theme="light"] .wallet-form label,
:root[data-theme="light"] .wallet-tips,
:root[data-theme="light"] .ledger-item em,
:root[data-theme="light"] .guide-mini-grid span,
:root[data-theme="light"] .guide-mini-grid p,
:root[data-theme="light"] .affiliate-stats span,
:root[data-theme="light"] .invite-link-box span,
:root[data-theme="light"] .account-summary span,
:root[data-theme="light"] .account-form label,
:root[data-theme="light"] .payment-modal-meta p,
:root[data-theme="light"] .dashboard-payment-card span,
:root[data-theme="light"] .dashboard-payment-card p,
:root[data-theme="light"] .guide-hero p,
:root[data-theme="light"] .guide-start span,
:root[data-theme="light"] .guide-steps span,
:root[data-theme="light"] .proxy-box span,
:root[data-theme="light"] .client-grid span,
:root[data-theme="light"] .admin-topbar span,
:root[data-theme="light"] .admin-side-card p,
:root[data-theme="light"] .admin-ticket-head span,
:root[data-theme="light"] .admin-ticket-card p,
:root[data-theme="light"] .ticket-attachment-control span,
:root[data-theme="light"] .ticket-attachment-preview span,
:root[data-theme="light"] .ticket-attachment-thumb span,
:root[data-theme="light"] .admin-readiness-item span,
:root[data-theme="light"] .admin-readiness-item em,
:root[data-theme="light"] .admin-mini-item span,
:root[data-theme="light"] .admin-mini-item em,
:root[data-theme="light"] .admin-mini-item small,
:root[data-theme="light"] .admin-order-head span,
:root[data-theme="light"] .admin-customer-head span,
:root[data-theme="light"] .admin-route-head span,
:root[data-theme="light"] .admin-contract-head span,
:root[data-theme="light"] .admin-order-grid span,
:root[data-theme="light"] .admin-customer-grid span,
:root[data-theme="light"] .admin-route-grid span,
:root[data-theme="light"] .admin-contract-grid span,
:root[data-theme="light"] .admin-contract-actions span,
:root[data-theme="light"] .admin-contract-probe span,
:root[data-theme="light"] .admin-contract-probe em,
:root[data-theme="light"] .admin-internal-rule span,
:root[data-theme="light"] .admin-exception-card span,
:root[data-theme="light"] .admin-exception-card em,
:root[data-theme="light"] .admin-audit-item span,
:root[data-theme="light"] .admin-audit-item em {
  color: #526176;
}

:root[data-theme="light"] .ghost-button,
:root[data-theme="light"] .line-actions a,
:root[data-theme="light"] .line-actions button,
:root[data-theme="light"] .line-detail-actions a,
:root[data-theme="light"] .line-detail-actions button,
:root[data-theme="light"] .line-action-payment,
:root[data-theme="light"] .order-actions button,
:root[data-theme="light"] .resource-actions button,
:root[data-theme="light"] .admin-order-actions a,
:root[data-theme="light"] .admin-order-actions button,
:root[data-theme="light"] .admin-customer-orders button,
:root[data-theme="light"] .admin-route-standby button,
:root[data-theme="light"] .admin-exception-card button,
:root[data-theme="light"] .admin-contract-actions button {
  border-color: rgba(20, 39, 68, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: #0d1728;
}

:root[data-theme="light"] .line-action-payment select {
  background: #ffffff;
  color: #0d1728;
}

:root[data-theme="light"] .line-actions a:first-child,
:root[data-theme="light"] .line-detail-actions button:first-child,
:root[data-theme="light"] .order-actions button.primary,
:root[data-theme="light"] .dashboard-table-row a,
:root[data-theme="light"] .affiliate-hint-link {
  border-color: rgba(0, 139, 210, 0.28);
  background: rgba(0, 139, 210, 0.08);
  color: #005d96;
}

:root[data-theme="light"] .resource-status,
:root[data-theme="light"] .status-pill,
:root[data-theme="light"] .line-detail-head em,
:root[data-theme="light"] .admin-token-state,
:root[data-theme="light"] .readiness-label,
:root[data-theme="light"] .readiness-mark,
:root[data-theme="light"] .admin-route-head em,
:root[data-theme="light"] .admin-contract-head em,
:root[data-theme="light"] .admin-customer-head em,
:root[data-theme="light"] .admin-probe-list span {
  color: #0d1728;
}

:root[data-theme="light"] .payment-modal {
  background: rgba(6, 14, 28, 0.35);
}

:root[data-theme="light"] .payment-modal-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 139, 210, 0.12), transparent 42%),
    #ffffff;
}

:root[data-theme="light"] .dialog-close {
  border-color: rgba(20, 39, 68, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #0d1728;
}

:root[data-theme="light"] .wallet-stepper button,
:root[data-theme="light"] .wallet-amounts button {
  border-color: rgba(20, 39, 68, 0.12);
  background: rgba(244, 248, 252, 0.92);
  color: #0d1728;
}

:root[data-theme="light"] .admin-exception-card.issue,
:root[data-theme="light"] .admin-contract-card.blocked,
:root[data-theme="light"] .traffic-meter.is-danger {
  border-color: rgba(217, 54, 102, 0.26);
  background:
    linear-gradient(135deg, rgba(217, 54, 102, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] .admin-exception-card.watch,
:root[data-theme="light"] .traffic-meter.is-warning {
  border-color: rgba(184, 120, 0, 0.26);
  background:
    linear-gradient(135deg, rgba(184, 120, 0, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.88);
}

@media (max-width: 760px) {
  body.admin-body,
  body.dashboard-body {
    display: block;
  }

  .admin-sidebar,
  .customer-sidebar {
    position: sticky;
    z-index: 20;
    height: auto;
    top: 0;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    backdrop-filter: blur(18px);
  }

  .admin-menu,
  .customer-menu {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .customer-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-menu button,
  .customer-menu a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .nav-icon {
    width: auto;
    margin-right: 8px;
  }

  .customer-support-card {
    display: none;
  }

  .admin-side-card {
    display: none;
  }

  .admin-main,
  .customer-main {
    padding: 18px 14px 52px;
  }

  .admin-topbar,
  .customer-topbar,
  .customer-layout,
  .dashboard-grid-two,
  .admin-grid-two,
  .admin-readiness-hero,
  .wallet-layout,
  .affiliate-grid,
  .dashboard-payment-card {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-readiness-hero {
    display: grid;
  }

  .admin-top-actions {
    justify-content: flex-start;
  }

  .admin-metric-grid,
  .admin-monitor-grid,
  .admin-order-grid,
  .admin-customer-grid,
  .admin-route-grid,
  .admin-contract-grid,
  .admin-ops-grid {
    grid-template-columns: 1fr;
  }

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

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

  .buy-summary {
    grid-column: 1 / -1;
  }

  .readiness-score {
    width: 96px;
    height: 96px;
    font-size: 34px;
  }

  .admin-resource-list {
    max-height: none;
  }

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

  .customer-session {
    width: auto;
    justify-self: start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .customer-session div {
    flex: 0 1 auto;
    margin-right: 0;
  }

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

  .customer-metrics,
  .product-strip,
  .customer-buy-form,
  .line-meta-grid,
  .line-detail-grid,
  .quick-action-grid,
  .guide-mini-grid,
  .wallet-methods,
  .affiliate-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-table-head {
    display: none;
  }

  .dashboard-table-row,
  .ledger-item,
  .account-summary,
  .delivery-line-item,
  .delivery-universal-card {
    grid-template-columns: 1fr;
  }

  .delivery-qr-box {
    width: min(240px, 76vw);
  }

  .status-order-badge {
    min-width: 0;
    margin-top: 14px;
  }

  .delivery-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .line-detail-actions a,
  .line-detail-actions button {
    flex: 1 1 42%;
    justify-content: center;
  }

  .payment-modal-actions {
    grid-template-columns: 1fr;
  }

  .wallet-hero,
  .panel-head {
    align-items: flex-start;
  }

  .customer-buy-form .wide-control {
    grid-column: 1 / -1;
  }

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

  .customer-buy-form .primary-button {
    grid-column: 1 / -1;
  }

  .portal-header,
  .portal-hero,
  .order-card-head,
  .status-head {
    display: block;
  }

  .portal-nav {
    margin-top: 10px;
  }

  .portal-shell {
    width: calc(100% - 28px);
    padding: 32px 0 56px;
  }

  .primary-link {
    margin-top: 14px;
    width: 100%;
  }

  .metric-grid,
  .order-fields,
  .delivery-card,
  .monitor-grid,
  .monitor-lists,
  .resource-metrics,
  .guide-start,
  .guide-steps,
  .proxy-box,
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .resource-list {
    max-height: none;
  }

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

  .guide-hero .primary-link {
    margin-top: 14px;
  }

  .order-actions button {
    flex: 1 1 42%;
  }

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

@media (max-width: 520px) {
  .customer-metrics,
  .product-strip,
  .customer-buy-form,
  .socks-fields,
  .line-meta-grid,
  .line-detail-grid,
  .quick-action-grid,
  .guide-mini-grid,
  .wallet-methods,
  .affiliate-stats {
    grid-template-columns: 1fr;
  }

  .wallet-hero {
    display: grid;
    padding: 18px;
  }

  .buy-summary {
    display: grid;
  }

  .wallet-stepper,
  .wallet-submit {
    width: 100%;
  }

  .payment-modal-card {
    padding: 20px 16px;
  }

  .payment-modal-qr {
    width: min(250px, 76vw);
    height: min(250px, 76vw);
  }

  .line-detail-head {
    display: grid;
  }

  .line-universal-card {
    grid-template-columns: 1fr;
  }

  .line-qr-box {
    width: min(240px, 76vw);
  }

  .line-detail-actions a,
  .line-detail-actions button {
    flex-basis: 100%;
  }

  .guide-start,
  .guide-steps,
  .monitor-grid,
  .monitor-lists,
  .proxy-box,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .guide-start article,
  .guide-steps article,
  .client-grid article {
    min-height: auto;
  }
}

.customer-topbar > .theme-toggle {
  justify-self: start;
  width: auto;
}

:root[data-theme="light"] .admin-side-card {
  border-color: rgba(20, 39, 68, 0.12);
  background:
    linear-gradient(135deg, rgba(0, 139, 210, 0.06), transparent 54%),
    rgba(255, 255, 255, 0.88);
  color: #0d1728;
  box-shadow: 0 18px 55px rgba(30, 48, 76, 0.08);
}

:root[data-theme="light"] .admin-side-card strong {
  color: #0d1728;
}

:root[data-theme="light"] .admin-side-card p {
  color: #526176;
}

/* Light mode polish for customer/admin portals. */
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .nav-icon,
:root[data-theme="light"] .admin-menu button span {
  color: #006fae;
}

:root[data-theme="light"] .portal-mark {
  border-color: rgba(20, 39, 68, 0.14);
  background:
    linear-gradient(135deg, #006fae 0%, #6f4dff 100%),
    #006fae;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 111, 174, 0.16);
}

:root[data-theme="light"] .primary-button,
:root[data-theme="light"] .wallet-submit,
:root[data-theme="light"] .admin-primary-button {
  color: #fff;
}

:root[data-theme="light"] .portal-nav,
:root[data-theme="light"] .customer-menu a,
:root[data-theme="light"] .admin-menu button {
  color: #32435a;
}

:root[data-theme="light"] .customer-menu a.is-active,
:root[data-theme="light"] .customer-menu a:hover,
:root[data-theme="light"] .admin-menu button.is-active,
:root[data-theme="light"] .admin-menu button:hover {
  border-color: rgba(0, 111, 174, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.11), rgba(111, 77, 255, 0.055)),
    rgba(255, 255, 255, 0.88);
  color: #0d1728;
}

:root[data-theme="light"] .customer-menu a.is-active .nav-icon,
:root[data-theme="light"] .customer-menu a:hover .nav-icon,
:root[data-theme="light"] .admin-menu button.is-active span,
:root[data-theme="light"] .admin-menu button:hover span {
  color: #005f96;
}

:root[data-theme="light"] .customer-sidebar,
:root[data-theme="light"] .admin-sidebar {
  background:
    linear-gradient(180deg, rgba(0, 111, 174, 0.055), rgba(255, 255, 255, 0.94) 42%),
    rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .customer-main,
:root[data-theme="light"] .admin-main {
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 111, 174, 0.07), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(111, 77, 255, 0.1), transparent 32%),
    #f4f8fc;
}

:root[data-theme="light"] .status-pill,
:root[data-theme="light"] .admin-token-state,
:root[data-theme="light"] .readiness-label,
:root[data-theme="light"] .readiness-mark,
:root[data-theme="light"] .resource-status {
  border-color: rgba(0, 111, 174, 0.2);
  background: rgba(0, 111, 174, 0.07);
  color: #0a3958;
}

:root[data-theme="light"] .admin-exception-card.issue,
:root[data-theme="light"] .admin-contract-card.blocked,
:root[data-theme="light"] .traffic-meter.is-danger {
  border-color: rgba(217, 54, 102, 0.24);
  background:
    linear-gradient(135deg, rgba(217, 54, 102, 0.08), rgba(255, 255, 255, 0.9));
}

:root[data-theme="light"] .admin-exception-card.watch,
:root[data-theme="light"] .traffic-meter.is-warning {
  border-color: rgba(184, 120, 0, 0.24);
  background:
    linear-gradient(135deg, rgba(184, 120, 0, 0.08), rgba(255, 255, 255, 0.9));
}

:root[data-theme="light"] .payment-modal {
  background: rgba(6, 14, 28, 0.38);
}

/* Final light-mode overrides for admin hero cards. Keep this after base/admin rules. */
:root[data-theme="light"] .admin-readiness-hero,
:root[data-theme="light"] .admin-provisioning-hero {
  border-color: rgba(0, 111, 174, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.1), transparent 48%),
    linear-gradient(100deg, rgba(111, 77, 255, 0.08), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .admin-readiness-hero h2,
:root[data-theme="light"] .admin-provisioning-hero h2 {
  color: #0d1728;
  text-shadow: none;
}

:root[data-theme="light"] .admin-readiness-hero span,
:root[data-theme="light"] .admin-provisioning-hero span {
  color: #43536a;
}

:root[data-theme="light"] .admin-readiness-hero .eyebrow,
:root[data-theme="light"] .admin-provisioning-hero .eyebrow {
  color: #006fae;
}

:root[data-theme="light"] [data-readiness-score],
:root[data-theme="light"] [data-provisioning-blocked] {
  color: #0d1728;
}

:root[data-theme="light"] .readiness-score {
  border-color: rgba(0, 111, 174, 0.24);
  background:
    radial-gradient(circle, rgba(0, 111, 174, 0.12), transparent 58%),
    #ffffff;
  color: #0d1728;
}

/* Relay-site doc2 refinements: keep dark palette intact, polish layout and light theme. */
.customer-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.customer-tools .customer-login {
  flex: 1 1 620px;
}

.customer-tools .customer-session {
  flex: 0 0 auto;
}

.customer-wallet-pill,
.customer-account-pill {
  min-width: 0;
}

.customer-wallet-pill {
  display: grid;
  min-height: 40px;
  min-width: 116px;
  align-content: center;
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.08);
  color: #fff;
  padding: 6px 10px;
  text-align: left;
}

.customer-wallet-pill span,
.customer-account-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 840;
}

.customer-wallet-pill strong,
.customer-account-pill strong {
  margin-top: 0;
}

.customer-account-pill {
  margin-right: 0;
}

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

.customer-buy-form .primary-button {
  min-height: 76px;
  align-self: stretch;
}

.guide-mini-grid article {
  min-height: 168px;
}

.guide-mini-grid ol {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.ticket-card-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(110, 231, 255, 0.28);
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.1);
  color: #fff;
  padding: 4px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-ops-grid button,
.admin-ops-grid a {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
}

:root[data-theme="light"] body,
:root[data-theme="light"] body.dashboard-body,
:root[data-theme="light"] body.admin-body {
  background:
    radial-gradient(circle at 9% 0%, rgba(0, 111, 174, 0.08), transparent 30%),
    radial-gradient(circle at 88% 6%, rgba(111, 77, 255, 0.09), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

:root[data-theme="light"] .customer-topbar,
:root[data-theme="light"] .admin-topbar {
  color: #0d1728;
}

:root[data-theme="light"] .customer-wallet-pill {
  border-color: rgba(0, 111, 174, 0.2);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.08), rgba(111, 77, 255, 0.06)),
    #ffffff;
  color: #0d1728;
  box-shadow: 0 12px 28px rgba(30, 48, 76, 0.08);
}

:root[data-theme="light"] .customer-wallet-pill span,
:root[data-theme="light"] .customer-account-pill span {
  color: #526176;
}

:root[data-theme="light"] .customer-wallet-pill strong,
:root[data-theme="light"] .customer-account-pill strong {
  color: #0d1728;
}

:root[data-theme="light"] .line-detail-head em,
:root[data-theme="light"] .ticket-card-head em {
  border-color: rgba(0, 111, 174, 0.24);
  background: rgba(0, 111, 174, 0.08);
  color: #0a3958;
}

:root[data-theme="light"] .traffic-meter .traffic-addon-button,
:root[data-theme="light"] .traffic-meter .traffic-renew-button,
:root[data-theme="light"] .traffic-meter-actions a,
:root[data-theme="light"] .traffic-topup-card button {
  border: 0;
  background: linear-gradient(90deg, #6f4dff, #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(111, 77, 255, 0.18);
}

:root[data-theme="light"] .traffic-meter-actions a {
  border: 1px solid rgba(0, 111, 174, 0.18);
  background: #ffffff;
  color: #0a3958;
  box-shadow: none;
}

:root[data-theme="light"] .traffic-meter .traffic-addon-button,
:root[data-theme="light"] .traffic-meter .traffic-renew-button {
  background: linear-gradient(135deg, #6f4dff, #ff2fa7);
}

:root[data-theme="light"] .line-remark-mini input {
  border-color: rgba(0, 111, 174, 0.18);
  background: #fff;
  color: #102033;
}

:root[data-theme="light"] .line-title-editor input {
  border-color: rgba(0, 111, 174, 0.2);
  background: #ffffff;
  color: #102033;
}

:root[data-theme="light"] .line-title-editor input::placeholder {
  color: #6b7c92;
}

:root[data-theme="light"] .line-title-editor button {
  border-color: rgba(0, 111, 174, 0.18);
  background: linear-gradient(90deg, #2563eb, #6f4dff);
  color: #ffffff;
}

:root[data-theme="light"] .line-remark-mini button {
  border-color: rgba(0, 111, 174, 0.22);
  background: #eef9ff;
  color: #0a3958;
}

:root[data-theme="light"] .line-detail-sub strong,
:root[data-theme="light"] .dashboard-table-row a,
:root[data-theme="light"] .delivery-universal-card a,
:root[data-theme="light"] .delivery-card a,
:root[data-theme="light"] .guide-link,
:root[data-theme="light"] .secondary-guide-link {
  color: #005f96;
}

:root[data-theme="light"] .guide-mini-grid ol,
:root[data-theme="light"] .guide-note,
:root[data-theme="light"] .faq-list p {
  color: #526176;
}

:root[data-theme="light"] .status-panel,
:root[data-theme="light"] .delivery-universal-card,
:root[data-theme="light"] .delivery-line-item,
:root[data-theme="light"] .delivery-guide,
:root[data-theme="light"] .payment-review-card,
:root[data-theme="light"] .provision-card {
  border-color: rgba(20, 39, 68, 0.12);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.055), transparent 54%),
    rgba(255, 255, 255, 0.9);
  color: #0d1728;
  box-shadow: 0 18px 55px rgba(30, 48, 76, 0.08);
}

:root[data-theme="light"] .delivery-card {
  border-color: rgba(20, 39, 68, 0.12);
  background: rgba(20, 39, 68, 0.1);
  color: #0d1728;
  box-shadow: 0 18px 55px rgba(30, 48, 76, 0.08);
}

:root[data-theme="light"] .delivery-card div {
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.045), transparent 54%),
    rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .delivery-card a {
  color: #005f96;
}

:root[data-theme="light"] .timeline span,
:root[data-theme="light"] .delivery-steps span {
  border-color: rgba(20, 39, 68, 0.13);
  background: rgba(255, 255, 255, 0.86);
  color: #43536a;
}

:root[data-theme="light"] .timeline span.is-done,
:root[data-theme="light"] .timeline span.is-current,
:root[data-theme="light"] .delivery-steps span.is-done,
:root[data-theme="light"] .delivery-steps span.is-current {
  border-color: rgba(0, 111, 174, 0.28);
  background: rgba(0, 111, 174, 0.08);
  color: #0d1728;
}

:root[data-theme="light"] .admin-ops-grid button,
:root[data-theme="light"] .admin-ops-grid a {
  color: #0d1728;
}

/* Final contrast pass for relay customer/admin/status screens. */
.admin-resource-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.resource-metrics article em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.line-detail-item {
  overflow: hidden;
}

.line-detail-grid div,
.line-detail-sub,
.line-remark-editor {
  border-color: rgba(125, 215, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.line-universal-card,
.delivery-universal-card,
.delivery-guide,
.payment-review-card,
.provision-card {
  border-color: rgba(125, 215, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.09), transparent 52%),
    rgba(255, 255, 255, 0.045);
}

.delivery-card {
  border: 1px solid rgba(125, 215, 255, 0.18);
  border-radius: 8px;
}

.delivery-card span,
.line-detail-grid span,
.line-detail-sub span {
  color: #98acc7;
  font-weight: 840;
}

.delivery-card strong,
.line-detail-grid strong,
.line-detail-sub strong,
.provision-head span,
.delivery-brief strong,
.delivery-guide strong,
.delivery-universal-card strong {
  color: #f8fbff;
}

.payment-review-card strong {
  color: #ffd8e6;
}

.line-detail-actions a,
.line-detail-actions button,
.delivery-action-row a,
.delivery-action-row button {
  justify-content: center;
}

:root[data-theme="light"] .brand-logo,
:root[data-theme="light"] .portal-logo {
  filter: drop-shadow(0 12px 24px rgba(30, 48, 76, 0.12));
}

:root[data-theme="light"] .status-panel,
:root[data-theme="light"] .result-grid article,
:root[data-theme="light"] .delivery-card,
:root[data-theme="light"] .delivery-card > div,
:root[data-theme="light"] .delivery-brief,
:root[data-theme="light"] .delivery-guide,
:root[data-theme="light"] .delivery-universal-card,
:root[data-theme="light"] .line-universal-card,
:root[data-theme="light"] .line-detail-grid div,
:root[data-theme="light"] .line-detail-sub,
:root[data-theme="light"] .line-remark-editor,
:root[data-theme="light"] .provision-card,
:root[data-theme="light"] .payment-review-card {
  border-color: rgba(20, 39, 68, 0.16);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.045), transparent 52%),
    #ffffff;
  color: #0d1728;
  box-shadow: 0 16px 44px rgba(30, 48, 76, 0.08);
}

:root[data-theme="light"] .result-grid span,
:root[data-theme="light"] .delivery-card span,
:root[data-theme="light"] .line-detail-grid span,
:root[data-theme="light"] .line-detail-sub span,
:root[data-theme="light"] .line-remark-editor span,
:root[data-theme="light"] .resource-metrics article em,
:root[data-theme="light"] .admin-resource-hint {
  color: #43536a;
}

:root[data-theme="light"] .result-grid strong,
:root[data-theme="light"] .delivery-card strong,
:root[data-theme="light"] .delivery-card-universal-content > span,
:root[data-theme="light"] .line-detail-grid strong,
:root[data-theme="light"] .line-detail-sub strong,
:root[data-theme="light"] .delivery-brief strong,
:root[data-theme="light"] .delivery-guide strong,
:root[data-theme="light"] .delivery-universal-card strong,
:root[data-theme="light"] .provision-head span,
:root[data-theme="light"] .payment-review-card strong {
  color: #0d1728;
}

:root[data-theme="light"] .delivery-card-universal {
  background: #ffffff;
  color: #0d1728;
}

:root[data-theme="light"] .delivery-subscription-inline {
  border-top-color: rgba(20, 39, 68, 0.12);
}

:root[data-theme="light"] .delivery-subscription-inline span {
  color: #43536a;
}

:root[data-theme="light"] .delivery-brief p,
:root[data-theme="light"] .delivery-guide span,
:root[data-theme="light"] .delivery-card-universal p,
:root[data-theme="light"] .delivery-universal-card p,
:root[data-theme="light"] .provision-card p,
:root[data-theme="light"] .payment-review-card p {
  color: #43536a;
}

:root[data-theme="light"] .progress-track,
:root[data-theme="light"] .traffic-meter-bar {
  border-color: rgba(20, 39, 68, 0.14);
  background: #dbe6f2;
  box-shadow: inset 0 0 0 1px rgba(20, 39, 68, 0.04);
}

:root[data-theme="light"] .progress-track span,
:root[data-theme="light"] .traffic-meter-bar i {
  background: linear-gradient(90deg, #6f4dff, #0284c7);
  box-shadow: 0 0 18px rgba(2, 132, 199, 0.28);
}

:root[data-theme="light"] .primary-link,
:root[data-theme="light"] .line-actions a:first-child,
:root[data-theme="light"] .line-detail-actions button:first-child,
:root[data-theme="light"] .delivery-action-row button:first-child,
:root[data-theme="light"] .guide-link,
:root[data-theme="light"] .readiness-action-button,
:root[data-theme="light"] .admin-order-actions button[data-order-action="delivered"] {
  border: 0;
  background: linear-gradient(90deg, #6f4dff, #237dff);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(111, 77, 255, 0.2);
}

:root[data-theme="light"] .delivery-action-row a,
:root[data-theme="light"] .secondary-guide-link,
:root[data-theme="light"] .delivery-card-universal .delivery-main-link,
:root[data-theme="light"] .delivery-universal-card a,
:root[data-theme="light"] .delivery-card a,
:root[data-theme="light"] .line-universal-content strong,
:root[data-theme="light"] .line-detail-sub strong {
  color: #005f96;
}

:root[data-theme="light"] .line-universal-content > span,
:root[data-theme="light"] .line-subscription-inline > span {
  color: #43536a;
}

:root[data-theme="light"] .admin-readiness-hero h2,
:root[data-theme="light"] .admin-readiness-hero span,
:root[data-theme="light"] .admin-readiness-item strong,
:root[data-theme="light"] .admin-readiness-item span,
:root[data-theme="light"] .admin-readiness-item em {
  color: #0d1728;
}

:root[data-theme="light"] .readiness-mark {
  border-color: rgba(0, 111, 174, 0.24);
  background: rgba(0, 111, 174, 0.08);
  color: #075985;
}

:root[data-theme="light"] .admin-order-note {
  border-color: rgba(214, 54, 102, 0.24);
  background: rgba(214, 54, 102, 0.08);
  color: #7f1235;
}

:root[data-theme="light"] .customer-tools .customer-session {
  gap: 8px;
  padding-left: 0;
}

:root[data-theme="light"] .customer-account-pill {
  margin-left: 0;
}

@media (max-width: 1040px) {
  .customer-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .customer-tools .customer-login {
    flex-basis: 100%;
  }

  .customer-tools .customer-session {
    flex-basis: auto;
  }
}

/* Fresh relay customer UI queue, 2026-05-23. Kept at file end to beat older review overrides. */
.line-filterbar {
  align-items: center;
}

.line-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px) auto;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
}

.line-search label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
}

.line-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 12px;
  font: inherit;
  font-weight: 760;
}

.line-search-submit {
  min-height: 38px;
  border: 1px solid rgba(110, 231, 255, 0.24);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.1);
  color: #fff;
  padding: 0 14px;
  font-weight: 860;
}

.customer-tools .customer-session {
  gap: 8px;
  align-items: stretch;
  padding: 10px 12px;
}

.customer-tools .customer-session > .ghost-button.compact,
.customer-tools .customer-session > .primary-button.compact,
.customer-tools .customer-session > .customer-wallet-pill,
.customer-tools .customer-session > .customer-account-pill {
  min-height: 48px;
}

.customer-theme-toggle {
  min-width: 42px;
  width: 42px;
  padding: 0;
}

.customer-wallet-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 126px;
  padding: 0 12px;
}

.customer-account-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  max-width: 260px;
}

.customer-buy-form .quantity-control {
  max-width: none;
}

.customer-buy-form .quantity-control input {
  width: 100%;
}

.line-list {
  gap: 18px;
}

.customer-line-card:not(.is-compact) {
  border-color: rgba(110, 231, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(110, 231, 255, 0.05) inset,
    0 18px 52px rgba(0, 0, 0, 0.18);
}

.line-detail-panel {
  margin-top: 12px;
}

.line-detail-list {
  margin-top: 0;
}

.line-detail-item {
  border-color: rgba(110, 231, 255, 0.22);
}

.guide-mini-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.guide-mini-grid article {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  column-gap: 22px;
  min-height: auto;
  align-items: start;
}

.guide-mini-grid article span,
.guide-mini-grid article strong {
  grid-column: 1;
}

.guide-mini-grid article ol,
.guide-mini-grid article p {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
}

.line-detail-actions a,
.line-detail-actions button,
.delivery-action-row a,
.delivery-action-row button {
  min-height: 36px;
  justify-content: center;
}

.line-detail-actions button:disabled,
.delivery-action-row button:disabled {
  border-color: rgba(110, 231, 255, 0.16);
  background: rgba(110, 231, 255, 0.08);
  color: rgba(246, 248, 251, 0.6);
  opacity: 1;
}

:root[data-theme="light"] .line-search {
  color: #43536a;
}

:root[data-theme="light"] .line-search input {
  border-color: rgba(20, 39, 68, 0.16);
  background: #ffffff;
  color: #0d1728;
  box-shadow: 0 10px 24px rgba(30, 48, 76, 0.06);
}

:root[data-theme="light"] .line-search-submit {
  border-color: rgba(0, 111, 174, 0.22);
  background: rgba(0, 111, 174, 0.08);
  color: #0d1728;
}

:root[data-theme="light"] .customer-session,
:root[data-theme="light"] .customer-tools .customer-session {
  border-color: rgba(20, 39, 68, 0.12);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.045), rgba(111, 77, 255, 0.055)),
    #ffffff;
  box-shadow: 0 18px 45px rgba(30, 48, 76, 0.08);
  color: #0d1728;
}

:root[data-theme="light"] .customer-theme-toggle {
  border-color: rgba(111, 77, 255, 0.18);
  background: rgba(111, 77, 255, 0.08);
  color: #5638d4;
}

:root[data-theme="light"] .customer-line-card:not(.is-compact) {
  border-color: rgba(0, 111, 174, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.035), transparent 54%),
    #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 111, 174, 0.04) inset,
    0 18px 48px rgba(30, 48, 76, 0.09);
}

:root[data-theme="light"] .line-detail-item,
:root[data-theme="light"] .line-detail-panel,
:root[data-theme="light"] .line-universal-card,
:root[data-theme="light"] .line-detail-grid div,
:root[data-theme="light"] .line-detail-sub,
:root[data-theme="light"] .line-remark-editor,
:root[data-theme="light"] .traffic-meter,
:root[data-theme="light"] .status-panel,
:root[data-theme="light"] .result-grid article,
:root[data-theme="light"] .delivery-card,
:root[data-theme="light"] .delivery-card div,
:root[data-theme="light"] .delivery-brief,
:root[data-theme="light"] .delivery-universal-card,
:root[data-theme="light"] .delivery-guide {
  border-color: rgba(20, 39, 68, 0.16);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.025), transparent 52%),
    #ffffff;
  color: #0d1728;
}

:root[data-theme="light"] .line-detail-actions a,
:root[data-theme="light"] .line-detail-actions button,
:root[data-theme="light"] .delivery-action-row a,
:root[data-theme="light"] .delivery-action-row button,
:root[data-theme="light"] .secondary-guide-link {
  border-color: rgba(20, 39, 68, 0.16);
  background: #ffffff;
  color: #0d1728;
  box-shadow: 0 8px 20px rgba(30, 48, 76, 0.06);
}

:root[data-theme="light"] .support-guide-link {
  border-color: rgba(0, 111, 174, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 139, 210, 0.14), rgba(111, 77, 255, 0.08)),
    #eef9ff;
  color: #073d5d;
  box-shadow: 0 12px 28px rgba(0, 111, 174, 0.14);
}

:root[data-theme="light"] .support-guide-link:hover,
:root[data-theme="light"] .support-guide-link:focus-visible {
  border-color: rgba(0, 111, 174, 0.56);
  background:
    linear-gradient(135deg, rgba(0, 139, 210, 0.2), rgba(111, 77, 255, 0.12)),
    #e6f6ff;
  color: #062f49;
}

:root[data-theme="light"] .line-detail-actions button:disabled,
:root[data-theme="light"] .delivery-action-row button:disabled {
  border-color: rgba(0, 111, 174, 0.18);
  background: rgba(0, 111, 174, 0.08);
  color: #3f5c76;
}

:root[data-theme="light"] .guide-mini-grid article {
  border-color: rgba(20, 39, 68, 0.14);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.03), transparent 54%),
    #ffffff;
  box-shadow: 0 14px 36px rgba(30, 48, 76, 0.07);
}

@media (max-width: 900px) {
  .customer-topbar {
    grid-template-columns: 1fr;
  }

  .customer-tools {
    justify-content: stretch;
  }

  .customer-tools .customer-session {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .customer-account-pill {
    flex: 1 1 180px;
  }

  .line-search {
    grid-template-columns: 1fr;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .customer-buy-form .quantity-control {
    max-width: none;
  }

  .guide-mini-grid article {
    grid-template-columns: 1fr;
  }

  .guide-mini-grid article span,
  .guide-mini-grid article strong,
  .guide-mini-grid article ol,
  .guide-mini-grid article p {
    grid-column: 1;
    grid-row: auto;
  }

  .guide-mini-grid article ol,
  .guide-mini-grid article p {
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  .customer-session {
    gap: 7px;
    padding: 8px;
  }

  .customer-theme-toggle {
    width: 38px;
    min-width: 38px;
  }

  .customer-wallet-pill {
    flex: 1 1 126px;
  }

  .customer-tools .primary-button.compact {
    flex: 0 0 auto;
  }
}

/* Mobile polish for customer account bar and order-status header, 2026-05-23. */
:root[data-theme="light"] .result-grid,
:root[data-theme="light"] .delivery-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="light"] .result-grid article,
:root[data-theme="light"] .delivery-card div {
  border-color: rgba(20, 39, 68, 0.14);
  background:
    linear-gradient(135deg, rgba(0, 111, 174, 0.025), transparent 56%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(30, 48, 76, 0.06);
}

@media (max-width: 760px) {
  .portal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: center;
    padding: 14px 16px;
  }

  .portal-brand {
    grid-column: 1 / -1;
  }

  .portal-nav {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin-top: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .portal-nav::-webkit-scrollbar {
    display: none;
  }

  .portal-header > .theme-toggle {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    margin: 0;
  }

  .result-grid,
  .delivery-card {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .customer-tools .customer-session {
    display: grid;
    width: 100%;
    grid-template-columns: 42px minmax(132px, 156px) 70px;
    gap: 10px;
    align-items: stretch;
    justify-content: start;
    padding: 10px;
  }

  .customer-tools .customer-session > * {
    min-width: 0;
  }

  .customer-theme-toggle {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    min-width: 42px;
    min-height: 54px;
    height: 100%;
  }

  .customer-wallet-pill {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 156px;
    min-width: 0;
    padding: 8px 12px;
  }

  .customer-tools .customer-session > .primary-button.compact {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-height: 54px;
    justify-content: center;
    padding: 0 12px;
  }

  .customer-account-pill {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 2px;
  }

  .customer-account-pill strong {
    max-width: 100%;
    font-size: 15px;
  }

  .customer-tools .customer-session > .ghost-button.compact[data-jump-page="account"] {
    grid-column: 1 / 3;
    grid-row: 3;
    width: 100%;
    justify-content: center;
  }

  .customer-tools .customer-session > .ghost-button.compact[data-logout] {
    grid-column: 3;
    grid-row: 3;
    width: 100%;
    justify-content: center;
  }
}

/* Relay reset and mobile copy fallbacks. */
.line-detail-item {
  border-width: 1px;
}

.line-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.line-remark-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: min(100%, 220px);
}

.line-remark-mini input {
  width: 132px;
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 7px;
  background: rgba(6, 15, 30, 0.72);
  color: #fff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 760;
}

.line-remark-mini input::placeholder {
  color: rgba(202, 226, 255, 0.62);
}

.line-remark-mini button {
  height: 30px;
  border: 1px solid rgba(110, 231, 255, 0.28);
  border-radius: 7px;
  background: rgba(110, 231, 255, 0.1);
  color: #e9fbff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.line-reset-button,
.line-reconfigure-button,
.admin-reset-line-button {
  border: 1px solid rgba(104, 244, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(123, 74, 255, 0.95), rgba(0, 142, 218, 0.95));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.line-reset-button,
.line-reconfigure-button,
.admin-reset-line-button {
  padding: 9px 12px;
}

.line-reconfigure-button {
  background: linear-gradient(135deg, rgba(0, 186, 151, 0.96), rgba(0, 119, 218, 0.96));
}

.traffic-meter-actions button:not(.traffic-addon-button):not(.traffic-renew-button) {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 12px;
  box-shadow: none;
  transform: none;
}

.traffic-meter-actions button:not(.traffic-addon-button):not(.traffic-renew-button):hover,
.traffic-meter-actions button:not(.traffic-addon-button):not(.traffic-renew-button):focus-visible,
.traffic-meter-actions a:hover,
.traffic-meter-actions a:focus-visible {
  border-color: rgba(110, 231, 255, 0.28);
  background: rgba(110, 231, 255, 0.08);
}

:root[data-theme="light"] .traffic-meter-actions button:not(.traffic-addon-button):not(.traffic-renew-button) {
  border-color: rgba(0, 111, 174, 0.18);
  background: #ffffff;
  color: #0a3958;
}

:root[data-theme="light"] .traffic-meter-actions button:not(.traffic-addon-button):not(.traffic-renew-button):hover,
:root[data-theme="light"] .traffic-meter-actions button:not(.traffic-addon-button):not(.traffic-renew-button):focus-visible,
:root[data-theme="light"] .traffic-meter-actions a:hover,
:root[data-theme="light"] .traffic-meter-actions a:focus-visible {
  border-color: rgba(0, 111, 174, 0.28);
  background: #eef9ff;
}

.manual-copy-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 16, 0.72);
  backdrop-filter: blur(10px);
}

.manual-copy-panel {
  width: min(620px, 100%);
  border: 1px solid rgba(104, 244, 255, 0.22);
  border-radius: 16px;
  padding: 22px;
  background: #0b1220;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  color: #f8fbff;
}

.manual-copy-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.manual-copy-panel p {
  margin: 0 0 14px;
  color: rgba(248, 251, 255, 0.72);
}

.manual-copy-textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(104, 244, 255, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #68f4ff;
  font: 700 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.manual-copy-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.manual-copy-actions button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 16px;
  background: #ffffff;
  color: #101828;
  font-weight: 900;
}

:root[data-theme="light"] .customer-line-card {
  border-color: rgba(0, 111, 174, 0.26);
  box-shadow: 0 16px 42px rgba(30, 48, 76, 0.08);
}

:root[data-theme="light"] .line-detail-item {
  border-color: rgba(0, 111, 174, 0.22);
  background: linear-gradient(135deg, rgba(0, 111, 174, 0.025), transparent 58%), #ffffff;
}

/* Customer line cards should not look like card-inside-card. */
.customer-line-card:not(.is-compact) .line-detail-panel {
  margin-top: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.customer-line-card:not(.is-compact) .line-detail-list {
  gap: 0;
  margin-top: 0;
}

.customer-line-card:not(.is-compact) .line-detail-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
}

:root[data-theme="light"] .customer-line-card:not(.is-compact) .line-detail-panel,
:root[data-theme="light"] .customer-line-card:not(.is-compact) .line-detail-item {
  border: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="light"] .manual-copy-backdrop {
  background: rgba(13, 23, 40, 0.42);
}

:root[data-theme="light"] .manual-copy-panel {
  border-color: rgba(0, 111, 174, 0.18);
  background: #ffffff;
  color: #0d1728;
}

:root[data-theme="light"] .manual-copy-panel p {
  color: #53657d;
}

:root[data-theme="light"] .manual-copy-textarea {
  border-color: rgba(0, 111, 174, 0.2);
  background: #f6fbff;
  color: #006fab;
}

:root[data-theme="light"] .customer-tools .customer-session {
  padding-left: 12px;
}

@media (max-width: 760px) {
  :root[data-theme="light"] .customer-tools .customer-session {
    padding: 12px;
  }

  .line-detail-title-row {
    align-items: stretch;
  }

  .line-title-editor {
    width: 100%;
    max-width: 100%;
  }

  .line-title-editor input {
    flex: 1;
    width: auto;
    min-width: 0;
    font-size: 16px;
  }

  .line-remark-mini {
    width: 100%;
  }

  .line-remark-mini input {
    flex: 1;
    width: auto;
  }

  .manual-copy-panel {
    padding: 18px;
  }
}

/* QR containment fix: keep customer dashboard/status QR codes centered on small screens. */
.line-qr-box,
.delivery-qr-box {
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  justify-self: center;
}

.line-qr-box img,
.delivery-qr-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 760px) {
  .line-universal-card,
  .delivery-universal-card,
  .delivery-card-universal {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .line-qr-box {
    width: min(176px, 100%);
  }

  .delivery-qr-box {
    width: min(188px, 100%);
  }

  .line-universal-content,
  .delivery-card-universal-content,
  .delivery-universal-card > div:not(.delivery-qr-box) {
    width: 100%;
    min-width: 0;
  }
}
