:root {
  --bg: #f3f7fd;
  --bg-deep: #eef4ff;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.86);
  --surface-strong: #fdfefe;
  --text: #17233d;
  --muted: #6d7a92;
  --line: #d9e5f5;
  --line-deep: #c8d7ee;
  --primary: #2f86ff;
  --primary-deep: #185ed9;
  --primary-soft: rgba(47, 134, 255, 0.12);
  --accent: #16b46b;
  --warning: #f6a63b;
  --danger: #eb666f;
  --ink-blue: #0f58cd;
  --shadow: 0 18px 48px rgba(21, 45, 84, 0.1);
  --shadow-soft: 0 10px 26px rgba(21, 45, 84, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --backend-sidebar: 272px;
  --mobile-width: min(430px, 100vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(47, 134, 255, 0.14), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(22, 180, 107, 0.08), transparent 20%),
    linear-gradient(180deg, #eef4ff 0%, #f6f8fd 100%);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

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

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

svg {
  display: block;
  margin: auto;
  overflow: visible;
  transform-origin: center;
}

img {
  display: block;
  max-width: 100%;
}

.backend-shell {
  min-height: 100vh;
}

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

.backend-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(11, 28, 65, 0.98) 0%, rgba(19, 42, 89, 0.98) 100%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 12px 0 40px rgba(10, 22, 52, 0.18);
  overflow: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #38a3ff 0%, #1a68ff 100%);
  box-shadow: 0 10px 24px rgba(56, 163, 255, 0.3);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.sidebar-panel {
  padding: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.sidebar-panel strong,
.sidebar-panel span {
  display: block;
}

.sidebar-panel strong {
  font-size: 16px;
}

.sidebar-panel span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.6;
}

.sidebar-nav {
  display: grid;
  gap: 18px;
}

.nav-group-title {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-footer {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.7;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  background: rgba(243, 247, 253, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 217, 240, 0.75);
  box-shadow: 0 6px 26px rgba(24, 56, 118, 0.04);
}

.workspace-topbar strong {
  display: block;
  font-size: 22px;
}

.topbar-eyebrow {
  margin: 0 0 4px;
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.user-chip,
.ghost-link,
.soft-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
}

.user-chip {
  background: var(--surface-soft);
  border: 1px solid rgba(201, 217, 240, 0.8);
  box-shadow: var(--shadow-soft);
}

.ghost-link {
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 215, 238, 0.92);
}

.soft-link {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(200, 215, 238, 0.82);
}

.workspace-main,
.page {
  min-width: 0;
  padding: 28px;
}

.guest-page {
  max-width: 1220px;
  margin: 0 auto;
}

.page-head,
.split-head,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-head h1,
.split-head h1,
.mobile-frame h1,
.mobile-frame h2,
.card h2 {
  margin: 0;
}

.page-head h1,
.split-head h1,
.auth-copy h1 {
  font-size: 36px;
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted,
.hero-desc,
small.muted,
.sidebar-note,
.card-subtitle {
  color: var(--muted);
}

.stats-grid,
.two-column {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

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

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

.device-card-grid {
  display: grid;
  gap: 18px;
}

.device-hub-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.94) 100%);
  border: 1px solid rgba(210, 224, 244, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.device-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

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

.summary-cell {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(245, 248, 253, 0.92);
  border: 1px solid rgba(211, 224, 243, 0.9);
}

.summary-cell b,
.summary-cell span {
  display: block;
}

.summary-cell b {
  margin-bottom: 6px;
  font-size: 13px;
}

.summary-cell span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.device-section-nav,
.section-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.device-section-nav {
  margin-top: 18px;
}

.section-tabbar {
  margin-bottom: 10px;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 217, 240, 0.95);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 12px;
}

.section-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-color: transparent;
}

.section-tab:hover,
.device-section-nav .soft-link:hover {
  transform: translateY(-1px);
}

.stat-card,
.card,
.hero-card,
.mobile-section,
.detail-card,
.action-card,
.device-card,
.device-teaser,
.order-card,
.empty-mobile,
.feature-card,
.instruction-step,
.package-card,
.scan-panel,
.quick-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 252, 255, 0.92) 100%);
  border: 1px solid rgba(210, 224, 244, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stat-card::after,
.card::after,
.mobile-section::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(47, 134, 255, 0.08), transparent 68%);
  pointer-events: none;
}

.stat-card,
.card,
.mobile-section,
.detail-card,
.empty-mobile,
.scan-panel {
  padding: 22px;
}

.card {
  overflow-x: auto;
}

.stat-card:hover,
.hero-card:hover,
.mobile-section:hover,
.action-card:hover,
.device-teaser:hover,
.feature-card:hover,
.instruction-step:hover,
.package-card:hover,
.quick-card:hover,
.list-card:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(21, 45, 84, 0.12);
  border-color: rgba(185, 212, 245, 0.98);
}

.inner-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.94) 100%);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  min-height: 132px;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 134, 255, 0.95), rgba(22, 180, 107, 0.78));
  box-shadow: 0 0 0 8px rgba(47, 134, 255, 0.08);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  max-width: calc(100% - 38px);
}

.stat-card strong,
.big-number {
  display: block;
  margin-top: 16px;
  font-size: 31px;
  line-height: 1;
}

.big-number {
  color: var(--ink-blue);
  font-weight: 800;
}

.stat-card strong {
  font-weight: 800;
}

.stack-list,
.mobile-form,
.form-card,
.form-grid,
.order-cards,
.device-cards,
.package-list,
.detail-list,
.timeline-list {
  display: grid;
  gap: 16px;
}

.page-banner,
.summary-banner,
.data-highlight,
.stats-strip,
.list-card,
.info-card,
.config-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.94) 100%);
  border: 1px solid rgba(210, 224, 244, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.page-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  min-height: 220px;
  padding: 30px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 255, 0.94) 100%);
}

.page-banner::before,
.summary-banner::before,
.data-highlight::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 134, 255, 0.12), transparent 65%);
  pointer-events: none;
}

.banner-copy h1,
.banner-copy h2,
.banner-copy p {
  margin: 0;
}

.banner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.banner-copy h1 {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.banner-copy p {
  margin-top: 10px;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.banner-icon,
.panel-icon,
.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-align: center;
}

.banner-icon {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 30px;
  background: linear-gradient(135deg, #2f86ff 0%, #1d68e4 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(47, 134, 255, 0.24);
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
}

.banner-icon svg {
  width: 42px;
  height: 42px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banner-icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.banner-art {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.banner-art img {
  width: min(260px, 100%);
  height: auto;
  filter: drop-shadow(0 20px 32px rgba(18, 57, 124, 0.16));
}

.summary-banner {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.summary-grid,
.feature-row,
.badge-row,
.overview-grid,
.mini-stats {
  display: grid;
  gap: 16px;
}

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

.feature-row,
.mini-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-item,
.overview-item,
.feature-item,
.stat-mini {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(213, 226, 245, 0.92);
  backdrop-filter: blur(10px);
}

.summary-item strong,
.overview-item strong,
.feature-item strong,
.stat-mini strong {
  display: block;
  font-size: 24px;
}

.summary-item span,
.overview-item span,
.feature-item span,
.stat-mini span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.card-head,
.table-card-head,
.stack-head,
.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.table-card-head {
  position: sticky;
  left: 0;
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-head h2,
.table-card-head h2,
.stack-head h2,
.form-head h2,
.table-card-head p,
.form-head p {
  margin: 0;
}

.table-card-head p,
.form-head p,
.stack-head p,
.card-head p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.7;
}

.card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 134, 255, 0.12), rgba(22, 180, 107, 0.1));
  color: var(--primary-deep);
}

.mini-icon svg {
  width: 20px;
  height: 20px;
}

.data-highlight {
  padding: 22px;
}

.metric-strip,
.mobile-summary-strip,
.service-grid {
  display: grid;
  gap: 16px;
}

.metric-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.metric-tile,
.mobile-kpi,
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(210, 224, 244, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.92) 100%);
  box-shadow: var(--shadow);
}

.metric-tile {
  min-height: 142px;
  padding: 22px;
}

.metric-tile::after,
.mobile-kpi::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -22px auto;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 134, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.metric-kicker,
.service-card em {
  display: block;
  color: var(--primary-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-tile strong,
.mobile-kpi strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.08;
}

.metric-note,
.mobile-kpi span,
.service-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.table-emphasis {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

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

.cell-stack strong {
  font-size: 14px;
}

.cell-stack span,
.cell-stack small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.highlight-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.highlight-main h2,
.highlight-main p {
  margin: 0;
}

.highlight-main p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.highlight-value {
  color: var(--ink-blue);
  font-size: 34px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f2f7ff;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
}

.list-card,
.config-card {
  padding: 22px;
}

.list-card + .list-card,
.config-card + .config-card {
  margin-top: 16px;
}

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

.list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f5f8ff;
  color: #4a5c7d;
  font-size: 12px;
}

.empty-note {
  padding: 18px;
  border-radius: 18px;
  background: #f7faff;
  color: var(--muted);
}

.field-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 134, 255, 0.08), rgba(22, 180, 107, 0.06));
  border: 1px dashed rgba(47, 134, 255, 0.24);
  color: #476188;
  line-height: 1.7;
}

.ops-page {
  display: grid;
  gap: 12px;
}

.ops-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.ops-head h1,
.ops-head p {
  margin: 0;
}

.ops-head h1 {
  font-size: 28px;
  line-height: 1.1;
}

.ops-head p {
  display: none;
}

.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-strip,
.ops-inline-grid,
.ops-list-card,
.ops-form-card,
.ops-table-card,
.ops-summary-grid {
  background: #fff;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  box-shadow: none;
}

.ops-strip {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.ops-strip.compact .ops-strip-item {
  padding: 10px 12px;
}

.ops-strip.compact .ops-strip-label {
  font-size: 11px;
}

.ops-strip.compact .ops-strip-value {
  margin-top: 4px;
  font-size: 20px;
}

.ops-strip-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.ops-strip-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.ops-strip-item {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #e6edf7;
}

.ops-strip-item:last-child {
  border-right: 0;
}

.ops-strip-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ops-strip-value {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
}

.ops-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.ops-inline-grid.compact .ops-inline-cell {
  padding: 10px 12px;
}

.ops-inline-grid.compact .ops-inline-label {
  font-size: 12px;
}

.ops-inline-grid.compact .ops-inline-value {
  margin-top: 4px;
  font-size: 18px;
}

.ops-inline-cell {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #e6edf7;
}

.ops-inline-cell:last-child {
  border-right: 0;
}

.ops-inline-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.ops-inline-value {
  display: block;
  margin-top: 6px;
  color: var(--primary-deep);
  font-size: 20px;
  font-weight: 800;
}

.ops-form-card {
  padding: 12px 14px;
}

.ops-form-title {
  margin: 0 0 10px;
  font-size: 15px;
}

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

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

.device-config-grid .span-2 {
  grid-column: span 2;
}

.ops-form-grid label {
  margin: 0;
}

.ops-form-grid .wide {
  grid-column: 1 / -1;
}

.ops-list-card {
  overflow: hidden;
}

.ops-list-head,
.ops-list-row {
  display: grid;
  grid-template-columns: var(--ops-cols);
  gap: 12px;
  align-items: center;
}

.ops-list-head {
  padding: 10px 14px;
  background: #f7f9fc;
  color: #516277;
  font-size: 12px;
  font-weight: 800;
}

.ops-list-row {
  padding: 10px 14px;
  border-top: 1px solid #e6edf7;
}

.ops-list-form {
  display: grid;
  grid-template-columns: var(--ops-cols);
  gap: 12px;
  align-items: center;
}

.ops-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ops-cell strong,
.ops-cell span,
.ops-cell small {
  display: block;
}

.ops-cell strong {
  font-size: 14px;
}

.ops-cell span,
.ops-cell small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.45;
}

.ops-cell input,
.ops-cell select,
.ops-cell textarea {
  margin: 0;
}

.ops-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ops-row-actions .ghost-link,
.ops-row-actions .soft-link {
  gap: 4px;
  padding: 6px 10px;
  font-size: 12px;
}

.ops-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}

.ops-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #dce5f2;
  background: #f4f7fb;
  color: #53657d;
  font-size: 12px;
  font-weight: 700;
}

.ops-status-pill.online {
  border-color: rgba(22, 180, 107, 0.22);
  background: rgba(22, 180, 107, 0.12);
  color: #0d8a50;
}

.ops-status-pill.control_only {
  border-color: rgba(246, 166, 59, 0.24);
  background: rgba(246, 166, 59, 0.14);
  color: #ad6708;
}

.ops-status-pill.offline {
  border-color: rgba(235, 102, 111, 0.22);
  background: rgba(235, 102, 111, 0.1);
  color: #ba3f49;
}

.ops-empty {
  padding: 14px;
  border-top: 1px solid #e6edf7;
  color: var(--muted);
}

.ops-table-card {
  overflow: auto;
}

.ops-table-card table {
  min-width: 980px;
}

.ops-table-card.compact table {
  min-width: 820px;
}

.ops-table-card .table-card-head {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #e6edf7;
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.ops-summary-item {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #e6edf7;
  border-bottom: 1px solid #e6edf7;
}

.ops-summary-item:nth-child(4n) {
  border-right: 0;
}

.ops-summary-item b,
.ops-summary-item span {
  display: block;
}

.ops-summary-item b {
  font-size: 13px;
}

.ops-summary-item span {
  margin-top: 4px;
  color: var(--muted);
}

.ops-summary-grid.wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.device-overview-grid .ops-summary-item:nth-child(4n) {
  border-right: 0;
}

.device-overview-grid .ops-summary-item:nth-child(5n) {
  border-right: 1px solid #e6edf7;
}

.ops-summary-grid.tight .ops-summary-item {
  padding: 10px 12px;
}

.ops-summary-grid.tight .ops-summary-item:nth-child(4n) {
  border-right: 1px solid #e6edf7;
}

.ops-summary-grid.tight .ops-summary-item:nth-child(5n) {
  border-right: 0;
}

.scenario-summary-grid {
  margin-bottom: 10px;
}

.scenario-mode-card {
  overflow: hidden;
  margin-top: 10px;
}

.scenario-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 14px;
}

.scenario-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid #dce5f2;
  color: #53657d;
  font-size: 12px;
  font-weight: 700;
}

.scenario-chip.active {
  background: rgba(47, 134, 255, 0.12);
  border-color: rgba(47, 134, 255, 0.24);
  color: var(--primary-deep);
}

.scenario-list-row .ops-cell {
  font-size: 13px;
}

.scenario-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #53657d;
  font-size: 12px;
  font-weight: 700;
}

.scenario-state.active {
  background: rgba(22, 180, 107, 0.12);
  color: #0d8a50;
}

.scenario-switch-btn {
  min-height: 30px;
  padding: 7px 12px;
  font-size: 12px;
}

.io-monitor-card {
  overflow: hidden;
}

.io-monitor-block {
  padding: 12px 14px 14px;
  display: grid;
  gap: 14px;
}

.io-monitor-row {
  display: grid;
  gap: 10px;
}

.io-monitor-title {
  font-size: 13px;
  font-weight: 700;
  color: #4d6078;
}

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

.io-chip {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid #d8e1ee;
  background: #f8fbff;
}

.io-chip b {
  font-size: 12px;
  line-height: 1;
  color: #31445f;
}

.io-chip span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.io-chip small {
  font-size: 10px;
  line-height: 1.2;
  color: #7a8ea8;
  text-align: center;
}

.io-chip.on {
  border-color: rgba(23, 164, 96, 0.28);
  background: rgba(23, 164, 96, 0.09);
}

.io-chip.on span {
  color: #11814c;
}

.io-chip.off {
  border-color: rgba(216, 225, 238, 0.95);
  background: #f4f7fb;
}

.io-chip.off span {
  color: #667a96;
}

.io-status-grid {
  grid-template-columns: minmax(120px, 180px);
}

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

.io-control-chip {
  align-content: start;
  padding: 10px 8px;
}

.io-control-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.io-control-actions form {
  min-width: 0;
}

.io-control-btn {
  width: 100%;
  min-height: 28px;
  padding: 6px 0;
  font-size: 11px;
  border-radius: 8px;
}

.io-monitor-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.io-chip.pending {
  border-color: rgba(246, 166, 59, 0.24);
  background: rgba(246, 166, 59, 0.14);
}

.io-chip.pending span {
  color: #ad6708;
}

.io-chip.unknown {
  border-style: dashed;
  background: #fff;
}

.io-chip.unknown span {
  color: #a0afc3;
}

.device-overview-grid .ops-summary-item:nth-child(4n) {
  border-right: 0;
}

.device-overview-grid .ops-summary-item:nth-child(5n) {
  border-right: 1px solid #e6edf7;
}

.ops-list-card .ops-form-title,
.ops-form-card .ops-actions {
  margin-top: 10px;
}

.ops-field-key {
  color: #4d6078;
  font-size: 13px;
  font-weight: 700;
}

.ops-field-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.data-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.panel-grid {
  display: grid;
  gap: 18px;
}

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

.keyval-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(217, 229, 245, 0.95);
}

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

.keyval-row b {
  color: #4f607e;
}

.fold-card {
  border: 1px solid rgba(214, 227, 245, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.fold-card + .fold-card {
  margin-top: 14px;
}

.fold-card summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 800;
  color: #223552;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(241, 247, 255, 0.92));
  transition: background 0.2s ease;
}

.fold-card summary::-webkit-details-marker {
  display: none;
}

.fold-card summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(47, 134, 255, 0.16);
}

.fold-card[open] summary::after {
  content: "-";
}

.fold-card[open] summary {
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.98), rgba(236, 244, 255, 0.94));
}

.fold-body {
  padding: 18px;
}

.empty-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 18px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  border: 1px dashed rgba(47, 134, 255, 0.22);
}

.empty-orb {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47, 134, 255, 0.16), rgba(22, 180, 107, 0.12));
  color: var(--primary-deep);
}

.empty-orb svg {
  width: 30px;
  height: 30px;
}

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

.inline-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.inline-form label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.form-grid .wide,
.form-grid .grid-head,
.empty-state,
.table-note {
  grid-column: 1 / -1;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 134, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(47, 134, 255, 0.12);
}

textarea {
  min-height: 68px;
  resize: vertical;
}

button {
  border: 0;
  cursor: pointer;
}

.primary-btn,
.secondary-btn,
.soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: 0 16px 26px rgba(47, 134, 255, 0.25);
}

.secondary-btn {
  color: var(--primary-deep);
  background: #fff;
  border: 1px solid rgba(47, 134, 255, 0.22);
}

.soft-btn {
  color: #395179;
  background: #f5f9ff;
  border: 1px solid rgba(47, 134, 255, 0.16);
}

.primary-btn:hover,
.secondary-btn:hover,
.soft-btn:hover {
  transform: translateY(-1px);
}

.primary-btn[disabled],
.secondary-btn[disabled],
.soft-btn[disabled],
.primary-btn.is-loading,
.secondary-btn.is-loading,
.soft-btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.large-btn {
  min-height: 56px;
  font-size: 16px;
}

.demo-box,
.chip,
.env-pill,
.status-pill,
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.demo-box,
.env-pill,
.info-pill {
  background: rgba(47, 134, 255, 0.1);
  color: var(--primary-deep);
}

.chip {
  background: rgba(22, 180, 107, 0.12);
  color: #0e8451;
}

.status-pill {
  background: rgba(246, 166, 59, 0.14);
  color: #b16906;
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.flash {
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 14px;
}

.flash-success,
.flash-info {
  background: rgba(22, 180, 107, 0.12);
  color: #0d7d4b;
}

.flash-error {
  background: rgba(235, 102, 111, 0.14);
  color: #b03c46;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-line input {
  width: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

thead th {
  position: sticky;
  top: 0;
  background: #f7faff;
  color: #41506b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

th,
td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(217, 229, 245, 0.92);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}

tbody tr:hover td {
  background: rgba(47, 134, 255, 0.03);
}

.auth-panel {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 440px;
  align-items: center;
  gap: 34px;
}

.auth-copy {
  position: relative;
  padding: 36px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(145deg, #1367ed 0%, #3593ff 58%, #59bbff 100%);
  color: #fff;
  box-shadow: 0 28px 60px rgba(24, 94, 217, 0.25);
}

.auth-figure {
  margin-top: 28px;
}

.auth-figure img {
  width: min(100%, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(7, 45, 110, 0.18));
}

.auth-copy .eyebrow,
.auth-copy .muted {
  color: rgba(255, 255, 255, 0.88);
}

.auth-copy .muted {
  line-height: 1.8;
}

.auth-metrics,
.support-grid,
.quick-grid,
.hero-chip-row {
  display: grid;
  gap: 14px;
}

.auth-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.auth-metric {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-metric strong,
.auth-metric span {
  display: block;
}

.auth-metric strong {
  font-size: 22px;
}

.auth-metric span {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.auth-panel .card {
  padding: 28px;
}

.auth-helper {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.h5-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
  background:
    linear-gradient(180deg, #0d74f0 0%, #338eff 24%, #e9f3ff 24%, #f5f8ff 100%);
}

.mobile-frame {
  position: relative;
  width: var(--mobile-width);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #0d74f0 0%, #338eff 260px, #f4f7fd 260px, #f8f9fe 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 24px 64px rgba(15, 48, 112, 0.2);
  overflow: hidden;
}

.mobile-content {
  position: relative;
  z-index: 1;
  padding: 18px 18px 214px;
}

.mobile-flash {
  margin-bottom: 16px;
}

.h5-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 700;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.h5-hero {
  position: relative;
  padding: 14px 6px 4px;
  margin-bottom: 14px;
  color: #fff;
}

.h5-hero h1 {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 18px rgba(7, 46, 114, 0.18);
}

.h5-hero .muted,
.h5-hero .hero-desc,
.h5-hero .mini-brand {
  color: rgba(255, 255, 255, 0.88);
}

.mini-brand {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-chip-row {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-art {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.hero-art img {
  width: min(100%, 206px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(8, 39, 95, 0.22));
}

.hero-chip-row .info-pill {
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-steps,
.support-grid,
.device-grid,
.payment-grid,
.info-grid {
  display: grid;
  gap: 14px;
}

.home-steps {
  position: relative;
  z-index: 1;
}

.instruction-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 102px;
  padding: 22px 20px;
  border-radius: 26px;
}

.instruction-step strong,
.feature-card strong,
.quick-card strong,
.device-teaser strong,
.package-card strong,
.order-card strong {
  display: block;
  font-size: 18px;
}

.instruction-step span,
.feature-card span,
.quick-card span,
.device-teaser span,
.package-card span,
.order-card span,
.order-card small,
.device-teaser small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.step-icon,
.feature-icon,
.nav-tab-icon,
.device-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  line-height: 0;
  text-align: center;
  border-radius: 18px;
}

.step-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(47, 134, 255, 0.12), rgba(47, 134, 255, 0.24));
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(47, 134, 255, 0.08);
}

.step-icon svg,
.feature-icon svg,
.nav-tab-icon svg,
.device-badge svg {
  display: block;
  margin: 0;
  flex: none;
  width: 26px;
  height: 26px;
}

.home-illustration {
  position: absolute;
  right: -12px;
  bottom: 18px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(-12deg);
  opacity: 0.95;
}

.home-illustration::before,
.home-illustration::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.home-illustration::before {
  inset: 20px 34px 28px 34px;
  background: linear-gradient(180deg, #ffc14c 0%, #f5990a 100%);
}

.home-illustration::after {
  width: 34px;
  height: 34px;
  left: 39px;
  top: 12px;
  background: #ffd6b8;
}

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

.feature-card,
.quick-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(24, 180, 107, 0.12), rgba(47, 134, 255, 0.16));
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(47, 134, 255, 0.08);
}

.mobile-section {
  margin-bottom: 18px;
}

.mobile-summary-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.mobile-kpi,
.service-card {
  padding: 18px;
}

.mobile-kpi strong {
  font-size: 24px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

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

.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.service-card span {
  margin-top: 6px;
}

.section-head h2,
.section-head h1 {
  font-size: 26px;
}

.section-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1f6ff;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
}

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

.device-teaser,
.order-card {
  display: block;
  padding: 18px;
}

.device-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.device-teaser .device-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(47, 134, 255, 0.12), rgba(22, 180, 107, 0.16));
  color: var(--primary-deep);
  margin-top: 0;
  margin: 0 auto 12px;
}

.order-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 116px;
}

.order-price {
  color: var(--ink-blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.align-right {
  text-align: right;
}

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

.scan-panel {
  padding: 22px;
  margin-top: -10px;
}

.scan-guide {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 134, 255, 0.08), rgba(47, 134, 255, 0.02));
  border: 1px dashed rgba(47, 134, 255, 0.24);
}

.scan-guide strong,
.scan-guide span {
  display: block;
}

.scan-guide strong {
  font-size: 16px;
}

.scan-guide span {
  margin-top: 6px;
  line-height: 1.7;
  color: var(--muted);
}

.scan-camera-card {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.scan-camera-head,
.scan-result-bar,
.scan-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scan-camera-head span,
.scan-result-bar span {
  color: var(--muted);
}

.scan-camera-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(47, 134, 255, 0.18), transparent 40%),
    linear-gradient(180deg, #0d1f3d 0%, #13284b 100%);
  border: 1px solid rgba(47, 134, 255, 0.18);
}

.scan-camera-stage.is-active .scan-overlay {
  opacity: 1;
}

.scan-video,
.scan-overlay,
.scan-stage-placeholder {
  position: absolute;
  inset: 0;
}

.scan-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d1f3d;
}

.scan-overlay {
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.scan-frame {
  width: min(72vw, 240px);
  height: min(72vw, 240px);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 999px rgba(6, 16, 34, 0.42),
    0 0 0 8px rgba(47, 134, 255, 0.18);
}

.scan-stage-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.scan-stage-placeholder .feature-icon {
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.scan-action-row {
  flex-wrap: wrap;
}

.upload-trigger {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.upload-trigger input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.scan-result-bar {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f5f9ff;
  border: 1px dashed rgba(47, 134, 255, 0.25);
}

.scan-result-bar strong {
  font-size: 15px;
  color: var(--ink-blue);
}

.permission-section {
  display: grid;
  gap: 8px;
}

.permission-section strong {
  font-size: 14px;
}

.permission-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.permission-groups.permission-matrix {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}

.permission-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dfe6f1;
  background: #fafcff;
}

.permission-matrix .permission-card {
  padding: 8px 10px;
  background: #fff;
}

.permission-card h3 {
  margin-bottom: 8px;
  font-size: 13px;
}

.permission-matrix .permission-card h3 {
  margin: 0 0 6px;
  color: var(--primary-deep);
}

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

.permission-matrix .permission-list {
  grid-template-columns: 1fr;
  gap: 4px;
}

.permission-page-card {
  margin-top: 18px;
}

.permission-page-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.permission-page-group {
  min-height: 100%;
}

.permission-inline-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 12px;
}

.device-summary {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(12, 101, 226, 0.95), rgba(51, 142, 255, 0.92));
  color: #fff;
}

.device-summary .hero-desc,
.device-summary .muted,
.device-summary .mini-brand {
  color: rgba(255, 255, 255, 0.9);
}

.device-summary .env-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.device-summary .hero-chip-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.device-summary .info-pill {
  justify-content: center;
  min-height: 42px;
  padding-inline: 10px;
  text-align: center;
}

.device-meta-list {
  display: grid;
  gap: 14px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.qr-card {
  padding: 14px;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  background: #fff;
}

.qr-card-head,
.qr-card-foot {
  display: grid;
  gap: 4px;
}

.qr-card-head strong {
  font-size: 15px;
}

.qr-card-head span,
.qr-card-foot span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.qr-card img {
  display: block;
  width: min(100%, 220px);
  margin: 12px auto;
  padding: 10px;
  background: #fff;
}

.device-meta-list .quick-card {
  min-height: 0;
}

.device-purchase-section .mobile-form {
  gap: 14px;
}

.device-purchase-section .package-list,
.device-purchase-section .payment-grid {
  margin-top: 4px;
}

.info-card {
  padding: 22px;
}

.info-card + .info-card {
  margin-top: 16px;
}

.code-box {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7faff;
  border: 1px dashed rgba(47, 134, 255, 0.25);
  color: #395179;
  line-height: 1.5;
  font-size: 12px;
}

.table-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f4f8ff;
  color: #4a6184;
  line-height: 1;
}

.table-status.success {
  background: rgba(22, 180, 107, 0.12);
  color: #0f7b4b;
}

.table-status.warning {
  background: rgba(246, 166, 59, 0.16);
  color: #a76709;
}

.table-status.danger {
  background: rgba(235, 102, 111, 0.14);
  color: #ad4048;
}

.support-grid .quick-card {
  min-height: 92px;
}

.package-list {
  margin-top: 10px;
}

.package-card {
  display: block;
  padding: 18px;
}

.package-card.active {
  border-color: rgba(37, 113, 224, 0.52);
  box-shadow: 0 16px 36px rgba(37, 113, 224, 0.12);
}

.package-card label {
  position: relative;
  gap: 12px;
}

.package-card input[type="radio"] {
  position: absolute;
  right: 0;
  top: 6px;
  width: auto;
  accent-color: var(--primary);
}

.package-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.package-price {
  color: var(--primary-deep);
  font-size: 26px;
  font-weight: 800;
}

.pay-options {
  margin: 0;
  padding: 0;
  border: 0;
}

.pay-options legend {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

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

.radio-card {
  position: relative;
  display: block;
}

.radio-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.radio-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 229, 245, 0.95);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

tbody tr:nth-child(even) td {
  background: rgba(248, 251, 255, 0.6);
}

.radio-ui .feature-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.radio-card input:checked + .radio-ui {
  border-color: rgba(47, 134, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(47, 134, 255, 0.12);
}

.radio-card small {
  margin-top: 4px;
}

.detail-card {
  margin-top: 14px;
}

.detail-card .card-head {
  margin-bottom: 16px;
}

.detail-list {
  gap: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(217, 229, 245, 0.95);
}

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

.detail-row b {
  color: #50607f;
}

.timeline-list {
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(47, 134, 255, 0.12);
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.hero-copy-stack {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 4px 14px rgba(9, 42, 103, 0.14);
}

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

.client-icon-card {
  appearance: none;
  border: 0;
  border-radius: 22px;
  padding: 16px 10px 14px;
  background: linear-gradient(180deg, rgba(236, 242, 255, 0.92) 0%, rgba(248, 250, 255, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(67, 97, 160, 0.08);
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #8a96af;
}

.client-icon-card:disabled {
  opacity: 1;
}

.client-icon-card-active {
  background: linear-gradient(180deg, rgba(47, 134, 255, 0.14) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: #1f63db;
}

.client-icon-card strong {
  font-size: 13px;
  line-height: 1.3;
}

.client-icon-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(28, 54, 111, 0.08);
}

.client-icon-card-active .client-icon-badge {
  background: linear-gradient(135deg, #2f86ff 0%, #1b66e4 100%);
  color: #fff;
}

.nav-flyout-shell[hidden] {
  display: none;
}

.nav-flyout-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.nav-flyout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 30, 0.08);
}

.nav-flyout-panel {
  position: absolute;
  left: 50%;
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  width: min(280px, calc(var(--mobile-width) - 48px));
  transform: translateX(-50%);
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(18, 42, 88, 0.22);
  border: 1px solid rgba(211, 223, 243, 0.94);
  backdrop-filter: blur(18px);
}

.nav-flyout-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(211, 223, 243, 0.94);
  border-bottom: 1px solid rgba(211, 223, 243, 0.94);
  transform: translateX(-50%) rotate(45deg);
}

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

.flyout-action {
  appearance: none;
  border: 0;
  background: rgba(241, 245, 253, 0.92);
  border-radius: 20px;
  padding: 12px 8px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #8a96af;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(91, 120, 177, 0.08);
}

.flyout-action:disabled {
  opacity: 1;
}

.flyout-action-primary {
  background: linear-gradient(180deg, rgba(47, 134, 255, 0.14) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: #1f63db;
}

.flyout-action-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(24, 49, 104, 0.08);
}

.flyout-action-primary .flyout-action-icon {
  background: linear-gradient(135deg, #2f86ff 0%, #1b66e4 100%);
  color: #fff;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: var(--mobile-width);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.98) 0%, rgba(6, 8, 14, 0.99) 100%);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(44, 53, 74, 0.95);
  box-shadow: 0 -14px 30px rgba(2, 6, 18, 0.28);
  border-radius: 26px 26px 0 0;
}

.nav-tab {
  appearance: none;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  color: #c8ceda;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
}

.nav-tab.active {
  color: #7eb0ff;
}

.nav-tab:disabled {
  opacity: 0.9;
  cursor: default;
}

.nav-tab-search {
  position: relative;
}

.nav-tab-icon {
  width: 50px;
  height: 50px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 245, 251, 0.98) 100%);
  color: #4e5770;
  box-shadow: inset 0 0 0 1px rgba(14, 23, 39, 0.04), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.nav-tab.active .nav-tab-icon,
.nav-tab-search[aria-expanded="true"] .nav-tab-icon {
  background: linear-gradient(135deg, #4c79db 0%, #2d59b5 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(42, 75, 151, 0.32);
}

.nav-tab-search .nav-tab-icon {
  width: 46px;
  height: 46px;
  padding: 10px;
}

.nav-tab-label {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

body.flyout-open {
  overflow: hidden;
}

.mobile-frame .hero-chip-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-frame .service-grid,
.mobile-frame .device-grid,
.mobile-frame .payment-grid,
.mobile-frame .mobile-summary-strip {
  grid-template-columns: 1fr;
}

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

.hero-card,
.action-card {
  padding: 20px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.hero-desc {
  margin: 12px 0 0;
  line-height: 1.7;
}

.action-list,
.device-cards {
  display: grid;
  gap: 16px;
}

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

.action-card b {
  font-size: 30px;
  color: rgba(47, 134, 255, 0.18);
}

.device-card small,
.order-card small {
  font-size: 13px;
}

pre,
code {
  white-space: pre-wrap;
  word-break: break-word;
}

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

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

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

  .backend-sidebar {
    position: static;
    height: auto;
  }

  .workspace-topbar {
    position: static;
  }
}

@media (max-width: 640px) {
  .client-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-flyout-panel {
    bottom: calc(106px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 48px);
    max-width: 320px;
  }

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

@media (max-width: 900px) {
  .two-column,
  .auth-panel,
  .form-grid,
  .quick-grid,
  .support-grid,
  .payment-grid,
  .summary-grid,
  .overview-grid,
  .feature-row,
  .mini-stats,
  .data-columns,
  .metric-strip,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .workspace-main,
  .page,
  .guest-page {
    padding: 18px;
  }

  .page-head,
  .split-head,
  .section-head,
  .workspace-topbar,
  .topbar-actions,
  .page-banner,
  .card-head,
  .table-card-head,
  .stack-head,
  .form-head,
  .highlight-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .banner-art {
    justify-content: flex-start;
    width: 100%;
    flex-basis: auto;
  }

  .auth-metrics,
  .device-grid,
  .hero-chip-row {
    grid-template-columns: 1fr;
  }

  .ops-head,
  .ops-list-head,
  .ops-list-row,
  .ops-list-form {
    display: block;
  }

  .ops-form-grid,
  .ops-strip-six,
  .ops-strip-four,
  .ops-strip-three,
  .ops-strip-two,
  .ops-inline-grid,
  .ops-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .device-config-grid .span-2 {
    grid-column: auto;
  }

  .ops-strip-item,
  .ops-inline-cell,
  .ops-summary-item {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 234, 246, 0.95);
  }

  .ops-strip-item:last-child,
  .ops-inline-cell:last-child,
  .ops-summary-item:last-child {
    border-bottom: 0;
  }

  .ops-list-head {
    display: none;
  }

  .ops-list-row {
    padding: 0;
  }

  .ops-list-form {
    gap: 0;
  }

  .ops-cell {
    padding: 10px 16px;
    border-top: 1px solid rgba(226, 234, 246, 0.95);
  }

  .ops-list-row .ops-cell:first-child,
  .ops-list-form .ops-cell:first-child {
    border-top: 0;
  }

  .scan-camera-head,
  .scan-result-bar,
  .scan-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .scan-frame {
    width: min(70vw, 220px);
    height: min(70vw, 220px);
  }

  .device-summary .hero-chip-row {
    grid-template-columns: 1fr;
  }
}

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

  .page-head h1,
  .split-head h1,
  .auth-copy h1 {
    font-size: 28px;
  }

  .mobile-content {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 206px;
  }

  .h5-hero h1 {
    font-size: 30px;
  }

  .device-summary {
    padding: 16px;
  }

  .device-summary .hero-desc {
    margin-top: 10px;
  }

  .instruction-step,
  .feature-card,
  .quick-card,
  .order-card {
    padding: 16px;
  }

  .package-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .package-meta .align-right {
    width: 100%;
    text-align: left;
  }

  .package-price {
    font-size: 22px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
