:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: #2d3a4f;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 12px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  position: relative;
}

.logo img,
.logo-icon {
  height: 36px;
  width: 36px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.logo--brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.footer-logo {
  height: 28px;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.mobile-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu-icon::before {
  top: -6px;
}

.mobile-menu-icon::after {
  top: 6px;
}

.site-header.is-nav-open .mobile-menu-icon {
  background: transparent;
}

.site-header.is-nav-open .mobile-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-nav-open .mobile-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.product-en {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75em;
  font-weight: 500;
  opacity: 0.55;
}

.pro-tier-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

body.menu-open {
  overflow: hidden;
}

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero p,
.hero-lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.hero-stats > div {
  padding: 0.75rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-stats dt {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* —— Landing page (product intro) —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-landing .section-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-landing .section-lead {
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.platform-strip {
  padding: 1rem 0 2.5rem;
}

.platform-endpoints {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.platform-endpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  height: 100%;
}

.platform-endpoint:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

.platform-endpoint-kind {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-endpoint strong {
  font-size: 1.05rem;
}

.platform-endpoint-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.how-it-works {
  padding: 1rem 0 2.5rem;
}

.ops-scope {
  padding: 0 0 2.5rem;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.flow-diagram--platform {
  max-width: 880px;
}

.flow-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 160px;
}

.flow-node--hub {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
  min-width: 200px;
}

.flow-node--cloud {
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  min-width: 220px;
  padding: 1.15rem 1.75rem;
}

.flow-place {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.flow-node strong {
  display: block;
  font-size: 1.1rem;
}

.flow-role {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.flow-arrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.flow-fan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 880px;
  gap: 0.75rem;
  margin: 0.15rem 0 0.1rem;
  text-align: center;
}

.flow-fan-arrow {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.flow-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
}

.flow-pair--triple .flow-node,
.flow-pair--quad .flow-node {
  flex: 1 1 140px;
  max-width: 200px;
}

.flow-pair--quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 880px;
}

.flow-pair--quad .flow-node {
  max-width: none;
  min-width: 0;
  width: 100%;
}

.ops-flow-list {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
}

.ops-flow-list li {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
}

.flow-plus {
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 600;
}

.flow-caption {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  font-weight: 500;
}

/* --- 매장 일과 가이드 (/guide/daily-ops) --- */
.page-guide-daily .guide-hero {
  padding-bottom: 2rem;
}

.guide-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.guide-overview {
  padding: 0 0 2.5rem;
}

.guide-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.guide-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.guide-timeline-item--muted strong {
  color: var(--muted);
}

.guide-timeline-item--once .guide-timeline-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.guide-timeline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.guide-timeline-item strong {
  font-size: 1rem;
}

.guide-timeline-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

.guide-timeline-connector {
  display: block;
  width: 2px;
  height: 1.25rem;
  background: linear-gradient(to bottom, var(--border), var(--accent));
  margin: 0.15rem 0;
  border-radius: 1px;
}

.guide-phases {
  padding: 1rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.guide-phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.guide-phase-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.guide-phase-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.guide-phase-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.guide-phase-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.guide-role-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 1.25rem;
}

.guide-role-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.guide-role-device {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.guide-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.guide-steps li + li {
  margin-top: 0.5rem;
}

.guide-phase-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* --- 가이드 v2: 8장면 이미지 + HTML 카피 --- */
.guide-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.guide-hero-copy .hero-lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.guide-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-top: 1.25rem;
}

.guide-jump a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.guide-jump a:hover {
  border-color: var(--accent);
}

.guide-scenes {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.guide-scene {
  scroll-margin-top: 5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.guide-scene--summary {
  border-color: rgba(59, 130, 246, 0.35);
}

.guide-scene-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guide-scene-num {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.guide-scene-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-scene-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  letter-spacing: -0.02em;
}

.guide-scene-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.guide-scene-figure {
  margin: 0 0 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.guide-scene-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guide-scene-figure--hero {
  margin-bottom: 0;
}

.guide-phase-grid--single {
  grid-template-columns: 1fr;
}

.guide-feature-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.guide-feature-list li + li {
  margin-top: 0.5rem;
}

.guide-flow-labels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.guide-flow-labels li {
  padding: 0.35rem 0.15rem;
}

@media (max-width: 900px) {
  .guide-hero-split {
    grid-template-columns: 1fr;
  }

  .guide-scene-figure--hero {
    order: -1;
    margin-bottom: 0;
  }

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

@media (max-width: 520px) {
  .guide-flow-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-scene {
    padding: 1.25rem;
  }
}

.guide-flow {
  margin-bottom: 1.25rem;
}

.guide-roles {
  padding: 0 0 2.5rem;
}

.guide-roles-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-roles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.guide-roles-table th,
.guide-roles-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.guide-roles-table thead th {
  background: var(--bg);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.guide-roles-table tbody tr:last-child th,
.guide-roles-table tbody tr:last-child td {
  border-bottom: none;
}

.guide-roles-table tbody th[scope="row"] {
  font-weight: 600;
  white-space: nowrap;
}

.products {
  padding: 1rem 0 3rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.product-card--hub {
  border-color: rgba(59, 130, 246, 0.45);
  margin-bottom: 1.25rem;
  padding: 1.65rem;
}

.product-audience {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.product-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.product-card-head .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.product-tagline {
  color: var(--text) !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.75rem !important;
  font-weight: 500;
}

.product-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.product-features li {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
  line-height: 1.3;
}

.product-note {
  font-size: 0.85rem !important;
  color: var(--warning) !important;
  margin-bottom: 1.25rem !important;
}

.product-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.product-os {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.product-satellites {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.product-satellites .product-card {
  display: flex;
  flex-direction: column;
}

.install-where {
  padding: 2rem 0 3rem;
}

.install-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.install-choices--four {
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
}

.install-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.install-choice:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

.install-place {
  font-size: 0.8rem;
  color: var(--muted);
}

.install-choice strong {
  font-size: 1.1rem;
}

.platform-pro {
  padding: 2rem 0 3rem;
  text-align: center;
}

.pro-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.pro-tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.pro-tier--featured {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.pro-tier h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.pro-tier-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pro-tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.pro-tier-list li {
  font-size: 0.95rem;
  padding-left: 1.1rem;
  position: relative;
}

.pro-tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.pro-tier-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.5rem;
}

.help-block {
  padding: 1rem 0 4rem;
  text-align: center;
}

.help-block .hero-actions {
  margin-top: 0;
}

@media (max-width: 900px) {
  .platform-endpoints,
  .install-choices--four,
  .flow-pair--quad {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 2×2일 때 팬아웃 4화살표는 어긋남 → 단일 ↓ */
  .flow-fan {
    display: block;
    margin: 0.25rem 0;
  }

  .flow-fan-arrow {
    display: none;
  }

  .flow-fan::after {
    content: "↓";
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
  }
}

@media (max-width: 768px) {
  .site-header:has(.mobile-menu-button) .inner {
    min-height: 72px;
    flex-wrap: wrap;
  }

  .mobile-menu-button {
    display: flex;
  }

  .site-header:has(.mobile-menu-button) .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--border);
  }

  .site-header:has(.mobile-menu-button).is-nav-open .nav,
  .site-header:has(.mobile-menu-button) .nav.is-open {
    display: flex;
  }

  .site-header:has(.mobile-menu-button) .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }

  .site-header:has(.mobile-menu-button) .nav a:last-child {
    border-bottom: none;
  }

  .site-header:has(.mobile-menu-button) .nav .btn-nav-login {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .logo-tagline {
    display: none;
  }
}

@media (max-width: 720px) {
  .product-satellites {
    grid-template-columns: 1fr;
  }

  .install-choices,
  .install-choices--four {
    grid-template-columns: 1fr;
  }

  /* 접점·Cloud 도식은 모바일에서도 2×2 유지 */
  .platform-endpoints,
  .flow-pair--quad {
    grid-template-columns: repeat(2, 1fr);
  }

  .pro-compare {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    max-width: 100%;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon--img {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.card-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.platform-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.platform-android { color: #4ade80; }
.platform-ios { color: #60a5fa; }
.platform-windows { color: #a78bfa; }

.download-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.download-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.download-item-title {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.download-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.download-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.download-notes {
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.status-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.status-ready {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.status-info {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.status-pill--link {
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  border: none;
  transition: filter 0.15s, transform 0.1s;
}

.status-pill--link:hover {
  filter: brightness(1.12);
}

.status-pill--link:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-brand {
  margin: 0.35rem 0 0.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-powered {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--text);
}

/* —— Support form (/support) —— */
.page-support .support-main {
  padding: 2.5rem 0 4rem;
  max-width: 640px;
}

.support-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.support-lead {
  margin-bottom: 0.75rem;
}

.form-notice {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.support-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.75rem;
}

.support-field {
  margin-bottom: 1.15rem;
}

.support-field label,
.support-field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.support-field .optional,
.support-field-label .optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}

.support-field .req,
.support-consent .req {
  color: var(--warning);
  font-size: 0.75rem;
  font-weight: 600;
}

.support-field input[type="text"],
.support-field input[type="tel"],
.support-field input[type="email"],
.support-field select,
.support-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.support-field textarea {
  resize: vertical;
  min-height: 100px;
}

.support-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.support-install-block {
  margin-bottom: 0.25rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.option-card:hover {
  border-color: var(--accent);
}

.option-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
}

.option-card input {
  flex-shrink: 0;
}

.support-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
  cursor: pointer;
}

.support-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.support-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.support-submit-btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
}

.support-alt-install {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.support-alt-install a {
  color: var(--accent);
  text-decoration: underline;
  margin-left: 0.35rem;
}

.support-success {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.support-success h2 {
  margin-bottom: 0.75rem;
}

.support-success > p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.support-success-meta {
  display: grid;
  gap: 0.75rem;
  max-width: 360px;
  margin: 0 auto 1.75rem;
  text-align: left;
}

.support-success-meta > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.support-success-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.support-success-meta dd {
  margin: 0;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .support-field-row {
    grid-template-columns: 1fr;
  }

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

.footer-company {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-company p {
  margin: 0;
}

.footer-company .sep {
  margin: 0 0.4rem;
  opacity: 0.45;
}

.page-legal .legal-content {
  padding-bottom: 3rem;
  max-width: 760px;
}

.legal-intro {
  margin-bottom: 2rem;
  color: var(--muted);
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-content strong {
  color: var(--text);
}

.legal-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.legal-contact ul {
  list-style: none;
  padding-left: 0;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-title {
  padding: 2.5rem 0 1rem;
}

.page-title h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-title p {
  color: var(--muted);
}

.download-list {
  display: grid;
  gap: 1rem;
  padding-bottom: 4rem;
}

.download-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.download-tab {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-tab:hover {
  color: var(--text);
  border-color: var(--surface2);
}

.download-tab.active {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--accent);
}

.lab-disclaimer {
  color: var(--warning);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.download-item--lab {
  border-color: rgba(245, 158, 11, 0.35);
}

.download-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.lab-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.admin-section-title {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-lab-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-lab-actions .btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
}

.admin-app-row--lab {
  border-color: rgba(245, 158, 11, 0.35);
}

.admin-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.25);
}

.admin-history {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.admin-history-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.admin-history-empty {
  margin: 0;
}

.admin-history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.admin-history-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.admin-history-version {
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-history-desc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.admin-history-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.loading {
  text-align: center;
  color: var(--muted);
  padding: 3rem;
}

/* Admin */
.admin-wrap {
  max-width: 720px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.error-msg {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.success-msg {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.admin-app-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg);
}

.admin-app-row h4 {
  margin-bottom: 0.75rem;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.upload-btn {
  margin-top: 0.5rem;
}

.upload-progress {
  margin-top: 0.75rem;
}

.upload-progress-track {
  height: 8px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.15s ease;
}

.upload-progress-fill.upload-progress-indeterminate {
  width: 40% !important;
  animation: upload-indeterminate 1.2s ease-in-out infinite;
}

.upload-progress-fill.upload-progress-processing {
  animation: upload-processing 1.5s ease-in-out infinite;
}

@keyframes upload-processing {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes upload-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.upload-progress-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* Download page — STB/TV: scrollable compact grid */
.page-download {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.page-download .site-header {
  flex-shrink: 0;
}

.page-download .site-header .inner {
  padding: 0.75rem 0;
}

.page-download .site-footer {
  display: none;
}

.page-download main.container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: min(100% - 2rem, 1600px);
  max-width: none;
}

.page-download .page-title {
  padding: 0.85rem 0 0.5rem;
  flex-shrink: 0;
}

.page-download .lab-disclaimer {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.page-download .download-tabs {
  margin-bottom: 0.5rem;
}

.page-download .download-tab {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.page-download .page-title h1 {
  font-size: 1.25rem;
}

.page-download .page-title p {
  font-size: 0.8rem;
}

.page-download .download-list {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  grid-auto-rows: auto;
  gap: 0.65rem;
  padding-bottom: 1.5rem;
  align-content: start;
  overflow-y: visible;
}

.page-download .download-item {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  align-self: start;
}

.page-download .download-item h3 {
  font-size: 0.95rem;
}

.page-download .download-meta {
  font-size: 0.72rem;
}

.page-download .download-item-title .download-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-download .download-notes {
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-top: 0.25rem;
  border-top: none;
}

.page-download .download-app-icon {
  width: 32px;
  height: 32px;
}

.page-download .status-pill--link {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  align-self: flex-start;
  flex-shrink: 0;
}

.page-download .download-item:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.page-download .btn:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .nav {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .page-download {
    height: auto;
    overflow: auto;
  }

  .page-download .site-footer {
    display: block;
  }

  .page-download .download-list {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

/* Ops / Analytics admin (Phase 0) */
.admin-subnav a.active {
  color: var(--accent);
  font-weight: 600;
}

.admin-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.admin-status-card {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.admin-status-card--ok {
  border-color: rgba(34, 197, 94, 0.35);
}

.admin-status-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.admin-status-card p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.admin-status-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Ops dashboard */
.admin-wrap--wide {
  max-width: min(1400px, 96vw);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Admin account menu (header) */
.admin-account {
  position: relative;
  margin-left: 1rem;
  flex-shrink: 0;
}

.admin-account-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.admin-account-trigger:hover {
  border-color: var(--accent);
}

.admin-account-label {
  font-size: 0.7rem;
  color: var(--muted);
}

.admin-account-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(280px, 90vw);
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.admin-account-panel.hidden {
  display: none;
}

.admin-account-panel-head {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.admin-account-dl {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.admin-account-dl dt {
  color: var(--muted);
}

.admin-account-dl dd {
  margin: 0;
  word-break: break-all;
}

.admin-account-logout {
  width: 100%;
}

.admin-title {
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.ops-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.admin-status-grid--ops {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.ops-kpi-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ops-kpi-card--clickable:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

.ops-kpi-card--wide {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .ops-kpi-card--wide {
    grid-column: span 1;
  }
}

.ops-kpi-value--sm {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.ops-kpi-split {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.ops-kpi-split:hover {
  color: #3b82f6;
}

.ops-device-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ops-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.ops-stores-panel.hidden {
  display: none;
}

.ops-online-chart {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.ops-online-chart canvas {
  max-height: 160px;
}

.ops-mqtt-stats {
  margin: -0.5rem 0 1rem;
  font-size: 0.85rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.ops-monitor-note {
  margin-bottom: 1rem;
}

.ops-monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.ops-monitor-cell {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  background: var(--bg);
}

.ops-monitor-cell-preview {
  height: 100px;
  margin: 0.5rem 0;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.ops-monitor-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ops-monitor-cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ops-embed-body {
  margin: 0;
  background: var(--bg);
}

.ops-embed-wrap {
  padding: 0.75rem 1rem;
}

.ops-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ops-embed-title {
  font-size: 1rem;
  margin: 0;
}

.billing-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.billing-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.billing-tab.is-active {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
}

.billing-panel.hidden {
  display: none;
}

.billing-iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.ops-search-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.ops-search-input {
  flex: 1;
  min-width: 220px;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .ops-layout {
    grid-template-columns: 1fr;
  }
}

.ops-section-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.ops-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.ops-store-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 480px;
  overflow-y: auto;
}

.ops-store-item {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.ops-store-item.is-active {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
}

.ops-store-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.ops-store-meta,
.ops-store-stats {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.ops-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ops-filters select {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

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

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ops-table th,
.ops-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.ops-table th {
  color: var(--muted);
  font-weight: 600;
}

.ops-device-name {
  font-weight: 600;
}

.ops-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.ops-badge--online {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.ops-badge--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.ops-badge--uncertain {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.ops-badge--warn {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.ops-badge--offline {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.ops-badge--unused {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.ops-badge--secure {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.ops-badge--legacy {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.ops-badge--revoked {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.ops-anomalies {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.ops-anomaly-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ops-anomaly-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

/* Analytics */
.select-inline {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.analytics-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.analytics-chart-box {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.analytics-chart-box canvas {
  max-height: 220px;
}

/* Admin push */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.admin-tab {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
}

.admin-tab.active {
  color: var(--text);
  background: var(--bg);
  font-weight: 600;
}

.admin-tab-panel.hidden {
  display: none;
}

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

.admin-form-full {
  grid-column: 1 / -1;
}

.admin-hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.admin-alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
}

.admin-alert.hidden {
  display: none;
}

.admin-alert--ok {
  border-color: var(--success);
  color: var(--success);
}

.admin-alert--err {
  border-color: #f87171;
  color: #f87171;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  height: fit-content;
  max-width: min(640px, 92vw);
  max-height: min(90vh, 100%);
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

dialog:not([open]) {
  display: none;
}

dialog:not(.admin-file-info-dialog) {
  padding: 1.5rem;
  overflow-y: auto;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.admin-confirm-dialog h2 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.admin-confirm-lead {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.admin-confirm-meta {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.admin-confirm-meta dt {
  color: var(--muted);
}

.admin-confirm-meta dd {
  margin: 0;
  word-break: break-word;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-file-info-dialog {
  width: min(480px, 92vw);
}

.admin-file-info-dialog .admin-file-info-inner {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: min(90vh, 100%);
}

.admin-file-info-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.admin-file-info-meta {
  margin-bottom: 1.25rem;
}

.admin-file-info-meta dd[data-fi-path] {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.dialog-actions .btn-primary[data-fi-download] {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Download admin (v2) */
.admin-wrap--downloads {
  max-width: 1120px;
}

.admin-page-title {
  margin: 0;
  font-size: 1.5rem;
}

.admin-channel-tabs {
  margin-top: 0.5rem;
}

.admin-app-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.75rem;
}

.admin-app-pill {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-app-pill:hover {
  color: var(--text);
  border-color: var(--accent);
}

.admin-app-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.admin-platform-picker {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.admin-platform-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.admin-platform-pill.active {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  border-color: var(--accent);
}

.admin-app-panel {
  margin-top: 0.5rem;
}

.admin-app-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-app-panel-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.admin-settings-details {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--bg);
}

.admin-settings-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-settings-body {
  margin-top: 1rem;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.admin-checkbox-label input {
  width: auto;
}

.admin-upload-section,
.admin-version-section {
  margin-bottom: 1.5rem;
}

.admin-section-heading {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.admin-upload-lead {
  margin: -0.25rem 0 1rem;
}

.admin-upload-meta {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg);
}

.admin-upload-meta .admin-form-grid {
  margin: 0;
}

.admin-upload-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-upload-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-upload-card--deploy {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.admin-upload-card--update {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.08);
}

.admin-upload-card--busy {
  opacity: 0.72;
  pointer-events: none;
}

.admin-upload-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-upload-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.admin-upload-card-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-upload-card-desc code {
  font-size: 0.78rem;
}

.admin-upload-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.admin-upload-badge--deploy {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.admin-upload-badge--update {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
}

.admin-upload-card-file {
  margin: 0;
}

.admin-upload-card-file label {
  font-size: 0.85rem;
  font-weight: 500;
}

.admin-upload-card-btn {
  width: 100%;
  margin-top: auto;
}

.admin-upload-card-btn--update {
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}

.admin-upload-card-btn--update:hover {
  border-color: rgba(168, 85, 247, 0.85);
  background: rgba(168, 85, 247, 0.12);
}

.admin-upload-grid--single {
  margin-top: 0;
}

.admin-upload-grid {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--bg);
}

.admin-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-version-stale-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
}

.admin-artifact-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-artifact-badge--deploy {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.admin-artifact-badge--update {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
}

.admin-version-table th {
  white-space: nowrap;
  font-size: 0.8rem;
}

.admin-version-row--active {
  background: rgba(34, 197, 94, 0.12);
}

.admin-version-row--active td {
  border-bottom-color: rgba(34, 197, 94, 0.25);
}

.admin-version-row--suspect {
  background: rgba(245, 158, 11, 0.12);
}

.admin-suspect-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.25);
  color: #b45309;
}

.admin-sync-banner {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.admin-sync-banner--ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
}

.admin-sync-banner--warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.admin-sync-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-sync-meta code {
  font-size: 0.78rem;
}

.admin-sync-issues {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: #b45309;
}

.admin-notes-cell {
  max-width: 280px;
}

.admin-notes-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 6rem;
  overflow: auto;
}

.admin-status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-status-pill--active {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.admin-status-pill--inactive {
  background: var(--surface2);
  color: var(--muted);
}

.admin-version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 180px;
}

.admin-table-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem !important;
}

.admin-lab-remove {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .admin-upload-dual {
    grid-template-columns: 1fr;
  }

  .admin-version-table {
    font-size: 0.8rem;
  }

  .admin-notes-cell {
    max-width: 160px;
  }
}

/* —— 점주 매장 포털 (/store) —— */
.btn-nav-login {
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
}

.page-store {
  background: #111827;
}

.page-store .nav a.active {
  color: #f8fafc;
  font-weight: 600;
}

.page-store .nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

.page-store .nav a {
  position: relative;
}

/* 로그인 게이트 — 콘솔형 2열 (소개 | 카드) */
.store-login-gate {
  max-width: 980px;
  margin: 5rem auto 4rem;
  padding: 0;
  background: transparent;
  border: none;
}

.store-login-console {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #334155;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  min-height: 520px;
}

.store-login-intro {
  position: relative;
  background: #111827;
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.store-login-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.35) 1px, transparent 1px),
    linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.2) 0%, transparent 45%);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
}

.store-login-intro > * {
  position: relative;
  z-index: 1;
}

.store-login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

.store-login-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.store-login-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.store-login-brand-tag {
  font-size: 0.82rem;
  color: #94a3b8;
}

.store-login-divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin: 1.35rem 0;
}

.store-login-pitch {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.store-login-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.store-login-features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.store-login-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  box-shadow: inset 0 0 0 1.5px #3b82f6;
}

.store-login-features li::after {
  content: '';
  position: absolute;
  left: 0.26rem;
  top: 0.48rem;
  width: 0.26rem;
  height: 0.42rem;
  border: solid #60a5fa;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.store-login-trust {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}

.store-login-platforms {
  margin-top: 1.25rem;
}

.store-login-platforms-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.store-login-platform-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.store-login-platform-badges li {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.store-login-card {
  background: #1d2636;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(51, 65, 85, 0.6);
}

.store-login-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.store-login-card-lead {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.store-login-form {
  max-width: none;
  width: 100%;
}

.store-login-form .form-group input {
  background: #0f172a;
  border-color: #334155;
  min-height: 54px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.store-login-form .form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.store-login-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.store-login-submit-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.15s;
}

.store-login-submit:hover .store-login-submit-arrow {
  transform: translateX(3px);
}

.store-login-help {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.55;
}

.store-login-help a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.35rem;
}

.store-login-help a:hover {
  color: #bfdbfe;
}

@media (max-width: 720px) {
  .store-login-gate {
    margin-top: 2.5rem;
  }

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

  .store-login-card {
    border-left: none;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
  }

  .store-login-intro {
    padding: 2rem 1.5rem 1.5rem;
  }

  .store-login-card {
    padding: 2rem 1.5rem 2.25rem;
  }

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

.store-hub-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  min-height: calc(100vh - 12rem);
  align-items: stretch;
}

.store-hub-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - 14rem);
}

.store-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.store-nav-item {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
}

.store-nav-item:hover,
.store-nav-item.active {
  background: var(--surface2);
  border-color: var(--accent);
}

.store-home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.store-home-steps {
  margin: 1rem 0 1.25rem 1.25rem;
  color: var(--muted);
}

.store-builder-frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  height: calc(100vh - 11rem);
  min-height: 640px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

main.admin-wrap:has(#hub-panel.store-hub--builder) {
  max-width: min(1600px, 96vw);
}

#hub-panel.store-hub--builder {
  padding: 1.25rem 1rem 1rem;
}

#hub-panel.store-hub--builder .store-hub-layout {
  min-height: calc(100vh - 10rem);
}

#hub-panel.store-hub--builder .store-builder-frame {
  height: calc(100vh - 10rem);
  min-height: 720px;
}

.store-hub-toolbar {
  margin-bottom: 1rem;
}

.store-completions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.store-completions-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.store-completions-toolbar input[type="date"] {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.store-payroll-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.store-payroll-toolbar input[type="month"] {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.store-payroll-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .store-payroll-layout {
    grid-template-columns: 1fr;
  }
}

.store-payroll-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payroll-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.payroll-list-item.active {
  border-color: #0b3d78;
  box-shadow: 0 0 0 1px #0b3d78;
}

.store-payroll-compose {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.payroll-compose-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.payroll-section {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.payroll-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.payroll-section--blue { border-top: 4px solid #0b3d78; }
.payroll-section--teal { border-top: 4px solid #0f766e; }
.payroll-section--green { border-top: 4px solid #15803d; }

.payroll-section label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.payroll-section input[type="text"],
.payroll-section input[type="date"],
.payroll-section input[type="number"] {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

.payroll-wage-system {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.payroll-earning,
.payroll-deduction {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.payroll-earning-head,
.payroll-deduction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.payroll-total {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.payroll-total--net {
  font-size: 1.05rem;
  color: #0b3d78;
}

.payroll-calc-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.payroll-help {
  margin-bottom: 0.5rem;
}

.payroll-help summary {
  cursor: pointer;
  font-weight: 600;
}

.payroll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}

.store-notice-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.store-notice-card {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.store-notice-card--emergency {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.store-notice-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.store-notice-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

.store-notice-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

.store-notice-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.store-notice-body {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.55;
  white-space: normal;
}

@media (max-width: 768px) {
  .store-hub-layout {
    grid-template-columns: 1fr;
  }

  .store-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.page-ople-notice main {
  padding: 2rem 0 3rem;
}

.ople-notice-state {
  margin-top: 2rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ople-notice-card {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.ople-notice-card__image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  background: #eef2f7;
}

.ople-notice-card__header {
  padding: 1.75rem 1.75rem 1.25rem;
  color: #fff;
}

.ople-notice-card.theme-blue .ople-notice-card__header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.ople-notice-card.theme-yellow .ople-notice-card__header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ople-notice-card.theme-purple .ople-notice-card__header {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.ople-notice-card__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.92;
}

.ople-notice-card__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
}

.ople-notice-card__meta {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.ople-notice-card__body {
  padding: 1.75rem;
  font-size: 1rem;
  line-height: 1.8;
  white-space: normal;
}

.ople-notice-card__footer {
  padding: 0 1.75rem 1.75rem;
}

.ople-notice-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.hidden {
  display: none !important;
}


/* —— Admin support inquiries —— */
.support-admin-filters {
  margin: 1rem 0 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-table-wrap {
  margin-top: 1rem;
  overflow: auto;
  max-height: min(70vh, 720px);
}

.support-table-wrap .admin-table tbody tr {
  cursor: pointer;
}

.support-table-wrap .admin-table tbody tr:hover,
.support-table-wrap .admin-table tbody tr:focus {
  background: rgba(37, 99, 235, 0.12);
  outline: none;
}

body.support-modal-open {
  overflow: hidden;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.support-modal.hidden,
.support-modal[hidden] {
  display: none !important;
}

.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.support-modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(88vh, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  color: var(--text);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.support-detail-dialog__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.support-detail-dialog__body {
  padding: 0.85rem 1.15rem 1.15rem;
  overflow-y: auto;
}

.support-modal .error-msg {
  margin: 0 1.15rem 1rem;
}

.support-detail-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.support-detail-head h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--text);
}

.support-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  background: #e2e8f0;
  color: #334155;
}

.support-status-badge--new {
  background: #dbeafe;
  color: #1d4ed8;
}

.support-status-badge--in_progress {
  background: #fef3c7;
  color: #b45309;
}

.support-status-badge--replied {
  background: #dcfce7;
  color: #15803d;
}

.support-status-badge--closed {
  background: #e2e8f0;
  color: #475569;
}

.support-detail-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.support-detail-meta > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.support-detail-meta dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.support-detail-meta dd {
  margin: 0;
  word-break: break-word;
  color: var(--text);
}

.support-detail-message,
.support-detail-replies {
  margin-top: 1rem;
}

.support-detail-message h3,
.support-detail-replies h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.support-detail-message p {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.55;
  white-space: normal;
  color: var(--text);
}

.support-detail-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.support-detail-status label {
  color: var(--muted);
  font-weight: 600;
}

.support-detail-status select,
.support-detail-replies textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.support-detail-status select {
  width: auto;
  min-width: 8rem;
}

.support-detail-replies label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.support-detail-replies .btn {
  margin-top: 0.6rem;
}

.support-reply-card {
  margin: 0.55rem 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.support-reply-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.support-reply-card p {
  margin: 0;
  line-height: 1.5;
  white-space: normal;
  color: var(--text);
}
