/* Vibration Severity Checker — tool-specific overrides only. Pure calculator + data table (no mic/audio). */

.vsc-warn-note {
  max-width: 820px; margin: var(--space-md) auto 0;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border); border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-sm); background: rgba(0, 255, 65, 0.04);
  color: var(--color-text-dim); font-size: 0.9rem; line-height: 1.55; text-align: left;
}
.vsc-warn-note strong { color: var(--color-text); }

/* ---- Controls ---- */
.vsc-controls { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: flex-end; }
.vsc-field { flex: 1 1 180px; min-width: 150px; }
.vsc-field--cls { flex: 1 1 100%; }
.vsc-select, .vsc-num {
  width: 100%; margin-top: 6px; padding: 10px 12px; background: var(--color-bg); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.95rem;
}
.vsc-select:focus, .vsc-num:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.18); }
.vsc-num--driver { border-color: var(--color-secondary); box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35); }
.vsc-class-desc { margin-top: 6px; font-size: 0.8rem; color: var(--color-text-dim); line-height: 1.45; }

/* ---- Verdict + gauge ---- */
.vsc-verdict {
  text-align: center; font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.9rem; color: var(--color-text-dim); margin: var(--space-lg) 0 var(--space-md);
}
.vsc-verdict--a { color: #00ff41; text-shadow: 0 0 12px rgba(0, 255, 65, 0.5); }
.vsc-verdict--b { color: #9bff5a; text-shadow: 0 0 10px rgba(155, 255, 90, 0.4); }
.vsc-verdict--c { color: #ffb43c; text-shadow: 0 0 10px rgba(255, 180, 60, 0.4); }
.vsc-verdict--d { color: #ff4d4d; text-shadow: 0 0 12px rgba(255, 77, 77, 0.5); }

.vsc-gaugewrap { margin-bottom: var(--space-xl); }
.vsc-gauge {
  position: relative; display: flex; width: 100%; height: 42px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden;
}
.vsc-gauge__seg { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.vsc-gauge__seg--a { background: rgba(0, 255, 65, 0.30); }
.vsc-gauge__seg--b { background: rgba(155, 255, 90, 0.25); }
.vsc-gauge__seg--c { background: rgba(255, 180, 60, 0.28); }
.vsc-gauge__seg--d { background: rgba(255, 77, 77, 0.30); }
.vsc-gauge__segtxt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-text-bright); opacity: 0.85; }
.vsc-gauge__marker {
  position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px;
  background: #e6edf3; box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); z-index: 2;
}
.vsc-gauge__marker::after {
  content: '▼'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; color: #e6edf3;
}
.vsc-gauge-labels { position: relative; height: 18px; margin-top: 6px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-text-dim); }
.vsc-gauge__lab { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.vsc-gauge__lab--end { position: static; float: right; transform: none; color: var(--color-text-muted); }

/* ---- Result cells ---- */
.vsc-results, .vsc-cout { display: flex; flex-direction: column; gap: 8px; }
.vsc-cout { margin-top: var(--space-md); }
.vsc-cell { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 255, 65, 0.02); }
.vsc-cell__label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-dim); }
.vsc-cell__val { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 1.05rem; color: var(--color-primary); }
.vsc-cell__note { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--color-text-dim); line-height: 1.45; }

.vsc-warn { margin-top: var(--space-md); display: flex; flex-direction: column; gap: 6px; }
.vsc-warnline { padding: 8px 12px; border: 1px solid rgba(255, 180, 60, 0.35); border-left: 4px solid #ffb43c; border-radius: var(--radius-sm); background: rgba(255, 180, 60, 0.06); color: #ffd9a0; font-size: 0.82rem; line-height: 1.5; }

/* ---- Converter block ---- */
.vsc-sub { font-size: 1.05rem; margin: var(--space-xl) 0 var(--space-xs); color: var(--color-text-bright); }
.vsc-subnote { font-size: 0.82rem; color: var(--color-text-dim); margin-bottom: var(--space-md); line-height: 1.45; }

/* ---- Reference table ---- */
.vsc-tablewrap { margin-top: var(--space-lg); overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.vsc-table { min-width: 640px; display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 0.82rem; }
.vsc-trow { display: grid; grid-template-columns: 2.2fr 1fr 1.2fr 1.4fr 1.2fr; }
.vsc-trow:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.vsc-trow--head { background: rgba(0, 255, 65, 0.08); color: var(--color-primary); font-weight: 600; }
.vsc-tcell { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--color-border); color: var(--color-text); }
.vsc-tcell--name { text-align: left; color: var(--color-text-bright); }
.vsc-tcell--za { color: #00ff41; }
.vsc-tcell--zb { color: #9bff5a; }
.vsc-tcell--zc { color: #ffb43c; }
.vsc-tcell--zd { color: #ff4d4d; }
.vsc-tnote { padding: 8px 10px; font-size: 0.74rem; color: var(--color-text-dim); line-height: 1.5; }

@media (max-width: 560px) {
  .vsc-verdict { font-size: 1.5rem; }
}
