/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --primary: #0b1a30;
  --primary-light: #112240;
  --accent: #1e90ff;
  --accent-glow: #4db8ff;
  --accent-dark: #0066cc;
  --accent-teal: #00c9db;
  --gold: #e6b422;
  --text: #e8edf5;
  --text-muted: #a8b8cc;
  --text-dim: #8497ae;
  --bg-dark: #070f1e;
  --bg-card: rgba(15, 30, 55, 0.88);
  --bg-card-hover: rgba(20, 40, 75, 0.92);
  --border: rgba(30, 144, 255, 0.18);
  --border-glow: rgba(30, 144, 255, 0.45);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(30, 144, 255, 0.12);
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --gradient-hero: linear-gradient(135deg, #0b1a30 0%, #0d2847 30%, #0a1628 60%, #0f2a4a 100%);
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body {
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
small { font-size: .875rem; }
body.modal-open { overflow: hidden; }
small { font-size: .875rem; }

/* ===== 动态渐变背景 ===== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(30, 144, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 40%, rgba(0, 201, 219, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 40% 80%, rgba(30, 144, 255, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(230, 180, 34, 0.03) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -2;
}
@keyframes bgShift {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(30, 144, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: -1;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-glow); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; position: relative; }

/* ========== Typography ========== */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #e8edf5 0%, var(--accent) 45%, var(--accent-teal) 75%, #e8edf5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(7, 15, 30, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo img { width: 34px; height: 34px; border-radius: 6px; }
.nav-logo .logo-accent { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle {
  font-size: 14px;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(17, 34, 64, 0.88);
  cursor: pointer;
}
.section-kicker-centered { text-align: center; }
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: var(--transition); }
.inquiry-close { font-size: 1.25rem; }
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 50px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0066dd);
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(30, 144, 255, 0.5); transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--accent-glow);
}
.btn-outline:hover { background: rgba(30, 144, 255, 0.1); border-color: var(--accent); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #c7940a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230, 180, 34, 0.25);
}
.btn-gold:hover { box-shadow: 0 6px 30px rgba(230, 180, 34, 0.45); transform: translateY(-2px); color: #fff; }
.btn-sm { padding: 7px 18px; font-size: .875rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-bg-effect {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg-effect.top-right {
  top: -180px; right: -120px;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(30,144,255,0.1) 0%, rgba(0,201,219,0.05) 40%, transparent 70%);
}
.hero-bg-effect.bottom-left {
  bottom: -80px; left: -80px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(230,180,34,0.06) 0%, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  align-items: center;
  gap: clamp(44px, 6vw, 88px);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 50px;
  background: rgba(30, 144, 255, 0.1);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--accent-glow);
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.25} }
.hero h1 {
  font-size: clamp(2.4rem, 4.3vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: 40px;
  max-width: 700px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 52px;
  margin-top: 68px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.hero-stat h3 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
}
.hero-stat p { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }
.hero-visual {
  position: relative;
  z-index: 2;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(77, 184, 255, .35);
  background: linear-gradient(145deg, rgba(16, 35, 65, .96), rgba(8, 20, 38, .96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 70px rgba(30, 144, 255, .12);
  cursor: zoom-in;
}
.hero-product-line { white-space: nowrap; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(77,184,255,.8), transparent 36%, rgba(0,201,219,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #07101e;
}
.hero-visual-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .875rem;
  letter-spacing: .08em;
}
.live-dot { color: #65e3ef; }
.live-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #24d8a7; box-shadow: 0 0 10px #24d8a7; }
.hero-visual-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px 2px; }
.hero-visual-tags span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: .875rem; }

/* ========== Slogan Banner ========== */
.slogan-banner {
  padding: 50px 0;
  background: linear-gradient(135deg, rgba(30,144,255,0.06) 0%, rgba(0,201,219,0.04) 50%, rgba(30,144,255,0.06) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.slogan-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 300px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-teal), transparent);
}
.slogan-main {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  line-height: 2;
  letter-spacing: 1px;
}
.slogan-main .s-accent { color: var(--accent-glow); }
.slogan-sub {
  font-size: 1.05rem;
  color: var(--accent-teal);
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ========== Features Grid ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 26px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-teal), transparent);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-card:hover::before { opacity: 1; }
.feature-index { display: block; margin-bottom: 18px; color: var(--accent-teal); font-family: var(--font-mono); font-size: .875rem; font-weight: 700; letter-spacing: .08em; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text); font-weight: 700; }
.feature-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.85; }
.features-grid > .feature-card > .feature-index { display: inline-block; margin: 0 12px 12px 0; vertical-align: baseline; }
.features-grid > .feature-card > h3 { display: inline-block; }

/* ========== Products & Services ========== */
.services-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #081b2c; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { display: flex; min-height: 480px; padding: 34px 30px; flex-direction: column; border: 1px solid #1b4463; border-radius: 16px; background: #0d2439; box-shadow: 0 16px 40px rgba(0, 8, 18, .22); }
.service-card-featured { border-color: rgba(99, 199, 255, .55); box-shadow: inset 0 3px 0 var(--accent), 0 18px 46px rgba(0, 8, 18, .28); }
.service-index { margin-bottom: 24px; color: #63c7ff; font-family: var(--font-mono); font-size: .875rem; font-weight: 700; letter-spacing: .08em; }
.service-card h3 { margin-bottom: 14px; color: #f7fbff; font-size: 1.4rem; }
.service-card > p { color: #b9c9d9; font-size: 1rem; line-height: 1.85; }
.service-card ul { margin: 24px 0 30px; padding: 22px 0 0; border-top: 1px solid #1b4463; list-style: none; }
.service-card li { position: relative; margin-bottom: 12px; padding-left: 20px; color: #a8bcd0; line-height: 1.7; }
.service-card li::before { position: absolute; left: 0; color: var(--accent-teal); content: '—'; }
.service-actions { display: flex; margin-top: auto; gap: 10px; flex-wrap: wrap; }

/* ========== Tech Items ========== */
.tech-list { display: flex; flex-direction: column; gap: 20px; }
.tech-item {
  display: flex;
  gap: 22px;
  padding: 26px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.tech-item:hover { border-color: var(--border-glow); background: var(--bg-card-hover); box-shadow: var(--shadow-glow); }
.tech-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #0055cc);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-mono);
}
.tech-info h4 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.tech-info p { color: var(--text-muted); font-size: 0.91rem; line-height: 1.8; }

/* ========== Gallery ========== */
.gallery-section-header {
  font-size: 1.25rem;
  margin: 48px 0 22px;
  color: var(--accent-glow);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gallery-section-header::before {
  content: '';
  width: 4px; height: 24px;
  background: linear-gradient(180deg, var(--accent), var(--accent-teal));
  border-radius: 2px;
}
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; }
.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.gallery-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #fff;
  position: relative;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(24, 65, 105, .09);
}
.gallery-img-wrap img,
.gallery-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.media-ui .gallery-img-wrap,
.media-animation .gallery-img-wrap { aspect-ratio: 16/9; padding: 9px; }
.media-ultrawide { grid-column: 1 / -1; }
.media-ultrawide .gallery-img-wrap { aspect-ratio: 3/1; padding: 14px 18px; }
.gallery-caption { padding: 17px 22px; border-top: 1px solid rgba(17,94,170,.1); }
.gallery-caption h4 { font-size: 0.96rem; margin-bottom: 4px; font-weight: 600; }
.gallery-caption p { font-size: .875rem; color: var(--text-dim); }
.gallery-stage { display: flex; margin: 50px 0 20px; align-items: flex-start; gap: 16px; }
.gallery-stage > span { color: #63c7ff; font-family: var(--font-mono); font-size: 1rem; font-weight: 800; }
.gallery-stage strong { display: block; margin-bottom: 3px; color: #eef8ff; font-size: 1.2rem; }
.gallery-stage p { color: #9fb3c7; }
.gallery-img-wrap-light { background: #eef3f7 !important; }
.deliverables-strip { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 24px; border: 1px solid #1b4463; border-radius: 12px; overflow: hidden; }
.deliverables-strip span { padding: 15px 10px; border-right: 1px solid #1b4463; background: #0a2034; color: #b9d8ec; text-align: center; }
.deliverables-strip span:last-child { border-right: 0; }

/* ========== Download Table ========== */
.download-section { max-width: 960px; margin: 0 auto; }
.download-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.download-table thead { background: var(--primary-light); }
.download-table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-glow);
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.download-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.download-table tbody tr { background: var(--bg-card); transition: var(--transition); }
.download-table tbody tr:hover { background: var(--bg-card-hover); }
.download-table tbody tr:last-child td { border-bottom: none; }
.download-table .col-file { width: 50%; }
.download-table .col-desc { width: 50%; color: var(--text-muted); }
.download-placeholder { color: var(--text-dim); font-style: italic; }
.download-meta { display: block; margin-top: 5px; color: var(--text-dim); font-size: .875rem; font-weight: 400; }

/* ========== Auth Pages ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 60px;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 42px;
  box-shadow: var(--shadow);
}
.auth-card h2 {
  font-size: 1.65rem;
  text-align: center;
  margin-bottom: 6px;
  font-weight: 700;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 34px;
  font-size: 0.9rem;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-group label .required { color: #f87171; margin-left: 2px; }
.form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.94rem;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,144,255,0.12); }
.form-input::placeholder { color: var(--text-dim); }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899b4' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-select option { background: var(--primary-light); color: var(--text); }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
.form-hint { font-size: .875rem; color: var(--text-dim); margin-top: 6px; }
.compact-form,
#quoteForm,
.portal-form,
#adminLoginForm {
  --compact-label-width: 116px;
  --compact-control-height: 38px;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group {
  display: grid;
  grid-template-columns: var(--compact-label-width) minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  margin-bottom: 8px;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > label:first-child {
  grid-column: 1;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  line-height: 1.3;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > :is(.form-input, .form-select, .verification-control) {
  grid-column: 2;
  min-width: 0;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > :is(.form-input, .form-select) {
  min-height: var(--compact-control-height);
  padding-top: 7px;
  padding-bottom: 7px;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > textarea.form-input {
  min-height: 72px;
  resize: vertical;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group:has(textarea) {
  align-items: start;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group:has(textarea) > label:first-child {
  padding-top: 10px;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > .form-hint {
  grid-column: 2 / -1;
  margin: 0;
  line-height: 1.45;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > .form-hint-inline {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  white-space: nowrap;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .device-request-group > label:not(:first-child) {
  grid-column: 2 / -1;
  margin: 0;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .device-request-group > :is(select, input, .file-help) {
  grid-column: 2 / -1;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-row {
  flex-direction: column;
  align-items: start;
  gap: 0;
}
:where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-row > .form-group {
  width: 100%;
  min-width: 0;
}
.form-error { color: #f87171; font-size: .875rem; margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-success { color: #4ade80; font-size: .875rem; margin-top: 6px; display: none; }
.form-success.show { display: block; }
.auth-footer { text-align: center; margin-top: 26px; color: var(--text-muted); font-size: 0.9rem; }
.auth-footer a { font-weight: 600; }
.auth-footer-secondary { margin-top: 10px; font-size: .875rem; }
.consent-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 8px 0 20px; color: var(--text-muted); font-size: .875rem; line-height: 1.7; }
.consent-row input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--accent); }
.registration-page .auth-page { align-items: flex-start; min-height: auto; padding-top: 104px; }
.auth-card-wide { max-width: 960px; }
.registration-card { max-width: 720px; padding: 28px 36px 26px; }
.registration-card .subtitle { margin-bottom: 18px; }
.registration-form { display: block; }
.registration-form .form-group { margin-bottom: 0; }
.registration-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.registration-grid + .registration-grid { margin-top: 12px; }
.registration-section-title { display: flex; align-items: center; gap: 9px; margin: 12px 0 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.registration-section-title.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
.registration-section-title > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: rgba(30,144,255,.16); color: var(--accent-glow); font-weight: 800; }
.registration-section-title strong, .registration-section-title small { display: block; }
.registration-section-title small { margin-top: 2px; color: var(--text-dim); font-size: .875rem; }
.registration-account-title, .registration-account-grid,
.registration-profile-title, .registration-profile-grid,
.registration-password-title, .registration-password-grid { grid-column: auto; grid-row: auto; }
.verification-field { grid-column: 1 / -1; }
.verification-control { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; }
.verification-control .btn { min-height: 48px; white-space: nowrap; }
.registration-form .consent-row, .registration-form > .form-error, .registration-form > .form-success, .registration-form > .btn { grid-column: 1 / -1; }
.registration-form .consent-row { margin: 14px 0 12px; }
.registration-form > .btn { min-height: 48px; }

/* Registration actions use a deeper, tactile treatment without changing the global button system. */
.registration-page .registration-form .btn {
  position: relative;
  border: 1px solid rgba(126, 204, 255, .72);
  transform: translateY(0);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.registration-page .registration-form .btn-primary {
  background: linear-gradient(180deg, #43adff 0%, #1689ed 48%, #076ac8 100%);
  border-color: #63bcff #0871d4 #034f9e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .48),
    inset 0 -2px 0 rgba(0, 45, 105, .35),
    0 5px 0 #034f9e,
    0 9px 18px rgba(0, 77, 153, .38);
  text-shadow: 0 1px 1px rgba(0, 30, 75, .55);
}
.registration-page .registration-form .btn-outline {
  background: linear-gradient(180deg, rgba(32, 92, 143, .96), rgba(12, 49, 83, .98));
  border-color: #55b8f7 #246faa #123f6a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -2px 0 rgba(0, 15, 35, .4),
    0 4px 0 #0a355a,
    0 7px 14px rgba(0, 8, 24, .42);
  color: #e9f7ff;
  text-shadow: 0 1px 1px rgba(0, 15, 35, .72);
}
.registration-page .registration-form .btn:hover:not(:disabled) {
  transform: translateY(-2px);
}
.registration-page .registration-form .btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #60baff 0%, #2298f8 48%, #0876dc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .58),
    inset 0 -2px 0 rgba(0, 45, 105, .32),
    0 7px 0 #034f9e,
    0 13px 24px rgba(0, 104, 205, .44);
}
.registration-page .registration-form .btn-outline:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(42, 111, 168, .98), rgba(16, 62, 103, .98));
  border-color: #79cbff #3186c4 #174c7d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 -2px 0 rgba(0, 15, 35, .34),
    0 6px 0 #0a355a,
    0 11px 20px rgba(0, 8, 24, .46);
  color: #fff;
}
.registration-page .registration-form .btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: inset 0 2px 5px rgba(0, 18, 45, .42), 0 1px 0 rgba(2, 58, 112, .9);
}
.registration-page .registration-form .btn:focus-visible {
  outline: 3px solid rgba(116, 211, 255, .4);
  outline-offset: 5px;
}
.registration-page .registration-form .btn:disabled {
  cursor: not-allowed;
  transform: translateY(3px);
  filter: saturate(.55);
  opacity: .68;
  box-shadow: inset 0 1px 3px rgba(0, 18, 45, .42), 0 1px 0 rgba(2, 58, 112, .72);
}
.registration-submit { margin-top: 12px; padding: 14px; letter-spacing: .18em; }

/* ========== Dashboard ========== */
.dashboard-page { padding: 92px 0 40px; }
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dashboard-header h1 { font-size: 1.85rem; font-weight: 700; }
.user-info { color: var(--text-muted); font-size: 0.9rem; }
.dashboard-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 88px; }
.dashboard-tabs { position: sticky; top: 92px; z-index: 10; display: flex; flex-direction: column; gap: 5px; grid-column: 1; grid-row: 1; max-height: calc(100vh - 112px); margin: 0; padding: 10px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; background: rgba(7,20,36,.94); box-shadow: 0 16px 40px rgba(0,0,0,.16); scrollbar-width: thin; }
.dashboard-tabs::-webkit-scrollbar { display: none; }
.dashboard-tab {
  width: 100%;
  padding: 12px 13px 12px 17px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: var(--font);
  transition: var(--transition);
  position: relative;
  flex: 0 0 auto;
  text-align: left;
  white-space: nowrap;
}
.dashboard-tab.active { color: var(--accent-glow); background: rgba(30,144,255,.11); }
.dashboard-tab.active::after {
  content: '';
  position: absolute;
  top: 9px; bottom: 9px; left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-teal));
  border-radius: 0 2px 2px 0;
}
.dashboard-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.dashboard-workspace > .tab-content { grid-column: 2; grid-row: 1; min-width: 0; }
.dashboard-workspace > dialog { grid-column: 2; grid-row: 1; }
.tab-content { display: none; min-width: 0; }
.tab-content.active { display: block; }

/* Messages */
.message-list { display: flex; flex-direction: column; gap: 14px; }
.message-item {
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.message-item.is-staff { border-color: rgba(0, 201, 219, .34); background: linear-gradient(135deg, rgba(0, 201, 219, .06), var(--bg-card)); }
.staff-badge { display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 99px; color: #9ff6fd; background: rgba(0, 201, 219, .12); font-size: .875rem; font-weight: 700; }
.message-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.message-author { font-weight: 700; font-size: 0.95rem; }
.message-time { font-size: .875rem; color: var(--text-dim); }
.message-body { color: var(--text-muted); line-height: 1.7; font-size: 0.93rem; }
.message-input { display: flex; gap: 12px; margin-bottom: 26px; }
.message-input textarea {
  flex: 1;
  padding: 14px 18px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.93rem;
  font-family: var(--font);
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: var(--transition);
}
.message-input textarea:focus { border-color: var(--accent); }

/* File list */
.file-list { display: flex; flex-direction: column; gap: 12px; }
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.file-item:hover { border-color: var(--border-glow); }
.file-info h4 { font-size: 0.93rem; margin-bottom: 4px; font-weight: 600; }
.file-info p { font-size: .875rem; color: var(--text-dim); }
.file-actions { display: flex; gap: 8px; }
.status-badge { display: inline-flex; align-items: center; margin-top: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); font-size: .875rem; }
.status-pending { color: #fcd34d; border-color: rgba(252,211,77,.32); background: rgba(252,211,77,.06); }
.status-reviewing { color: #7dd3fc; border-color: rgba(125,211,252,.32); background: rgba(125,211,252,.06); }
.status-approved { color: #6ee7b7; border-color: rgba(110,231,183,.32); background: rgba(110,231,183,.06); }
.status-rejected { color: #fca5a5; border-color: rgba(252,165,165,.32); background: rgba(252,165,165,.06); }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 26px;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: rgba(30,144,255,0.04); }
.upload-zone .icon { font-size: 2.6rem; margin-bottom: 14px; }
.upload-zone p { color: var(--text-muted); font-size: 0.9rem; }

/* ========== Admin ========== */
.admin-page { padding: 110px 0 60px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}
.admin-stat {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.admin-stat h3 { font-size: 2.2rem; background: linear-gradient(135deg, var(--accent), var(--accent-teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: var(--font-mono); font-weight: 800; }
.admin-stat p { color: var(--text-muted); font-size: .875rem; margin-top: 4px; }
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 36px;
}
.admin-table th, .admin-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.admin-table th { background: var(--primary-light); color: var(--accent-glow); font-weight: 700; }
.admin-table td { background: var(--bg-card); }
.admin-table tbody tr:hover td { background: var(--bg-card-hover); }
.admin-file-actions { display: flex; align-items: center; gap: 8px; min-width: 230px; }
.admin-status-select { width: 112px; padding: 8px 30px 8px 10px; font-size: .875rem; }
.download-admin-filters { display: grid; grid-template-columns: 180px minmax(220px, 1fr) 180px auto auto; gap: 12px; margin-bottom: 16px; align-items: end; }
.download-admin-filters .form-group { margin: 0; }
.download-admin-summary { display: flex; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.download-admin-summary span { padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; background: rgba(30, 144, 255, .06); color: var(--text-muted); }
.download-admin-summary strong { color: var(--accent-glow); }
.download-times { min-width: 190px; line-height: 1.75; }
.admin-pagination { display: flex; margin: 18px 0 38px; align-items: center; justify-content: flex-end; gap: 12px; color: var(--text-muted); }

/* ========== Contact / QR ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
}
.contact-info h3 { font-size: 1.25rem; margin-bottom: 16px; font-weight: 700; }
.contact-info p { color: var(--text-muted); font-size: 0.93rem; line-height: 2.2; }
.contact-info .contact-email { color: var(--accent-glow); font-weight: 600; }
.contact-qr {
  text-align: center;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-qr img { width: 180px; height: 180px; margin: 0 auto 12px; border-radius: var(--radius-sm); }
.contact-qr p { color: var(--text-muted); font-size: .875rem; }

/* ========== Footer ========== */
.footer {
  background: rgba(7, 15, 30, 0.95);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 44px;
  margin-bottom: 44px;
}
.footer-col h4 { font-size: 1rem; margin-bottom: 20px; color: var(--text); font-weight: 700; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.89rem; line-height: 2.3; display: block; }
.footer-col a:hover { color: var(--accent-glow); }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: .875rem;
}
.footer-bottom a { color: var(--text-muted); }

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox img, .lightbox video {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(30, 144, 255, 0.2);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ========== Disclaimer ========== */
.disclaimer-box {
  background: rgba(230, 180, 34, 0.05);
  border: 1px solid rgba(230, 180, 34, 0.22);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 44px;
}
.disclaimer-box h4 { color: var(--gold); margin-bottom: 10px; font-size: 0.96rem; font-weight: 700; }
.disclaimer-box p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.9; }

/* ========== Legal ========== */
.legal-page { padding-top: 132px; }
.legal-container { max-width: 920px; }
.eyebrow { color: var(--accent-teal); font-family: var(--font-mono); font-size: .875rem; letter-spacing: .14em; }
.legal-container > h1 { margin: 8px 0 14px; font-size: clamp(2rem, 5vw, 3.3rem); }
.legal-lead { margin-bottom: 34px; color: var(--text-muted); font-size: 1rem; }
.legal-card { margin-bottom: 14px; padding: 24px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.legal-card h2 { margin-bottom: 8px; font-size: 1.02rem; color: var(--accent-glow); }
.legal-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.9; }
.legal-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.compact-footer { padding-top: 20px; }
.site-legal-footer { margin-top: auto; padding: 18px 0 12px; background: #061421; }
.site-legal-footer .footer-bottom { padding-top: 10px; }

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideIn 0.3s ease;
  min-width: 280px;
  box-shadow: var(--shadow);
}
.toast-success { background: #065f46; border: 1px solid #10b981; color: #d1fae5; }
.toast-error { background: #7f1d1d; border: 1px solid #ef4444; color: #fee2e2; }
.toast-info { background: #1e3a5f; border: 1px solid #3b82f6; color: #dbeafe; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========== Portal account overview ========== */
.portal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.portal-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(15,31,55,.72); }
.portal-card small { color: var(--text-dim); }
.portal-card h3 { margin: 8px 0; color: var(--accent-glow); }
.portal-card ul { margin: 12px 0 0; padding-left: 18px; line-height: 1.9; color: var(--text-muted); }
.account-overview-grid { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(0, 1.68fr); gap: 18px; align-items: start; }
.account-overview-grid > .portal-card { min-width: 0; }
.account-status-card { position: sticky; top: 90px; background: linear-gradient(160deg, rgba(19,46,78,.92), rgba(9,27,49,.94)); }
.product-status-card { background: linear-gradient(150deg, rgba(14,38,67,.94), rgba(8,25,46,.94)); }
.overview-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.overview-card-head small { display: block; margin-bottom: 4px; color: #73bffc; font-weight: 700; letter-spacing: .08em; }
.overview-card-head h2 { margin: 0; font-size: 1.3rem; }
.account-person { display: flex; align-items: center; gap: 13px; padding: 15px 0 18px; border-bottom: 1px solid var(--border); }
.account-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid rgba(73,180,255,.48); border-radius: 14px; background: rgba(30,144,255,.14); color: #9bd8ff; font-size: 1.15rem; font-weight: 800; }
.account-person strong { display: block; font-size: 1.05rem; }
.account-person p { margin-top: 3px; color: var(--text-muted); overflow-wrap: anywhere; }
.account-detail-list { display: grid; gap: 0; margin: 8px 0 16px; }
.account-detail-list > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(36,89,137,.25); }
.account-detail-list dt { color: var(--text-dim); }
.account-detail-list dd { margin: 0; text-align: right; color: var(--text); overflow-wrap: anywhere; }
.account-detail-list .login-detail dd { color: #8ed2ff; font-weight: 700; }
.product-status-summary { display: flex; flex-wrap: wrap; gap: 9px; margin: -3px 0 15px; }
.product-status-summary span { padding: 7px 11px; border: 1px solid rgba(50,130,194,.3); border-radius: 999px; background: rgba(10,31,54,.55); color: var(--text-muted); }
.product-status-summary b { color: #a7ddff; }
.product-status-list { display: grid; gap: 12px; }
.product-license-item { min-width: 0; padding: 16px; border: 1px solid rgba(53,133,195,.36); border-radius: 12px; background: rgba(5,21,39,.58); box-shadow: inset 3px 0 0 rgba(31,155,232,.52); }
.product-license-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.product-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(73,180,255,.48); border-radius: 11px; background: rgba(30,144,255,.15); color: #8bd2ff; font-weight: 800; }
.product-title { min-width: 0; }
.product-license-head h3 { margin: 2px 0 3px; color: var(--text); font-size: 1.05rem; line-height: 1.35; }
.license-number { margin: 0; color: var(--text-dim); overflow-wrap: anywhere; }
.product-fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid rgba(45,104,157,.28); border-radius: 9px; background: rgba(45,104,157,.28); }
.product-fact-grid > div { min-width: 0; padding: 10px 12px; background: rgba(7,24,43,.92); }
.product-fact-grid > .span-2 { grid-column: span 2; }
.product-fact-grid span,.product-fact-grid b { display: block; }
.product-fact-grid span { color: var(--text-dim); font-size: .875rem; }
.product-fact-grid b { margin-top: 4px; color: var(--text); font-size: .93rem; font-weight: 650; overflow-wrap: anywhere; }
.product-guidance { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(30,144,255,.08); color: var(--text-muted); line-height: 1.55; }
.product-guidance strong { color: #8bd2ff; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.product-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 105px; padding: 18px; border: 1px dashed rgba(72,153,211,.42); border-radius: 11px; background: rgba(7,24,43,.42); }
.product-empty p { margin-top: 5px; color: var(--text-muted); }
.account-security-note { margin-top: 14px; }
.account-security-note strong { flex: 0 0 auto; }
.settings-tabs { display: flex; gap: 3px; margin-bottom: 18px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab { position: relative; flex: 0 0 auto; padding: 12px 18px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-weight: 700; cursor: pointer; }
.settings-tab::after { content: ''; position: absolute; right: 16px; bottom: -1px; left: 16px; height: 2px; border-radius: 2px; background: transparent; }
.settings-tab:hover,.settings-tab.active { color: var(--accent-glow); }
.settings-tab.active::after { background: var(--accent-glow); }
.settings-tab:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: -2px; }
.settings-panel { max-width: 760px; }
.settings-panel[hidden] { display: none; }
.profile-guidance { margin-bottom: 14px; padding: 14px 16px; border: 1px solid rgba(54,145,207,.38); border-radius: 10px; background: rgba(30,144,255,.08); color: var(--text-muted); line-height: 1.7; }
.rehost-service-panel { display: grid; gap: 14px; }
.rehost-service-panel[hidden] { display: none; }
.flow-lead { color: var(--text-muted); line-height: 1.7; }
.rehost-steps { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rehost-steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: rgba(5,21,39,.48); }
.rehost-steps > li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(30,144,255,.18); color: #84cfff; font-weight: 800; }
.rehost-steps p { margin-top: 4px; color: var(--text-muted); line-height: 1.5; }
.operation-checklist { display: grid; gap: 8px; margin: 11px 0 0; padding-left: 1.2rem; color: var(--text-muted); line-height: 1.65; }
.operation-checklist li { padding-left: 3px; }
.operation-checklist li::marker { color: #6cc5fa; font-weight: 800; }
.operation-checklist.numbered { list-style: decimal; }
.recovery-guide { display: grid; gap: 14px; margin-bottom: 18px; }
.recovery-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.instruction-section { min-width: 0; padding: 16px; border: 1px solid rgba(49,122,180,.34); border-radius: 10px; background: rgba(5,21,39,.48); }
.instruction-section h4 { color: var(--accent-glow); }
.recovery-eligibility-note { margin-bottom: 16px; padding: 17px; text-align: left; border-color: rgba(230,180,34,.42); background: rgba(230,180,34,.07); }
#recoveryApplicationFields.is-disabled { opacity: .72; }
#recoveryApplicationFields.is-disabled :is(input,select,textarea,button) { cursor: not-allowed; }
#recoveryApplicationFields.is-disabled .btn { opacity: .48; filter: saturate(.35); box-shadow: none; }
.rehost-status-overview { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(5,21,39,.45); }
.rehost-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.rehost-summary span { padding: 8px 11px; border-radius: 8px; background: rgba(30,144,255,.09); color: var(--text-muted); }
.rehost-summary b { color: #8dd3ff; }
.rehost-history h4 { margin-bottom: 8px; }
.rehost-history article { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(90px, .6fr) auto minmax(145px, .7fr); align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(44,100,149,.3); }
.rehost-history strong,.rehost-history small { display: block; }
.rehost-history small,.rehost-history time { color: var(--text-dim); overflow-wrap: anywhere; }
.rehost-no-history { margin: 0; }
.rehost-help { padding: 14px; border-left: 3px solid #d0a62a; border-radius: 6px; background: rgba(208,166,42,.08); }
.rehost-help p { margin: 5px 0 10px; color: var(--text-muted); line-height: 1.55; }
.required-legend { color: var(--text-muted); }
.required-legend i { color: #f87171; font-style: normal; font-weight: 800; }
.profile-history-card { display: grid; gap: 10px; }
.profile-history-card .record-head small { display: block; margin-top: 3px; color: var(--text-dim); }
.profile-change-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-dim); font-size: .875rem; }
.profile-change-list { display: grid; gap: 7px; }
.profile-change-list p { display: grid; grid-template-columns: 105px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 9px; margin: 0; }
.profile-change-list b { color: var(--text); }
.profile-change-list i { color: #69bdf3; font-style: normal; }
.profile-before,.profile-after { min-width: 0; padding: 7px 9px; border-radius: 6px; overflow-wrap: anywhere; }
.profile-before { background: rgba(248,113,113,.08); color: #f6b0b0; }
.profile-after { background: rgba(34,197,94,.08); color: #9be5b5; }
.application-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.authorization-application-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.authorization-application-form { min-width: 0; }

/* Account authorization, private feedback and administration */
.portal-form { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(15,31,55,.72); }
.portal-form h3, .admin-module h2 { margin-bottom: 20px; }
.authorization-guide { margin-bottom: 18px; }
.authorization-guide-heading small, .authorization-guide-heading strong { display: block; }
.authorization-guide-heading strong { margin-top: 3px; color: var(--accent-glow); }
.authorization-guide > p { margin-top: 14px; }
.authorization-guide p, .license-vault > p, .muted-copy { color: var(--text-muted); line-height: 1.7; }
.instruction-steps { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.instruction-steps li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 13px 14px; border: 1px solid rgba(49,122,180,.34); border-radius: 9px; background: rgba(4,17,31,.42); }
.instruction-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(30,144,255,.18); color: #8ed4ff; font-weight: 800; }
.instruction-steps strong { color: var(--text); }
.instruction-steps p { margin-top: 4px; }
.instruction-steps code,.operation-checklist code { color: #b8e5ff; font: inherit; }
.recommended-upload-guide { padding: 12px 14px; border-left: 3px solid var(--accent-teal); border-radius: 7px; background: rgba(0,201,219,.07); }
.recommended-upload-guide strong { color: #8feef5; }
.recommended-upload-guide p { margin-top: 5px; color: var(--text-muted); line-height: 1.62; }
.recommended-badge { display: inline-flex; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(34,197,94,.15); color: #8be6aa; font-size: .875rem; }
.license-vault { margin-top: 0; }
.authorization-action-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 14px; align-items: start; }
.compact-application-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.compact-application-fields .form-group { margin-bottom: 10px; }
.compact-application-fields .form-span-full { grid-column: 1 / -1; }
.compact-application-fields .form-group label { margin-bottom: 5px; line-height: 1.25; }
.compact-application-fields .form-input, .compact-application-fields .form-select { padding-top: 10px; padding-bottom: 10px; line-height: 1.25; }
.compact-application-fields textarea.form-input { min-height: 70px; }
.compact-application-fields .form-hint, .compact-application-fields .file-help { margin-top: 4px; line-height: 1.25; }
.application-form-actions { display: flex; gap: 10px; }
.application-form-actions .btn { flex: 0 0 auto; }
.recovery-application-form .device-request-group { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
.device-request-control { width: 100%; }
.recovery-submit { width: auto; margin-top: 2px; }
.more-services { margin-top: 14px; }
.authorization-service-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
:is(#tab-authorization,#tab-recovery,#tab-rehost) { line-height: 1.25; }
:is(#tab-authorization,#tab-recovery,#tab-rehost) .portal-card, :is(#tab-authorization,#tab-recovery) .portal-form { padding: 15px 18px; }
:is(#tab-authorization,#tab-recovery,#tab-rehost) .form-title-row { margin-bottom: 10px; }
:is(#tab-authorization,#tab-recovery,#tab-rehost) .form-title-row h3 { line-height: 1.25; }
.offline-cancel-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
:is(#tab-authorization,#tab-recovery) .device-request-group { padding: 12px 14px; }
#tab-authorization .compact-application-fields .device-request-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
#tab-authorization .compact-application-fields .device-request-group > label:first-child {
  white-space: normal;
}
:is(#tab-authorization,#tab-recovery) .device-request-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
:is(#tab-authorization,#tab-recovery) .device-request-option input { flex: 0 0 auto; }
:is(#tab-authorization,#tab-recovery) .device-request-option span { min-width: 0; }
:is(#tab-authorization,#tab-recovery) :is(#manualDeviceRequestGroup, #recoveryManualGroup) > .form-input,
#tab-authorization #manualDeviceRequestGroup > .file-help { width: 100%; }
:is(#tab-authorization,#tab-recovery) .application-history { padding-top: 16px; }
:is(#tab-authorization,#tab-recovery) .application-history > .form-title-row { margin-bottom: 8px; }
.record-stack { display: flex; flex-direction: column; gap: 16px; }
.record-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); }
.record-card > p { color: var(--text-muted); line-height: 1.7; margin: 10px 0; }
.record-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.record-head strong { display: block; font-size: 1rem; }
.record-head span { display: inline-block; margin-top: 7px; color: var(--accent-glow); font-size: .875rem; }
.record-head time, .timeline-item time { color: var(--text-dim); font-size: .875rem; }
.record-meta { font-size: .875rem; }
.record-links { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); }
.record-links a { color: var(--accent-glow); }
.timeline { margin: 16px 0; padding-left: 15px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.timeline-item { padding: 12px 14px; border-radius: 6px; background: rgba(255,255,255,.025); }
.timeline-item.is-admin { background: rgba(0,201,219,.07); }
.timeline-item b { font-size: .875rem; color: var(--accent-glow); }
.timeline-item p { color: var(--text-muted); line-height: 1.65; margin: 5px 0; white-space: pre-wrap; }
.feedback-attachments { display: grid; gap: 7px; margin-top: 9px; }
.feedback-attachments a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 11px; border: 1px solid rgba(66,145,204,.34); border-radius: 7px; background: rgba(7,24,43,.62); color: var(--accent-glow); }
.feedback-attachments a:hover { border-color: rgba(91,187,255,.62); background: rgba(30,144,255,.1); }
.feedback-attachments span { min-width: 0; overflow-wrap: anywhere; }
.feedback-attachments small { flex: 0 0 auto; color: var(--text-dim); }
.application-reply, .feedback-reply, .admin-app-reply, .feedback-admin-reply { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.application-reply textarea, .feedback-reply textarea, .admin-app-reply input, .feedback-admin-reply input { flex: 1; min-width: 220px; }
.application-reply input[type="file"],.feedback-reply input[type="file"],.feedback-reply .form-hint { flex-basis: 100%; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.settings-column { display: flex; flex-direction: column; gap: 22px; }
.form-action-align { display: flex; align-items: flex-end; }
.admin-login-card { margin: 40px auto; max-width: 440px; }
.admin-module-nav { position: sticky; top: 72px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px; margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(7,20,36,.94); }
.admin-module-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 5px; color: var(--text-muted); font-size: .875rem; }
.admin-module-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.admin-module-nav > small { padding: 12px 12px 4px; color: var(--text-dim); font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-module-nav > small { color: #48b8ff; font-weight: 900; }
.admin-menu-toggle { display: none; margin-bottom: 12px; }
.admin-module { scroll-margin-top: 150px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.analytics-range { width: 140px; }
.analytics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.metric-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.metric-row b { color: var(--text); text-align: right; }
.module-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-row .form-input, .filter-row .form-select { width: auto; min-width: 150px; }
.admin-table-wrap { overflow-x: auto; }
.admin-action-grid { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; margin-top: 14px; }
.feedback-admin-reply .form-select { width: 160px; }
.narrow-form { max-width: 560px; }
.application-service-grid { grid-template-columns: repeat(2,1fr); }
.center-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.operation-guide { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.operation-guide article { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); }
.operation-guide strong { color: var(--accent-glow); }
.operation-guide p { margin-top: 8px; color: var(--text-muted); line-height: 1.7; }
.module-eyebrow { display: block; margin-bottom: 5px; color: var(--accent-teal); font-size: .875rem; font-weight: 800; letter-spacing: .08em; }
.admin-case { padding: 0; overflow: hidden; }
.admin-case > summary { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 17px 19px; cursor: pointer; list-style: none; }
.admin-case > summary::-webkit-details-marker { display: none; }
.admin-case[open] > summary { border-bottom: 1px solid var(--border); background: rgba(30,144,255,.05); }
.case-summary-main strong, .case-summary-main small { display: block; }
.case-summary-main small { margin-top: 5px; color: var(--text-dim); }
.case-open-label { color: var(--accent-glow); font-size: .875rem; }
.case-detail { padding: 18px 20px 21px; }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.case-facts p { color: var(--text-muted); line-height: 1.65; overflow-wrap: anywhere; }
.case-facts b { color: var(--text); }
.authorization-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: none; }
.authorization-steps li { position: relative; display: flex; gap: 10px; min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(4,17,31,.42); }
.authorization-steps li:not(:last-child)::after { content: '›'; position: absolute; right: -10px; top: 29px; z-index: 2; color: var(--accent-glow); font-size: 1.4rem; }
.authorization-steps li > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: .875rem; }
.authorization-steps strong { display: block; color: var(--text); font-size: .9rem; }
.authorization-steps p { margin-top: 5px; color: var(--text-muted); font-size: .875rem; line-height: 1.55; }
.form-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.form-title-row h3 { margin: 3px 0 0; }
.form-title-row small { color: var(--text-dim); }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: rgba(30,144,255,.12); color: var(--accent-glow); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.status-required, .status-needs_info { background: rgba(230,180,34,.13); color: #f5cd58; }
.status-success, .status-issued, .status-approved { background: rgba(34,197,94,.13); color: #7ee2a2; }
.status-restricted { background: rgba(245,158,11,.16); color: #fcd34d; }
.status-rejected, .status-closed { background: rgba(248,113,113,.12); color: #fca5a5; }
.device-request-group { padding: 16px; border: 1px dashed rgba(30,144,255,.42); border-radius: var(--radius-sm); background: rgba(30,144,255,.05); }
.file-help { margin-top: 10px; color: var(--text-muted); font-size: .875rem; line-height: 1.65; }
.file-help strong { color: var(--accent-glow); }
.next-action { margin: 15px 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: rgba(30,144,255,.07); }
.next-action strong { color: var(--accent-glow); font-size: .875rem; }
.next-action p { margin-top: 3px; color: var(--text); line-height: 1.6; }
.timeline-disclosure { margin: 14px 0; }
.timeline-disclosure summary { cursor: pointer; color: var(--accent-glow); font-size: .875rem; }
.empty-state { padding: 28px 20px; border: 1px dashed var(--border); border-radius: var(--radius-sm); text-align: center; color: var(--text-muted); }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--text); }
.application-history { min-width: 0; }
.application-user-table { min-width: 900px; margin-bottom: 0; table-layout: auto; }
.application-user-table th, .application-user-table td { padding: 9px 12px; line-height: 1.25; }
.application-user-table td { vertical-align: top; }
.application-user-table th:nth-child(-n+4), .application-user-table td:nth-child(-n+4) { white-space: nowrap; }
.application-user-table td:nth-child(4), .application-user-table td:nth-child(6) { width: 1%; }
.application-user-table td:nth-child(5) { min-width: 210px; }
.license-count { display: block; margin-top: 4px; color: var(--text-muted); }
.application-table-details { max-width: 320px; }
.application-table-details > summary { cursor: pointer; color: var(--accent-glow); white-space: nowrap; }
.application-table-details > p, .application-table-details .record-links { margin: 10px 0; color: var(--text-muted); line-height: 1.6; overflow-wrap: anywhere; }
.application-table-details .application-reply { margin: 12px 0; }
.application-mobile-cards { display: none; }
.rehost-card { margin-top: 0; border-color: rgba(230,180,34,.35); }
.recovery-disclosure { margin-top: 14px; }
.recovery-disclosure > summary { cursor: pointer; color: var(--accent-glow); font-weight: 700; }
.recovery-disclosure > p { margin: 14px 0; color: var(--text-muted); line-height: 1.7; }
.application-dialog { width: min(1040px, calc(100vw - 36px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; border: 1px solid rgba(76,150,210,.42); border-radius: 16px; background: #071827; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.application-dialog::backdrop { background: rgba(1,8,17,.72); backdrop-filter: blur(3px); }
.application-dialog .dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(9,26,45,.97); }
.application-dialog .dialog-head h2 { margin: 0; }
.application-dialog #userApplicationDialogBody { padding: 12px 14px 72px; }
.user-application-overview { display: grid; gap: 10px; }
.user-application-overview .application-actions { padding: 0 2px; }
.mobile-license-status { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.mobile-license-status > strong { color: var(--text-muted); font-size: .875rem; }
.application-compact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
.application-dialog #applicationDialogBody, .application-dialog #rehostDialogBody { padding: 12px 14px 72px; }
.application-dialog .workbench-section { margin: 0; padding: 10px 12px; }
.compact-review-tools, .rehost-action-dock { position: sticky; bottom: 0; z-index: 3; display: grid; grid-template-columns: minmax(240px,1fr) auto; gap: 8px; align-items: end; padding: 8px 10px; border-top: 1px solid var(--border); background: rgba(7,24,39,.98); box-shadow: 0 -12px 28px rgba(0,0,0,.28); }
.rehost-workbench .fact-grid p { min-height: 54px; margin: 0; }
#rehostReviewList tr { cursor: pointer; }
.offline-rehost-disclosure { margin: 12px 0; padding: 12px; border: 1px solid rgba(230,180,34,.38); border-radius: 10px; background: rgba(55,43,12,.24); }
.offline-rehost-disclosure > summary { cursor: pointer; color: #f2cf68; font-weight: 700; }
.offline-rehost-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: end; margin-top: 14px; }
.offline-rehost-form label { display: grid; gap: 6px; color: var(--text-muted); font-size: .875rem; }
.offline-rehost-form label:nth-of-type(4),.offline-rehost-form label:nth-of-type(5) { grid-column: span 2; }
.rehost-history-list { display: grid; gap: 10px; margin-top: 10px; }
.rehost-history-list .detail-record { margin: 0; }
.application-admin-table td { vertical-align: middle; }
.application-hero { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(30,144,255,.28); border-radius: 10px; background: linear-gradient(135deg,rgba(30,144,255,.14),rgba(9,38,64,.72)); }
.application-hero small,.section-heading small,.license-card-head small { display: block; color: var(--accent-glow); font-weight: 700; letter-spacing: .04em; }
.application-hero h3,.section-heading h3,.license-card-head h4 { margin: 4px 0 0; }
.application-hero p { margin: 5px 0 0; color: var(--text-muted); }
.workbench-section,.review-tools,.license-workbench { margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(8,30,49,.86); }
.section-heading,.license-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.section-heading time,.license-card-head small { color: var(--text-muted); }
.fact-grid,.device-facts,.license-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; }
.fact-grid p,.device-facts p,.license-facts p { min-width: 0; margin: 0; color: var(--text-muted); line-height: 1.38; overflow-wrap: anywhere; }
.fact-grid b,.device-facts b,.license-facts b { display: block; margin-bottom: 2px; color: var(--text); font-size: .875rem; }
.fact-grid .span-2,.license-facts .span-2 { grid-column: 1 / -1; }
.history-section { border-color: rgba(70,163,230,.32); }
.history-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; }
.history-grid article { padding: 9px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.025); }
.history-grid time,.history-grid strong,.history-grid p { display: block; margin: 0 0 4px; }
.history-grid time,.history-grid p { color: var(--text-muted); font-size: .875rem; }
.count-badge,.secure-label { padding: 5px 9px; border-radius: 999px; background: rgba(30,144,255,.12); color: var(--accent-glow); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.empty-inline { margin: 0; color: var(--text-muted); }
.request-file-row { display: flex; gap: 8px; align-items: baseline; margin: 0 0 8px; color: var(--text-muted); overflow-wrap: anywhere; }
.request-file-row b { color: var(--text); white-space: nowrap; }
.request-file-row span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.full-filename { display: inline-block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; color: var(--text-muted); }
.application-delete-tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; border-color: rgba(248,113,113,.28); }
.application-delete-tools .btn { width: auto; flex: 0 0 auto; }
#applicationDeleteFiles { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.04); color: var(--text); }
.device-facts code,.license-facts code { display: block; margin-top: 4px; font-size: .875rem; color: #9fc9eb; overflow-wrap: anywhere; word-break: break-word; }
.workbench-disclosure { margin-top: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: rgba(8,30,49,.55); }
.workbench-disclosure > summary { cursor: pointer; color: var(--accent-glow); font-weight: 700; }
.review-tools { display: grid; gap: 8px; }
.review-tools .admin-app-reply { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.license-workbench { margin-top: 10px; border-color: rgba(44,184,120,.45); background: linear-gradient(145deg,rgba(12,53,54,.72),rgba(7,28,45,.96)); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.license-workbench.is-disabled { border-color: var(--border); background: rgba(8,30,49,.65); }
.workbench-intro { margin: -2px 0 10px; color: var(--text-muted); line-height: 1.45; }
.application-license-upload { margin: 0; padding: 0; border: 0; }
.license-dropzone { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed rgba(91,190,227,.58); border-radius: 9px; background: rgba(30,144,255,.055); }
.license-dropzone > span { color: var(--text); font-weight: 700; }
.license-dropzone small { color: var(--text-muted); }
.license-preview { margin: 9px 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(2,18,30,.58); }
.preview-empty,.preview-error { text-align: center; color: var(--text-muted); }
.preview-empty p,.preview-error p { margin: 6px 0 0; }
.preview-error strong,.preview-errors { color: #fca5a5; }
.preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.preview-heading h4 { margin: 4px 0 0; }
.preview-notice { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .875rem; }
.preview-errors { margin: 14px 0 0; padding-left: 20px; }
.delivery-confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.check-row { display: inline-flex; align-items: center; gap: 9px; color: var(--text); cursor: pointer; line-height: 1.45; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.issued-license-list { display: grid; gap: 12px; }
.issued-license-card { padding: 16px; border: 1px solid rgba(44,184,120,.35); border-radius: 10px; background: rgba(5,31,38,.72); }
.issued-license-card.is-revoked { border-color: rgba(248,113,113,.36); background: rgba(58,24,31,.34); }
.issued-license-card.is-restricted { border-color: rgba(245,158,11,.45); background: rgba(69,47,13,.32); }
.license-status-reason { margin: 12px 0; padding: 10px 12px; border-left: 3px solid #f59e0b; background: rgba(245,158,11,.08); }
.license-status-reason p { margin: 4px 0; }
.license-status-reason time { color: var(--text-muted); font-size: .875rem; }
.license-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.revocation-reason { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #f87171; background: rgba(248,113,113,.08); }
.revocation-reason p { margin: 5px 0; }
.revocation-reason time { color: var(--text-muted); font-size: .875rem; }
.btn-danger { border-color: rgba(248,113,113,.65); background: rgba(185,28,28,.92); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.confirm-dialog { width: min(560px,calc(100vw - 32px)); padding: 0; border: 1px solid rgba(248,113,113,.42); border-radius: 14px; background: #091a2d; color: var(--text); box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.confirm-dialog::backdrop { background: rgba(1,8,17,.76); backdrop-filter: blur(3px); }
.confirm-dialog .dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.confirm-dialog .dialog-head h2 { margin: 3px 0 0; }
.confirm-dialog-body { display: grid; gap: 14px; padding: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.authorization-confirm-dialog { width: min(680px,calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border-color: rgba(230,180,34,.55); }
.authorization-confirm-dialog .confirm-dialog-body { gap: 12px; padding: 16px 18px; }
.license-confirm-facts { padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: rgba(3,20,34,.62); }
.action-feedback-dialog { width: min(500px,calc(100vw - 32px)); border-color: rgba(44,184,120,.55); }
.action-feedback-dialog.is-error { border-color: rgba(248,113,113,.58); }
.action-feedback-dialog .confirm-dialog-body { gap: 12px; padding: 16px 18px; }
.action-feedback-message { margin: 0; color: var(--text); line-height: 1.55; white-space: pre-line; }

@media (min-width: 1101px) {
  #adminPanel { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  #adminPanel > .dashboard-header { grid-column: 1 / -1; }
  #adminPanel > .admin-module-nav { grid-column: 1; grid-row: 2 / span 20; position: sticky; top: 92px; flex-direction: column; align-items: stretch; max-height: calc(100vh - 112px); }
  #adminPanel > .admin-module-nav a { padding: 10px 12px; }
  #adminPanel > .admin-module { grid-column: 2; }
}

@media (max-width: 880px) {
  .application-user-table-wrap { display: none; }
  .application-mobile-cards { display: flex; }
  .application-grid, .settings-grid, .analytics-grid, .application-service-grid, .authorization-service-grid { grid-template-columns: 1fr; }
  .application-compact-grid { grid-template-columns: 1fr; }
  .compact-review-tools, .rehost-action-dock { grid-template-columns: 1fr; }
  .module-heading { display: block; }
  .filter-row { margin-top: 14px; }
  .admin-action-grid { grid-template-columns: 1fr; }
  .authorization-steps { grid-template-columns: 1fr 1fr; }
  .authorization-steps li::after { display: none; }
  .admin-case > summary { grid-template-columns: 1fr auto; }
  .admin-case > summary .status-pill:nth-of-type(2), .case-open-label { display: none; }
  .case-facts { grid-template-columns: 1fr; }
  .fact-grid,.device-facts,.license-facts,.history-grid { grid-template-columns: 1fr; }
  .fact-grid .span-2 { grid-column: auto; }
  .delivery-confirm-row,.section-heading,.application-hero { align-items: stretch; flex-direction: column; }
  .review-tools .admin-app-reply { grid-template-columns: 1fr; }
  .user-application-dialog { width: 100vw; max-width: none; max-height: 96vh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .registration-form { display: block; }
  .registration-section-title { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
  .registration-section-title.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
  .recovery-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .dashboard-workspace { display: block; }
  .dashboard-tabs { position: static; display: flex; flex-direction: row; gap: 2px; max-height: none; margin-bottom: 22px; padding: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; scrollbar-width: none; scroll-snap-type: x proximity; }
  .dashboard-tab { width: auto; padding: 11px 22px; border-radius: 0; text-align: center; scroll-snap-align: center; }
  .dashboard-tab.active { background: transparent; }
  .dashboard-tab.active::after { top: auto; right: 0; bottom: -1px; left: 0; width: auto; height: 3px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-teal)); }
  .dashboard-workspace > .tab-content { min-width: 0; }
  .admin-menu-toggle { display: inline-flex; }
  #adminPanel > .admin-module-nav.is-collapsed { display: none; }
  #adminPanel > .admin-module-nav { position: static; flex-wrap: wrap; max-height: none; }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .dashboard-workspace .account-overview-grid { grid-template-columns: 1fr; }
  .dashboard-workspace .account-status-card { position: static; }
}

@media (max-width: 620px) {
  .offline-rehost-form { grid-template-columns: 1fr; }
  .offline-rehost-form label:nth-of-type(4),.offline-rehost-form label:nth-of-type(5) { grid-column: auto; }
  .dashboard-tabs { overflow-x: auto; }
  .dashboard-tab { white-space: nowrap; }
  .portal-summary { grid-template-columns: 1fr; }
  .dashboard-page { padding-top: 82px; }
  .dashboard-header { margin-bottom: 14px; padding-bottom: 12px; }
  .dashboard-tabs { margin-bottom: 16px; }
  .portal-card, .portal-form { padding: 15px; }
  .compact-application-fields { grid-template-columns: 1fr; }
  .authorization-action-grid { grid-template-columns: 1fr; }
  .compact-application-fields .form-span-full { grid-column: auto; }
  .application-form-actions { flex-direction: column; }
  .record-head { display: block; }
  .record-head time { display: block; margin-top: 8px; }
  .application-reply, .feedback-reply, .admin-app-reply, .feedback-admin-reply { display: grid; grid-template-columns: 1fr; }
  .operation-guide { grid-template-columns: 1fr; }
  .center-actions { flex-direction: column; }
  .registration-card { padding: 30px 20px; }
  .registration-form { display: block; }
  .registration-grid, .authorization-steps { grid-template-columns: 1fr; }
  .application-admin-table thead { display: none; }
  .application-admin-table, .application-admin-table tbody, .application-admin-table tr, .application-admin-table td { display: block; width: 100%; }
  .application-admin-table tr { margin-bottom: 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); }
  .application-admin-table td { padding: 5px 0; border: 0; }
  .application-admin-table td::before { display: inline-block; min-width: 88px; color: var(--text-dim); font-size: .875rem; }
  .application-admin-table td:nth-child(1)::before { content: '用户/单位'; }
  .application-admin-table td:nth-child(2)::before { content: '事项'; }
  .application-admin-table td:nth-child(3)::before { content: '版本'; }
  .application-admin-table td:nth-child(4)::before { content: '设备申请'; }
  .application-admin-table td:nth-child(5)::before { content: '状态'; }
  .application-admin-table td:nth-child(6)::before { content: '提交时间'; }
  .registration-section-title { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
  .registration-section-title.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
  .verification-control { grid-template-columns: 1fr; }
  .form-title-row { display: block; }
  .form-title-row .status-pill { margin-top: 10px; }
}
.security-note { padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(30,144,255,.08); color: var(--text-muted); font-size: .88rem; }
.application-privacy-notice { grid-column: 1 / -1; margin: 2px 0 4px; padding: 14px 16px; border: 1px solid rgba(91,190,227,.34); border-left: 3px solid var(--accent); border-radius: 8px; background: rgba(30,144,255,.07); color: var(--text-muted); line-height: 1.65; }
.application-privacy-notice strong { display: block; margin-bottom: 5px; color: var(--text); }
.application-privacy-notice p { margin: 3px 0; }
/* ========== Home ink-blue theme ========== */
.home-page {
  --text: #f7fbff;
  --text-muted: #b7c7d8;
  --text-dim: #8299af;
  --bg-dark: #061421;
  --bg-card: #0d2439;
  --bg-card-hover: #102b44;
  --border: #1b4463;
  --border-glow: rgba(99, 199, 255, .55);
  --shadow: 0 18px 46px rgba(0, 7, 16, .3);
  --shadow-glow: 0 18px 44px rgba(0, 14, 28, .4);
  background: #061421;
}
.home-page::before { background: radial-gradient(circle at 18% 10%, rgba(99,199,255,.045), transparent 34%), radial-gradient(circle at 84% 48%, rgba(87,216,220,.025), transparent 28%); animation: none; }
.home-page::after { background-image: linear-gradient(rgba(99,199,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(99,199,255,.018) 1px, transparent 1px); }
.home-page .nav, .home-page .hero, .home-page .footer {
  --text: #f7fbff;
  --text-muted: #b8c8d9;
  --text-dim: #8ea4b9;
  --bg-card: rgba(14, 31, 55, .9);
  --bg-card-hover: rgba(20, 42, 72, .94);
  --border: rgba(77,184,255,.21);
  --border-glow: rgba(77,184,255,.52);
  --primary-light: #112743;
}
.home-page .hero {
  min-height: 92vh;
  background:
    radial-gradient(ellipse at 84% 26%, rgba(45, 180, 218, .12), transparent 30%),
    linear-gradient(118deg, #061523 0%, #08253b 58%, #0a3652 100%);
}
.home-page .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 90% 55%, transparent 0 38px, rgba(106, 211, 230, .06) 39px 40px),
    linear-gradient(90deg, rgba(5, 18, 30, .7), transparent 64%);
  pointer-events: none;
}
.home-page .hero-bg-effect.top-right { background: radial-gradient(circle, rgba(81,205,229,.08) 0%, transparent 70%); }
.home-page .hero-bg-effect.bottom-left { background: radial-gradient(circle, rgba(99,199,255,.025) 0%, transparent 70%); }
.home-page .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); gap: clamp(46px, 5.5vw, 82px); }
.home-page .hero-content { z-index: 2; max-width: 720px; }
.home-page .hero h1 { display: flex; flex-direction: column; margin-bottom: 0; color: #f7fbff; text-shadow: 0 2px 16px rgba(0,0,0,.18); }
.hero-brand { display: block; font-size: clamp(4.6rem, 8.2vw, 7.7rem); font-weight: 800; line-height: .85; letter-spacing: -.065em; background: linear-gradient(105deg, #ffffff 0%, #d8f3ff 48%, #70dbe2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-fullname { display: block; margin-top: 26px; color: #9adcf7; font-family: var(--font-mono); font-size: clamp(.875rem, 1.24vw, 1.08rem); font-weight: 600; line-height: 1.5; letter-spacing: .055em; }
.hero-category { display: block; margin-top: 7px; color: #f4f9fc; font-size: clamp(1.65rem, 2.55vw, 2.35rem); font-weight: 650; line-height: 1.35; letter-spacing: .04em; }
.hero-slogan { display: flex; align-items: baseline; gap: 16px; margin: 29px 0 18px; padding-left: 17px; border-left: 2px solid #5ddce2; }
.hero-slogan strong { color: #eefaff; font-size: 1.12rem; font-weight: 650; letter-spacing: .02em; }
.hero-slogan span { color: #77d8df; font-size: .98rem; }
.home-page .hero-desc { max-width: 690px; margin-bottom: 22px; color: #b8c9d7; font-size: 1rem; line-height: 1.9; }
.home-page .hero-actions { margin-top: 28px; }
.home-page .hero .btn { min-height: 46px; padding: 10px 24px; border-radius: 8px; }
.home-page .hero-visual { z-index: 2; padding: 10px; border-radius: 15px; border-color: rgba(109, 204, 237, .24); background: rgba(7, 25, 42, .82); box-shadow: 0 26px 70px rgba(0, 8, 19, .42); }
.home-page .hero-visual::before { opacity: .45; }
.home-page .hero-visual-topline { padding: 3px 4px 10px; color: #7896ab; }
.home-page .hero-visual-topline span:last-child { color: #69d7df; }
.home-page .nav.scrolled { background: rgba(7,27,49,.96); border-bottom-color: rgba(99,199,255,.16); }
.home-page .nav-links a { color: #a9bad0; }
.home-page .nav-links a:hover, .home-page .nav-links a.active { color: #fff; }
.home-page .section { background: #061421; }
.home-page #tech, .home-page #scenarios { background: #081b2c !important; }
.home-page #gallery, .home-page #editions { background: #061421; }
.home-page .section-title { background: linear-gradient(135deg, #f7fbff 0%, #b9e8ff 58%, #63c7ff 100%); -webkit-background-clip: text; background-clip: text; }
.home-page .section-subtitle { color: #9fb3c7; }
.home-page .feature-card, .home-page .tech-item, .home-page .gallery-item, .home-page .scenario-card { background: #0d2439; border-color: #1b4463; box-shadow: 0 14px 34px rgba(0, 8, 18, .22); }
.home-page .gallery-img-wrap, .home-page .gallery-img-wrap img, .home-page .gallery-img-wrap video { background: #fff; }
.home-page .gallery-img-wrap { padding: 14px; box-shadow: inset 0 0 0 1px rgba(27,68,99,.18); }
.home-page .gallery-section-header { color: #8fd9ff; }
.home-page .gallery-caption { border-top-color: #1b4463; }
.home-page .btn-outline { color: #8fd9ff; }
.home-page .hero .btn-outline, .home-page .footer .btn-outline { color: #76c8ff; }

.hero-audiences { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 4px; }
.hero-audiences span { position: relative; padding: 0 15px 0 13px; border: 0; border-radius: 0; background: none; color: #bdd4e2; font-size: .875rem; }
.hero-audiences span::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #61d5df; transform: translateY(-50%); }

.process-section { position: relative; padding: 68px 0 74px; overflow: hidden; background: #081b2c; border-top: 1px solid rgba(99,199,255,.13); border-bottom: 1px solid #1b4463; }
.process-section::after { content: ''; position: absolute; right: -12%; bottom: -90%; width: 52%; height: 180%; border-radius: 50%; border: 1px solid rgba(89,211,220,.08); box-shadow: 0 0 0 44px rgba(89,211,220,.025), 0 0 0 88px rgba(89,211,220,.018); pointer-events: none; }
.process-heading { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: end; margin-bottom: 46px; }
.process-heading .section-kicker { margin-bottom: 8px; color: #69d7df; font-family: var(--font-mono); font-size: .875rem; font-weight: 700; letter-spacing: .16em; }
.process-heading h2 { color: #f4f9fc; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.3; }
.process-heading > p { max-width: 580px; color: #9fb5c6; line-height: 1.9; }
.process-track { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; counter-reset: none; }
.process-track::before { content: ''; position: absolute; top: 25px; left: 4%; right: 4%; height: 1px; background: linear-gradient(90deg, #5fcee8, #5cdae0 72%, rgba(230,180,34,.7)); }
.process-track li { position: relative; min-width: 0; padding: 0 24px; border-right: 1px solid rgba(99,199,255,.13); }
.process-track li:first-child { padding-left: 0; }
.process-track li:last-child { padding-right: 0; border-right: 0; }
.process-track li > span { position: relative; z-index: 1; display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid #3f8dad; border-radius: 50%; background: #081b2c; color: #75dcec; font-family: var(--font-mono); font-size: .875rem; font-weight: 700; }
.process-track li:last-child > span { border-color: rgba(230,180,34,.68); color: #eccd68; }
.process-track strong { display: block; margin-bottom: 8px; color: #eef8fc; font-size: 1rem; }
.process-track p { color: #8fa8ba; font-size: .875rem; line-height: 1.75; }
.process-related-links { position: relative; z-index: 1; margin-top: 28px; color: #9fb5c6; line-height: 1.8; }
.process-related-links a { color: #75dcec; text-decoration: underline; text-underline-offset: 3px; }
.process-related-links a:hover, .process-related-links a:focus-visible { color: #f4f9fc; }

.capability-flow { padding: 34px 0; background: #081b2c; border-bottom: 1px solid #1b4463; box-shadow: none; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.flow-grid > div { position: relative; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; padding: 10px 28px; border-right: 1px solid #1b4463; }
.flow-grid > div:last-child { border-right: 0; }
.flow-grid span { grid-row: 1 / 3; color: #63c7ff; font-family: var(--font-mono); font-weight: 800; font-size: 1.05rem; }
.flow-grid strong { color: #f7fbff; font-size: .92rem; }
.flow-grid small { color: #8299af; line-height: 1.5; }

.feature-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.feature-meta span { padding: 4px 9px; border-radius: 999px; background: rgba(99,199,255,.08); color: #8fd9ff; font-size: .875rem; font-weight: 600; }
.tech-proof { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #1b4463; color: #8fd9ff; font-size: .875rem; font-weight: 600; letter-spacing: .01em; }
.scenario-card { display: flex; flex-direction: column; }
.scenario-card p { flex: 1; }
.scenario-outcome { margin-top: 20px; padding-top: 15px; border-top: 1px solid #1b4463; display: flex; flex-direction: column; gap: 3px; }
.scenario-outcome strong { color: #63c7ff; font-size: .875rem; }
.scenario-outcome span { color: #9fb3c7; font-size: .875rem; }

.editions-section { border-top: 1px solid rgba(99,199,255,.08); }
.editions-section .section-kicker { text-align: center; }
.edition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.edition-card { display: flex; min-height: 360px; padding: 30px; flex-direction: column; border: 1px solid #1b4463; border-radius: 14px; background: #0d2439; box-shadow: 0 14px 34px rgba(0,8,18,.22); }
.edition-card-featured { border-color: rgba(99,199,255,.6); box-shadow: inset 0 3px 0 #63c7ff, 0 16px 38px rgba(0,8,18,.3); }
.edition-index { margin-bottom: 28px; color: #63c7ff; font-family: var(--font-mono); font-size: .875rem; }
.edition-en { margin-bottom: 7px; color: #8299af; font-family: var(--font-mono); font-size: .875rem; letter-spacing: .08em; }
.edition-card h3 { margin-bottom: 12px; color: #f7fbff; font-size: 1.35rem; }
.edition-card strong { margin-bottom: 14px; color: #57d8dc; font-size: .88rem; }
.edition-card > p:not(.edition-en) { color: #b7c7d8; font-size: .9rem; line-height: 1.85; }
.edition-card .btn { align-self: flex-start; margin-top: auto; }

.conversion-strip { padding: 46px 0; background: #0a2942; border-top: 1px solid #1b4463; border-bottom: 1px solid #1b4463; color: #fff; }
.conversion-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.conversion-inner h2 { margin-bottom: 7px; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.4; }
.conversion-inner p { color: #c3d8e8; }
.conversion-inner .conversion-eyebrow { margin-bottom: 7px; color: #72d9df; font-family: var(--font-mono); font-size: .875rem; font-weight: 700; letter-spacing: .14em; }
.conversion-actions { display: flex; flex-shrink: 0; gap: 12px; }
.conversion-strip .btn-outline { border-color: rgba(255,255,255,.42); color: #fff; }
.conversion-strip .btn-outline:hover { background: rgba(255,255,255,.11); }
.about-section { padding: 54px 0 48px; background: #081b2c; border-bottom: 1px solid #1b4463; }
.about-inner { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 34px; align-items: center; max-width: 980px; margin: 0 auto; }
.about-company-logo { display: grid; width: 148px; height: 148px; place-items: center; overflow: hidden; border: 1px solid rgba(99,199,255,.22); border-radius: 18px; background: #fff; box-shadow: 0 16px 38px rgba(0,0,0,.22); }
.about-company-logo img { width: 126px; height: 126px; object-fit: contain; }
.about-eyebrow { margin-bottom: 7px; color: #63c7ff; font-family: var(--font-mono); font-size: .875rem; font-weight: 700; letter-spacing: .15em; }
.about-inner h2 { margin-bottom: 14px; color: #f7fbff; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.35; }
.about-inner > div:last-child > p:last-child { color: #b7c7d8; font-size: .95rem; line-height: 1.95; }
.technical-note-section { padding: 24px 0 30px; background: #061421; }
.technical-note { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: start; padding: 18px 22px; border: 1px solid #1b4463; border-radius: 10px; background: #0d2439; }
.technical-note h4 { color: #63c7ff; font-size: .92rem; }
.technical-note p { color: #9fb3c7; font-size: .875rem; line-height: 1.75; }

.home-page .footer { padding: 18px 0 10px; background: #061421; border-top: 1px solid rgba(99,199,255,.16); }
.home-page .footer-grid { grid-template-columns: 1.05fr .68fr .82fr 1.45fr; gap: clamp(24px, 3.4vw, 46px); margin-bottom: 10px; align-items: start; }
.home-page .footer-col h4 { font-size: .98rem; margin-bottom: 10px; }
.home-page .footer-col p, .home-page .footer-col a { line-height: 1.55; }
.footer-brand-title { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.footer-brand-title img { width: 42px; height: 42px; border-radius: 8px; }
.footer-brand-title h4 { margin-bottom: 0 !important; line-height: 1.45; }
.footer-brand-title span { display: block; margin-top: 2px; color: #91aac0; font-size: .875rem; line-height: 1.5; }
.footer-positioning { max-width: 250px; color: #9bb2c7 !important; font-size: .875rem !important; line-height: 1.6 !important; }
.footer-contact-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.footer-contact { margin-bottom: 5px; }
.footer-contact strong { display: block; color: #dceeff; font-size: .875rem; line-height: 1.3; }
.footer-contact a { color: #85cfff; font-size: .875rem !important; line-height: 1.45 !important; overflow-wrap: anywhere; }
.footer-wechat { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; text-align: center; }
.footer-wechat img { width: 74px; height: 74px; padding: 4px; border-radius: 9px; background: #fff; object-fit: contain; }
.footer-wechat p { font-size: .875rem !important; line-height: 1.5 !important; }
.home-page .footer-bottom { padding-top: 10px; font-size: .875rem; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(7, 15, 30, .98);
    box-shadow: var(--shadow);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 10px 12px; }
  .nav-links .btn { justify-content: center; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.8rem; }
  .hero h1 { font-size: inherit; }
  .hero-brand { font-size: clamp(4rem, 22vw, 5.6rem); }
  .hero-category { font-size: 1.72rem; }
  .hero-slogan { align-items: flex-start; flex-direction: column; gap: 3px; }
  .hero { min-height: auto; padding: 112px 0 70px; }
  .hero-grid, .home-page .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .home-page .hero-content, .home-page .hero-visual { width: 100%; max-width: 100%; }
  .hero-badge { margin-bottom: 24px; padding: 7px 14px; font-size: .875rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .gallery { grid-template-columns: 1fr; }
  .edition-grid { grid-template-columns: 1fr; }
  .edition-card { min-height: 300px; }
  .portal-summary, .application-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid > div:nth-child(2) { border-right: 0; }
  .flow-grid > div { border-bottom: 1px solid rgba(17,94,170,.13); padding: 18px; }
  .flow-grid > div:nth-child(3), .flow-grid > div:nth-child(4) { border-bottom: 0; }
  .process-section { padding: 54px 0 58px; }
  .process-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .process-track { grid-template-columns: 1fr; gap: 0; }
  .process-track::before { top: 0; bottom: 0; left: 24px; right: auto; width: 1px; height: auto; }
  .process-track li, .process-track li:first-child, .process-track li:last-child { min-height: 110px; padding: 0 0 25px 72px; border-right: 0; }
  .process-track li > span { position: absolute; left: 0; top: 0; margin: 0; }
  .home-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .home-page .footer-brand, .home-page .footer-contact-col { grid-column: 1 / -1; }
  .about-section { padding: 42px 0 38px; }
  .about-inner { grid-template-columns: 108px minmax(0, 1fr); gap: 22px; }
  .about-company-logo { width: 108px; height: 108px; border-radius: 14px; }
  .about-company-logo img { width: 94px; height: 94px; }
  .about-inner > div:last-child > p:last-child { font-size: .9rem; line-height: 1.85; }
  .conversion-inner { align-items: flex-start; flex-direction: column; }
  .conversion-actions { width: 100%; flex-wrap: wrap; }
  .technical-note { grid-template-columns: 1fr; gap: 5px; }
  .deliverables-strip { grid-template-columns: repeat(2, 1fr); }
  .deliverables-strip span:nth-child(2n) { border-right: 0; }
  .deliverables-strip span { border-bottom: 1px solid #1b4463; }
  .deliverables-strip span:nth-last-child(-n+2) { border-bottom: 0; }
  .media-ultrawide .gallery-img-wrap { aspect-ratio: 2.2/1; padding: 10px; }
  .auth-card { padding: 34px 24px; }
  .form-row { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .dashboard-tabs { overflow-x: auto; }
  .dashboard-tab { padding: 12px 18px; white-space: nowrap; }
  .message-input { flex-direction: column; }
  .file-item { align-items: flex-start; gap: 16px; flex-direction: column; }
  .upload-zone { padding: 32px 18px; }
  .download-table th, .download-table td { padding: 14px 15px; vertical-align: top; }
}

@media (min-width: 769px) and (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 860px; }
  .hero-visual { max-width: 860px; }
  .process-track li { padding: 0 15px; }
  .home-page .footer-grid { grid-template-columns: 1.35fr .7fr .7fr; }
  .home-page .footer-contact-col { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ========== Unified download and license page ========== */
.downloads-page {
  background:
    radial-gradient(circle at 12% 4%, rgba(30, 144, 255, .14), transparent 28%),
    radial-gradient(circle at 88% 28%, rgba(0, 201, 219, .08), transparent 26%),
    var(--bg-dark);
}
.download-hero { padding: 142px 0 82px; border-bottom: 1px solid var(--border); }
.download-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr); gap: 72px; align-items: center; }
.download-eyebrow, .section-kicker { margin-bottom: 12px; color: var(--accent-teal); font-family: var(--font-mono); font-size: .875rem; font-weight: 700; letter-spacing: .16em; }
.download-hero-copy h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.45rem, 5vw, 4.6rem); line-height: 1.08; letter-spacing: -.035em; }
.download-lead { max-width: 680px; color: var(--text-muted); font-size: 1.06rem; line-height: 1.95; }
.download-limit-note { max-width: 680px; margin-top: 16px; color: #b9d8ec; font-size: .9rem; line-height: 1.75; }
.single-package-note { display: flex; align-items: center; gap: 14px; max-width: 600px; margin-top: 30px; padding: 16px 18px; border: 1px solid rgba(0, 201, 219, .26); border-radius: 12px; background: rgba(0, 201, 219, .065); }
.single-package-icon { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--accent-teal); color: #061629; font-weight: 800; }
.single-package-note strong, .single-package-note span { display: block; }
.single-package-note strong { margin-bottom: 3px; color: var(--text); font-size: .92rem; }
.single-package-note div > span { color: var(--text-muted); font-size: .875rem; }
.download-primary-card { position: relative; padding: 30px; overflow: hidden; border: 1px solid var(--border-glow); border-radius: 20px; background: linear-gradient(145deg, rgba(17, 39, 67, .98), rgba(10, 27, 49, .98)); box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.download-primary-card::before { position: absolute; top: -80px; right: -80px; width: 210px; height: 210px; border-radius: 50%; background: rgba(30, 144, 255, .12); content: ''; filter: blur(5px); }
.installer-release-info { position: relative; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .875rem; line-height: 1.7; }
.installer-release-info strong { display: block; margin-top: 10px; color: var(--text); }
.installer-release-info p { margin: 4px 0 0; white-space: pre-wrap; }
.installer-release-info code { display: block; margin-top: 4px; overflow-wrap: anywhere; user-select: all; }
.material-entry { position: relative; margin-top: 12px; }
.material-heading { max-width: 780px; margin: 0 0 36px; }
.material-heading h1 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); }
.material-heading p:not(.section-kicker) { margin-bottom: 22px; color: var(--text-muted); line-height: 1.8; }
.material-page .admin-table td:first-child { overflow-wrap: anywhere; }
.managed-progress { display: block; width: 100%; height: 12px; margin: 16px 0 8px; accent-color: var(--accent-teal); }
#managedUploadStatus { color: var(--text-muted); }
#managedFilesBody td:last-child { min-width: 245px; }
#managedFilesBody td:last-child > * { margin: 2px 5px 2px 0; }
.download-card-heading { position: relative; display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.download-card-heading p { margin-bottom: 4px; color: var(--text-dim); font-size: .875rem; letter-spacing: .08em; }
.download-card-heading h2 { font-size: 1.35rem; }
.download-file-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: rgba(30, 144, 255, .15); color: var(--accent-glow); }
.download-file-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-main-btn { position: relative; flex-direction: column; gap: 1px; min-height: 62px; }
.download-main-btn > span { font-size: 1rem; }
.download-main-btn small { font-size: .875rem; font-weight: 500; opacity: .76; }
.btn.is-disabled, .resource-link.is-disabled { cursor: not-allowed; filter: saturate(.35); opacity: .58; }
.download-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 0; }
.download-facts div { padding: 13px 8px; border-bottom: 1px solid var(--border); }
.download-facts div:nth-child(odd) { padding-left: 0; }
.download-facts div:nth-child(even) { padding-right: 0; text-align: right; }
.download-facts dt { margin-bottom: 4px; color: var(--text-dim); font-size: .875rem; }
.download-facts dd { color: var(--text); font-size: .875rem; }
.download-resource-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.resource-link { display: flex; min-height: 68px; padding: 11px 8px; align-items: center; justify-content: center; flex-direction: column; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.025); text-align: center; transition: var(--transition); }
.resource-link:hover { border-color: var(--border-glow); background: rgba(30, 144, 255, .08); }
.resource-link span { color: var(--text); font-size: .875rem; font-weight: 650; }
.resource-link small { margin-top: 4px; color: var(--text-dim); font-size: .875rem; }
.license-section { position: relative; }
.license-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.license-plan-card { display: flex; min-height: 350px; padding: 28px; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(165deg, rgba(17, 39, 67, .76), rgba(9, 24, 44, .7)); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.license-plan-card:hover { transform: translateY(-5px); border-color: var(--border-glow); box-shadow: var(--shadow); }
.license-plan-card.is-featured { border-color: rgba(30, 144, 255, .48); box-shadow: inset 0 3px 0 var(--accent); }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.plan-index { color: var(--text-dim); font-family: var(--font-mono); font-size: .875rem; }
.plan-badge { padding: 5px 9px; border: 1px solid rgba(0, 201, 219, .25); border-radius: 999px; background: rgba(0, 201, 219, .07); color: var(--accent-teal); font-size: .875rem; }
.license-plan-card h3 { margin-bottom: 4px; font-size: 1.7rem; }
.plan-en { margin-bottom: 22px; color: var(--text-dim); font-family: var(--font-mono); font-size: .875rem; letter-spacing: .06em; }
.plan-summary { min-height: 76px; color: var(--text-muted); font-size: .92rem; line-height: 1.8; }
.plan-feature-list { margin: 24px 0 30px; padding: 20px 0 0; border-top: 1px solid var(--border); list-style: none; }
.plan-feature-list li { position: relative; margin-bottom: 12px; padding-left: 19px; color: var(--text-muted); font-size: .875rem; }
.plan-feature-list li::before { position: absolute; left: 0; color: var(--accent-teal); content: '✓'; }
.plan-action, .plan-actions { margin-top: auto; }
.plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.plan-actions .btn { padding-inline: 12px; }
.upgrade-note { display: flex; margin-top: 22px; padding: 18px 22px; align-items: center; justify-content: center; gap: 14px; border: 1px dashed rgba(77, 184, 255, .32); border-radius: 12px; color: var(--text-muted); font-size: .88rem; text-align: center; }
.upgrade-note strong { color: var(--accent-glow); }
.download-help-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(8, 22, 41, .5); }
.help-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.help-grid h2, .changelog-card h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.help-grid > div > p:last-child { color: var(--text-muted); line-height: 1.9; }
.install-steps { list-style: none; }
.install-steps li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.install-steps li:first-child { padding-top: 0; }
.install-steps li:last-child { border-bottom: 0; }
.install-steps li > span { padding-top: 2px; color: var(--accent-teal); font-family: var(--font-mono); font-size: .875rem; }
.install-steps strong { display: block; margin-bottom: 7px; color: var(--text); }
.install-steps p { color: var(--text-muted); font-size: .875rem; line-height: 1.75; }
.changelog-section { padding-top: 70px; padding-bottom: 70px; }
.changelog-card { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: center; }
.release-empty { padding: 24px 26px; border-left: 3px solid var(--accent); background: rgba(30, 144, 255, .06); }
.release-empty strong { display: block; margin-bottom: 7px; }
.release-empty p { color: var(--text-muted); font-size: .875rem; }
.inquiry-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden auto; border: 1px solid var(--border-glow); border-radius: 18px; background: #0c1d34; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.inquiry-dialog::backdrop { background: rgba(2, 8, 18, .78); backdrop-filter: blur(7px); }

/* 用户、授权与销售管理中心 */
.compact-select { width: auto; min-width: 110px; }
.management-stats { grid-template-columns: repeat(11, minmax(72px, 1fr)); gap: 8px; }
.management-stats .admin-stat { min-height: 66px; padding: 10px 6px; }
.management-stats .admin-stat h3 { font-size: clamp(1rem, 1.35vw, 1.25rem); overflow-wrap: anywhere; }
.management-stats .admin-stat p { font-size: .875rem; white-space: nowrap; }
.analytics-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.overview-module { padding-top: 22px; }
.overview-dashboard { grid-template-columns: minmax(420px, 1.55fr) repeat(2, minmax(210px, .8fr)); gap: 10px; margin-top: 10px; }
.overview-dashboard .chart-card { padding: 11px 13px; }
.overview-dashboard .chart-card h3 { margin: 0 0 4px; font-size: .95rem; }
.overview-dashboard .metric-row { padding: 5px 0; font-size: .875rem; line-height: 1.2; }
.overview-heartbeat-card { grid-row: span 2; }
.overview-heartbeat-card .svg-chart { min-height: 190px; }
.overview-dashboard .funnel-row { grid-template-columns: 66px 1fr 32px; gap: 7px; margin: 7px 0; font-size: .875rem; }
.overview-dashboard .funnel-row > div { height: 14px; }
.network-workbench { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
.network-compact-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.network-compact-stack .portal-card { min-width: 0; padding: 12px 14px; }
.network-compact-stack .portal-card h3 { margin-bottom: 3px; font-size: 1rem; }
.network-compact-stack .metric-row { padding: 5px 0; font-size: .875rem; line-height: 1.2; }
.network-trend-card { padding: 14px 16px; }
.network-trend-card .section-heading { margin-bottom: 2px; }
.network-trend-card .svg-chart { height: 220px; min-height: 0; }
.network-trend-card .svg-chart svg,
.overview-heartbeat-card .svg-chart svg { height: 100%; }
.network-stats { grid-template-columns: repeat(5, minmax(100px, 1fr)); }
.chart-card { min-width: 0; padding: 18px; }
.chart-wide { grid-column: 1 / -1; }
.svg-chart { min-height: 250px; overflow: hidden; }
.svg-chart svg { display: block; width: 100%; height: auto; color: var(--text-muted); }
.chart-grid line { stroke: rgba(156, 190, 218, .16); stroke-width: 1; }
.chart-grid text, .svg-chart text { fill: var(--text-muted); font-size: 14px; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-bars rect { fill: #48b8ff; opacity: .82; }
.x-label { text-anchor: middle; }
.donut-total { fill: var(--text) !important; font-size: 20px !important; font-weight: 800; }
.funnel-row { display: grid; grid-template-columns: 76px 1fr 42px; align-items: center; gap: 10px; margin: 11px 0; font-size: .875rem; }
.funnel-row > div { height: 18px; min-width: 6px; border-radius: 4px; background: linear-gradient(90deg, #2d90d5, #66d9a5); }
.funnel-row b { text-align: right; }
.legacy-overview { margin-top: 18px; }
.legacy-overview > summary { cursor: pointer; color: var(--text-muted); }
.quick-filter-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 10px; }
.quick-filter-row button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text-muted); cursor: pointer; }
.quick-filter-row button:hover, .quick-filter-row button.is-active { border-color: var(--border-glow); background: rgba(72,184,255,.12); color: var(--text); }
.user-filter-grid { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(6, minmax(120px, 1fr)) auto; gap: 8px; margin: 8px 0 12px; }
.advanced-user-filters { margin: 0 0 12px; color: var(--text-muted); }
.advanced-user-filters > summary { cursor: pointer; font-size: .875rem; }
.advanced-user-filters[open] > summary { margin-bottom: 8px; color: var(--text); }
.user-filter-grid.advanced { grid-template-columns: repeat(5, minmax(130px, 1fr)); margin-bottom: 0; }
.column-picker { position: relative; }
.column-picker > summary { list-style: none; cursor: pointer; }
.column-picker > div { position: absolute; right: 0; z-index: 8; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; min-width: 310px; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: #0b2036; box-shadow: 0 14px 34px rgba(0,0,0,.38); }
.column-picker label { color: var(--text-muted); font-size: .875rem; white-space: nowrap; }
.sortable-column { cursor: pointer; }
.sortable-column::after { content: ' ↕'; color: var(--text-dim); }
.user-summary-strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 3px; }
.user-summary-strip span { flex: 0 0 auto; display: flex; align-items: baseline; gap: 7px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-muted); font-size: .875rem; }
.user-summary-strip b { color: var(--text); font-size: .94rem; }
.dense-table-wrap { max-height: 68vh; border: 1px solid var(--border); }
.dense-admin-table { min-width: 1320px; }
.dense-admin-table th { position: sticky; top: 0; z-index: 3; white-space: nowrap; }
.dense-admin-table th, .dense-admin-table td { padding: 8px 10px; font-size: .875rem; vertical-align: middle; }
.dense-admin-table td small, .sticky-user small { display: block; margin-top: 3px; color: var(--text-dim); line-height: 1.35; }
.dense-admin-table tbody tr { cursor: default; }
.dense-admin-table tbody tr:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.dense-admin-table .sticky-user { position: sticky; left: 0; z-index: 2; min-width: 210px; background: var(--bg-card); }
.management-badge { display: inline-flex; align-items: center; margin: 1px 2px 1px 0; padding: 3px 6px; border: 1px solid rgba(130,160,190,.24); border-radius: 999px; background: rgba(130,160,190,.09); color: var(--text-muted); font-size: .875rem; white-space: nowrap; }
.badge-authorized, .badge-active, .badge-yes, .badge-issued, .badge-fulfilled { border-color: rgba(102,217,165,.42); background: rgba(102,217,165,.12); color: #82e8bd; }
.badge-restricted { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.13); color: #fcd34d; }
.badge-expiring, .badge-processing, .badge-approved_pending, .badge-submitted, .badge-reviewing, .badge-confirmed { border-color: rgba(255,191,105,.42); background: rgba(255,191,105,.12); color: #ffd095; }
.badge-expired, .badge-revoked, .badge-disabled, .badge-rejected, .badge-cancelled { border-color: rgba(255,117,143,.42); background: rgba(255,117,143,.12); color: #ff9aae; }
.table-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; color: var(--text-muted); font-size: .875rem; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }

/* Admin workspace density: keep public-facing pages at their original rhythm. */
#adminPanel { font-size: .875rem; line-height: 1.25; }
#adminPanel .dashboard-header { margin-bottom: 12px; padding-bottom: 10px; }
#adminPanel .dashboard-header h1 { line-height: 1.25; }
#adminPanel .dashboard-header .user-info { margin-top: 4px; line-height: 1.25; }
#adminPanel .admin-module-nav { gap: 5px; padding: 8px; margin-bottom: 12px; }
#adminPanel .admin-module-nav a { padding: 6px 9px; line-height: 1.25; }
#adminPanel .admin-module-nav > small { padding: 8px 9px 3px; line-height: 1.25; }
#adminPanel .admin-module { padding: 18px 0; }
#adminPanel .admin-module > h2,
#adminPanel .module-heading h2 { margin-bottom: 6px; line-height: 1.25; }
#adminPanel .module-heading { align-items: center; gap: 14px; margin-bottom: 10px; }
#adminPanel .module-heading .muted-copy,
#adminPanel .security-note { line-height: 1.4; }
#adminPanel .filter-row { gap: 8px; }
#adminPanel .filter-row .form-input,
#adminPanel .filter-row .form-select,
#adminPanel .filter-row .btn,
#adminPanel .user-filter-grid .form-input,
#adminPanel .user-filter-grid .form-select,
#adminPanel .user-filter-grid .btn {
  height: 36px;
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: .875rem;
  line-height: 1.25;
}
#adminPanel .admin-stats { gap: 10px; margin-bottom: 16px; }
#adminPanel .admin-stat { padding: 13px 14px; border-radius: var(--radius-sm); }
#adminPanel .admin-stat h3 { font-size: 1.45rem; line-height: 1.15; }
#adminPanel .admin-stat p { margin-top: 3px; line-height: 1.25; }
#adminPanel .analytics-dashboard,
#adminPanel .analytics-grid,
#adminPanel .application-grid,
#adminPanel .settings-grid { gap: 12px; }
#adminPanel .portal-card,
#adminPanel .portal-form { padding: 14px; }
#adminPanel .portal-card h3,
#adminPanel .portal-form h3 { margin: 0 0 10px; line-height: 1.25; }
#adminPanel .portal-form > .form-group,
#adminPanel .portal-form > .form-row > .form-group {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 9px;
}
#adminPanel .portal-form > .form-row { gap: 10px; }
#adminPanel .portal-form > .form-row > .form-group { grid-template-columns: 92px minmax(0, 1fr); }
#adminPanel .portal-form .form-group > label:first-child { margin: 0; font-size: .875rem; line-height: 1.25; white-space: nowrap; }
#adminPanel .portal-form .form-group > label:first-child::after { content: '：'; }
#adminPanel .portal-form .form-input,
#adminPanel .portal-form .form-select {
  min-width: 0;
  height: 36px;
  padding: 7px 10px;
  font-size: .875rem;
  line-height: 1.25;
}
#adminPanel .portal-form .form-select { padding-right: 30px; background-position: right 10px center; }
#adminPanel .portal-form textarea.form-input { height: 52px; min-height: 52px; resize: vertical; }
#adminPanel .portal-form > .form-group:has(textarea),
#adminPanel .portal-form > .form-group.device-request-group { align-items: start; }
#adminPanel .portal-form > .form-group:has(textarea) > label:first-child,
#adminPanel .portal-form > .form-group.device-request-group > label:first-child { padding-top: 8px; }
#adminPanel .portal-form > .form-group .form-hint,
#adminPanel .portal-form > .form-group.device-request-group > p { grid-column: 2; margin-top: 0; line-height: 1.4; }
#adminPanel .portal-form hr { margin: 12px 0; }
#adminPanel .admin-table { margin-bottom: 14px; }
#adminPanel .admin-table th,
#adminPanel .admin-table td { padding: 8px 10px; font-size: .875rem; line-height: 1.25; }
#adminPanel .record-stack { gap: 10px; }
#adminPanel .record-card { padding: 12px 14px; }
#adminPanel .record-card > p { margin: 6px 0; line-height: 1.4; }
#adminPanel .record-head { gap: 10px; }
#adminPanel .record-head span { margin-top: 4px; }
#adminPanel .timeline { gap: 7px; margin: 9px 0; }
#adminPanel .timeline-item { padding: 8px 10px; }
#adminPanel .timeline-item p { margin: 3px 0; line-height: 1.4; }
#adminPanel .quick-filter-row { padding-bottom: 6px; }
#adminPanel .quick-filter-row button { padding: 5px 9px; font-size: .875rem; line-height: 1.25; }
#adminPanel .user-filter-grid { gap: 6px; margin: 6px 0 9px; }
#adminPanel .user-summary-strip { margin-bottom: 7px; }
#adminPanel .user-summary-strip span { padding: 5px 8px; }
#adminPanel .table-pagination { margin-top: 7px; }
#adminPanel .metric-row { padding: 7px 0; line-height: 1.25; }
#adminPanel .operation-guide { gap: 9px; }
#adminPanel .operation-guide article { padding: 12px; }
#adminPanel .operation-guide p { margin-top: 5px; line-height: 1.4; }

/* Authorization applications: dense review table and filters. */
#applications { padding-top: 22px; }
#applications .module-heading { align-items: center; gap: 14px; margin-bottom: 10px; }
#applications .module-heading h2 { margin-bottom: 6px; line-height: 1.25; }
#applications .module-heading .muted-copy { line-height: 1.25; }
#applications .module-eyebrow { margin-bottom: 3px; line-height: 1.25; }
#applications .filter-row { flex-wrap: nowrap; gap: 8px; }
#applications .filter-row .form-input,
#applications .filter-row .form-select,
#applications .filter-row .btn {
  height: 36px;
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: .875rem;
  line-height: 1.25;
}
#applications .filter-row .form-input { min-width: 210px; }
#applications .filter-row .form-select { min-width: 132px; padding-right: 30px; }
#applications .admin-table { min-width: 920px; margin-bottom: 0; }
#applications .application-admin-table th,
#applications .application-admin-table td {
  padding: 8px 12px;
  font-size: .875rem;
  line-height: 1.25;
}
#applications .application-admin-table td:first-child { min-width: 180px; }
#applications .application-admin-table td:first-child small { display: block; margin-top: 3px; line-height: 1.25; }
#applications .application-admin-table th:nth-child(n+2),
#applications .application-admin-table td:nth-child(n+2) { white-space: nowrap; }
#applications .status-pill { padding: 4px 8px; font-size: .875rem; line-height: 1.25; }
#applications .open-app { min-height: 32px; padding: 6px 13px; font-size: .875rem; line-height: 1.25; }
.user-detail-dialog { width: min(1040px, 92vw); max-height: 92vh; margin-right: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px 0 0 12px; background: #081a2d; color: var(--text); box-shadow: -24px 0 70px rgba(0,0,0,.55); }
.user-detail-dialog::backdrop { background: rgba(1,8,17,.66); backdrop-filter: blur(3px); }
.user-detail-dialog .dialog-head { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); background: rgba(8,26,45,.98); }
.user-detail-dialog .dialog-head h2 { margin: 3px 0 0; }
.user-detail-body { padding: 18px 20px 28px; }
.user-detail-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.user-detail-overview form { display: grid; gap: 8px; }
.user-detail-overview label { display: grid; gap: 4px; color: var(--text-muted); font-size: .875rem; }
.detail-section { margin: 8px 0; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.015); }
.detail-section > summary { padding: 12px 14px; cursor: pointer; font-weight: 700; }
.detail-section-body { padding: 0 14px 14px; }
.detail-record { margin: 8px 0; padding: 11px; border-left: 3px solid rgba(72,184,255,.45); background: rgba(255,255,255,.025); }
.detail-record > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.device-box { margin-top: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 5px; }
.fingerprint-output { max-width: 100%; overflow: auto; padding: 10px; border-radius: 5px; background: #03101d; color: #bfe8ff; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.compact-timeline { border-left: 1px solid var(--border); margin-left: 7px; padding-left: 13px; }
.compact-timeline article { position: relative; margin: 9px 0; }
.compact-timeline article::before { content: ''; position: absolute; left: -18px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.compact-timeline time { color: var(--text-dim); font-size: .875rem; }
.compact-timeline strong { margin-left: 8px; font-size: .875rem; }
.compact-timeline p { margin: 3px 0; color: var(--text-muted); font-size: .875rem; overflow-wrap: anywhere; }
.fact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.fact-grid p { padding: 8px; background: rgba(255,255,255,.03); }
.fact-grid b { display: block; color: var(--text-dim); font-size: .875rem; }

@media (max-width: 1180px) {
  .management-stats { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .overview-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-heartbeat-card { grid-column: 1 / -1; grid-row: auto; }
  .user-filter-grid { grid-template-columns: repeat(3, 1fr); }
  .user-filter-grid #userSearch { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .network-workbench { grid-template-columns: 1fr; }
  .network-compact-stack { grid-template-columns: repeat(3, minmax(0,1fr)); grid-template-rows: none; }
  #adminPanel .dashboard-header { display: block; }
  #adminPanel .dashboard-header > .filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
  #adminPanel .dashboard-header > .filter-row .form-input,
  #adminPanel .dashboard-header > .filter-row .form-select,
  #adminPanel .dashboard-header > .filter-row .btn { width: 100%; min-width: 0; }
  #adminPanel .module-heading { align-items: stretch; margin-bottom: 8px; }
  #adminPanel .portal-form > .form-row { flex-direction: column; gap: 0; }
  #adminPanel .portal-form > .form-row > .form-group { grid-template-columns: 132px minmax(0, 1fr); }
  #applications .module-heading { margin-bottom: 8px; }
  #applications .filter-row { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
  #applications .filter-row .form-input,
  #applications .filter-row .form-select,
  #applications .filter-row .btn { width: 100%; min-width: 0; }
  #applications .filter-row .form-input { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .network-stats { grid-template-columns: repeat(2, minmax(100px,1fr)); }
  .network-compact-stack { grid-template-columns: 1fr; }
  .analytics-dashboard, .overview-dashboard, .user-detail-overview { grid-template-columns: 1fr; }
  .overview-heartbeat-card { grid-column: auto; }
  .chart-wide { grid-column: auto; }
  .management-stats { grid-template-columns: repeat(2, minmax(100px,1fr)); }
  .user-filter-grid { grid-template-columns: 1fr 1fr; }
  .user-filter-grid #userSearch { grid-column: 1 / -1; }
  .user-detail-dialog { width: 100vw; max-height: 96vh; border-radius: 12px 12px 0 0; margin: auto 0 0; }
  .form-row.three, .fact-grid { grid-template-columns: 1fr 1fr; }
  #adminPanel .portal-form > .form-group,
  #adminPanel .portal-form > .form-row > .form-group { grid-template-columns: 96px minmax(0, 1fr); }
  #adminPanel .portal-form > .form-group .form-hint,
  #adminPanel .portal-form > .form-group.device-request-group > p { grid-column: 1 / -1; padding-top: 3px; }
}
.inquiry-dialog-shell { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text-muted); font-size: 1.55rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { border-color: var(--border-glow); color: var(--text); }
.inquiry-heading { margin-bottom: 28px; padding-right: 42px; }
.inquiry-heading h2 { margin-bottom: 8px; font-size: 1.8rem; }
.inquiry-heading > p:last-child { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.inquiry-marketing-consent { margin-top: -12px; }
.inquiry-submit { min-height: 52px; margin-top: 8px; }
.inquiry-success { padding: 34px 0 12px; text-align: center; }
.success-mark { display: grid; width: 58px; height: 58px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: rgba(16, 185, 129, .16); color: #4ade80; font-size: 1.7rem; }
.inquiry-success h3 { margin-bottom: 10px; font-size: 1.5rem; }
.inquiry-success > p { color: var(--text-muted); }
.success-actions { display: flex; margin-top: 26px; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Search resource and topic pages */
.resource-strip { padding: 68px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #081b2c; }
.resource-strip-heading { max-width: 760px; }
.resource-strip-heading h2 { margin: 10px 0 14px; color: #f7fbff; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.resource-strip-heading p { color: var(--text-muted); line-height: 1.85; }
.resource-strip-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0 20px; }
.resource-strip-links a { display: flex; min-height: 58px; padding: 15px 18px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 10px; background: #0d2439; color: #dcecf8; font-size: .93rem; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.resource-strip-links a:hover { border-color: var(--accent); background: #102d46; transform: translateY(-2px); }
.resource-strip-links span { color: var(--accent-glow); font-size: 1.2rem; }
.resource-strip-all { color: var(--accent-glow); font-size: .9rem; }

.topic-page, .resources-page { min-height: 100vh; background: #061421; color: var(--text); }
.topic-main { padding: 118px 0 72px; }
.topic-hero { max-width: 900px; padding-bottom: 44px; }
.breadcrumbs { display: flex; margin-bottom: 24px; gap: 8px; color: var(--text-dim); font-size: .875rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--accent-glow); }
.topic-kicker { color: var(--accent-teal); font-family: var(--font-mono); font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; }
.topic-hero h1 { max-width: 820px; margin: 14px 0 18px; color: #f7fbff; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; }
.topic-lead { max-width: 790px; color: var(--text-muted); font-size: 1.04rem; line-height: 1.95; }
.topic-section { padding: 50px 0; border-top: 1px solid var(--border); }
.topic-section h2 { margin-bottom: 16px; color: #f7fbff; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.topic-section p { max-width: 880px; color: var(--text-muted); line-height: 1.95; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.topic-card { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #0d2439; }
.topic-card h3 { margin: 0 0 10px; color: #eaf5fd; font-size: 1.04rem; }
.topic-card p { font-size: .9rem; line-height: 1.8; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.evidence-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #0d2439; }
.technical-canvas { display: grid; min-height: 242px; padding: 14px; place-items: center; background: #fff; }
.technical-canvas img { width: 100%; max-height: 360px; object-fit: contain; }
.evidence-card figcaption { padding: 13px 16px 15px; color: var(--text-dim); font-size: .875rem; line-height: 1.65; }
.topic-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.topic-list li { position: relative; padding-left: 20px; color: var(--text-muted); line-height: 1.8; }
.topic-list li::before { position: absolute; top: .55em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-teal); content: ''; }
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq-list details { padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: #0d2439; }
.faq-list summary { color: #eaf5fd; cursor: pointer; }
.faq-list p { margin-top: 12px; font-size: .9rem; }
.topic-cta { display: flex; padding: 28px; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid rgba(99, 199, 255, .34); border-radius: 14px; background: linear-gradient(100deg, rgba(14, 51, 78, .9), rgba(13, 36, 57, .9)); }
.topic-cta h2 { margin: 0 0 8px; font-size: 1.45rem; }
.topic-cta p { margin: 0; font-size: .9rem; }
.topic-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.resource-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.resource-page-card { display: flex; min-height: 220px; padding: 26px; flex-direction: column; border: 1px solid var(--border); border-radius: 13px; background: #0d2439; }
.resource-page-card h2 { margin: 14px 0 10px; color: #f7fbff; font-size: 1.38rem; }
.resource-page-card p { color: var(--text-muted); line-height: 1.8; }
.resource-page-card a { margin-top: auto; padding-top: 22px; color: var(--accent-glow); font-size: .9rem; }
.article-meta { margin-top: 20px; color: var(--text-dim); font-size: .875rem; line-height: 1.7; }
.topic-section p a, .standard-facts a { color: var(--accent-glow); text-decoration: underline; text-underline-offset: 3px; }
.topic-section p a:hover, .standard-facts a:hover { color: #f7fbff; }
.article-table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border); border-radius: 12px; }
.article-table-wrap:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; }
.article-scroll-hint { margin-top: 12px; color: var(--text-dim); font-size: .875rem; }
.article-table { width: 100%; min-width: 650px; border-collapse: collapse; background: #0d2439; color: var(--text-muted); font-size: .9rem; }
.article-table th, .article-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.7; }
.article-table thead th { background: #102d46; color: #f7fbff; }
.article-table tbody th { color: #eaf5fd; font-weight: 650; }
.article-table tbody tr:last-child th, .article-table tbody tr:last-child td { border-bottom: 0; }
.standard-facts { padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; background: #0d2439; }
.standard-facts p { margin: 0 0 10px; overflow-wrap: anywhere; }
.standard-facts p:last-child { margin-bottom: 0; }
.standard-facts strong { color: #eaf5fd; }
.compact-footer { padding: 22px 0; border-top: 1px solid var(--border); background: #061421; color: var(--text-dim); font-size: .875rem; text-align: center; }
.compact-footer a { color: var(--accent-glow); }

@media (max-width: 900px) {
  .download-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .download-primary-card { max-width: 620px; }
  .license-plan-grid { grid-template-columns: 1fr; }
  .license-plan-card { min-height: auto; }
  .plan-summary { min-height: auto; }
  .help-grid, .changelog-card { grid-template-columns: 1fr; gap: 36px; }
  .topic-grid { grid-template-columns: 1fr; }
  .download-admin-filters { grid-template-columns: 1fr 1fr; }
  .download-admin-filters .form-group:nth-child(2) { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .download-hero { padding: 108px 0 56px; }
  .download-hero-copy h1 { font-size: 2.25rem; }
  .download-primary-card { padding: 22px 18px; }
  .download-resource-links { grid-template-columns: 1fr; }
  .resource-link { min-height: 54px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-company-logo { width: 116px; height: 116px; }
  .download-facts { grid-template-columns: 1fr; }
  .download-facts div, .download-facts div:nth-child(odd), .download-facts div:nth-child(even) { padding: 12px 0; text-align: left; }
  .download-facts div:nth-child(3) { border-bottom: 1px solid var(--border); }
  .plan-actions { grid-template-columns: 1fr; }
  .upgrade-note { align-items: flex-start; flex-direction: column; text-align: left; }
  .inquiry-dialog-shell { padding: 28px 20px 22px; }
  .inquiry-heading { padding-right: 32px; }
  .inquiry-heading h2 { font-size: 1.55rem; }
  .success-actions { flex-direction: column; }
  .resource-strip { padding: 52px 0; }
  .resource-strip-links, .evidence-grid, .resource-page-grid { grid-template-columns: 1fr; }
  .topic-main { padding-top: 102px; }
  .topic-cta { align-items: flex-start; flex-direction: column; }
  .download-admin-filters { grid-template-columns: 1fr; }
  .download-admin-filters .form-group:nth-child(2) { grid-column: auto; }
  .admin-pagination { justify-content: flex-start; flex-wrap: wrap; }
}

/* Keep every data-entry surface single-column and visually compact. */
.compact-application-fields { grid-template-columns: minmax(0, 1fr); }
#adminPanel .portal-form > .form-row,
#adminPanel .portal-form > .form-row { flex-direction: column; gap: 0; }
#adminPanel .portal-form > .form-row > .form-group { width: 100%; }
#adminPanel .portal-form .form-group > label:first-child { text-align: left; }
#adminPanel .portal-form .form-group > label:first-child::after { content: none; }
#adminPanel .portal-form > .form-group,
#adminPanel .portal-form > .form-row > .form-group { margin-bottom: 7px; }

@media (max-width: 880px) {
  .registration-section-title { margin-top: 12px; padding-top: 10px; }
}

/* Compact forms fall back to a touch-friendly vertical flow on narrow screens. */
@media (max-width: 620px) {
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group,
  #adminPanel .portal-form > .form-group,
  #adminPanel .portal-form > .form-row > .form-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > label:first-child,
  #adminPanel .portal-form .form-group > label:first-child {
    grid-column: 1;
    padding: 0;
    text-align: left;
  }
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > :is(.form-input, .form-select, .verification-control),
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > .form-hint,
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-group > .form-hint-inline,
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .device-request-group > label:not(:first-child),
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .device-request-group > :is(select, input, .file-help),
  #adminPanel .portal-form > .form-group .form-hint,
  #adminPanel .portal-form > .form-group.device-request-group > p {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    white-space: normal;
  }
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-row,
  #adminPanel .portal-form > .form-row {
    flex-direction: column;
    gap: 0;
  }
  :where(.compact-form, #quoteForm, .portal-form, #adminLoginForm) .form-row > .form-group {
    width: 100%;
  }
}

/* Animations */
.fade-in { animation: fadeIn 0.6s ease forwards; }
.fade-up { animation: fadeUp 0.8s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.activity-filter-row { flex-wrap: wrap; margin: 1rem 0; }
.activity-filter-row > input, .activity-filter-row > select { min-width: 150px; flex: 1 1 170px; }
.activity-bar { display: block; height: 4px; border-radius: 4px; background: #259db8; margin: -0.3rem 0 0.7rem; max-width: 100%; }
.full-filename,.full-filename a,.case-facts code{overflow-wrap:anywhere;word-break:break-word}.application-license-upload>.form-input{margin-top:.75rem}.case-facts code{font-size:14px}

@media (max-width: 1040px) {
  .account-overview-grid { grid-template-columns: minmax(270px, .85fr) minmax(0, 1.45fr); }
  .product-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .account-overview-grid { grid-template-columns: 1fr; }
  .account-status-card { position: static; }
  .rehost-history article { grid-template-columns: minmax(0, 1fr) auto; }
  .rehost-history article > span:not(.status-pill), .rehost-history article > time { text-align: right; }
}

@media (max-width: 620px) {
  .overview-card-head { align-items: center; }
  .overview-card-head .btn { width: auto; }
  .account-detail-list > div { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .product-license-head { grid-template-columns: auto minmax(0, 1fr); }
  .product-license-head > .status-pill { grid-column: 1 / -1; margin-left: 52px; }
  .product-fact-grid { grid-template-columns: 1fr 1fr; }
  .product-fact-grid > .span-2 { grid-column: 1 / -1; }
  .product-guidance { grid-template-columns: 1fr; gap: 3px; }
  .product-empty { align-items: stretch; flex-direction: column; }
  .product-empty .btn { width: 100%; }
  .product-actions .btn { flex: 1 1 calc(50% - 8px); }
  .rehost-steps { grid-template-columns: 1fr; }
  .rehost-history article { grid-template-columns: 1fr; gap: 5px; }
  .rehost-history article > span:not(.status-pill), .rehost-history article > time { text-align: left; }
  .profile-change-list p { grid-template-columns: 1fr; gap: 5px; }
  .profile-change-list i { transform: rotate(90deg); transform-origin: left center; }
}

@media (max-width: 430px) {
  .product-fact-grid { grid-template-columns: 1fr; }
  .product-fact-grid > .span-2 { grid-column: auto; }
  .product-actions .btn { flex-basis: 100%; }
}
