/* ============================================
   AKUSTIK-WELT TOOLS — LAB INSTRUMENT STYLE
   ============================================ */

/* --- TOOLS OVERVIEW PAGE --- */
.tools-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.5rem 6rem;
}

.tools-hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid #1A1A1A;
  margin-bottom: 4rem;
}

.tools-hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #FF6B4A;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.tools-hero h1 {
  font-family: 'Noto Serif', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.tools-hero-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  color: #999;
  max-width: 720px;
  line-height: 1.6;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1px;
  background: #1A1A1A;
  border-top: 1px solid #1A1A1A;
  border-bottom: 1px solid #1A1A1A;
}

.tool-card {
  display: block;
  background: #000;
  padding: 3rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  position: relative;
}

.tool-card:hover {
  background: #0D0D0D;
}

.tool-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.tool-card-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #FF6B4A;
  padding: 0.3rem 0.6rem;
  border: 1px solid #FF6B4A;
}

.tool-card-status-soon {
  color: #555;
  border-color: #1A1A1A;
}

.tool-card-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.1em;
}

.tool-card h2 {
  font-family: 'Noto Serif', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #FFF;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  border: none;
  padding: 0;
}

.tool-card p {
  font-family: 'Manrope', sans-serif;
  color: #999;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tool-card-footer {
  border-top: 1px solid #1A1A1A;
  padding-top: 1.5rem;
}

.tool-card-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #FF6B4A;
  text-transform: uppercase;
}

.tool-card-cta-soon {
  color: #555;
}

.tool-card-soon {
  cursor: not-allowed;
}

.tool-card-soon:hover {
  background: #000;
}

.tools-context {
  max-width: 720px;
  margin: 6rem auto 0;
}

.tools-context h3 {
  font-family: 'Noto Serif', serif;
  font-size: 1.6rem;
  color: #FFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.tools-context p {
  color: #999;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ============================================
   DEZIBEL-RECHNER — LAB INSTRUMENT
   ============================================ */

.tool-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.5rem 6rem;
}

.tool-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #1A1A1A;
}

.tool-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.tool-breadcrumb a {
  color: #999;
  text-decoration: none;
}

.tool-breadcrumb a:hover { color: #FFF; }

.tool-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.tool-status-led {
  width: 8px;
  height: 8px;
  background: #FF6B4A;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.tool-meta-divider {
  width: 1px;
  height: 12px;
  background: #1A1A1A;
}

.tool-hero h1 {
  font-family: 'Noto Serif', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.tool-hero-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  color: #BBB;
  max-width: 720px;
  line-height: 1.6;
}

/* --- QUICK PRESETS BAR --- */
.tool-presets-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid #1A1A1A;
}

.tool-presets-quick-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #555;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.quick-preset {
  background: transparent;
  color: #BBB;
  border: 1px solid #1A1A1A;
  padding: 0.6rem 1.2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-preset:hover {
  border-color: #FF6B4A;
  color: #FFF;
}

/* --- INSTRUMENT PANEL --- */
.tool-instrument {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  padding: 4rem 0;
  border-bottom: 1px solid #1A1A1A;
}

.tool-zone {
  padding: 0 2.5rem;
  border-right: 1px solid #1A1A1A;
}

.tool-zone:last-child {
  border-right: none;
}

.tool-zone-result {
  padding: 0 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tool-zone-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #FF6B4A;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* --- PRESET CHIPS --- */
.tool-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tool-presets button {
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  color: #BBB;
  padding: 0.5rem 0.8rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-presets button span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #555;
}

.tool-presets button:hover {
  background: #1A1A1A;
  color: #FFF;
  border-color: #FF6B4A;
}

.tool-presets button.active {
  background: rgba(255, 107, 74, 0.1);
  border-color: #FF6B4A;
  color: #FFF;
}

.tool-presets button.active span {
  color: #FF6B4A;
}

/* --- INPUT ROW --- */
.tool-input-row {
  display: flex;
  align-items: center;
  background: #0D0D0D;
  padding: 1rem 1.5rem;
  border: 1px solid #1A1A1A;
  margin-bottom: 1rem;
}

.tool-input-row input[type="number"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 500;
  color: #FFF;
  text-align: left;
  -moz-appearance: textfield;
  appearance: textfield;
  width: 100%;
  padding: 0;
}

.tool-input-row input[type="number"]::-webkit-outer-spin-button,
.tool-input-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tool-input-row input[type="number"]:focus {
  color: #FF6B4A;
}

.tool-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #555;
  margin-right: 1rem;
}

.step-btn {
  background: transparent;
  border: 1px solid #1A1A1A;
  color: #BBB;
  width: 32px;
  height: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-btn:hover {
  border-color: #FF6B4A;
  color: #FF6B4A;
}

.tool-input-row .step-btn:first-child {
  margin-right: 1rem;
}

.tool-input-row .step-btn:last-child {
  margin-left: 0;
}

/* --- VERTICAL BAR VISUALIZATION --- */
.tool-bar {
  height: 4px;
  background: #0D0D0D;
  position: relative;
  overflow: hidden;
}

.tool-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #FF6B4A 0%, #ff8a6e 100%);
  width: 0%;
  transition: width 0.2s ease-out;
}

/* --- RESULT ZONE --- */
.tool-equals {
  font-family: 'Noto Serif', serif;
  font-size: 4rem;
  color: #1A1A1A;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
}

.tool-result-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 500;
  color: #FF6B4A;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(255, 107, 74, 0.3);
}

.tool-result-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: #555;
  margin-top: 0.5rem;
  letter-spacing: 0.2em;
}

.tool-result-spectrum {
  width: 100%;
  height: 2px;
  background: #1A1A1A;
  margin-top: 2rem;
  position: relative;
}

.tool-result-spectrum-marker {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  background: #FF6B4A;
  left: 0%;
  transition: left 0.3s ease-out;
}

/* --- WAS BEDEUTET DAS PANEL --- */
.tool-meaning {
  padding: 4rem 0;
  border-bottom: 1px solid #1A1A1A;
  max-width: 720px;
}

.tool-meaning-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #FF6B4A;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.tool-meaning-equivalent {
  font-family: 'Noto Serif', serif;
  font-size: 1.8rem;
  color: #FFF;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.tool-meaning-assessment {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  color: #FF6B4A;
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.tool-meaning-consequence {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: #BBB;
  line-height: 1.6;
}

/* --- SPECTRUM AXIS --- */
.tool-spectrum-axis {
  padding: 4rem 0;
  border-bottom: 1px solid #1A1A1A;
}

.tool-spectrum-line {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, #1A1A1A 0%, #1A1A1A 60%, #FF6B4A60 75%, #FF6B4A 100%);
  margin-bottom: 1.5rem;
}

.tool-spectrum-pointer {
  position: absolute;
  top: -8px;
  width: 2px;
  height: 20px;
  background: #FFF;
  left: 0%;
  transition: left 0.3s ease-out;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.tool-spectrum-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.tool-spectrum-labels > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-spectrum-labels strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #FFF;
  margin-bottom: 0.2rem;
}

.tool-spectrum-labels span {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  color: #666;
}

/* --- FORMULA EXPANDABLE --- */
.tool-formula {
  padding: 3rem 0;
  border-bottom: 1px solid #1A1A1A;
  max-width: 720px;
}

.tool-formula summary {
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  list-style: none;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.tool-formula summary::-webkit-details-marker {
  display: none;
}

.tool-formula summary::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #FF6B4A;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.tool-formula[open] summary::before {
  content: '−';
}

.tool-formula summary:hover {
  color: #FFF;
}

.tool-formula p {
  color: #BBB;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1.5rem 0;
}

.tool-formula pre {
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.tool-formula code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #FF6B4A;
  background: transparent;
  padding: 0;
}

/* --- RELATED LINKS --- */
.tool-related {
  padding: 4rem 0;
}

.tool-related h3 {
  font-family: 'Noto Serif', serif;
  font-size: 1.6rem;
  color: #FFF;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.tool-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: #1A1A1A;
  border: 1px solid #1A1A1A;
}

.tool-related-grid a {
  background: #000;
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s;
}

.tool-related-grid a:hover {
  background: #0D0D0D;
}

.tool-related-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #FF6B4A;
  text-transform: uppercase;
}

.tool-related-title {
  font-family: 'Noto Serif', serif;
  font-size: 1.3rem;
  color: #FFF;
  letter-spacing: -0.01em;
}

/* ============================================
   FORM TOOLS (Nachhall, Bedarf, Finder)
   ============================================ */

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 4rem 0;
  border-bottom: 1px solid #1A1A1A;
}

.tool-form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tool-form-zone {
  padding: 0 2rem;
  border-right: 1px solid #1A1A1A;
}

.tool-form-zone:last-child {
  border-right: none;
}

.tool-form-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #1A1A1A;
}

.tool-form-row:last-child {
  border-bottom: none;
}

.tool-form-row > span {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: #999;
  letter-spacing: 0.05em;
  width: 90px;
  flex-shrink: 0;
}

.tool-form-row > span em {
  font-style: normal;
  color: #FF6B4A;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.tool-form-row input[type="number"] {
  flex: 1;
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 500;
  color: #FFF;
  text-align: right;
  padding: 0.6rem 0.8rem;
  -moz-appearance: textfield;
  appearance: textfield;
  width: 100%;
  min-width: 0;
}

.tool-form-row input[type="number"]::-webkit-outer-spin-button,
.tool-form-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tool-form-row input[type="number"]:focus {
  border-color: #FF6B4A;
  color: #FF6B4A;
}

.tool-form-row > em {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #555;
  font-style: normal;
  width: 24px;
}

.tool-form-row select {
  flex: 1;
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  outline: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: #FFF;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%3E%3Cpath%20fill%3D%22%23FF6B4A%22%20d%3D%22M0%200h10L5%206z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

.tool-form-row select:focus {
  border-color: #FF6B4A;
}

.tool-form-slider {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.tool-form-slider > span {
  width: auto;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.tool-form-slider input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #1A1A1A;
  outline: none;
  cursor: pointer;
}

.tool-form-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #FF6B4A;
  cursor: pointer;
}

.tool-form-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #FF6B4A;
  border: none;
  cursor: pointer;
}

.tool-form-select-big {
  width: 100%;
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  outline: none;
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  color: #FFF;
  padding: 1.2rem 1rem;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20fill%3D%22%23FF6B4A%22%20d%3D%22M0%200h12L6%208z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  margin-top: 0.5rem;
}

.tool-form-select-big:focus {
  border-color: #FF6B4A;
}

/* --- RESULT PANEL (Nachhall, Bedarf) --- */
.tool-result-panel {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0;
  padding: 4rem 0;
  border-bottom: 1px solid #1A1A1A;
}

.tool-result-panel-finder {
  grid-template-columns: 1fr;
}

.tool-result-block {
  padding: 0 2.5rem;
  border-right: 1px solid #1A1A1A;
  text-align: center;
}

.tool-result-block:last-child {
  border-right: none;
}

.tool-result-block-main {
  padding: 0 3rem;
}

.tool-result-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  color: #FFF;
  line-height: 1;
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.tool-result-big em {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.4em;
  color: #555;
  font-style: normal;
  margin-left: 0.4rem;
  letter-spacing: 0.1em;
}

.tool-result-big-coral {
  color: #FF6B4A;
  text-shadow: 0 0 50px rgba(255, 107, 74, 0.3);
}

.tool-result-big-coral em {
  color: #555;
}

.tool-result-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.8rem;
}

.tool-result-meta strong {
  color: #FFF;
  font-family: 'JetBrains Mono', monospace;
}

.tool-status-value {
  font-family: 'Noto Serif', serif;
  font-size: 1.6rem;
  color: #FFF;
  margin-top: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tool-status-value.ok {
  color: #4ade80;
}

.tool-status-value.warn {
  color: #FF6B4A;
}

/* --- BOM (Material-Liste) --- */
.tool-bom {
  padding: 4rem 0;
  border-bottom: 1px solid #1A1A1A;
}

.tool-bom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #1A1A1A;
  border: 1px solid #1A1A1A;
  margin-top: 1.5rem;
}

.tool-bom-grid > div {
  background: #000;
  padding: 2rem;
}

.tool-bom-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #FF6B4A;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.tool-bom-value {
  font-family: 'Noto Serif', serif;
  font-size: 1.5rem;
  color: #FFF;
  letter-spacing: -0.01em;
}

/* ============================================
   FORM HINTS
   ============================================ */
.tool-form-hint {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
  margin-top: 1rem;
}

.tool-form-hint sub {
  font-size: 0.7em;
}

/* ============================================
   MATERIALIEN-TABELLE
   ============================================ */
.mat-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #1A1A1A;
}

.mat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mat-filter {
  background: transparent;
  border: 1px solid #1A1A1A;
  color: #999;
  padding: 0.6rem 1.2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.mat-filter:hover {
  border-color: #FF6B4A;
  color: #FFF;
}

.mat-filter.active {
  background: rgba(255, 107, 74, 0.1);
  border-color: #FF6B4A;
  color: #FF6B4A;
}

.mat-search-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mat-search-wrap input {
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  outline: none;
  color: #FFF;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  width: 280px;
}

.mat-search-wrap input:focus {
  border-color: #FF6B4A;
}

.mat-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 0.05em;
}

.mat-count strong {
  color: #FF6B4A;
}

.mat-table-wrap {
  padding: 2rem 0 4rem;
  border-bottom: 1px solid #1A1A1A;
  overflow-x: auto;
}

.mat-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Manrope', sans-serif;
}

.mat-table thead th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #FF6B4A;
  padding: 1rem 0.8rem;
  border-bottom: 1px solid #1A1A1A;
  cursor: pointer;
  text-transform: uppercase;
  user-select: none;
  position: relative;
  white-space: nowrap;
}

.mat-table thead th:hover {
  color: #FFF;
}

.mat-sort.sort-asc::after {
  content: ' ▲';
  color: #FF6B4A;
}

.mat-sort.sort-desc::after {
  content: ' ▼';
  color: #FF6B4A;
}

.mat-table tbody tr {
  border-bottom: 1px solid #0F0F0F;
  transition: background 0.15s;
}

.mat-table tbody tr:hover {
  background: #0D0D0D;
}

.mat-table td {
  padding: 1rem 0.8rem;
  vertical-align: top;
  font-size: 0.9rem;
  color: #BBB;
}

.mat-name {
  min-width: 220px;
}

.mat-name strong {
  display: block;
  color: #FFF;
  font-family: 'Noto Serif', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.mat-name .mat-use {
  display: block;
  font-size: 0.78rem;
  color: #666;
}

.mat-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.mat-tag-absorber {
  background: rgba(123, 163, 201, 0.1);
  color: #7BA3C9;
  border: 1px solid #7BA3C9;
}

.mat-tag-daemmung {
  background: rgba(255, 107, 74, 0.1);
  color: #FF6B4A;
  border: 1px solid #FF6B4A;
}

.mat-tag-hybrid {
  background: rgba(180, 180, 180, 0.1);
  color: #BBB;
  border: 1px solid #555;
}

.mat-nrc, .mat-rw, .mat-brand, .mat-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: #FFF;
  white-space: nowrap;
}

/* ============================================
   TRIAGE-RESULT
   ============================================ */
.triage-result {
  padding: 4rem 0;
  border-bottom: 1px solid #1A1A1A;
}

.triage-diagnose {
  margin-bottom: 4rem;
}

.triage-diagnose h2 {
  font-family: 'Noto Serif', serif;
  font-size: 2.5rem;
  color: #FFF;
  margin: 1rem 0;
  letter-spacing: -0.02em;
  border: none;
  padding: 0;
}

.triage-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  color: #BBB;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 2rem;
}

.triage-warning {
  background: rgba(255, 107, 74, 0.08);
  border-left: 3px solid #FF6B4A;
  padding: 1.2rem 1.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: #FFF;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.triage-warning strong {
  color: #FF6B4A;
}

.triage-intensity-note {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: #999;
  font-style: italic;
  max-width: 720px;
}

.triage-solutions {
  margin-top: 3rem;
}

.tool-related-grid-item {
  background: #000;
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s;
  border: 1px solid #1A1A1A;
}

.tool-related-grid-item:hover {
  background: #0D0D0D;
}

.tool-related-grid-item .tool-related-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #FF6B4A;
  text-transform: uppercase;
}

.tool-related-grid-item .tool-related-title {
  font-family: 'Noto Serif', serif;
  font-size: 1.3rem;
  color: #FFF;
  letter-spacing: -0.01em;
  margin: 0.3rem 0;
}

.tool-related-grid-item .tool-related-why {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .mat-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .mat-search-wrap input {
    width: 100%;
  }
  .mat-table thead th {
    font-size: 0.65rem;
    padding: 0.8rem 0.5rem;
  }
  .mat-table td {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }
  .mat-name {
    min-width: 160px;
  }
  .triage-diagnose h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 900px) {
  .tool-form-grid,
  .tool-form-grid-2 {
    grid-template-columns: 1fr;
  }
  .tool-form-zone {
    padding: 2rem 1rem;
    border-right: none;
    border-bottom: 1px solid #1A1A1A;
  }
  .tool-result-panel {
    grid-template-columns: 1fr;
  }
  .tool-result-block {
    padding: 2rem 1rem;
    border-right: none;
    border-bottom: 1px solid #1A1A1A;
  }
  .tool-bom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .tool-instrument {
    grid-template-columns: 1fr;
  }
  .tool-zone {
    padding: 2rem 1rem;
    border-right: none;
    border-bottom: 1px solid #1A1A1A;
  }
  .tool-zone-result {
    padding: 3rem 1rem;
    order: -1;
  }
  .tool-spectrum-labels {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tool-input-row input[type="number"] {
    font-size: 2rem;
  }
  .tool-presets button {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
}
