*, *::before, *::after { box-sizing: border-box; }

:root {
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --c-bg: #f9fafb;
  --c-surface: #ffffff;
  --c-border: #e5e7eb;
  --c-border-light: #f3f4f6;
  --c-text: #111827;
  --c-muted: #6b7280;
  --c-subtle: #9ca3af;
  --c-accent: #2563eb;
  --c-accent-light: #eff6ff;
  --sidebar-w: 300px;
  --gap: 24px;
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  padding-top: 64px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Leaderboard: full-width banner above content */
.ad-leaderboard {
  width: 100%;
  min-height: 90px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 0 var(--gap);
}

/* Sidebar sticky unit: 300×600 / 300×250 */
.ad-sidebar-unit {
  width: 100%;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-sidebar-unit + .ad-sidebar-unit { margin-top: 20px; }

/* In-content rectangle: between sections */
.ad-in-content {
  width: 100%;
  min-height: 250px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

/* Ad label */
.ad-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: #f9fafb;
  border-bottom: 1px solid var(--c-border);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-subtle);
  font-family: var(--font-mono);
}
.ad-label-bar a { color: var(--c-subtle); text-decoration: none; }
.ad-label-bar a:hover { color: var(--c-muted); text-decoration: underline; }

/* =============================================
   LAYOUT: two-column with sticky sidebar
============================================= */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  grid-template-rows: auto;
  gap: var(--gap);
  align-items: start;
}

.main-col { min-width: 0; }

.sidebar-col {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-col { position: static; display: none; }
  .sidebar-col.show-mobile { display: flex; }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -.01em;
}
.card-body { padding: 20px; }
.card-body-sm { padding: 16px; }

.status-hero {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: var(--gap);
}

.status-hero__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.site-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.site-logo img { width: 32px; height: 32px; object-fit: contain; }

.status-hero__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.status-hero__sub { font-size: 13px; color: var(--c-muted); margin-top: 2px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid;
  letter-spacing: .01em;
  font-family: var(--font-mono);
}
.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Status banner strip */
.status-strip {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* Action row */
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-warning { background: #f59e0b; color: #fff; border-color: #d97706; }
.btn-warning:hover { background: #d97706; }
.btn-ghost { background: transparent; color: var(--c-muted); border-color: var(--c-border); }
.btn-ghost:hover { background: #f3f4f6; color: var(--c-text); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: var(--gap);
}
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-tile {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-tile__label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: 6px; font-family: var(--font-mono); }
.stat-tile__value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-tile__sub { font-size: 11px; color: var(--c-subtle); margin-top: 4px; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  color: var(--c-text);
}
.section-heading .icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--c-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  flex-shrink: 0;
}
.section-heading .map-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-heading .map-link:hover { text-decoration: underline; }

.chart-card { margin-bottom: var(--gap); }
.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--c-muted);
  padding: 10px 16px 14px;
}
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.country-tile {
  background: #f9fafb;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.country-tile__flag { font-size: 22px; line-height: 1; flex-shrink: 0; }
.country-tile__info { flex: 1; min-width: 0; }
.country-tile__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-tile__count { font-size: 11px; color: var(--c-muted); font-family: var(--font-mono); }
.country-tile__bar-wrap { height: 3px; background: #e5e7eb; border-radius: 2px; margin-top: 6px; }
.country-tile__bar { height: 3px; border-radius: 2px; background: var(--c-accent); }

.incident-list { display: flex; flex-direction: column; gap: 14px; }
.incident-item {
  background: #fafafa;
  border: 1px solid var(--c-border);
  border-left: 3px solid #ef4444;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
}
.incident-item__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.incident-item__id { font-size: 12px; font-weight: 600; color: var(--c-text); font-family: var(--font-mono); }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-orange { background: #ffedd5; color: #ea580c; }
.incident-item__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--c-muted); margin-bottom: 8px; }
.incident-item__desc { font-size: 13px; color: var(--c-muted); line-height: 1.6; }

.subscribe-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: var(--gap);
}
.subscribe-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.subscribe-card p { font-size: 13px; color: var(--c-muted); margin-bottom: 14px; }
.email-row { display: flex; gap: 8px; }
.email-row input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  background: #fff;
  transition: border-color .15s;
}
.email-row input:focus { border-color: var(--c-accent); }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  border-radius: 7px;
  background: #fff;
  color: var(--c-text);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.share-btn:hover { border-color: #9ca3af; background: #f9fafb; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.related-tile {
  background: #f9fafb;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.related-tile:hover { border-color: var(--c-accent); background: #eff6ff; }
.related-tile__favicon { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--c-border); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; }
.related-tile__favicon img { width: 20px; height: 20px; object-fit: contain; }
.related-tile__name { font-size: 13px; font-weight: 600; }
.related-tile__sub { font-size: 11px; color: var(--c-muted); }

.sidebar-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.sidebar-widget__header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border-light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
  font-family: var(--font-mono);
}
.sidebar-widget__body { padding: 14px; }

.mini-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--c-border-light); }
.mini-stat-row:last-child { border-bottom: none; }
.mini-stat-row__label { font-size: 12px; color: var(--c-muted); }
.mini-stat-row__val { font-size: 14px; font-weight: 700; font-family: var(--font-mono); }

.monitoring-strip {
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: var(--gap);
}
@media (max-width: 640px) {
  .monitoring-strip { grid-template-columns: 1fr; }
}
.monitoring-item { display: flex; gap: 10px; align-items: flex-start; }
.monitoring-item__icon { color: var(--c-accent); margin-top: 2px; flex-shrink: 0; }
.monitoring-item__title { font-size: 13px; font-weight: 600; }
.monitoring-item__desc { font-size: 12px; color: var(--c-muted); }

.prose-content { font-size: 14px; line-height: 1.75; color: #374151; }
.prose-content h1 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 .5rem; }
.prose-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 .5rem; }
.prose-content h3 { font-size: 1.1rem; font-weight: 600; margin: .75rem 0 .5rem; }
.prose-content p { margin: .6rem 0; }
.prose-content a { color: #1d93ca; text-decoration: underline; }
.prose-content a:hover { color: #1475a3; }
.prose-content ul { list-style: disc; padding-left: 1.4rem; margin: .6rem 0; }
.prose-content table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: 13px; }
.prose-content table th, .prose-content table td { border: 1px solid var(--c-border); padding: 6px 10px; text-align: left; }
.prose-content table th { background: #f9fafb; font-weight: 600; }

.prose-content-faq { font-size: 14px; line-height: 1.75; color: #374151; }
.prose-content-faq h1 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 .5rem; }
.prose-content-faq h2 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 .5rem; }
.prose-content-faq h3 { font-size: 1.0rem; font-weight: 600; margin: .25rem 0 .25rem; }
.prose-content-faq h4 { font-size: 0.95rem; font-weight: 600; margin: .25rem 0 .25rem; }
.prose-content-faq h5 { font-size: 0.95rem; font-weight: 600; margin: .25rem 0 .25rem; }
.prose-content-faq p { margin: .6rem 0; }
.prose-content-faq ul { list-style: disc; padding-left: 1.4rem; margin: .6rem 0; }
.prose-content-faq table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: 13px; }
.prose-content-faq table th, .prose-content table td { border: 1px solid var(--c-border); padding: 6px 10px; text-align: left; }
.prose-content-faq table th { background: #f9fafb; font-weight: 600; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); padding: 12px 0; flex-wrap: wrap; }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--c-muted);
  text-decoration: none;
  gap: 6px;
}
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb__sep { color: var(--c-border); }

.incident-share-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: var(--gap);
}

#reportModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#reportModal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: hidden;
}
.modal-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 20px; }
.modal-actions { display: flex; gap: 8px; padding: 0 20px 20px; }

.topbar-ad {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 8px 16px;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

@media (max-width: 640px) {
  .card .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn { justify-content: center; }
  .email-row { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .status-hero { padding: 16px; }

  .status-hero__top {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .site-logo { width: 42px; height: 42px; }
  .site-logo img { width: 26px; height: 26px; }
  .status-hero__title { font-size: 18px; }
  .status-hero__sub { font-size: 12px; }

  /* Status pill under title istället för längst till höger */
  .status-pill {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .status-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .status-strip > div:first-child { width: 100%; }

  .action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .action-row .btn-warning,
  .action-row .btn-sm {
    justify-content: center;
  }

  .action-row .btn-icon { justify-content: center; }
}

@media (max-width: 768px) {
  .chart-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .chart-card .card-title {
    font-size: 13px;
    line-height: 1.3;
  }

  .chart-card .card-header > a.btn {
    width: 100%;
    justify-content: center;
  }

  .chart-card .card-body-sm { padding: 12px; }

  /* Legend becomes stacked for readability */
  .chart-legend {
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
  }
}

.status-strip__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.status-strip__report {
  align-self: flex-end;
  white-space: nowrap;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .status-strip__actions {
    width: 100%;
    align-items: stretch;
  }

  .status-strip__report {
    width: 100%;
    justify-content: center;
  }

  .action-row {
    width: 100%;
    justify-content: stretch;
  }

  .action-row .btn { flex: 1 1 calc(50% - 5px); }
  .action-row .btn.btn-icon { flex: 1 1 calc(50% - 5px); }
}

.chrome-desktop-only { display: none; }
.is-chrome-desktop .chrome-desktop-only { display: block; }

.status-strip {
  --c-muted: #6b7280;
  background: linear-gradient(180deg, var(--strip-bg) 0%, var(--strip-bg2) 100%);
  border: 1px solid color-mix(in srgb, var(--strip-accent) 18%, #e5e7eb);
  border-left: 4px solid var(--strip-accent);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  font-family: 'Inter', system-ui, sans-serif;
  margin-top: 16px;
}

.status-strip__inner {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- top row ---- */

.status-strip__top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.status-strip__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.status-strip__timestamp {
  font-size: 12.5px;
  color: var(--c-muted);
  margin-top: 4px;
}

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--strip-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease, transform .1s ease;
}

.btn-report:hover { filter: brightness(.92); }
.btn-report:active { transform: translateY(1px); }

/* ---- metrics ---- */

.status-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef0f3;
}

.status-metric__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.status-metric__label {
  font-size: 10.5px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.status-metric--red .status-metric__value { color: #dc2626; }
.status-metric--amber .status-metric__value { color: #d97706; }
.status-metric--neutral .status-metric__value { color: #374151; }

/* ---- share block (the focal point during incidents) ---- */

.status-share {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-share__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.status-share__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--strip-bg2);
  color: var(--strip-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-share__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: #111827;
}

.status-share__description {
  font-size: 12.5px;
  color: var(--c-muted);
  margin-top: 2px;
  line-height: 1.5;
}

.status-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  color: #374151;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.share-btn:hover { background: #f1f5f9; border-color: #d1d5db; }
.share-btn--x { color: #111827; }

.status-share__secondary {
  font-size: 12px;
  color: var(--c-muted);
}

.status-share__secondary a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 2px; }
.status-share__secondary a:hover { color: #111827; }
.status-share__dot { margin: 0 6px; }

/* ---- status check card ---- */

.status-check-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 10px 14px;
  flex-wrap: wrap;
}

.status-check-card__text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.status-check-card__text svg { color: var(--strip-accent); flex-shrink: 0; }

.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}

.btn-outline:hover { border-color: var(--strip-accent); color: var(--strip-accent); }

/* ---- secondary actions ---- */

.status-strip__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--c-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.btn-ghost:hover { background: #fff; color: #111827; }

/* ---- responsive ---- */

@media (max-width: 560px) {
  .status-strip__inner { padding: 15px; gap: 13px; }
  .status-strip__top-row { flex-direction: column; }
  .btn-report { width: 100%; justify-content: center; }
  .status-check-card { flex-direction: column; align-items: stretch; }
  .status-check-card .btn-outline { width: 100%; text-align: center; }
}

.ew-service-hero__sparkbars {
  color: #1d93ca;
  transition: color 0.2s ease;
}

.ew-service-hero__sparkbars:hover { color: #ff2447; }

.ew-service-hero__sparkbars svg {
  display: block;
  width: 48px;
  height: 24px;
}

.ew-service-hero__sparkbars rect { fill: currentColor; }

.ew-preferred-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  margin: 24px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ew-preferred-source-text { min-width: 0; }

.ew-preferred-source-text strong {
  display: block;
  margin-bottom: 2px;
  color: #1e293b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.ew-preferred-source-text span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 18px;
}

.ew-preferred-source-button { flex-shrink: 0; }

/* Mobile */
@media (max-width: 600px) {
  .ew-preferred-source {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ew-preferred-source-button { width: 100%; }
}

/* =========================================================
   SHARE MODAL
   ========================================================= */

.ew-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}

.ew-share-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.ew-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(4px);
}

.ew-share-modal__dialog {
  position: relative;
  width: min(100%, 460px);
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 25px 70px rgba(15, 23, 42, .22);
  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
}

.ew-share-modal.is-open .ew-share-modal__dialog {
  transform: translateY(0) scale(1);
}

.ew-share-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

.ew-share-modal__close:hover {
  background: #e5e7eb;
  color: #111827;
}

.ew-share-modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ew-share-modal__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 12px;
  background: rgba(29, 147, 202, .10);
  color: #1d93ca;
}

.ew-share-modal__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ew-share-modal__dialog h2 {
  margin: 0 40px 7px 0;
  font-size: 21px;
  line-height: 1.3;
  color: #111827;
}

.ew-share-modal__description {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.ew-share-modal__url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.ew-share-modal__url input {
  min-width: 0;
  flex: 1;
  padding: 7px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
}

.ew-share-modal__url button {
  flex-shrink: 0;
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  background: #1d93ca;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

.ew-share-modal__url button:hover { background: #177fae; }

.ew-share-modal__native { margin-bottom: 16px; }

.ew-share-modal__native button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbe4ea;
  border-radius: 9px;
  padding: 10px 14px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.ew-share-modal__native button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.ew-share-modal__native svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ew-share-modal__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 12px;
}

.ew-share-modal__divider::before,
.ew-share-modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.ew-share-modal__social {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.ew-share-modal__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.ew-share-modal__social-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.ew-share-modal__social-icon {
  width: 22px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.ew-share-modal__social-btn--x .ew-share-modal__social-icon { font-size: 17px; }
.ew-share-modal__social-btn--whatsapp .ew-share-modal__social-icon { color: #25d366; }
.ew-share-modal__social-btn--telegram .ew-share-modal__social-icon { color: #229ed9; }
.ew-share-modal__social-btn--facebook .ew-share-modal__social-icon { color: #1877f2; }
.ew-share-modal__social-btn--reddit .ew-share-modal__social-icon { color: #ff4500; }

/* MOBILE */
@media (max-width: 520px) {
  .ew-share-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .ew-share-modal__dialog {
    width: 100%;
    border-radius: 18px 18px 12px 12px;
    padding: 25px 20px 20px;
    transform: translateY(20px);
  }

  .ew-share-modal.is-open .ew-share-modal__dialog {
    transform: translateY(0);
  }

  .ew-share-modal__social {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   Embed modal
   ========================================================= */

.embed-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 30, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  z-index: 999999999;
  padding: 20px;
}

.embed-modal.is-open { display: flex; }

.embed-modal .modal-content {
  position: relative;
  width: 560px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  padding: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.embed-modal-scroll {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 4px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s ease;
  z-index: 2;
}

.modal-close:hover {
  background: #e0e7ff;
  transform: scale(1.04);
}

.embed-modal-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 40px;
  margin-bottom: 20px;
}

.embed-heading {
  flex: 1;
  min-width: 0;
}

.embed-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.embed-modal-header h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
  color: #0f172a;
}

.embed-modal-header p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.embed-preview {
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.embed-preview img {
  display: block;
  max-width: 150px;
  height: auto;
}

.embed-section { margin-bottom: 14px; }

.embed-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.embed-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.embed-code {
  background: #0b1220;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12px;
  overflow-x: auto;
}

.embed-code pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.copy-mini-btn,
.embed-btn {
  border: 0;
  cursor: pointer;
  transition: 0.15s ease;
  font-weight: 700;
}

.copy-mini-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
}

.copy-mini-btn:hover { background: #cbd5e1; }

.embed-footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.embed-btn {
  padding: 11px 16px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
}

.embed-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.embed-btn.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.embed-btn.secondary:hover { background: #cbd5e1; }

.embed-mid-close {
  margin: 16px 0 18px;
  display: flex;
  justify-content: center;
}

.embed-btn--close {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.embed-btn--close span {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 640px) {
  .embed-modal .modal-content {
    padding: 18px;
    border-radius: 18px;
  }

  .embed-modal-header {
    flex-direction: column;
    padding-right: 0;
  }

  .embed-preview { width: 100%; }

  .embed-preview img { max-width: 100%; }

  .embed-mid-close {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 0;
    background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(248,250,252,0.92));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .embed-btn--close {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   Status strip and quick-check card
   ========================================================= */

/* Wrapper som ersätter inline-stylen display:flex;flex-direction:column;gap:14px;width:100% */
.status-strip__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.status-strip__headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}

.status-strip__timestamp {
  font-size: 12px;
  color: var(--c-subtle);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Quick-check kortet */
.status-check-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
}

.status-check-card__text {
  font-weight: 600;
  font-size: 14px;
  color: #1e3a8a;
  min-width: 0;
  flex: 1 1 22px;
}

.status-check-card__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.status-strip__report {
  align-self: flex-start;
  white-space: nowrap;
}

.status-strip__secondary {
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.status-strip__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Raden hanterar positionen för rapportknappen */
.status-strip__report { white-space: nowrap; }

/* Mobilanpassning */
@media (max-width: 480px) {
  .status-check-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .status-check-card__btn {
    width: 100%;
    justify-content: center;
  }

  .status-strip__report {
    width: 100%;
    justify-content: center;
  }

  .status-strip__top-row {
    flex-direction: column;
    align-items: stretch;
  }
}