/* Single Site view — local styles. */

/* Drop the .aq-ss ancestor — page renders its own scroll root. */
.ss-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

/* ── Hero ───────────────────────────────────────────────────── */
.ss-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--aq-line);
  background: linear-gradient(135deg, oklch(0.22 0.05 220) 0%, oklch(0.13 0.03 240) 100%);
  padding: 28px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 160px;
}
.ss-hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}
.ss-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
}
.ss-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--aq-ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.ss-hero-eyebrow svg { color: rgba(255,255,255,0.55); }
.ss-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--aq-success) 18%, transparent);
  color: var(--aq-success);
  font-size: 10px;
}
.ss-hero-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--aq-success);
  box-shadow: 0 0 6px var(--aq-success);
}
.ss-hero h1 {
  margin: 0 0 6px;
  font-family: var(--aq-ff-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: white;
}
.ss-hero-meta {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}
.ss-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
}

/* ── Buttons / links ──────────────────────────────────────── */
.ss-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  color: white;
  font: inherit; font-size: 12px;
  cursor: pointer;
  transition: background 160ms;
}
.ss-btn:hover { background: rgba(255,255,255,0.12); }
.ss-btn.primary {
  background: white;
  color: #08090b;
  border-color: white;
  font-weight: 500;
}
.ss-btn.primary:hover { background: rgba(255,255,255,0.92); }

.ss-link {
  background: transparent; border: 0; padding: 0;
  color: var(--aq-accent);
  font: inherit; font-size: 11.5px;
  cursor: pointer;
}
.ss-link:hover { text-decoration: underline; }

/* ── KPIs ─────────────────────────────────────────────────── */
.ss-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--aq-line);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  overflow: hidden;
}
.ss-kpi {
  background: var(--aq-surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ss-kpi-label {
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aq-text-faint);
}
.ss-kpi-value {
  font-family: var(--aq-ff-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--aq-text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ss-kpi-value.is-ok { color: var(--aq-success); }
.ss-kpi-value-sm { font-size: 18px; }
.ss-kpi-value > span {
  font-size: 13px;
  color: var(--aq-text-faint);
  font-weight: 400;
}
.ss-kpi-sub {
  font-size: 11px;
  color: var(--aq-text-faint);
}
.ss-kpi-sub.is-up { color: var(--aq-success); }
.ss-kpi-bar {
  height: 4px;
  background: var(--aq-surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin: 2px 0;
}
.ss-kpi-bar-fill {
  height: 100%;
  background: var(--aq-accent);
  border-radius: 99px;
}
.ss-kpi-weather { padding: 14px 16px; }
.ss-kpi-weather-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ss-kpi-weather-row > div { display: flex; flex-direction: column; gap: 1px; }

/* ── Grid layout ──────────────────────────────────────────── */
.ss-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-auto-flow: row;
  gap: 14px;
}
.ss-zones    { grid-column: 1 / 2; grid-row: 1 / 2; }
.ss-alerts   { grid-column: 2 / 3; grid-row: 1 / 2; }
.ss-campaigns { grid-column: 1 / 3; grid-row: 2 / 3; }
.ss-staff    { grid-column: 1 / 2; grid-row: 3 / 4; }
.ss-activity { grid-column: 2 / 3; grid-row: 3 / 4; }

/* ── Card chrome ──────────────────────────────────────────── */
.ss-card {
  background: var(--aq-surface);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ss-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--aq-line);
}
.ss-card-head h2 {
  margin: 0 0 2px;
  font-family: var(--aq-ff-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--aq-text);
  letter-spacing: -0.005em;
}
.ss-card-head p {
  margin: 0;
  font-size: 11.5px;
  color: var(--aq-text-faint);
}

/* ── Zones grid ───────────────────────────────────────────── */
.ss-zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 16px 16px;
}
.ss-zone {
  background: var(--aq-surface-2);
  border: 1px solid var(--aq-line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ss-zone-art {
  position: relative;
  height: 50px;
  overflow: hidden;
}
.ss-zone-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-zone-body { padding: 9px 12px 11px; }
.ss-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}
.ss-zone-head h4 {
  margin: 0;
  font-family: var(--aq-ff-display);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--aq-text);
  letter-spacing: -0.005em;
}
.ss-zone-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--aq-ff-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.ss-zone-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.ss-zone-status.is-ok { color: var(--aq-success); }
.ss-zone-status.is-warn { color: #F2C879; }
.ss-zone-stats {
  display: flex;
  gap: 12px;
  font-size: 10.5px;
  color: var(--aq-text-faint);
}
.ss-zone-stats b {
  color: var(--aq-text);
  font-weight: 500;
}

/* ── Alerts ───────────────────────────────────────────────── */
.ss-alerts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ss-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--aq-line);
}
.ss-alert:last-child { border-bottom: 0; }
.ss-alert-mark {
  width: 6px;
  height: 26px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ss-alert-warn .ss-alert-mark { background: #F2C879; }
.ss-alert-info .ss-alert-mark { background: var(--aq-text-faint); opacity: 0.5; }
.ss-alert-body { flex: 1; min-width: 0; }
.ss-alert-msg {
  font-size: 12px;
  color: var(--aq-text);
  line-height: 1.4;
}
.ss-alert-meta {
  font-size: 10.5px;
  color: var(--aq-text-faint);
  margin-top: 1px;
}
.ss-alert-action {
  background: transparent;
  border: 1px solid var(--aq-line-strong);
  border-radius: 5px;
  padding: 3px 9px;
  color: var(--aq-text-dim);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.ss-alert-action:hover {
  border-color: var(--aq-text-faint);
  color: var(--aq-text);
}

/* ── Status pill ──────────────────────────────────────────── */
.ss-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 99px;
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Campaigns table ──────────────────────────────────────── */
.ss-camp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ss-camp-table thead th {
  text-align: left;
  font-family: var(--aq-ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aq-text-faint);
  padding: 10px 18px;
  background: var(--aq-surface-2);
  border-bottom: 1px solid var(--aq-line);
}
.ss-camp-table td {
  padding: 11px 18px;
  border-top: 1px solid var(--aq-line);
  color: var(--aq-text-dim);
}
.ss-camp-table tbody tr:first-child td { border-top: 0; }
.ss-camp-name {
  color: var(--aq-text);
  font-weight: 500;
}
.ss-camp-table .is-up { color: var(--aq-success); }

/* ── Staff ────────────────────────────────────────────────── */
.ss-staff-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.ss-staff-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
}
.ss-staff-list li.is-off { opacity: 0.5; }
.ss-staff-meta { flex: 1; min-width: 0; }
.ss-staff-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--aq-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ss-staff-role {
  font-size: 11px;
  color: var(--aq-text-faint);
  margin-top: 1px;
}
.ss-staff-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aq-line-strong);
}
.ss-staff-dot.is-here {
  background: var(--aq-success);
  box-shadow: 0 0 6px color-mix(in srgb, var(--aq-success) 50%, transparent);
}
.ss-tag {
  font-family: var(--aq-ff-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: var(--aq-text-dim);
}

/* ── Avatar ───────────────────────────────────────────────── */
.ss-avatar {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.50 0.10 30), oklch(0.30 0.06 60));
  color: white;
  font-family: var(--aq-ff-display);
  font-size: 10px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
}
.ss-avatar.lg {
  width: 32px; height: 32px;
  font-size: 12px;
}

/* ── Activity ─────────────────────────────────────────────── */
.ss-activity-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.ss-activity-list li {
  display: flex;
  gap: 10px;
  padding: 8px 18px;
}
.ss-act-body { flex: 1; font-size: 12px; line-height: 1.5; color: var(--aq-text-dim); }
.ss-act-body b { color: var(--aq-text); font-weight: 500; }
.ss-act-body em { color: var(--aq-text); font-style: normal; }
.ss-act-time {
  font-family: var(--aq-ff-mono);
  font-size: 10.5px;
  color: var(--aq-text-faint);
  margin-top: 1px;
}
