/* NEVIDA · toolbox artı görünümü: laycan göstergesi, zaman çizelgesi havası, rota ipucu, liman kartları, karşılaştırma, istif, çevirici, yazdırma kartı.
   Renkler tema değişkenlerinden; hareket azaltma tercihinde animasyon yok. */
html #toolbox-drawer {
  --tp-acc: var(--theme-accent-solid, #c5a059);
  --tp-rgb: var(--theme-accent-rgb, 197, 160, 89);
  --tp-ok: #7fe0c4;
  --tp-late: #ff7a59;
  --tp-amber: #f4b740;
  --tp-panel: rgba(2, 11, 16, 0.55);
  --tp-line: rgba(var(--tp-rgb), 0.22);
}

/* ---------- laycan ---------- */
html #toolbox-drawer .rlay { display: grid; grid-template-columns: minmax(150px, 0.8fr) 2fr; gap: 10px; align-items: stretch; margin: 10px 0 0; }
html #toolbox-drawer .rlay-in { display: flex; flex-direction: column; gap: 5px; }
html #toolbox-drawer .rlay-in em { font-style: normal; font-family: var(--tb-mono); font-size: 0.62rem !important; letter-spacing: 0.12em !important; color: rgba(255, 255, 255, 0.6); }
html #toolbox-drawer .rlay-out { position: relative; padding: 9px 11px; border: 1px solid var(--tp-line); background: var(--tp-panel); min-height: 52px; transition: border-color .4s ease, background-color .4s ease; }
html #toolbox-drawer .rlay-out.is-ok { border-color: rgba(127, 224, 196, 0.55); background: rgba(127, 224, 196, 0.06); }
html #toolbox-drawer .rlay-out.is-late { border-color: rgba(255, 122, 89, 0.6); background: rgba(255, 122, 89, 0.07); }
html #toolbox-drawer .rlay-msg, html #toolbox-drawer .rlay-sub { margin: 0; font-family: var(--tb-sans); letter-spacing: 0.01em !important; line-height: 1.45; }
html #toolbox-drawer .rlay-msg { font-size: 0.8rem !important; font-weight: 600; color: #fff; }
html #toolbox-drawer .rlay-sub { margin-top: 3px; font-size: 0.74rem !important; color: rgba(255, 255, 255, 0.75); }
html #toolbox-drawer .rlay-out:not(.is-ok):not(.is-late) .rlay-msg { font-weight: 500; color: rgba(255, 255, 255, 0.6); }
html #toolbox-drawer .rlay-g { position: relative; height: 6px; margin: 2px 0 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
html #toolbox-drawer .rlay-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(var(--tp-rgb), 0.35), var(--tp-ok)); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
html #toolbox-drawer .is-late .rlay-fill { background: linear-gradient(90deg, rgba(var(--tp-rgb), 0.35), var(--tp-late)); }
html #toolbox-drawer .rlay-by { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--tp-amber); box-shadow: 0 0 6px rgba(244, 183, 64, 0.8); }
html #toolbox-drawer .rlay-ship { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(127, 224, 196, 0.35); transition: left .9s cubic-bezier(.2, .8, .2, 1); }
html #toolbox-drawer .is-late .rlay-ship { box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.4); }
@media (max-width: 560px) { html #toolbox-drawer .rlay { grid-template-columns: 1fr; } }

/* ---------- zaman çizelgesi: hava şeridi ve laycan çizgisi ---------- */
html #toolbox-drawer .rsim-wx { position: absolute; left: 0; right: 0; top: 4px; height: 5px; border-radius: 2px; opacity: 0; transform: scaleX(0.96); transform-origin: left center; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
html #toolbox-drawer .rsim-wx.is-on { opacity: 1; transform: none; }
html #toolbox-drawer .rsim-by { position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: var(--tp-amber); box-shadow: 0 0 6px rgba(244, 183, 64, 0.9); pointer-events: none; }
html #toolbox-drawer .rsim-by.is-late { background: var(--tp-late); box-shadow: 0 0 6px rgba(255, 122, 89, 0.9); }
html #toolbox-drawer .rsim-by[hidden] { display: none; }

/* ---------- rota ipucu ---------- */
.rmap .rm-tip { position: absolute; left: 0; top: 0; z-index: 9; min-width: 150px; padding: 7px 10px 6px; pointer-events: none;
  background: rgba(3, 14, 20, 0.92); border: 1px solid rgba(var(--theme-accent-rgb, 197, 160, 89), 0.55); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s ease; }
.rmap .rm-tip.is-on { opacity: 1; }
.rmap .rm-tip[hidden], .rmap .rm-tipdot[hidden] { display: none; }
html #toolbox-drawer .rmap .rm-tip p { margin: 0; display: flex; justify-content: space-between; gap: 12px; line-height: 1.55; }
html #toolbox-drawer .rmap .rm-tip em { font-style: normal; font-family: var(--tb-mono); font-size: 0.58rem !important; letter-spacing: 0.12em !important; color: rgba(var(--theme-accent-rgb, 197, 160, 89), 0.9); }
html #toolbox-drawer .rmap .rm-tip b { font-family: var(--tb-mono); font-size: 0.7rem !important; font-weight: 700; color: #fff; white-space: nowrap; }
.rmap .rm-tipdot { position: absolute; left: -6px; top: -6px; z-index: 8; width: 12px; height: 12px; border-radius: 50%; pointer-events: none;
  background: #fff; box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb, 197, 160, 89), 0.6), 0 0 14px rgba(255, 255, 255, 0.7); }
.rmap .rm-tipdot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); animation: tp-ring 1.4s ease-out infinite; }
@keyframes tp-ring { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- liman kartları ---------- */
html #toolbox-drawer .rports { margin: 12px 0 0; padding: 10px 11px; border: 1px solid var(--tp-line); background: var(--tp-panel); }
html #toolbox-drawer .rports[hidden] { display: none; }
html #toolbox-drawer .rports-head, html #toolbox-drawer .rcmp-head { font-size: 0.74rem !important; font-weight: 700; letter-spacing: 0.12em !important; color: var(--tp-acc); margin-bottom: 8px; }
html #toolbox-drawer .rports-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
html #toolbox-drawer .rport { scroll-snap-align: start; position: relative; padding: 9px 10px 8px; border: 1px solid rgba(255, 255, 255, 0.1); border-top: 2px solid var(--rm-a, var(--tp-acc)); background: linear-gradient(180deg, rgba(var(--tp-rgb), 0.07), rgba(0, 0, 0, 0)); animation: tp-up .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
html #toolbox-drawer .rport.is-v { border-top-color: var(--nv-c2, var(--tp-amber)); }
html #toolbox-drawer .rport.is-b { border-top-color: var(--rm-hot, var(--tp-late)); }
@keyframes tp-up { from { opacity: 0; transform: translateY(8px); } }
html #toolbox-drawer .rport-head { display: flex; justify-content: space-between; align-items: center; }
html #toolbox-drawer .rport-role { font-size: 0.58rem !important; letter-spacing: 0.14em !important; color: rgba(255, 255, 255, 0.55); }
html #toolbox-drawer .rport-code { font-size: 0.66rem !important; font-weight: 700; color: var(--tp-acc); }
html #toolbox-drawer .rport-name { margin: 3px 0 0; font-family: var(--tb-sans); font-size: 0.95rem !important; font-weight: 700; letter-spacing: 0.01em !important; color: #fff; }
html #toolbox-drawer .rport-cty { margin: 0 0 6px; font-family: var(--tb-sans); font-size: 0.7rem !important; letter-spacing: 0.01em !important; color: rgba(255, 255, 255, 0.55); }
html #toolbox-drawer .rport-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0; }
html #toolbox-drawer .rport-dl dt { font-size: 0.6rem !important; letter-spacing: 0.08em !important; color: rgba(var(--tp-rgb), 0.85); align-self: center; }
html #toolbox-drawer .rport-dl dd { margin: 0; font-family: var(--tb-sans); font-size: 0.72rem !important; letter-spacing: 0.01em !important; color: rgba(255, 255, 255, 0.88); }
html #toolbox-drawer .rport-spark { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 8px; }
html #toolbox-drawer .rport-spark i { flex: 1; height: calc(var(--h, 0) * 100%); min-height: 2px; border-radius: 1px 1px 0 0; background: rgba(var(--tp-rgb), 0.55); transform-origin: bottom; animation: tp-grow .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
html #toolbox-drawer .rport-spark i.is-lo { background: var(--tp-ok); }
html #toolbox-drawer .rport-spark i.is-ice { box-shadow: inset 0 3px 0 rgba(226, 243, 255, 0.95); }
@keyframes tp-grow { from { transform: scaleY(0); } }
html #toolbox-drawer .rports-note, html #toolbox-drawer .rcmp-note { margin: 6px 0 0; font-family: var(--tb-sans); font-size: 0.66rem !important; letter-spacing: 0.01em !important; color: rgba(255, 255, 255, 0.45); }

/* ---------- karşılaştırma ---------- */
html #toolbox-drawer .rcmp { margin: 12px 0 0; padding: 10px 11px; border: 1px solid var(--tp-line); background: var(--tp-panel); }
html #toolbox-drawer .rcmp[hidden] { display: none; }
html #toolbox-drawer .rcmp.is-flash { animation: tp-flash .7s ease; }
@keyframes tp-flash { 30% { border-color: var(--tp-acc); box-shadow: 0 0 0 2px rgba(var(--tp-rgb), 0.35); } }
html #toolbox-drawer .rcmp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
html #toolbox-drawer .rcmp-top .rcmp-head { margin: 0 auto 0 0; }
html #toolbox-drawer .rcmp-btn { cursor: pointer; padding: 5px 10px; font-size: 0.62rem !important; font-weight: 700; letter-spacing: 0.1em !important; color: var(--tp-acc); background: transparent; border: 1px solid rgba(var(--tp-rgb), 0.45); }
html #toolbox-drawer .rcmp-btn:hover, html #toolbox-drawer .rcmp-btn:focus-visible { background: var(--tp-acc); color: #031015; outline: none; }
html #toolbox-drawer .rcmp-table { display: grid; grid-template-columns: minmax(96px, auto) repeat(var(--n, 2), minmax(110px, 1fr)); overflow-x: auto; border-top: 1px solid rgba(255, 255, 255, 0.08); }
html #toolbox-drawer .rcmp-c { position: relative; padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); min-width: 0; }
html #toolbox-drawer .rcmp-h { display: flex; align-items: center; gap: 4px; position: sticky; top: 0; }
html #toolbox-drawer .rcmp-h b { margin-right: auto; font-size: 0.8rem !important; color: var(--tp-acc); }
html #toolbox-drawer .rcmp-h.is-now b { color: var(--tp-ok); }
html #toolbox-drawer .rcmp-h.is-new { animation: tp-up .5s cubic-bezier(.2, .8, .2, 1) both; }
html #toolbox-drawer .rcmp-x { cursor: pointer; width: 22px; height: 22px; padding: 0; font-size: 0.72rem !important; color: rgba(255, 255, 255, 0.7); background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); }
html #toolbox-drawer .rcmp-x:hover, html #toolbox-drawer .rcmp-x:focus-visible { color: #031015; background: #fff; outline: none; }
html #toolbox-drawer .rcmp-x.is-pin { color: var(--tp-ok); border-color: rgba(127, 224, 196, 0.5); }
html #toolbox-drawer .rcmp-l { font-size: 0.58rem !important; letter-spacing: 0.1em !important; color: rgba(var(--tp-rgb), 0.85); align-self: center; }
html #toolbox-drawer .rcmp-v span { position: relative; z-index: 1; font-family: var(--tb-mono); font-size: 0.72rem !important; font-weight: 600; color: rgba(255, 255, 255, 0.9); overflow-wrap: anywhere; }
html #toolbox-drawer .rcmp-v.is-now { background: rgba(127, 224, 196, 0.04); }
html #toolbox-drawer .rcmp-v.is-best span { color: var(--tp-ok); }
html #toolbox-drawer .rcmp-v.is-best span::after { content: ' ●'; font-size: 0.6em; }
html #toolbox-drawer .rcmp-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: rgba(var(--tp-rgb), 0.55); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
html #toolbox-drawer .rcmp-v.is-best .rcmp-bar { background: var(--tp-ok); }

/* ---------- kart: girişte sırayla beliren hücreler, yeni düğmeler ---------- */
html #toolbox-drawer .rsim-card:not([hidden]) { animation: tp-card .55s cubic-bezier(.2, .8, .2, 1) both; }
html #toolbox-drawer .rsim-card:not([hidden]) .rsim-card-grid > div { animation: tp-up .45s cubic-bezier(.2, .8, .2, 1) both; }
html #toolbox-drawer .rsim-card-grid > div:nth-child(2) { animation-delay: 40ms; }
html #toolbox-drawer .rsim-card-grid > div:nth-child(3) { animation-delay: 80ms; }
html #toolbox-drawer .rsim-card-grid > div:nth-child(4) { animation-delay: 120ms; }
html #toolbox-drawer .rsim-card-grid > div:nth-child(5) { animation-delay: 160ms; }
html #toolbox-drawer .rsim-card-grid > div:nth-child(6) { animation-delay: 200ms; }
html #toolbox-drawer .rsim-card-grid > div:nth-child(7) { animation-delay: 240ms; }
html #toolbox-drawer .rsim-card-grid > div:nth-child(8) { animation-delay: 280ms; }
@keyframes tp-card { from { opacity: 0; transform: translateY(10px) scale(0.985); } }

/* ---------- istif ve çevirici ---------- */
html #toolbox-drawer .stow-bar { position: relative; height: 10px; margin: 8px 0 4px; border: 1px solid rgba(var(--tp-rgb), 0.35); background: rgba(255, 255, 255, 0.04); overflow: hidden; }
html #toolbox-drawer .stow-bar[hidden] { display: none; }
html #toolbox-drawer .stow-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--fill, 0) * 100%); background: linear-gradient(90deg, rgba(var(--tp-rgb), 0.5), var(--tp-ok));
  transition: width .7s cubic-bezier(.2, .8, .2, 1); }
html #toolbox-drawer .stow-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: translateX(-100%); animation: tp-sheen 2.4s ease-in-out infinite; }
html #toolbox-drawer .stow-bar.is-over i { background: linear-gradient(90deg, rgba(var(--tp-rgb), 0.5), var(--tp-late)); }
@keyframes tp-sheen { 60%, 100% { transform: translateX(100%); } }
html #toolbox-drawer .conv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
html #toolbox-drawer .conv-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid rgba(var(--tp-rgb), 0.22); background: rgba(var(--tp-rgb), 0.05); animation: tp-up .35s ease both; }
html #toolbox-drawer .conv-list b { font-family: var(--tb-mono); font-size: 0.86rem !important; color: #fff; }
html #toolbox-drawer .conv-list span { font-size: 0.66rem !important; letter-spacing: 0.06em !important; color: var(--tp-acc); }

@media (prefers-reduced-motion: reduce) {
  html #toolbox-drawer .rlay-fill, html #toolbox-drawer .rlay-ship, html #toolbox-drawer .rsim-wx, html #toolbox-drawer .rcmp-bar, html #toolbox-drawer .stow-bar i { transition: none; }
  html #toolbox-drawer .rport, html #toolbox-drawer .rport-spark i, html #toolbox-drawer .rcmp-h.is-new, html #toolbox-drawer .rsim-card:not([hidden]), html #toolbox-drawer .rsim-card .rsim-card-grid > div,
  html #toolbox-drawer .conv-list li, html #toolbox-drawer .stow-bar i::after, .rmap .rm-tipdot::after, html #toolbox-drawer .rcmp.is-flash { animation: none; }
}

/* ---------- yazdırılabilir sefer kartı ---------- */
#nv-print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  html.nv-printing, html.nv-printing body { background: #fff !important; color: #111 !important; overflow: visible !important; height: auto !important; }
  html.nv-printing body > *:not(#nv-print) { display: none !important; }
  html.nv-printing #nv-print { display: block !important; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #111; }
  #nv-print * { color: #111; box-shadow: none !important; }
  #nv-print .nvp-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #0b6b5a; padding-bottom: 6px; }
  #nv-print .nvp-head img { height: 30px; width: auto; filter: brightness(0.35) saturate(1.4); }
  #nv-print .nvp-ht { text-align: right; font-size: 9pt; }
  #nv-print .nvp-ht b { display: block; font-size: 11pt; letter-spacing: 2px; color: #0b6b5a; }
  #nv-print .nvp-route { margin: 10px 0 8px; font-size: 15pt; font-weight: 700; letter-spacing: 0.3px; }
  #nv-print .nvp-map { display: block; width: 100%; height: auto; aspect-ratio: 2.25; overflow: hidden; border: 1px solid #c9d3d6; }
  #nv-print .nvp-mapw { position: relative; }
  #nv-print .nvp-mark { position: absolute; left: 50%; top: 50%; width: 26%; height: auto; transform: translate(-50%, -50%); opacity: 0.1; pointer-events: none; }
  #nv-print .nvp-sea { fill: #eef4f6; }
  #nv-print .nvp-land { fill: #d4d9d2; stroke: #aab3a8; stroke-width: 0.3; }
  #nv-print .nvp-route { fill: none; stroke: #0b6b5a; stroke-linecap: round; stroke-linejoin: round; }
  #nv-print .nvp-port { fill: #fff; stroke: #c0392b; stroke-width: 0.6; }
  #nv-print .nvp-port.is-a { stroke: #0b6b5a; }
  #nv-print .nvp-lbl { fill: #111; font-weight: 700; font-family: Arial, sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 0.8; }
  #nv-print .nvp-tl { display: flex; height: 9px; margin: 10px 0 3px; border: 1px solid #9aa; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #nv-print .nvp-tl i { display: block; height: 100%; }
  #nv-print .nvp-tl .is-sea { background: #0b6b5a; }
  #nv-print .nvp-tl .is-port { background: #c8a24a; }
  #nv-print .nvp-tl .is-wait { background: #9b8bd9; }
  #nv-print .nvp-tl .is-strait { background: #4a90d9; }
  #nv-print .nvp-key { display: flex; gap: 14px; margin: 0 0 8px; font-size: 7.5pt; color: #555; }
  #nv-print .nvp-key span { display: inline-flex; align-items: center; gap: 4px; }
  #nv-print .nvp-key i { display: inline-block; width: 12px; height: 7px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #nv-print .nvp-key .is-sea i { background: #0b6b5a; } #nv-print .nvp-key .is-port i { background: #c8a24a; }
  #nv-print .nvp-key .is-wait i { background: #9b8bd9; } #nv-print .nvp-key .is-strait i { background: #4a90d9; }
  #nv-print .nvp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 12px; margin: 8px 0; }
  #nv-print .nvp-grid div { border-left: 2px solid #0b6b5a; padding-left: 6px; break-inside: avoid; }
  #nv-print .nvp-grid dt { font-size: 7pt; letter-spacing: 1px; color: #555; }
  #nv-print .nvp-grid dd { margin: 1px 0 0; font-size: 10.5pt; font-weight: 700; }
  #nv-print .nvp-notes { margin: 6px 0; padding-left: 14px; font-size: 9pt; line-height: 1.45; }
  #nv-print .nvp-disc { font-size: 8pt; color: #555; margin: 6px 0; }
  #nv-print .nvp-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #c9d3d6; padding-top: 5px; font-size: 8pt; color: #333; }
  #nv-print .nvp-url { overflow-wrap: anywhere; text-align: right; max-width: 60%; }
}

/* ===== tahmin rozeti (route-fc-v1.js): haritanın gösterdiği an, dalga anahtarı, kaynak ===== */
.rmap-fc { position: absolute; z-index: 3; left: 10px; top: 34px; display: flex; flex-direction: column; gap: 4px; padding: 6px 9px 6px; max-width: calc(100% - 64px);
  background: rgba(2, 11, 16, 0.84); border: 1px solid rgba(var(--rm-rgb, 101,203,187), 0.4); pointer-events: none; animation: rmfcIn 0.45s ease both; }
.rmap-fc[hidden] { display: none; }
.rmap-fc b { font-size: 0.6rem; letter-spacing: 1.6px; color: var(--rm-a, #65cbbb); font-weight: 700; white-space: nowrap; }
.rmap-fc.is-clim b { color: rgba(255, 255, 255, 0.72); }
.rmap-fc.is-clim .rmap-fc-key { display: none; }
.rmap-fc-key { display: flex; align-items: center; gap: 2px; font-style: normal; }
.rmap-fc-key i { font-style: normal; font-size: 0.55rem; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.85); }
.rmap-fc-kl { margin: 0 4px 0 0; color: rgba(255, 255, 255, 0.6) !important; letter-spacing: 1.4px !important; }
.rmap-fc-kl:last-child { margin: 0 0 0 4px; }
.rmap-fc-sw { display: inline-block; min-width: 22px; padding: 1px 0; text-align: center; color: #06141a !important; font-weight: 700; }
.rmap-fc-sw.is-1 { background: rgb(80, 186, 206); } .rmap-fc-sw.is-2 { background: rgb(163, 206, 120); } .rmap-fc-sw.is-3 { background: rgb(240, 135, 55); }
.rmap-fc-sw.is-4 { background: rgb(226, 84, 62); color: #fff !important; } .rmap-fc-sw.is-5 { background: rgb(200, 50, 95); color: #fff !important; }
.rmap-fc small { font-size: 0.5rem; letter-spacing: 1px; color: rgba(255, 255, 255, 0.5); }
@keyframes rmfcIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .rmap-fc { top: 30px; left: 6px; padding: 4px 6px; gap: 3px; } .rmap-fc-sw { min-width: 16px; } .rmap-fc small { display: none; } }
.rmap.hud-low .rmap-fc { top: 76px; }
@media (prefers-reduced-motion: reduce) { .rmap-fc { animation: none; } }
.rwx-src.is-fc { color: var(--rm-a, #65cbbb); }

/* ================= sade düzen (v3): tek sonuç kartı, ayar satırı, ayrıntı sekmeleri, modül çipleri, alt şerit ================= */
/* dar düzende önce harita, sonra rota girişi ve yük, en sonda sefer kartı (24.11.2026 kararı); geniş düzende sağ sütun aynı kalır.
   Harita bloğu dar düzende 'contents': harita ve sefer kartı ayrı sıralanır (tam ekranda .is-full kendi ızgarasını kullanır) */
html #toolbox-drawer .mod-dist-map, html #toolbox-drawer .mod-dist-side { min-width: 0; }
html #toolbox-drawer:not(.is-wide) .mod-dist-body { display: flex; flex-direction: column; }
html #toolbox-drawer:not(.is-wide) .mod-dist-map:not(.is-full) { display: contents; }
html #toolbox-drawer:not(.is-wide) .mod-dist-body > .mod-dist-map > .rmap { order: 0; }
html #toolbox-drawer:not(.is-wide) .mod-dist-side { order: 1; margin: 14px 0; }
html #toolbox-drawer:not(.is-wide) .mod-dist-body > .mod-dist-map > .rsim { order: 2; }
/* sonuç tek yerde: sefer kartı varken yan sütunun süre satırı, basit yakıt kutusu ve ikinci teklif düğmesi gizli */
html #toolbox-drawer #bunker-result { display: none !important; }
html #toolbox-drawer #mod-distance.tp-card #dist-time,
html #toolbox-drawer #mod-distance.tp-card #quote-from-distance { display: none !important; }   /* tp-card: toolbox-plus-v1.js (:has() her karede stil hesabı yaptırıyordu) */
/* ayar satırı: üstte sınıf ve hız, altta miktar ve tarih (dar panelde de hiçbiri kesilmez) */
html #toolbox-drawer .tool-row[hidden] { display: none !important; }
html #toolbox-drawer .rsim-opts, .mod-dist-map.is-full .rsim-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.75fr) !important;
  grid-template-areas: "cls cls spd" "ton dat dat"; }
html #toolbox-drawer .rsim-opts select, .mod-dist-map.is-full .rsim-opts select { grid-area: cls !important; }
html #toolbox-drawer #rsim-tons { grid-area: ton; } html #toolbox-drawer #rsim-date { grid-area: dat; }
html #toolbox-drawer .rsim-kn { grid-area: spd; position: relative; display: block; min-width: 0; margin: 0; }
html #toolbox-drawer .rsim-kn input { width: 100%; box-sizing: border-box; padding-right: 34px; }
html #toolbox-drawer .rsim-kn em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; font: 700 0.6rem/1 'JetBrains Mono', ui-monospace, monospace;
  font-style: normal; letter-spacing: 0.12em; color: rgba(var(--tp-rgb), 0.85); }
/* kart güncellenince kısa bir parıltı (yeni değerler geldi) */
html #toolbox-drawer .rsim-card.is-new::after { content: ''; position: absolute; inset: -1px; pointer-events: none; border: 1px solid rgba(var(--rs-hot-rgb, 61, 220, 132), 0.9);
  box-shadow: 0 0 22px rgba(var(--rs-hot-rgb, 61, 220, 132), 0.25); animation: tp-glow .9s ease-out both; }
@keyframes tp-glow { from { opacity: 1; } to { opacity: 0; } }

/* ayrıntı sekmeleri */
html #toolbox-drawer .rtabs { display: flex; gap: 0; margin: 14px 0 0; border-bottom: 1px solid var(--tp-line); overflow-x: auto; scrollbar-width: none; }
html #toolbox-drawer .rtabs::-webkit-scrollbar { display: none; }
html #toolbox-drawer .rtabs button { position: relative; flex: 0 0 auto; padding: 10px 14px 9px; margin: 0; border: 0; background: transparent; cursor: pointer;
  font: 700 0.62rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.55); transition: color .2s, background .2s; }
html #toolbox-drawer .rtabs button::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--tp-acc);
  transform: scaleX(0); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
html #toolbox-drawer .rtabs button:hover, html #toolbox-drawer .rtabs button:focus-visible { color: #fff; outline: none; background: rgba(var(--tp-rgb), 0.08); }
html #toolbox-drawer .rtabs button[aria-selected="true"] { color: var(--tp-acc); }
html #toolbox-drawer .rtabs button[aria-selected="true"]::after { transform: scaleX(1); }
html #toolbox-drawer .rtabs button[hidden] { display: none; }
html #toolbox-drawer [data-panel].is-off { display: none !important; }
html #toolbox-drawer [data-panel] { margin-top: 0; border-top: 0; }
html #toolbox-drawer [data-panel].is-in { animation: tp-tab .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tp-tab { from { opacity: 0; transform: translateY(6px); } }

/* yük: kompakt çipler (simge yanında ad), iki satır */
html #toolbox-drawer .rmap-cargo { gap: 5px; margin-bottom: 12px; }
html #toolbox-drawer .rmap-cargo button { flex-direction: row; justify-content: flex-start; gap: 7px; min-height: 40px; padding: 6px 8px; text-align: left; }
html #toolbox-drawer .rmap-cargo button svg { width: 17px; height: 17px; flex: 0 0 auto; }
html #toolbox-drawer .rmap-cargo button span { min-height: 0; font-size: 0.7rem !important; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
/* dar ekranda dört sütun kalır, simge adın üstüne geçer (kelime bölünmez) */
@media (max-width: 560px) {
  html #toolbox-drawer .rmap-cargo button { flex-direction: column; justify-content: center; gap: 5px; min-height: 58px; padding: 7px 4px; text-align: center; }
  html #toolbox-drawer .rmap-cargo button span { font-size: 0.66rem !important; overflow-wrap: normal; hyphens: manual; }
}

/* modül çipleri: içerik kaydırıcısının üstünde yapışık */
html #toolbox-drawer .tb-nav { direction: ltr; position: sticky; top: -30px; z-index: 6; display: flex; gap: 6px; margin: -30px 0 18px; padding: 10px 30px 10px 40px;
  overflow-x: auto; scrollbar-width: none; background: linear-gradient(180deg, rgb(9, 10, 11) 78%, rgba(9, 10, 11, 0)); }
html #toolbox-drawer .tb-nav::-webkit-scrollbar { display: none; }
html #toolbox-drawer .tb-chip { flex: 0 0 auto; padding: 7px 11px; margin: 0; cursor: pointer; border: 1px solid rgba(var(--tp-rgb), 0.25); background: rgba(2, 11, 16, 0.6);
  color: rgba(255, 255, 255, 0.62); font: 700 0.54rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.12em; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
html #toolbox-drawer .tb-chip:hover, html #toolbox-drawer .tb-chip:focus-visible { color: #fff; border-color: rgba(var(--tp-rgb), 0.6); outline: none; }
html #toolbox-drawer .tb-chip.is-on { color: #031015; background: var(--tp-acc); border-color: var(--tp-acc); }
@media (max-width: 768px) { html #toolbox-drawer .tb-nav { padding: 10px 18px; } }

/* alt şerit: sonuç kartı ekranda değilken */
html #toolbox-drawer .rmini { direction: ltr; position: sticky; bottom: 0; z-index: 6; display: flex; align-items: stretch; gap: 8px; margin: 0 24px; padding: 9px 0 calc(9px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgb(9, 10, 11) 70%, rgba(9, 10, 11, 0)); animation: tp-mini .3s cubic-bezier(.2, .8, .2, 1) both; }
html #toolbox-drawer .rmini[hidden] { display: none; }
html #toolbox-drawer .rmini button { margin: 0; cursor: pointer; font: 700 0.66rem/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.06em; }
html #toolbox-drawer .rmini-txt { flex: 1 1 auto; min-width: 0; padding: 11px 12px; text-align: left; color: #fff; background: rgba(2, 11, 16, 0.92);
  border: 1px solid rgba(var(--rs-hot-rgb, 61, 220, 132), 0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html #toolbox-drawer .rmini-go { flex: 0 0 auto; padding: 11px 14px; color: #031015; background: var(--rs-hot, #3ddc84); border: 1px solid var(--rs-hot, #3ddc84); }
html #toolbox-drawer .rmini-txt:hover, html #toolbox-drawer .rmini-txt:focus-visible { border-color: var(--rs-hot, #3ddc84); outline: none; }
html #toolbox-drawer .rmini-go:hover, html #toolbox-drawer .rmini-go:focus-visible { filter: brightness(1.08); outline: none; }
@keyframes tp-mini { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 768px) { html #toolbox-drawer .rmini { margin: 0 14px; } html #toolbox-drawer .rmini-go { padding: 11px 10px; } }
/* telefonda özet iki satıra iner, düğme yarıdan fazla yer kaplamaz */
@media (max-width: 560px) {
  html #toolbox-drawer .rmini-txt { white-space: normal; padding: 8px 10px; font-size: 0.62rem; line-height: 1.45; }
  html #toolbox-drawer .rmini-go { max-width: 44%; white-space: normal; text-wrap: balance; font-size: 0.6rem; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  html #toolbox-drawer .rmini, html #toolbox-drawer [data-panel].is-in, html #toolbox-drawer .rsim-card.is-new::after, html #toolbox-drawer .rtabs button::after { animation: none; transition: none; }
}
/* kart dar bir sütundaysa (tam ekran yan paneli, dar çekmece) dört sütun yerine iki: ETA ve yakıt kesilmez */
html #toolbox-drawer .rsim-card, .mod-dist-map.is-full .rsim-card { container-type: inline-size; }
@container (max-width: 420px) { .rsim-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* tam ekranda kart zaten yan panelde: alt şerit gerekmez */
html.nv-map-full #toolbox-drawer .rmini { display: none !important; }

/* ===== filigran: haritada ve sonuç kartında Nevida logosu (ekran görüntüsünde kaynak belli olsun, kullanımı kapatmaz) ===== */
/* sol üstte, ROTA ÇİZİMİ başlığının önünde küçük logo; başlık sağa kayar (logo başlığın dışında: çeviri birimi bozulmasın) */
.rmap-mark { position: absolute; z-index: 2; top: 8px; left: 26px; width: 16px; opacity: 0.85; pointer-events: none; user-select: none; }
.rmap-mark img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.rmap-hud { left: 48px; }
.rmap.hud-low .rmap-mark { top: 41px; left: 14px; } .rmap.hud-low .rmap-hud { left: 36px; }
.mod-dist-map.is-full .rmap-mark { top: 9px; left: 32px; width: 18px; } .mod-dist-map.is-full .rmap-hud { left: 56px; }
.rmap-sig { position: absolute; right: 44px; bottom: 44px; z-index: 1; display: flex; align-items: center; gap: 5px; opacity: 0.5; pointer-events: none; user-select: none;
  font: 700 0.46rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.14em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.rmap-sig img { width: 11px; height: auto; -webkit-user-drag: none; }
.rmap-sig::after { content: 'NEVIDASHIP.COM'; }
.mod-dist-map.is-full .rmap-sig { right: 52px; bottom: 52px; font-size: 0.52rem; }
.mod-dist-map.is-full .rmap-sig img { width: 13px; }
@media (max-width: 560px) { .rmap-sig { right: 42px; bottom: 40px; font-size: 0.42rem; } .rmap-sig img { width: 10px; } }
.rsim-card { isolation: isolate; }
.rsim-card::before { content: ''; position: absolute; right: 12px; bottom: 12px; z-index: -1; width: 112px; height: 101px; pointer-events: none;
  background: url(logo-display-v1.webp) no-repeat center / contain; opacity: 0.06; }
/* yapışık modül çiplerinin altında kalmasın */
html #toolbox-drawer .toolbox-content .tool-module, html #toolbox-drawer .rmap, html #toolbox-drawer .rsim-card { scroll-margin-top: 64px; }
