/* companyinfo.me — public status page. Uses public.css design tokens + dark mode. */
.status-body { background: var(--bg); color: var(--text); min-height: 100vh; }
.status-wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px 10px; }

/* Top bar */
.st-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.st-home { color: var(--muted); font-weight: 600; font-size: 14px; }
.st-home:hover { color: var(--brand); text-decoration: none; }
.st-theme { background: var(--soft); border: 1px solid var(--border); color: var(--muted); width: 34px; height: 34px;
  border-radius: 9px; cursor: pointer; font-size: 16px; line-height: 1; }
.st-theme:hover { color: var(--brand); border-color: var(--brand); }

/* Hero / overall */
.st-hero { text-align: center; padding: 26px 0 28px; }
.st-overall { display: inline-flex; align-items: center; gap: 14px; }
.st-overall h1 { font-size: clamp(24px, 3.6vw, 38px); letter-spacing: -.02em; margin: 0; color: var(--text); }
.st-bigdot { width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative; }
.st-bigdot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; opacity: .5;
  animation: stPulse 2s ease-out infinite; }
@keyframes stPulse { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(1.8); opacity: 0; } }
.st-ov-ok .st-bigdot, .st-ov-ok .st-bigdot::after { background: var(--accent); }
.st-ov-partial .st-bigdot, .st-ov-partial .st-bigdot::after { background: #f59e0b; }
.st-ov-down .st-bigdot, .st-ov-down .st-bigdot::after { background: var(--danger); }
.st-lead { color: var(--muted); max-width: 640px; margin: 14px auto 6px; font-size: 15.5px; line-height: 1.55; }
.st-updated { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.st-summary { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.st-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; }
.st-chip .dot, .st-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-ok .dot { background: var(--accent); } .st-partial .dot { background: #f59e0b; } .st-down .dot { background: var(--danger); }

/* Controls */
.st-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 18px;
  position: sticky; top: 0; background: var(--bg); padding: 10px 0; z-index: 5; }
.st-search { flex: 1 1 220px; min-width: 180px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 10px; padding: 10px 13px; font-size: 14px; font-family: inherit; }
.st-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.st-filters { display: inline-flex; background: var(--soft); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.st-filters button { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px;
  padding: 6px 11px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.st-filters button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.st-range { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.st-range select { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px;
  padding: 7px 9px; font-size: 13px; font-family: inherit; }

/* List */
.st-list { display: grid; gap: 10px; }
.st-row { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,2fr) auto; gap: 14px 18px; align-items: center;
  animation: stIn .35s ease both; }
@keyframes stIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.st-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-flag { font-size: 20px; flex: none; }
.st-name { font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; margin-left: auto; white-space: nowrap; }
.st-pill.st-ok { color: var(--accent-dark); background: rgba(22,163,74,.12); }
.st-pill.st-partial { color: #b45309; background: rgba(245,158,11,.14); }
.st-pill.st-down { color: var(--danger); background: rgba(220,38,38,.12); }
[data-theme="dark"] .st-pill.st-ok { color: #4ade80; } [data-theme="dark"] .st-pill.st-partial { color: #fbbf24; }
[data-theme="dark"] .st-pill.st-down { color: #f87171; }

/* Uptime bars */
.st-bars { display: flex; gap: 2px; align-items: flex-end; height: 26px; }
.st-bars .sb { flex: 1 1 0; min-width: 2px; height: 100%; border-radius: 2px; transition: opacity .15s; }
.st-bars .sb:hover { opacity: .6; }
.sb-ok { background: var(--accent); } .sb-partial { background: #f59e0b; } .sb-down { background: var(--danger); }
.sb-na { background: var(--border); }
.st-meta { text-align: right; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; min-width: 92px; }
.st-up { font-weight: 700; color: var(--text); }

.st-none { text-align: center; color: var(--muted); padding: 40px 0; }
.st-legend { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0 30px; }
.hidden { display: none !important; }

@media (max-width: 720px) {
  .st-row { grid-template-columns: 1fr; gap: 10px; }
  .st-meta { text-align: left; flex-direction: row; gap: 12px; }
  .st-pill { margin-left: 0; }
  .st-controls { position: static; }
}

/* ── Anchor links + embed generator ("integrate into your page") ── */
.st-anchor { margin-left: 2px; color: var(--muted); opacity: 0; font-weight: 700; text-decoration: none; transition: opacity .15s; }
.st-row:hover .st-anchor, .st-row:target .st-anchor { opacity: .8; }
.st-anchor:hover { color: var(--brand); opacity: 1; }
.st-row:target { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }

.st-embed { margin: 18px 0 26px; border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border));
  border-radius: 18px; background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.st-embed summary { display: flex; align-items: center; gap: 11px; padding: 15px 20px; cursor: pointer;
  font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: var(--text); list-style: none; }
.st-embed summary::-webkit-details-marker { display: none; }
.st-embed summary:hover { color: var(--brand); }
.emb-sum-ico { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent)); }
.emb-sum-txt { flex: 1 1 auto; }
.emb-chev { color: var(--muted); transition: transform .2s ease; }
.st-embed[open] .emb-chev { transform: rotate(180deg); }
.st-embed-body { padding: 4px 20px 22px; }
.st-embed-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; max-width: 62em; }
.st-embed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; }
@media (max-width: 760px) { .st-embed-grid { grid-template-columns: 1fr; } }
.emb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; max-height: 180px; overflow-y: auto;
  padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.emb-chip { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 9px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--soft); color: var(--text); cursor: pointer; }
.emb-chip:hover { border-color: var(--brand); }
.emb-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.emb-max { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.emb-selects { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.emb-selects label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.emb-selects select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); }
.emb-preview-label { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.emb-preview { padding: 16px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface);
  display: flex; justify-content: center; margin-bottom: 12px; }
.emb-code { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5;
  padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--soft); color: var(--text);
  resize: vertical; margin-bottom: 10px; box-sizing: border-box; }
.st-embed .btn { width: 100%; }
.emb-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
