/* NEVIDA · Toolbox okunaklılık katmanı (en son yüklenir).
   Sorun: 'JetBrains Mono' sitede yüklenmiyor, tarayıcı ince 'Courier New'e düşüyordu; yazılar 8-11 px ve geniş harf aralıklıydı.
   Çözüm: açıklama metinleri sistem sans (SF Pro / Segoe UI / Roboto), kod ve sayılar sistem mono (SF Mono / Menlo / Consolas),
   daha kalın, biraz daha büyük (readability-v1.css tabanının önüne geçer: html öneki ve !important), harf aralığı dar, kontrast yüksek. Renkler ve düzen aynı kalır. */
html #toolbox-drawer {
  --tb-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  --tb-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Roboto Mono', 'Liberation Mono', 'DejaVu Sans Mono', monospace;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html #toolbox-drawer * { font-family: var(--tb-mono); }

/* düz metin: açıklamalar, notlar, alanlar, yük adları */
html #toolbox-drawer .tb-help-steps li, html #toolbox-drawer .tb-help-steps b, html #toolbox-drawer .tb-help-steps a, html #toolbox-drawer .tb-help-note,
html #toolbox-drawer .result-sub, html #toolbox-drawer .rsim-note, html #toolbox-drawer .rsim-slower, html #toolbox-drawer .rsim-hub,
html #toolbox-drawer .rsim-card-cls, html #toolbox-drawer .rsim-card-note, html #toolbox-drawer .rsim-card-return, html #toolbox-drawer .rsim-own-note,
html #toolbox-drawer .laytime-cta, html #toolbox-drawer .laytime-cta a, html #toolbox-drawer .rmap-cargo button span,
html #toolbox-drawer .tool-select, html #toolbox-drawer .tool-input, html #toolbox-drawer .tool-select option, html #toolbox-drawer .tool-select optgroup {
  font-family: var(--tb-sans); letter-spacing: 0.01em !important;
}

/* başlıklar */
html #toolbox-drawer .toolbox-header h2 { font-size: 0.84rem !important; font-weight: 700; letter-spacing: 0.16em !important; }
html #toolbox-drawer .tool-module-header h3 { font-size: 0.84rem !important; font-weight: 700; letter-spacing: 0.1em !important; }

/* kullanım rehberi */
html #toolbox-drawer .tb-help-head { font-size: 0.76rem !important; font-weight: 700; letter-spacing: 0.12em !important; }
html #toolbox-drawer .tb-help-steps { gap: 11px; }
html #toolbox-drawer .tb-help-steps li { font-size: 0.88rem !important; font-weight: 450; line-height: 1.55; letter-spacing: 0.005em !important; color: rgba(255, 255, 255, 0.9); padding-left: 30px; }
html #toolbox-drawer .tb-help-steps li::before { font-family: var(--tb-mono); font-size: 0.7rem !important; font-weight: 700; top: 2px; }
html #toolbox-drawer .tb-help-steps b { font-weight: 700; letter-spacing: 0.04em !important; }
html #toolbox-drawer .tb-help-key li { font-size: 0.72rem !important; font-weight: 600; letter-spacing: 0.06em !important; color: rgba(255, 255, 255, 0.85); }
html #toolbox-drawer .tb-help-note { font-size: 0.78rem !important; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.01em !important; }
html #toolbox-drawer .tb-help-ok { font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.1em !important; }

/* alanlar ve düğmeler */
html #toolbox-drawer .tool-select, html #toolbox-drawer .tool-input { font-size: 0.88rem !important; font-weight: 500; color: #fff; }
html #toolbox-drawer .tool-input::placeholder { color: rgba(255, 255, 255, 0.5); font-weight: 500; }
html #toolbox-drawer .route-clear { font-size: 0.76rem !important; font-weight: 700; letter-spacing: 0.06em !important; color: rgba(255, 255, 255, 0.85); }
html #toolbox-drawer .unit-sw button { font-size: 0.74rem !important; font-weight: 700; letter-spacing: 0.04em !important; color: rgba(255, 255, 255, 0.7); }
html #toolbox-drawer .unit-sw button[aria-pressed="true"] { color: #fff; }
html #toolbox-drawer .quote-from-toolbox, html #toolbox-drawer .copy-btn, html #toolbox-drawer .calc-btn { font-size: 0.74rem !important; font-weight: 700; letter-spacing: 0.1em !important; }

/* sonuçlar */
html #toolbox-drawer .result-label { font-size: 0.74rem !important; font-weight: 600; letter-spacing: 0.08em !important; color: rgba(255, 255, 255, 0.68); }
html #toolbox-drawer .result-value { font-weight: 700; letter-spacing: 0 !important; }
html #toolbox-drawer .result-sub { font-size: 0.82rem !important; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
html #toolbox-drawer .dist-legs { font-family: var(--tb-mono); font-size: 0.78rem !important; font-weight: 600; }

/* harita: kod ve etiketler mono, daha kalın */
html #toolbox-drawer .rmap-tag { font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.14em !important; }
html #toolbox-drawer .rmap-coord { font-size: 0.66rem !important; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
html #toolbox-drawer .rmap-views button { font-size: 0.7rem !important; font-weight: 700; letter-spacing: 0.06em !important; color: rgba(255, 255, 255, 0.82); }
html #toolbox-drawer .rmap-hint { font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.06em !important; color: #fff; }
html #toolbox-drawer .rm-leg-ports { font-size: 0.8rem !important; letter-spacing: 0.06em !important; }
html #toolbox-drawer .rm-leg-num { font-size: 0.76rem !important; font-weight: 700; letter-spacing: 0.02em !important; }
html #toolbox-drawer .rm-lbl { font-weight: 600; fill: rgba(255, 255, 255, 0.8); }
html #toolbox-drawer .rmap-cargo-head { font-size: 0.74rem !important; font-weight: 700; letter-spacing: 0.1em !important; }
html #toolbox-drawer .rmap-cargo button span { font-size: 0.8rem !important; font-weight: 600; color: rgba(255, 255, 255, 0.88); }

/* sefer paneli: değerler satırın boyutunu alır (readability-v1.css kimlikle 11 px sabitliyordu) */
html #toolbox-drawer .rsim-row span, html #toolbox-drawer .rsim-row b, html #toolbox-drawer .rm-leg-ports b, html #toolbox-drawer .rm-leg-ports i { font-size: inherit !important; }
html #toolbox-drawer .rsim-row { font-size: 0.78rem !important; letter-spacing: 0.02em !important; color: #fff; }
html #toolbox-drawer .rsim-row em { font-size: 0.7rem !important; font-weight: 700; letter-spacing: 0.08em !important; }
html #toolbox-drawer .rsim-main { font-size: 0.84rem !important; }
html #toolbox-drawer .rsim-sub { font-size: 0.76rem !important; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
html #toolbox-drawer .rsim-phase { font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.04em !important; }
html #toolbox-drawer .rsim-qty { font-size: 0.74rem !important; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
html #toolbox-drawer .rsim-slower, html #toolbox-drawer .rsim-hub { font-size: 0.76rem !important; font-weight: 500; }
html #toolbox-drawer .rsim-note { font-size: 0.76rem !important; font-weight: 500; color: rgba(255, 255, 255, 0.66); }
html #toolbox-drawer .rsim-card-head { font-size: 0.74rem !important; font-weight: 700; letter-spacing: 0.12em !important; }
html #toolbox-drawer .rsim-card-grid em { font-size: 0.7rem !important; font-weight: 700; letter-spacing: 0.08em !important; }
html #toolbox-drawer .rsim-card-grid b { font-size: 0.86rem !important; }
html #toolbox-drawer .rsim-card-cls { font-size: 0.8rem !important; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
html #toolbox-drawer .rsim-card-note, html #toolbox-drawer .rsim-card-return { font-size: 0.76rem !important; font-weight: 500; }
html #toolbox-drawer .rsim-card-note { color: rgba(255, 255, 255, 0.62); }
html #toolbox-drawer .rsim-btn { font-size: 0.74rem !important; letter-spacing: 0.08em !important; }
html #toolbox-drawer .rsim-own-head { font-size: 0.74rem !important; font-weight: 700; letter-spacing: 0.1em !important; }
html #toolbox-drawer .rsim-own em, html #toolbox-drawer .dwt-custom em { font-size: 0.7rem !important; font-weight: 700; letter-spacing: 0.06em !important; }
html #toolbox-drawer .rsim-own-note { font-size: 0.74rem !important; font-weight: 500; color: rgba(255, 255, 255, 0.66); }

/* boğaz kısıtları, recap, laytime */
html #toolbox-drawer .tool-grid-item .port { font-size: 0.74rem !important; font-weight: 600; letter-spacing: 0.04em !important; color: rgba(255, 255, 255, 0.7); }
html #toolbox-drawer .tool-grid-item .limit { font-size: 0.8rem !important; font-weight: 700; }
html #toolbox-drawer .recap-box { font-size: 0.78rem !important; font-weight: 500; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
html #toolbox-drawer .laytime-result .label { font-size: 0.72rem !important; font-weight: 600; letter-spacing: 0.08em !important; color: rgba(255, 255, 255, 0.66); }
html #toolbox-drawer .laytime-result .value { font-weight: 700; }
html #toolbox-drawer .laytime-cta, html #toolbox-drawer .laytime-cta a { font-size: 0.8rem !important; font-weight: 500; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.01em !important; }
html #toolbox-drawer .toolbox-branding { font-weight: 600; color: rgba(255, 255, 255, 0.4); }

@media (max-width: 768px) {
  html #toolbox-drawer .tb-help-steps li { font-size: 0.9rem !important; }
  html #toolbox-drawer .tool-select, html #toolbox-drawer .tool-input { font-size: 16px !important; }   /* iOS odakta yakınlaştırmasın */
}

/* harita alt şeridi: mesafe ve süre, sağdaki temizle ve ters çevir düğmelerinin altında kalmasın */
html #toolbox-drawer .rmap.has-route .rmap-leg { padding-right: 82px; }
html #toolbox-drawer .rm-leg-ports { flex-wrap: nowrap; min-width: 0; }
@media (max-width: 600px) {   /* dar ekranda: kodlar bir satır, mesafe ve süre altında */
  html #toolbox-drawer .rmap.has-route .rmap-leg { flex-wrap: wrap; row-gap: 3px; column-gap: 8px; }
  html #toolbox-drawer .rm-leg-ports { gap: 4px; }
  html #toolbox-drawer .rm-leg-num { margin-left: 0; flex-basis: 100%; }
}

/* mevsim penceresi */
html #toolbox-drawer .rwx-read, html #toolbox-drawer .rwx-src { font-family: var(--tb-sans); letter-spacing: 0.01em !important; }
html #toolbox-drawer .rwx-read { font-size: 0.8rem !important; font-weight: 600; }
html #toolbox-drawer .rwx-src { font-size: 0.7rem !important; }
html #toolbox-drawer .rwx-head { font-size: 0.74rem !important; }
html #toolbox-drawer .rwx-months button { font-family: var(--tb-mono); font-size: 0.64rem !important; }
html #toolbox-drawer .rwx-months button { height: 26px !important; padding: 0 !important; border: 1px solid rgba(var(--theme-accent-rgb, 197, 160, 89), 0.22) !important; background: rgba(var(--theme-accent-rgb, 197, 160, 89), 0.06) !important; color: rgba(255, 255, 255, 0.78) !important; font-weight: 700; border-radius: 0 !important; box-shadow: none !important; }
html #toolbox-drawer .rwx-months button:hover, html #toolbox-drawer .rwx-months button:focus-visible { border-color: var(--theme-accent-solid, #c5a059) !important; color: #fff !important; }
html #toolbox-drawer .rwx-months button[aria-pressed="true"] { background: var(--theme-accent-solid, #c5a059) !important; border-color: var(--theme-accent-solid, #c5a059) !important; color: #031015 !important; }

/* gemi ölçüsü sınırları */
html #toolbox-drawer .rlim-list li, html #toolbox-drawer .rlim-note { font-family: var(--tb-sans); letter-spacing: 0.01em !important; }
html #toolbox-drawer .rlim-list li { font-size: 0.82rem !important; }
html #toolbox-drawer .rlim-note { font-size: 0.7rem !important; }
html #toolbox-drawer .rlim-head { font-size: 0.74rem !important; }

/* tek kutudan rota girişi ve son rotalar (route-entry-v1.js) */
html #toolbox-drawer #port-count.is-route { color: var(--theme-accent, #c5a059) !important; font-weight: 600; }
html #toolbox-drawer .rrec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; }
html #toolbox-drawer .rrec[hidden] { display: none; }
html #toolbox-drawer .rrec-h { font-family: var(--tb-mono); font-size: 0.6rem !important; letter-spacing: 0.14em !important; color: rgba(255,255,255,0.5); margin-right: 2px; }
html #toolbox-drawer .rrec-b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
  font-family: var(--tb-sans); font-size: 0.72rem !important; letter-spacing: 0.01em !important; line-height: 1.2; padding: 5px 10px; border-radius: 999px;
  color: rgba(255,255,255,0.85); background: rgba(var(--theme-accent-rgb, 197, 160, 89), 0.08); border: 1px solid rgba(var(--theme-accent-rgb, 197, 160, 89), 0.35); }
html #toolbox-drawer .rrec-b:hover, html #toolbox-drawer .rrec-b:focus-visible { background: rgba(var(--theme-accent-rgb, 197, 160, 89), 0.22); border-color: var(--theme-accent, #c5a059); outline: none; }

/* en iyi ay şeridi (route-wx-v1.js): ay düğmesinin altında rota payı çubuğu, en hafif ay noktası */
html #toolbox-drawer .rwx-months button { position: relative; overflow: hidden; }
html #toolbox-drawer .rwx-months.has-bars button { height: 34px !important; padding-bottom: 9px !important; }
html #toolbox-drawer .rwx-months button::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 3px; height: calc(var(--h, 0) * 6px + 2px); border-radius: 1px;
  background: rgba(255, 255, 255, 0.55); opacity: 0; transform-origin: bottom; transition: height .35s ease, opacity .35s ease, background-color .35s ease; }
html #toolbox-drawer .rwx-months.has-bars button::after { opacity: 1; }
html #toolbox-drawer .rwx-months button[data-lv="0"]::after { background: rgba(205, 236, 232, 0.85); }
html #toolbox-drawer .rwx-months button[data-lv="1"]::after { background: var(--theme-accent-solid, #c5a059); }
html #toolbox-drawer .rwx-months button[data-lv="2"]::after { background: #f4b740; }
html #toolbox-drawer .rwx-months button[data-lv="3"]::after { background: #ff7a59; }
html #toolbox-drawer .rwx-months button[aria-pressed="true"]::after { background: rgba(3, 16, 21, 0.75); }
html #toolbox-drawer .rwx-months button.is-best::before { content: ''; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #7fe0c4; box-shadow: 0 0 5px rgba(127, 224, 196, 0.9); }
html #toolbox-drawer .rwx-months button.is-best[aria-pressed="true"]::before { background: #031015; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { html #toolbox-drawer .rwx-months button::after { transition: none; } }
html #toolbox-drawer a.rsim-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
/* çok duraklı rota (4-5 liman): kodlar tek satır, mesafe ve süre altında */
html #toolbox-drawer .rmap.has-route .rmap-leg.is-long { flex-wrap: wrap; row-gap: 3px; column-gap: 8px; }
html #toolbox-drawer .rmap-leg.is-long .rm-leg-ports { gap: 3px; }
html #toolbox-drawer .rmap-leg.is-long .rm-leg-num { margin-left: 0; flex-basis: 100%; }
