@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/**
 * 3D Seed Processing Plant — 3D Tohum İşleme ve Paketleme Tesisi Konfigüratörü
 * Güncel Site 42 Kurumsal Tasarım Sistemi (DM Sans, #11243a, #0c2033, #155b3b, #2b8051, #b99a4b, #f7f9fb)
 */
:root {
  /* Güncel Site 42 Ana Site Değişkenleri */
  --ink: #11243a;
  --navy: #0c2033;
  --green: #155b3b;
  --green2: #2b8051;
  --gold: #b99a4b;
  --muted: #66798c;
  --line: #e1e9ee;
  --bg: #f7f9fb;
  --pale: #edf7f1;
  --shadow: 0 10px 30px #10263c0b;

  /* 3D Tesis Konfigüratörü Semantik Renk Eşleştirmeleri (Güncel Site 42 ile Birebir Uyumlu) */
  --brand-pine-dark: #155b3b;
  --brand-leaf-green: #1f6b47;
  --brand-gold-seed: #b99a4b;
  --brand-gold-light: #edd38c;
  --brand-emerald-band: #2b8051;
  --brand-logo-text: #11243a;

  --ui-bg: #f7f9fb;
  --card-bg: #ffffff;
  --panel-alt: #eff4f7;
  --border-color: #e1e9ee;
  --border-strong: #d3dee6;
  --heading-navy: #11243a;
  --dark-navy: #0c2033;
  --text-body: #243b53;
  --text-muted: #66798c;
  --mint-box: #edf7f1;
  --mint-border: #bfe3ce;
  --gold-tint: #fdf8eb;

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 14px;
}

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

html {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ui-bg);
  color: var(--text-body);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ui-bg);
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ============================================================================
   ANA SİTE ÜST MENÜ BARI (.header) — GÜNCEL SİTE 42 İLE BİREBİR AYNI KALIP
   ============================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid #e4ebef;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.header > .wrap.header-row {
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  min-height: 88px;
  margin-inline: auto;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.header .brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 272px;
  flex-shrink: 0;
  width: 272px;
  min-width: 272px;
  max-width: 272px;
  max-height: 74px;
  text-decoration: none;
}

.header .brand-logo {
  display: block;
  width: 272px;
  min-width: 272px;
  max-width: 272px;
  height: auto;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}

html[dir="rtl"] .header .brand-logo {
  object-position: right center;
}

.header .mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #13263d;
  font-size: 20px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  margin-left: auto;
  margin-right: clamp(14px, 1.8vw, 24px);
  padding-left: clamp(12px, 1.5vw, 24px);
  gap: clamp(12px, 1.35vw, 20px);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

html[dir="rtl"] .header .nav {
  margin-left: clamp(14px, 1.8vw, 24px);
  margin-right: auto;
  padding-left: 0;
  padding-right: clamp(12px, 1.5vw, 24px);
}

.header .nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header .nav a:hover {
  color: var(--green);
}

.header .mobile-language-picker {
  display: none;
}

.header .header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.header .header-3d-plant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  height: auto;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  flex-shrink: 0;
  box-shadow: 0 7px 18px #07835220;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header .header-3d-plant-btn:hover {
  background: #05663f;
  transform: translateY(-1px);
  color: #ffffff;
}

.header .header-3d-plant-btn .icon-3d-cube {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #ffffff;
  stroke: #ffffff;
}

.header .header-3d-plant-btn .badge-3d-short {
  display: none;
}

.header .header-3d-plant-btn .label-3d-plant {
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.header .language-picker {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  padding: 0 8px;
  color: #617184;
}

.header .language-picker select {
  border: 0;
  padding: 9px 0;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  max-width: 82px;
  cursor: pointer;
  outline: none;
}

.header .btn.primary {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 7px 18px #07835220;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header .btn.primary:hover {
  background: #05663f;
  transform: translateY(-1px);
}

.workbench-layout h1,
.workbench-layout h2,
.workbench-layout h3,
.workbench-layout h4,
.modal-backdrop h1,
.modal-backdrop h2,
.modal-backdrop h3,
.modal-backdrop h4 {
  margin: 0;
}

/* ============================================================================
   ANA SİTE ÜST MENÜ BARI (.header) ALTINDAKİ KURUMSAL BREADCRUMB & AKSİYON SATIRI
   ============================================================================ */
.plant-crumb-bar {
  max-width: 1760px;
  width: 100%;
  margin-inline: auto;
  padding: 0.65rem 1.25rem 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.plant-crumb-left {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plant-crumb-sep {
  color: #94a3b8;
  font-weight: 700;
}

.plant-crumb-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--heading-navy);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

/* Ana Siteye Dön Butonu (Dil Duyarlı) */
.back-to-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.34rem 0.68rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: #ffffff;
  color: var(--brand-pine-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(16, 38, 60, 0.04);
  transition: all 0.15s ease;
}

.back-to-site-btn:hover {
  background-color: var(--mint-box);
  border-color: var(--brand-pine-dark);
  color: var(--brand-pine-dark);
}

.back-to-site-btn .back-arrow-icon {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.back-to-site-btn:hover .back-arrow-icon {
  transform: translateX(-2px);
}

html[dir="rtl"] .back-to-site-btn .back-arrow-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .back-to-site-btn:hover .back-arrow-icon {
  transform: scaleX(-1) translateX(-2px);
}

.quote-cta-btn {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  border: 1px solid var(--brand-pine-dark);
  border-inline-start: 4px solid var(--brand-gold-seed);
  border-radius: var(--radius-sm);
  padding: 0.44rem 0.92rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 6px 16px rgba(21, 91, 59, 0.15);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.quote-cta-btn:hover {
  background-color: var(--brand-emerald-band);
  transform: translateY(-1px);
}

/* Mükerrer üst 6'lı siyah telemetri barı gizlendi (3D sahnenin hemen altındaki şerit aktif) */
.telemetry-bar {
  display: none !important;
}

.telemetry-inner {
  max-width: 1760px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.telemetry-cell {
  padding: 0.45rem 1rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.telemetry-cell:last-child {
  border-inline-end: none;
  background-color: var(--brand-pine-dark);
  border-inline-start: 3px solid var(--brand-gold-seed);
}

.telemetry-lbl {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  margin-bottom: 0.12rem;
}

.telemetry-cell:last-child .telemetry-lbl {
  color: var(--brand-gold-light);
}

.telemetry-val {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.83rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

/* ANA ÇALIŞMA TEZGAHI (SOL KONSOL + SAĞ 3D CAD SAHNESİ) */
.workbench-layout {
  max-width: 1760px;
  width: 100%;
  margin-inline: auto;
  padding: 0.9rem 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

/* SOL MÜHENDİSLİK KONSOLU (MİNİMAL & YÜKSEK YOĞUNLUKLU MİMARİ) */
.engineering-console {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

/* EN ÜST SABİT PANEL: HEDEF İŞLEME KAPASİTESİ VE HAZIR TESİS SEVİYESİ */
.console-top-deck {
  background-color: #ffffff;
  border-bottom: 2px solid var(--brand-pine-dark);
  padding: 0.72rem 0.85rem 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.top-deck-capacity {
  background-color: var(--ui-bg);
  border: 1px solid var(--border-color);
  border-inline-start: 3px solid var(--brand-pine-dark);
  border-radius: var(--radius-xs);
  padding: 0.48rem 0.62rem;
}

.cap-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.cap-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
}

.top-deck-presets {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.preset-header-inline {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.preset-segmented-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.28rem;
}

.preset-seg-btn {
  background-color: var(--ui-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.36rem 0.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font-size: 0.71rem;
  font-weight: 800;
  color: var(--heading-navy);
  transition: all 0.12s ease;
}

.preset-seg-btn:hover {
  border-color: var(--brand-emerald-band);
  background-color: var(--mint-box);
}

.preset-seg-btn.active {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  border-color: var(--brand-pine-dark);
}

.preset-seg-idx {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.62rem;
  color: var(--brand-emerald-band);
}

.preset-seg-btn.active .preset-seg-idx {
  color: var(--brand-gold-light);
}

.preset-active-caption {
  font-size: 0.67rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-active-caption strong {
  color: var(--brand-pine-dark);
}

.console-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: var(--panel-alt);
  border-bottom: 1px solid var(--border-strong);
}

.console-tab-btn {
  border: none;
  border-inline-end: 1px solid var(--border-color);
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 0.48rem 0.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  transition: all 0.14s ease;
}

.console-tab-btn:last-child {
  border-inline-end: none;
}

.console-tab-btn:hover {
  background-color: #ffffff;
}

.console-tab-btn.active {
  background-color: #ffffff;
  border-bottom-color: var(--brand-pine-dark);
}

.c-tab-idx {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--brand-emerald-band);
}

.console-tab-btn.active .c-tab-idx {
  color: var(--brand-gold-seed);
  background-color: var(--brand-pine-dark);
  padding: 0.04rem 0.32rem;
  border-radius: 2px;
}

.c-tab-lbl {
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--heading-navy);
}

.console-pane {
  display: none;
  padding: 0.78rem 0.85rem;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
}

.console-pane.active {
  display: block;
}

.console-block {
  margin-bottom: 0.68rem;
  padding-bottom: 0.68rem;
  border-bottom: 1px solid var(--border-color);
}

.console-block.compact-block {
  margin-bottom: 0.58rem;
  padding-bottom: 0.58rem;
}

.block-head {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.42rem;
}

.block-code {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--brand-emerald-band);
  letter-spacing: 0.04em;
}

.block-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--heading-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Kategori Açılır Seçici + Anlık Arama + Geniş 2 Sütunlu Tohum Listesi */
.crop-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 0.55rem;
}

.category-select-dropdown {
  width: 100%;
  padding: 0.48rem 0.65rem;
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--heading-navy);
  background-color: #ffffff;
  border: 1.5px solid var(--brand-pine-dark);
  border-radius: var(--radius-xs);
  cursor: pointer;
  outline: none;
}

.category-select-dropdown:focus {
  box-shadow: 0 0 0 2px rgba(7, 59, 43, 0.14);
}

.crop-search-input {
  width: 100%;
  padding: 0.44rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--heading-navy);
  background-color: var(--ui-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.crop-search-input:focus {
  border-color: var(--brand-pine-dark);
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(7, 59, 43, 0.12);
}

.crop-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.38rem;
}

.crop-list-count-lbl {
  font-size: 0.71rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.crop-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.36rem;
  margin-bottom: 0.65rem;
  max-height: 340px;
  overflow-y: auto;
  padding-inline-end: 0.2rem;
}

.crop-pill-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.46rem 0.58rem;
  cursor: pointer;
  text-align: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  transition: all 0.12s ease;
}

.crop-pill-btn:hover {
  border-color: var(--brand-emerald-band);
  background-color: var(--mint-box);
}

.crop-pill-btn.active {
  background-color: var(--mint-box);
  border-color: var(--brand-pine-dark);
  border-inline-start: 3px solid var(--brand-pine-dark);
}

.crop-pill-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--heading-navy);
  line-height: 1.25;
}

.crop-seed-bar {
  width: 4px;
  height: 14px;
  border-radius: 1px;
  flex-shrink: 0;
}

/* Açılır/Kapanır Ürüne Özel Teknik Not Akordeonu */
.tech-note-accordion {
  border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--brand-gold-seed);
  border-radius: var(--radius-xs);
  background-color: var(--ui-bg);
  overflow: hidden;
}

.tech-note-summary {
  list-style: none;
  padding: 0.38rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand-pine-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.tech-note-summary::-webkit-details-marker {
  display: none;
}

.summary-chevron {
  font-size: 0.72rem;
  transition: transform 0.15s ease;
}

.tech-note-accordion[open] .summary-chevron {
  transform: rotate(180deg);
}

.tech-note-callout {
  border-top: 1px solid var(--border-color);
  padding: 0.48rem 0.58rem;
  background-color: #ffffff;
}

.tech-note-callout .rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.22rem;
}

.tech-note-callout .rule-crop-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-pine-dark);
}

.tech-note-callout .rule-density-badge {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.06rem 0.36rem;
  border-radius: 2px;
  white-space: nowrap;
}

.tech-note-callout .rule-text {
  font-size: 0.7rem;
  color: var(--text-body);
  line-height: 1.38;
}

/* Hassas Kapasite Modülü (- / + Stepper + Slider) */
.cap-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  background-color: #ffffff;
  border-radius: var(--radius-xs);
  gap: 0.25rem;
}

.cap-step-btn {
  border: none;
  background-color: var(--panel-alt);
  color: var(--heading-navy);
  width: 26px;
  height: 24px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.cap-step-btn:hover {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
}

.cap-readout {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-pine-dark);
  padding-inline: 0.35rem;
  white-space: nowrap;
}

.capacity-slider {
  width: 100%;
  accent-color: var(--brand-pine-dark);
  height: 5px;
  cursor: pointer;
}

.capacity-minmax {
  display: flex;
  justify-content: space-between;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.14rem;
}

/* 3 Hazır Tesis Seviyesi Plakaları */
.preset-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.preset-card-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-inline-start: 4px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  text-align: start;
  transition: all 0.14s ease;
}

.preset-card-btn:hover {
  border-color: var(--brand-emerald-band);
  border-inline-start-color: var(--brand-emerald-band);
}

.preset-card-btn.active {
  background-color: var(--mint-box);
  border-color: var(--brand-pine-dark);
  border-inline-start-color: var(--brand-pine-dark);
}

.preset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.18rem;
}

.preset-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--heading-navy);
}

.preset-badge {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  background-color: var(--brand-gold-seed);
  color: var(--heading-navy);
  font-size: 0.63rem;
  font-weight: 800;
  padding: 0.08rem 0.38rem;
  border-radius: 2px;
  text-transform: uppercase;
}

.preset-desc {
  font-size: 0.71rem;
  color: var(--text-body);
  line-height: 1.34;
}

/* Bina Yerleşim Planı (6 Mühendislik Modeli) */
.layout-blueprint-grid {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.layout-option-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.56rem 0.68rem;
  cursor: pointer;
  text-align: start;
  transition: all 0.14s ease;
}

.layout-option-btn:hover {
  border-color: var(--brand-emerald-band);
  border-inline-start-color: var(--brand-emerald-band);
}

.layout-option-btn.active {
  background-color: var(--mint-box);
  border-color: var(--brand-pine-dark);
  border-inline-start: 3px solid var(--brand-pine-dark);
}

.layout-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.16rem;
}

.layout-option-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--heading-navy);
}

.layout-opt-badge {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  font-size: 0.61rem;
  font-weight: 800;
  padding: 0.08rem 0.36rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.layout-option-btn.active .layout-opt-badge {
  background-color: var(--brand-gold-seed);
  color: var(--heading-navy);
}

.layout-option-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Makine Varyasyon Seçicileri ve Endüstriyel Anahtarlar */
.spec-field {
  margin-bottom: 0.68rem;
}

.spec-field-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--heading-navy);
  margin-bottom: 0.25rem;
}

.spec-select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--heading-navy);
  background-color: var(--ui-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.spec-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.18rem;
}

.industrial-switch-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.module-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.12s ease;
}

.module-toggle-item:hover {
  border-color: var(--brand-leaf-green);
}

.module-toggle-item.checked {
  background-color: var(--mint-box);
  border-color: var(--brand-emerald-band);
}

.module-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.module-toggle-left input[type='checkbox'] {
  width: 14px;
  height: 14px;
  accent-color: var(--brand-pine-dark);
  cursor: pointer;
}

.module-toggle-name {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--heading-navy);
}

.module-kw-tag {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-pine-dark);
  background-color: var(--panel-alt);
  padding: 0.08rem 0.35rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* 5 Paketleme Seçeneği */
.packaging-stack {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.packaging-radio-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background-color: #ffffff;
  cursor: pointer;
  text-align: start;
}

.packaging-radio-btn.active {
  background-color: var(--mint-box);
  border-color: var(--brand-pine-dark);
  border-inline-start: 4px solid var(--brand-pine-dark);
}

.packaging-radio-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--brand-pine-dark);
  margin-top: 0.14rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.packaging-radio-btn.active .packaging-radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--brand-pine-dark);
}

.packaging-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--heading-navy);
}

.packaging-desc {
  font-size: 0.69rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* SAĞ BÖLÜM: 3D CAD SAHNE ÇERÇEVESİ VE PFD AKIŞ ŞEMASI */
.viewport-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cad-stage-frame {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cad-stage-topbar {
  padding: 0.52rem 0.95rem;
  background-color: var(--panel-alt);
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cad-status-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cad-status-tag {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.71rem;
  font-weight: 800;
  padding: 0.22rem 0.58rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
}

.cad-status-tag.primary {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
}

.cad-status-tag.secondary {
  background-color: var(--brand-gold-seed);
  color: var(--heading-navy);
}

.cad-instruction-text {
  font-size: 0.72rem;
  color: var(--text-body);
}

.cad-view-actions {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
}

.cad-action-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--heading-navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.62rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.14s ease;
}

.cad-action-btn:hover {
  border-color: var(--brand-pine-dark);
  background-color: var(--mint-box);
}

.cad-action-btn.active {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  border-color: var(--brand-pine-dark);
}

/* 3D MODELLEME PENCERESİ VE ÜST SOL 6 MODEL BİNA YERLEŞİM HUD BARI */
.canvas-stage-wrap {
  position: relative;
  width: 100%;
}

.canvas-hud-top-left {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.hud-layout-bar {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--brand-pine-dark);
  border-radius: var(--radius-xs);
  padding: 0.26rem 0.42rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  flex-wrap: wrap;
}

.hud-layout-title {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--brand-pine-dark);
  letter-spacing: 0.04em;
  padding-inline: 0.22rem;
  text-transform: uppercase;
}

.hud-layout-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  flex-wrap: wrap;
}

.hud-layout-pill {
  background-color: var(--ui-bg);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 0.22rem 0.46rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--heading-navy);
  transition: all 0.12s ease;
}

.hud-layout-pill:hover {
  border-color: var(--brand-emerald-band);
  background-color: var(--mint-box);
}

.hud-layout-pill.active {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  border-color: var(--brand-pine-dark);
}

.hud-pill-idx {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--brand-emerald-band);
}

.hud-layout-pill.active .hud-pill-idx {
  color: var(--brand-gold-light);
}

.hud-layout-tooltip {
  pointer-events: auto;
  display: none;
  background-color: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  border: 1px solid var(--brand-gold-seed);
  border-inline-start: 3px solid var(--brand-gold-seed);
  border-radius: var(--radius-xs);
  padding: 0.44rem 0.62rem;
  font-size: 0.7rem;
  line-height: 1.38;
  max-width: 520px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.hud-layout-tooltip.visible {
  display: block;
}

.hud-tip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.22rem;
}

.hud-tip-title-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.hud-tip-close-btn {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(237, 211, 140, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hud-tip-close-btn:hover {
  background: rgba(237, 211, 140, 0.24);
  border-color: var(--brand-gold-light);
}

.hud-tip-desc {
  color: #e2e8f0;
  font-size: 0.68rem;
  line-height: 1.36;
}

.hud-layout-tooltip strong {
  color: var(--brand-gold-light);
}

.hud-tip-badge {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  border: 1px solid rgba(230, 197, 106, 0.4);
  font-size: 0.6rem;
  padding: 0.04rem 0.32rem;
  border-radius: 2px;
}

/* SAĞ ALT MİNİMAL 3D DURUM VE GÖRÜNÜM KONTROL HUD BARI (TEK SATIR) */
.canvas-hud-bottom-right {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.24rem 0.36rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  flex-wrap: wrap;
}

.hud-br-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hud-br-tag {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.63rem;
  font-weight: 800;
  padding: 0.16rem 0.42rem;
  border-radius: 2px;
  white-space: nowrap;
}

.hud-br-tag.primary {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
}

.hud-br-tag.secondary {
  background-color: var(--brand-gold-seed);
  color: var(--heading-navy);
}

.hud-br-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.hud-br-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--heading-navy);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.16rem 0.46rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.hud-br-btn:hover {
  border-color: var(--brand-pine-dark);
  background-color: var(--mint-box);
}

.hud-br-btn.active {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  border-color: var(--brand-pine-dark);
}

/* AKIŞ ŞEMASI ÜSTÜ: SOLDAN SAĞA TEK SATIR FİZİBİLİTE VE MÜHENDİSLİK ŞERİDİ */
.stage-singleline-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
  background-color: var(--dark-navy);
  border-top: 1px solid #163049;
  border-bottom: 1px solid #163049;
  padding: 0;
  scrollbar-width: thin;
}

.stage-metric-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.36rem 0.65rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  flex: 1 1 auto;
  justify-content: center;
}

.stage-metric-inline:last-child {
  border-inline-end: none;
}

.stage-metric-inline .sm-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.stage-metric-inline .sm-val {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
}

.stage-metric-inline.highlight {
  background-color: var(--brand-pine-dark);
  border-inline-start: 2px solid var(--brand-gold-seed);
}

.stage-metric-inline.highlight .sm-lbl {
  color: var(--brand-gold-light);
}

.stage-metric-inline.highlight .sm-val {
  color: #ffffff;
}

/* SAF BEYAZ (#FFFFFF) 3D KANVAS */
.canvas-viewport {
  width: 100%;
  height: 560px;
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
  cursor: grab;
}

.canvas-viewport:active {
  cursor: grabbing;
}

/* 3D Makine Üzeri Teknik Etiketler ([01] Makine [i]) */
.scene-markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}

.machine-3d-marker {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  background-color: rgba(12, 32, 51, 0.94);
  color: #ffffff;
  border: 1.5px solid var(--brand-gold-seed);
  border-radius: var(--radius-xs);
  padding: 0;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(12, 32, 51, 0.24);
  white-space: nowrap;
  user-select: none;
  z-index: 18;
  transition: box-shadow 0.14s ease, border-color 0.14s ease;
}

.machine-3d-marker::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--brand-gold-seed);
}

.machine-3d-marker .m-num {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  padding: 0.18rem 0.38rem;
  font-size: 0.68rem;
  font-weight: 800;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.18);
  border-start-start-radius: 2px;
  border-end-start-radius: 2px;
}

.machine-3d-marker .m-label {
  display: none;
  padding: 0.18rem 0.55rem;
  background-color: var(--brand-pine-dark);
  color: #ffffff;
}

.machine-3d-marker .m-info-icon {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 800;
  background-color: var(--brand-gold-seed);
  color: var(--heading-navy);
  padding: 0.18rem 0.36rem;
  font-size: 0.72rem;
  border-start-end-radius: 2px;
  border-end-end-radius: 2px;
}

.machine-3d-marker:hover,
.machine-3d-marker.hovered,
.machine-3d-marker.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--brand-pine-dark), 0 6px 16px rgba(15, 23, 42, 0.32);
  z-index: 45;
}

.machine-3d-marker:hover .m-label,
.machine-3d-marker.hovered .m-label,
.machine-3d-marker.active .m-label {
  display: inline-block;
}

/* Makine Üzerine Gelindiğinde / Dokunulduğunda Açılan Kompakt Teknik Bilgi Kartı (Popover) */
.machine-hover-popover {
  position: absolute;
  width: 340px;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--brand-pine-dark);
  border-top: 3.5px solid var(--brand-pine-dark);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  padding: 0.52rem 0.64rem;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}

.machine-hover-popover.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popover-head {
  display: flex;
  align-items: flex-start;
  gap: 0.38rem;
  padding-bottom: 0.36rem;
  margin-bottom: 0.36rem;
  border-bottom: 1px solid var(--border-color);
}

.popover-step-badge {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  padding: 0.14rem 0.34rem;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.popover-titles {
  flex: 1;
  min-width: 0;
}

.popover-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--heading-navy);
  line-height: 1.22;
}

.popover-variant {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--brand-emerald-band);
  margin-top: 0.06rem;
}

.popover-meta {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.61rem;
  font-weight: 700;
  background-color: var(--panel-alt);
  color: var(--heading-navy);
  padding: 0.1rem 0.32rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.popover-close-btn {
  background-color: var(--panel-alt);
  border: 1px solid var(--border-strong);
  color: var(--heading-navy);
  width: 20px;
  height: 20px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s ease;
}

.popover-close-btn:hover {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  border-color: var(--brand-pine-dark);
}

.popover-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.popover-row {
  font-size: 0.68rem;
  line-height: 1.32;
  color: var(--text-body);
}

.popover-row strong {
  color: var(--brand-pine-dark);
}

.popover-row.popover-defect {
  background-color: #fffbeb;
  border-inline-start: 2.5px solid var(--brand-gold-seed);
  padding: 0.22rem 0.38rem;
}

.popover-row.popover-why {
  background-color: var(--panel-alt);
  border-inline-start: 2.5px solid var(--brand-emerald-band);
  padding: 0.22rem 0.38rem;
}

/* PFD (PROCESS FLOW DIAGRAM) ETKİLEŞİMLİ BLOK AKIŞ ŞEMASI */
.pfd-schematic-bar {
  background-color: var(--ui-bg);
  border-top: 1px solid var(--border-strong);
  padding: 0.6rem 0.95rem;
}

.pfd-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.pfd-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pfd-code-badge {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  padding: 0.12rem 0.42rem;
  border-radius: 2px;
}

.pfd-sub-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pfd-actions-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pfd-table-toggle-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--brand-pine-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.22rem 0.56rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.pfd-table-toggle-btn.secondary {
  color: var(--heading-navy);
  background-color: var(--panel-alt);
}

.pfd-table-toggle-btn:hover {
  background-color: var(--mint-box);
  border-color: var(--brand-pine-dark);
}

.pfd-nodes-track {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.pipeline-chip-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--brand-pine-dark);
  border-radius: var(--radius-xs);
  padding: 0.28rem 0.52rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--heading-navy);
  transition: all 0.12s ease;
}

.pipeline-chip-btn:hover,
.pipeline-chip-btn.active {
  background-color: var(--mint-box);
  border-color: var(--brand-pine-dark);
  border-top-color: var(--brand-gold-seed);
}

.pipeline-chip-num {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--brand-pine-dark);
  background-color: var(--panel-alt);
  padding: 0.06rem 0.28rem;
  border-radius: 2px;
}

.pipeline-chip-btn.active .pipeline-chip-num {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
}

.pipeline-arrow-sep {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  color: var(--brand-leaf-green);
  font-size: 0.72rem;
  font-weight: 800;
}

.cad-stage-footer {
  padding: 0.45rem 0.95rem;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.71rem;
  color: var(--text-muted);
}

.material-key-list {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.mat-key-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--heading-navy);
}

.mat-key-item i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 1px solid rgba(15, 23, 42, 0.25);
}

/* DETAYLI MÜHENDİSLİK SÜREÇ TABLOSU (AÇILIR/KAPANIR) */
.engineering-schedule-section {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.engineering-schedule-section.collapsed {
  display: none;
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.schedule-header h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--heading-navy);
}

.schedule-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.process-step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--brand-pine-dark);
  border-radius: var(--radius-xs);
  padding: 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.process-step-card.active {
  background-color: var(--mint-box);
  border-inline-start-color: var(--brand-gold-seed);
}

.step-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.step-number-circle {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 800;
}

.step-machine-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--heading-navy);
}

.step-variant-badge {
  display: inline-block;
  margin-top: 0.14rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-emerald-band);
}

.step-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.45rem;
}

.step-detail-item {
  font-size: 0.73rem;
  line-height: 1.38;
}

.step-detail-label {
  font-weight: 800;
  color: var(--brand-pine-dark);
  margin-inline-end: 0.25rem;
}

.step-detail-item.defect-row {
  background-color: #fffbeb;
  border-inline-start: 2px solid var(--brand-gold-seed);
  padding: 0.28rem 0.45rem;
}

.step-detail-item.why-row {
  background-color: var(--panel-alt);
  padding: 0.28rem 0.45rem;
}

/* SAHA KOŞULLARI, ÜRÜN DURUMU VE TESİS YERİNE GÖRE DEĞİŞKENLİK BÖLÜMÜ */
.site-variability-section {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-variability-section.collapsed {
  display: none;
}

.variability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.variability-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--heading-navy);
  margin-top: 0.15rem;
}

.variability-mail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--mint-box);
  border: 1px solid var(--brand-emerald-band);
  color: var(--brand-pine-dark);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.36rem 0.7rem;
  border-radius: var(--radius-xs);
  transition: all 0.14s ease;
}

.variability-mail-badge:hover {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  border-color: var(--brand-pine-dark);
}

.variability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.variability-card {
  background-color: var(--ui-bg);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--brand-pine-dark);
  border-radius: var(--radius-xs);
  padding: 0.75rem 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.var-card-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.var-idx {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  padding: 0.14rem 0.36rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.variability-card h3 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--heading-navy);
  line-height: 1.25;
}

.variability-card p {
  font-size: 0.72rem;
  color: var(--text-body);
  line-height: 1.44;
}

/* ZORUNLU KURUMSAL MÜHENDİSLİK NOTU */
.corporate-engineering-notice {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-inline-start: 4px solid var(--brand-pine-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.notice-tag {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  padding: 0.2rem 0.48rem;
  border-radius: 2px;
  white-space: nowrap;
  display: inline-block;
}

.notice-content-text {
  font-size: 0.73rem;
  color: var(--text-body);
  line-height: 1.48;
}

/* MODAL (info@processingmachines.com 3D Görsel + Özellikler Gönderim Ekranı) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--brand-gold-seed);
  border-radius: var(--radius-sm);
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.34);
  overflow: hidden;
}

.modal-dialog.modal-dialog-wide {
  max-width: 1080px;
}

.modal-header {
  padding: 0.85rem 1.25rem;
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-mail-target {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.68rem;
  color: var(--brand-gold-light);
  margin-bottom: 0.15rem;
}

.mail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-gold-seed);
}

.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
}

.modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-subtitle {
  font-size: 0.77rem;
  line-height: 1.42;
  color: var(--text-body);
}

.modal-client-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  background-color: var(--panel-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.8rem;
}

.client-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.client-input-group label {
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--heading-navy);
  text-transform: uppercase;
}

.req-star {
  color: var(--brand-gold-seed);
  font-weight: 900;
}

.phone-input-row {
  display: flex;
  align-items: stretch;
  gap: 0.28rem;
  width: 100%;
}

.phone-code-select {
  background-color: var(--panel-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.36rem 0.32rem;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.71rem;
  font-weight: 800;
  color: var(--brand-pine-dark);
  cursor: pointer;
  flex: 0 0 92px;
  outline: none;
}

.phone-code-select:focus {
  border-color: var(--brand-pine-dark);
  background-color: var(--mint-box);
}

.phone-input-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.client-input-group input {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.38rem 0.55rem;
  font-size: 0.76rem;
  color: var(--heading-navy);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.client-input-group input:focus {
  outline: none;
  border-color: var(--brand-pine-dark);
}

.client-input-group input.input-invalid {
  border-color: #c7a24a;
  box-shadow: 0 0 0 2px rgba(199, 162, 74, 0.28);
  background-color: var(--gold-tint);
}

.quote-send-status-banner {
  display: none;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.42;
  border: 1px solid var(--border-strong);
}

.quote-send-status-banner.visible {
  display: block;
}

.quote-send-status-banner.sending {
  background-color: var(--gold-tint);
  border-color: var(--brand-gold-seed);
  border-inline-start: 4px solid var(--brand-gold-seed);
  color: var(--heading-navy);
}

.quote-send-status-banner.success {
  background-color: var(--mint-box);
  border-color: var(--brand-emerald-band);
  border-inline-start: 4px solid var(--brand-pine-dark);
  color: var(--brand-pine-dark);
}

.quote-send-status-banner.error {
  background-color: var(--gold-tint);
  border-color: var(--brand-gold-seed);
  border-inline-start: 4px solid var(--brand-pine-dark);
  color: var(--heading-navy);
}

.modal-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.modal-visual-col,
.modal-spec-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.visual-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--heading-navy);
  background-color: var(--panel-alt);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
}

.snap-tag {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.65rem;
  background-color: var(--brand-pine-dark);
  color: var(--brand-gold-light);
  padding: 0.1rem 0.38rem;
  border-radius: 2px;
}

.snapshot-preview-wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 295px;
  user-select: none;
}

.snapshot-preview-wrap img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.snapshot-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.rich-copy-feedback {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-pine-dark);
  min-height: 1.1rem;
}

.summary-textarea {
  width: 100%;
  height: 100%;
  min-height: 295px;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.74rem;
  line-height: 1.46;
  color: var(--heading-navy);
  background-color: var(--ui-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.75rem;
  resize: vertical;
}

.modal-footer {
  padding: 0.8rem 1.25rem;
  background-color: var(--panel-alt);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.modal-kvkk-notice {
  flex: 1 1 320px;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: #6b7d90;
  font-weight: 400;
  text-align: start;
}

.modal-kvkk-notice a {
  color: #155b3b;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.modal-kvkk-notice a:hover {
  color: #0d3d27;
}

.modal-footer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
  margin-inline-start: auto;
  flex-wrap: wrap;
}

.btn-primary-green {
  background-color: var(--brand-pine-dark);
  color: #ffffff;
  border: 1px solid var(--brand-gold-seed);
  border-radius: var(--radius-xs);
  padding: 0.52rem 0.98rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  transition: background-color 0.14s ease;
}

.btn-primary-green:hover {
  background-color: var(--brand-leaf-green);
}

.btn-secondary-outline {
  background-color: #ffffff;
  color: var(--heading-navy);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.48rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-secondary-outline:hover {
  border-color: var(--brand-pine-dark);
  background-color: var(--mint-box);
}

/* TABLET VE MOBİL UYUMLULUK (MANTIKSAL YERLEŞİM: 1. 3D SAHNE & AKIŞ -> 2. KONTROL KONSOLU -> 3. DETAY TABLOLARI) */
@media (max-width: 1200px) {
  /* Üstteki mükerrer 6'lı siyah barı gizle; 3D sahnenin hemen altındaki şerit (#stageMetricsStrip) aktif kalır */
  .telemetry-bar {
    display: none;
  }

  .workbench-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.65rem 0.85rem 1.2rem;
    gap: 0.85rem;
  }

  /* .viewport-workspace çocuklarını doğrudan grid akışına açarak 3D Sahneyi en üste (order: 1), Konsolu hemen altına (order: 2) al */
  .viewport-workspace {
    display: contents;
  }

  .cad-stage-frame {
    order: 1;
    min-width: 0;
    width: 100%;
  }

  .engineering-console {
    order: 2;
    position: static;
    min-width: 0;
    width: 100%;
  }

  #processSectionDrawer {
    order: 3;
    min-width: 0;
    width: 100%;
  }

  #siteVariabilitySection {
    order: 4;
    min-width: 0;
    width: 100%;
  }

  .corporate-engineering-notice {
    order: 5;
    min-width: 0;
    width: 100%;
  }

  .canvas-viewport {
    height: 430px;
  }

  .stage-singleline-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }

  .stage-metric-inline {
    justify-content: space-between;
    padding: 0.34rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .console-pane {
    max-height: 360px;
    overflow-y: auto;
  }

  .variability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .modal-split-grid,
  .modal-client-fields,
  .variability-grid,
  .schedule-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal-dialog {
    max-height: 94vh;
  }

  .snapshot-preview-wrap {
    min-height: 190px;
  }

  .summary-textarea {
    min-height: 210px;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .header .nav {
    gap: clamp(7px, 0.85vw, 13px);
    font-size: clamp(10.5px, 1vw, 12.5px);
    margin-right: clamp(8px, 1vw, 15px);
    padding-left: clamp(8px, 0.9vw, 14px);
  }
  .header .header-3d-plant-btn {
    padding: 9px 10px;
    font-size: 10.5px;
    gap: 5px;
  }
  .header .header-right .language-picker select {
    max-width: 68px;
    font-size: 9.5px;
  }
  .header .btn.primary {
    padding: 9px 10px;
    font-size: 10.5px;
  }
}

@media (max-width: 900px) {
  .header > .wrap.header-row {
    position: relative;
    width: calc(100% - 32px);
    justify-content: space-between;
    gap: 10px;
    overflow: visible;
  }

  .header .brand {
    position: relative;
    z-index: 1;
    margin-right: auto;
  }

  .header .brand-logo {
    pointer-events: none;
  }

  html[dir="rtl"] .header .brand {
    margin-right: 0;
    margin-left: auto;
  }

  .header .mobile-toggle {
    display: inline-flex !important;
    flex: 0 0 38px;
    position: relative;
    z-index: 60;
    pointer-events: auto;
  }

  .header .header-right {
    position: relative;
    z-index: 60;
  }

  .header .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2eaf0;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 35px rgba(16, 38, 60, 0.13);
    z-index: 550;
  }

  .header > .wrap.header-row > nav.nav.open,
  .header .nav.open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: absolute !important;
    top: calc(100% + 1px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 550 !important;
    white-space: normal !important;
  }

  .header .nav.open > a {
    display: block !important;
    width: 100% !important;
    padding: 10px 0 !important;
    font-size: 16px !important;
    line-height: 1.28 !important;
    border-bottom: 1px solid #e7edf2 !important;
    text-align: start !important;
  }

  .header .nav.open > .mobile-language-picker {
    display: block !important;
    order: 99 !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 10px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #dfe7ed !important;
    background: transparent !important;
  }

  .header .nav.open > .mobile-language-picker span {
    display: none !important;
  }

  .header .nav.open > .mobile-language-picker .mobile-lang-select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    padding: 0 38px 0 14px !important;
    border: 1px solid #d9e4ec !important;
    border-radius: 10px !important;
    background-color: #f8fafb !important;
    color: var(--ink) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  html[dir="rtl"] .mobile-lang-select,
  html[lang="ar"] .mobile-lang-select {
    padding: 0 14px 0 38px !important;
    background-position: left 14px center !important;
    text-align: right !important;
  }

  .header .header-right .language-picker {
    display: none !important;
  }
}

@media (max-width: 768px) {
  html[dir="rtl"],
  html[dir="rtl"] body,
  html[lang="ar"],
  html[lang="ar"] body {
    overflow-x: clip !important;
    max-width: 100vw !important;
  }

  .header > .wrap.header-row {
    width: calc(100% - 16px);
    min-height: 76px;
    padding-top: 6px;
    padding-bottom: 6px;
    flex-wrap: nowrap;
    gap: 5px;
  }

  html[dir="rtl"] .header > .wrap.header-row,
  html[lang="ar"] .header > .wrap.header-row {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-inline: auto !important;
    justify-content: space-between !important;
  }

  .header .brand {
    position: relative;
    z-index: 1;
    flex: 0 0 clamp(178px, 47.5vw, 202px);
    width: clamp(178px, 47.5vw, 202px);
    min-width: clamp(178px, 47.5vw, 202px);
    max-width: clamp(178px, 47.5vw, 202px);
    max-height: 76px;
    overflow: visible;
  }

  html[dir="rtl"] .header .brand,
  html[lang="ar"] .header .brand {
    flex: 0 0 clamp(166px, 44.5vw, 190px) !important;
    width: clamp(166px, 44.5vw, 190px) !important;
    min-width: clamp(166px, 44.5vw, 190px) !important;
    max-width: clamp(166px, 44.5vw, 190px) !important;
    direction: ltr !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    margin-right: 0 !important;
    margin-left: auto !important;
  }

  .header .brand-logo {
    pointer-events: none;
    width: clamp(225px, 60vw, 255px);
    min-width: clamp(225px, 60vw, 255px);
    max-width: clamp(225px, 60vw, 255px);
    max-height: 76px;
  }

  html[dir="rtl"] .header .brand-logo,
  html[lang="ar"] .header .brand-logo {
    width: clamp(225px, 60vw, 255px) !important;
    min-width: clamp(225px, 60vw, 255px) !important;
    max-width: clamp(225px, 60vw, 255px) !important;
    object-position: left center !important;
    margin-left: -4px !important;
    margin-right: 0 !important;
  }

  .header .mobile-toggle {
    position: relative;
    z-index: 60;
    pointer-events: auto;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    font-size: 19px;
    border-radius: 10px;
  }

  .header .header-right {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
  }

  .header .header-3d-plant-btn {
    order: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--green);
    color: #ffffff;
    border: 1px solid transparent;
    justify-content: center;
    gap: 4.5px;
  }

  .header .header-3d-plant-btn .icon-3d-cube {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }

  .header .header-3d-plant-btn .badge-3d-short {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    color: #ffffff;
  }

  .header .header-3d-plant-btn .label-3d-plant {
    display: none;
  }

  .header .btn.primary {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 11.5px;
    border-radius: 10px;
  }

  html[lang="ru"] .header .btn.primary {
    width: auto !important;
    min-width: 68px !important;
    max-width: 78px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 3px 8px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  html[lang="ru"] .header .btn.primary::after {
    content: "Запрос\Aцены ↗" !important;
    white-space: pre !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
    color: #ffffff !important;
    display: block !important;
  }

  html[lang="ar"] .header .btn.primary {
    width: auto !important;
    min-width: 66px !important;
    max-width: 76px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 3px 7px !important;
    font-size: 10.5px !important;
    line-height: 1.12 !important;
    border-radius: 10px !important;
    white-space: normal !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .plant-crumb-bar {
    padding: 0.45rem 0.5rem 0.1rem;
    gap: 0.4rem;
  }

  .plant-crumb-left {
    width: 100%;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .plant-crumb-sep {
    display: none;
  }

  .plant-crumb-title {
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 800;
  }

  .back-to-site-btn {
    padding: 0.28rem 0.54rem;
    font-size: 0.68rem;
    gap: 0.28rem;
    flex: 0 0 auto;
  }

  .quote-cta-btn {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    gap: 0.35rem;
  }

  .quote-cta-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workbench-layout {
    padding: 0.5rem 0.5rem 1rem;
    gap: 0.65rem;
  }

  /* 3D Model Sahnesi Mobilde En Üstte ve Tam Orantılı */
  .canvas-viewport {
    height: 360px;
  }

  /* 3D Sahne Üst Sol Bina Yerleşim Barı: Mobilde Tek Satır Yatay Kaydırmalı */
  .canvas-hud-top-left {
    top: 6px;
    left: 6px;
    right: 6px;
    max-width: calc(100% - 12px);
  }

  .hud-layout-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding: 0.18rem 0.3rem;
    gap: 0.2rem;
    scrollbar-width: none;
  }

  .hud-layout-bar::-webkit-scrollbar {
    display: none;
  }

  .hud-layout-title {
    font-size: 0.56rem;
    flex-shrink: 0;
  }

  .hud-layout-pills {
    flex-wrap: nowrap;
    gap: 0.18rem;
  }

  .hud-layout-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.16rem 0.36rem;
    font-size: 0.61rem;
  }

  /* 3D Sahne Alt Kontroller: Mobilde Tek Satır Kompakt Şerit */
  .canvas-hud-bottom-right {
    bottom: 6px;
    left: 6px;
    right: 6px;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0.18rem 0.28rem;
    gap: 0.22rem;
  }

  .hud-br-tag {
    font-size: 0.58rem;
    padding: 0.14rem 0.32rem;
  }

  #stationCountPill {
    display: none;
  }

  .hud-br-actions {
    gap: 0.16rem;
    flex-shrink: 0;
  }

  .hud-br-btn {
    font-size: 0.6rem;
    padding: 0.14rem 0.34rem;
    white-space: nowrap;
  }

  /* 3D Makine Etiketleri ve Bilgi Kartı (Popover) Mobil Boyutlandırma */
  .machine-3d-marker {
    font-size: 0.58rem;
  }

  .machine-3d-marker .m-num {
    padding: 0.12rem 0.26rem;
    font-size: 0.58rem;
  }

  .machine-3d-marker .m-info-icon {
    padding: 0.12rem 0.24rem;
    font-size: 0.62rem;
  }

  .machine-hover-popover {
    width: 300px;
    max-width: calc(100% - 14px);
    max-height: none;
    overflow: visible;
    padding: 0.48rem 0.56rem;
  }

  .popover-head {
    padding-bottom: 0.28rem;
    margin-bottom: 0.28rem;
    gap: 0.3rem;
  }

  .popover-step-badge {
    font-size: 0.62rem;
    padding: 0.12rem 0.28rem;
  }

  .popover-title {
    font-size: 0.69rem;
    line-height: 1.18;
  }

  .popover-variant {
    font-size: 0.6rem;
    margin-top: 0.04rem;
  }

  .popover-meta {
    font-size: 0.56rem;
    padding: 0.08rem 0.24rem;
  }

  .popover-close-btn {
    width: 19px;
    height: 19px;
    font-size: 0.62rem;
  }

  .popover-body {
    gap: 0.22rem;
  }

  .popover-row {
    font-size: 0.62rem;
    line-height: 1.24;
  }

  .popover-defect,
  .popover-why {
    padding: 0.2rem 0.34rem;
  }

  /* Fizibilite Şeridi Mobilde 2 Sütun x 3 Satır Kompakt Tablo */
  .stage-singleline-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-metric-inline {
    padding: 0.26rem 0.42rem;
    gap: 0.2rem;
  }

  .stage-metric-inline .sm-lbl {
    font-size: 0.58rem;
  }

  .stage-metric-inline .sm-val {
    font-size: 0.64rem;
  }

  /* Akış Şeması (PFD) Başlık ve Butonlar */
  .pfd-schematic-bar {
    padding: 0.45rem 0.55rem;
  }

  .pfd-bar-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .pfd-sub-text {
    font-size: 0.64rem;
  }

  .pfd-actions-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.28rem;
    width: 100%;
  }

  .pfd-table-toggle-btn {
    width: 100%;
    text-align: center;
    padding: 0.28rem 0.35rem;
    font-size: 0.64rem;
  }

  /* Kontrol Konsolu: Kapasite, Seviye ve 2 Sütunlu Tohum Seçimi */
  .console-top-deck {
    padding: 0.55rem 0.65rem;
    gap: 0.48rem;
  }

  .console-tab-btn {
    padding: 0.48rem 0.25rem;
    font-size: 0.68rem;
  }

  .console-pane {
    padding: 0.6rem 0.65rem;
    max-height: 310px;
  }

  .crop-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem;
  }

  .crop-pill-btn {
    padding: 0.36rem 0.42rem;
  }

  .crop-pill-name {
    font-size: 0.68rem;
  }

  .corporate-engineering-notice {
    flex-direction: column;
    padding: 0.65rem 0.75rem;
  }
}

@media (max-width: 380px) {
  html[dir="rtl"] .header > .wrap.header-row,
  html[lang="ar"] .header > .wrap.header-row {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }

  .header .brand {
    width: clamp(158px, 45vw, 174px);
    min-width: clamp(158px, 45vw, 174px);
    max-width: clamp(158px, 45vw, 174px);
    flex: 0 0 clamp(158px, 45vw, 174px);
    overflow: visible;
  }

  html[dir="rtl"] .header .brand,
  html[lang="ar"] .header .brand {
    width: clamp(148px, 42.5vw, 162px) !important;
    min-width: clamp(148px, 42.5vw, 162px) !important;
    max-width: clamp(148px, 42.5vw, 162px) !important;
    flex: 0 0 clamp(148px, 42.5vw, 162px) !important;
    direction: ltr !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    margin-right: 0 !important;
    margin-left: auto !important;
  }

  .header .brand-logo {
    width: clamp(200px, 57vw, 220px);
    min-width: clamp(200px, 57vw, 220px);
    max-width: clamp(200px, 57vw, 220px);
    max-height: 70px;
  }

  html[dir="rtl"] .header .brand-logo,
  html[lang="ar"] .header .brand-logo {
    width: clamp(200px, 57vw, 220px) !important;
    min-width: clamp(200px, 57vw, 220px) !important;
    max-width: clamp(200px, 57vw, 220px) !important;
    object-position: left center !important;
    margin-left: -4px !important;
    margin-right: 0 !important;
  }

  html[lang="ru"] .header .btn.primary {
    min-width: 62px !important;
    max-width: 72px !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    padding: 2px 6px !important;
  }

  html[lang="ru"] .header .btn.primary::after {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  html[lang="ar"] .header .btn.primary {
    min-width: 60px !important;
    max-width: 70px !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }
}

/* ============================================================================
   ARAPÇA (RTL) DİL YÖNÜ UYUMLULUK KURALLARI
   ============================================================================ */
html[dir="rtl"] .popover-defect,
html[dir="rtl"] .popover-why,
html[dir="rtl"] .step-detail-item.defect-row,
html[dir="rtl"] .step-detail-item.why-row {
  border-left: none;
  border-right: 3px solid var(--brand-gold-seed);
}

html[dir="rtl"] .popover-why,
html[dir="rtl"] .step-detail-item.why-row {
  border-right-color: var(--brand-emerald-band);
}

html[dir="rtl"] .phone-input-row,
html[dir="rtl"] #quoteClientPhoneCode,
html[dir="rtl"] #quoteClientPhone {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .pipeline-arrow-sep {
  display: inline-block;
  transform: scaleX(-1);
}

/* ============================================================================
   3D TESİS SAYFASI ALT SEO REHBERİ, ÜRÜN KARTLARI VE SİTE İÇİ LİNKLEME ALANI
   (Güncel Site 42 .machine-seo, .product-grid, .machine-related ile Birebir Uyumlu)
   ============================================================================ */
.plant-3d-seo-wrap {
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  margin: 0.5rem auto 0;
}

#plant3dSeoSection .machine-lead a,
#plant3dSeoSection .machine-seo-card p a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

#plant3dSeoSection .machine-lead a:hover,
#plant3dSeoSection .machine-seo-card p a:hover {
  color: #0d3d27;
}

#plant3dSeoSection .plant-3d-machines-showcase {
  margin-top: clamp(28px, 3.6vw, 44px);
  margin-bottom: clamp(28px, 3.6vw, 44px);
}

#plant3dSeoSection .plant-3d-machines-showcase .section-head {
  margin-bottom: 18px;
}

#plant3dSeoSection .plant-3d-machines-showcase .section-head h2 {
  margin: 6px 0 0;
}

#plant3dSeoSection .plant-3d-crops-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#plant3dSeoSection .cta-band.machine-cta .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .plant-3d-seo-wrap {
    width: calc(100% - 24px);
  }

  #plant3dSeoSection .plant-3d-crops-links {
    grid-template-columns: 1fr;
  }
}
