
.slthnc-app {
  --slthnc-primary:#2563EB;
  --slthnc-primary-dark:#1D4ED8;
  --slthnc-text:#172033;
  --slthnc-muted:#64748B;
  --slthnc-border:#DCE3EC;
  --slthnc-bg:#F8FAFC;
  --slthnc-surface:#FFFFFF;
  --slthnc-success:#15803D;
  --slthnc-warning:#D97706;
  --slthnc-danger:#DC2626;
  --slthnc-radius:18px;
  --slthnc-shadow:0 12px 32px rgba(15,23,42,.08);
  max-width:1050px;
  margin:0 auto;
  color:var(--slthnc-text);
  font-family:inherit;
}

.slthnc-app * { box-sizing:border-box; }

.slthnc-card {
  background:var(--slthnc-surface);
  border:1px solid var(--slthnc-border);
  border-radius:var(--slthnc-radius);
  box-shadow:var(--slthnc-shadow);
  padding:24px;
  margin-bottom:20px;
}

.slthnc-hero { background:linear-gradient(180deg,#fff 0%,#f8fbff 100%); }

.slthnc-eyebrow {
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--slthnc-primary);
  margin-bottom:8px;
}

.slthnc-title {
  margin:0 0 8px;
  font-size:clamp(28px,4vw,42px);
  line-height:1.12;
}

.slthnc-subtitle,
.slthnc-section-head p,
.slthnc-note-block p,
.slthnc-helper {
  color:var(--slthnc-muted);
  line-height:1.65;
}

.slthnc-subtitle { margin:0 0 22px; font-size:17px; }

.slthnc-tabs {
  display:inline-flex;
  gap:6px;
  background:#EEF2F7;
  padding:5px;
  border-radius:12px;
  margin-bottom:22px;
}

.slthnc-tab {
  min-height:44px;
  border:0;
  background:transparent;
  color:#475569;
  border-radius:9px;
  padding:0 16px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.slthnc-tab.is-active {
  background:#fff;
  color:var(--slthnc-primary);
  box-shadow:0 2px 8px rgba(15,23,42,.08);
}

.slthnc-grid { display:grid; gap:16px; }
.slthnc-grid-2,.slthnc-grid-3 { grid-template-columns:1fr; }

.slthnc-field label {
  display:block;
  font-weight:700;
  margin-bottom:8px;
}

.slthnc-input,
.slthnc-select {
  width:100%;
  min-height:50px;
  border:1px solid #CBD5E1;
  border-radius:12px;
  background:#fff;
  color:var(--slthnc-text);
  padding:0 14px;
  font:inherit;
  font-size:16px;
}

.slthnc-input:focus,
.slthnc-select:focus,
.slthnc-btn:focus-visible,
.slthnc-tab:focus-visible,
.slthnc-chip:focus-visible {
  outline:3px solid rgba(37,99,235,.22);
  outline-offset:2px;
}

.slthnc-presets {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}

.slthnc-chip {
  min-height:38px;
  border:1px solid #CBD5E1;
  border-radius:999px;
  background:#fff;
  padding:0 13px;
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.slthnc-chip:hover { border-color:var(--slthnc-primary); color:var(--slthnc-primary); }

.slthnc-primary-result {
  text-align:center;
  border-radius:18px;
  background:#EFF6FF;
  border:1px solid #BFDBFE;
  padding:24px 18px;
  margin:22px 0;
}

.slthnc-primary-result > span {
  display:block;
  color:#475569;
  font-weight:700;
  margin-bottom:7px;
}

.slthnc-primary-result strong {
  font-size:clamp(44px,8vw,70px);
  line-height:1;
  color:var(--slthnc-primary);
}

.slthnc-primary-result div span {
  font-size:22px;
  font-weight:800;
}

.slthnc-primary-result p {
  color:#334155;
  margin:10px 0 0;
}

.slthnc-primary-result-compact { margin-bottom:0; }

.slthnc-status-row {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
  font-weight:700;
}

.slthnc-badge {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  border-radius:999px;
  padding:0 12px;
  background:#ECFDF5;
  color:var(--slthnc-success);
  font-size:13px;
  font-weight:800;
}

.slthnc-badge.is-sharp {
  background:#FFF7ED;
  color:#C2410C;
}

.slthnc-badge.is-flat {
  background:#EFF6FF;
  color:#1D4ED8;
}

.slthnc-meter-wrap { margin:18px 0 22px; }

.slthnc-meter-scale {
  display:flex;
  justify-content:space-between;
  color:var(--slthnc-muted);
  font-size:12px;
  margin-bottom:6px;
}

.slthnc-meter {
  position:relative;
  height:18px;
  border-radius:999px;
  background:linear-gradient(90deg,#DBEAFE 0%,#E2E8F0 50%,#FFEDD5 100%);
  overflow:hidden;
}

.slthnc-meter-center {
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:2px;
  background:#0F172A;
  transform:translateX(-1px);
}

.slthnc-meter-needle {
  position:absolute;
  top:1px;
  bottom:1px;
  left:50%;
  width:10px;
  border-radius:999px;
  background:var(--slthnc-primary);
  transform:translateX(-5px);
  transition:left .2s ease;
  box-shadow:0 0 0 2px rgba(255,255,255,.8);
}

.slthnc-meter-wrap p {
  text-align:center;
  margin:8px 0 0;
}

.slthnc-mini,
.slthnc-neighbor {
  border:1px solid var(--slthnc-border);
  border-radius:14px;
  padding:15px;
  background:#fff;
}

.slthnc-mini span,
.slthnc-neighbor span {
  display:block;
  color:var(--slthnc-muted);
  font-size:13px;
  font-weight:700;
  margin-bottom:6px;
}

.slthnc-mini strong,
.slthnc-neighbor strong { font-size:18px; }

.slthnc-neighbor small {
  display:block;
  color:var(--slthnc-muted);
  margin-top:4px;
}

.slthnc-neighbor-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:18px 0;
}

.slthnc-neighbor-current {
  background:#F8FBFF;
  border-color:#BFDBFE;
}

.slthnc-actions {
  display:flex;
  gap:12px;
  margin-top:20px;
  flex-wrap:wrap;
}

.slthnc-actions-end { justify-content:flex-end; }

.slthnc-btn {
  min-height:48px;
  border:0;
  border-radius:12px;
  padding:0 18px;
  font:inherit;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease;
}

.slthnc-btn:hover { transform:translateY(-1px); }

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

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

.slthnc-btn-secondary {
  background:#F1F5F9;
  color:#1E293B;
  border:1px solid #CBD5E1;
}

.slthnc-btn-small {
  min-height:40px;
  font-size:14px;
  padding:0 14px;
}

.slthnc-inline-message {
  min-height:22px;
  margin-top:14px;
  color:var(--slthnc-danger);
  font-weight:700;
}

.slthnc-section-head {
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}

.slthnc-section-head h3 { margin:0 0 6px; }

.slthnc-history-list {
  display:grid;
  gap:10px;
  margin-top:14px;
}

.slthnc-history-item {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  border:1px solid var(--slthnc-border);
  border-radius:12px;
  padding:13px 14px;
}

.slthnc-history-item small {
  display:block;
  color:var(--slthnc-muted);
  margin-top:2px;
}

.slthnc-history-item strong { white-space:nowrap; }

.slthnc-empty {
  color:var(--slthnc-muted);
  margin:0;
}

.slthnc-notes {
  display:grid;
  gap:18px;
}

.slthnc-note-block + .slthnc-note-block {
  border-top:1px solid var(--slthnc-border);
  padding-top:18px;
}

.slthnc-note-block h3 { margin:0 0 6px; }
.slthnc-note-block p { margin:0; }

[hidden] { display:none !important; }

@media (min-width:720px) {
  .slthnc-card { padding:30px; }
  .slthnc-grid-2 { grid-template-columns:repeat(2,1fr); }
  .slthnc-grid-3 { grid-template-columns:repeat(3,1fr); }
  .slthnc-neighbor-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width:620px) {
  .slthnc-section-head {
    flex-direction:column;
  }

  .slthnc-btn { width:100%; }
}

@media (prefers-reduced-motion:reduce) {
  .slthnc-btn,
  .slthnc-meter-needle {
    transition:none;
  }
}
