/* Emek Sermaye · yatırımcı platformu
   Tanıtım sitesinin (site.css) üzerine eklenir: aynı beyaz zemin, ince çizgiler ve tek vurgu rengi.
   Kutu ve çizim yok; içerik başlık, liste ve tablolarla verilir. */

.platform main.wrap { padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 104px); min-height: 62vh; outline: none; }

/* ---------- üst menü ---------- */
.platform .main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.as-btn { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.btn { cursor: pointer; font-family: var(--font-body); }
.btn[disabled] { opacity: .5; cursor: default; }
button.btn-plain { background: transparent; }
button.btn-plain:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.account { position: relative; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--ink); font: 600 13.5px/1 var(--font-body); cursor: pointer;
}
.avatar:hover { border-color: var(--ink); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 264px; max-width: calc(100vw - 48px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-2); padding: 6px;
}
.am-head { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.am-head b { font-size: 15px; }
.am-head span { font-size: 13px; color: var(--muted); }
.am-head small { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.am-item { width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 6px; font: 600 14.5px var(--font-body); color: var(--ink); cursor: pointer; }
.am-item:hover { background: var(--surface-2); }
@media (max-width: 820px) {
  .platform .header-inner { flex-wrap: wrap; row-gap: 0; }
  .platform .main-nav { display: flex; order: 3; width: 100%; gap: 0; border-top: 1px solid var(--line); margin-inline: -4px; }
  .platform .main-nav a { flex: 1 0 auto; text-align: center; padding: 12px 8px; white-space: nowrap; }
  .platform .main-nav { overflow-x: auto; scrollbar-width: none; }
  .platform .main-nav::-webkit-scrollbar { display: none; }
  .platform .main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
}

/* ---------- sayfa başlığı ve durumlar ---------- */
.page-head { margin-bottom: clamp(24px, 3vw, 36px); }
.page-head h1 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.08; letter-spacing: -0.025em; }
.page-head .lead { margin-top: 10px; }
.page-head p + p { margin-top: 12px; }
.back { margin-bottom: 14px; }
.state-msg { color: var(--muted); padding-block: 40px; }
.empty { max-width: 36em; padding-block: 8px 24px; }
.empty h1, .empty h2 { font-size: 24px; letter-spacing: -0.015em; margin-bottom: 10px; }
.empty p { color: var(--ink-2); margin-bottom: 22px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.row-actions.end { justify-content: flex-end; }
.platform .fine { margin-top: 0; }

/* ---------- durum etiketi ---------- */
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--s-idle); flex: none; }
.st-running::before { background: var(--s-run); }
.st-setup::before { background: var(--s-setup); }
.st-maintenance::before { background: var(--s-maint); }
.st-proc::before { background: var(--s-proc); }

/* ---------- harita ---------- */
.map { height: clamp(240px, 34vw, 360px); border: 1px solid var(--line); border-radius: 10px; position: relative; z-index: 0; isolation: isolate; background: var(--surface-2); }
.map .leaflet-container { font-family: var(--font-body); }
.pin { border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: pointer; }
.pin.is-on { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent), 0 1px 4px rgba(0, 0, 0, .35); }
.leaflet-tooltip.pin-label { background: #fff; color: #0a2a31; border: 1px solid #adc6c6; border-radius: 6px; box-shadow: none; font: 600 13.5px var(--font-body); padding: 4px 8px; }
.leaflet-tooltip.pin-label::before { display: none; }
@media (prefers-color-scheme: dark) { .map .leaflet-tile-pane { filter: brightness(.78) contrast(1.08) saturate(.85); } }

.tabs { display: flex; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line-strong); background: none; border-radius: 8px; padding: 9px 14px; font: 600 15px var(--font-body); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- tesis ---------- */
.facility { margin-top: clamp(32px, 4vw, 48px); }
.facility-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 900px) { .facility-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; } }
.facility-info h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.facility-info .meta { color: var(--muted); margin-top: 6px; }
.facility-info > p:not(.meta) { margin-top: 16px; color: var(--ink-2); max-width: 34em; }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 16px 12px 16px 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 700 30px/1.15 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--surface-2); }
.photo figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.photo figcaption a { color: inherit; }
.facility h3, .block h2 { font-size: 21px; letter-spacing: -0.01em; }
.facility h3 { margin: clamp(36px, 4vw, 52px) 0 4px; }
.count { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* ---------- tezgâh ve talep listeleri ---------- */
.mlist, .rlist { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.mlist li, .rlist li { border-bottom: 1px solid var(--line); }
.mrow { display: grid; grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 20px; align-items: center; padding: 18px 0; width: 100%; text-align: left; color: var(--ink); font: inherit; }
button.mrow { background: none; border: 0; cursor: pointer; }
button.mrow:hover { background: var(--surface-2); }
.mrow.is-wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr) 14px; }
.slot-code { font: 600 15px var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.mname { display: grid; gap: 1px; min-width: 0; }
.mname b { font: 700 17.5px/1.3 var(--font-display); }
.mname span { font-size: 14.5px; color: var(--muted); }
.owner { color: var(--ink-2); font-size: 15px; }
.owner .mine, .mine { color: var(--accent); font-weight: 600; }
.mnum { display: grid; gap: 1px; min-width: 0; }
.mnum small { font-size: 13.5px; color: var(--muted); }
.mnum b { font: 600 16.5px/1.3 var(--font-body); font-variant-numeric: tabular-nums; }
.chev { color: var(--muted); font-size: 22px; line-height: 1; }
@media (max-width: 700px) {
  .mrow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .mrow .owner { grid-column: 2 / -1; font-size: 14px; color: var(--muted); }
  .mrow.is-wide { grid-template-columns: minmax(0, 1fr) auto; }
  .mrow.is-wide .mnum { grid-column: auto; }
  .mrow.is-wide .chev { display: none; }
}
.rlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: center; padding: 16px 0; }
.rmain { display: grid; gap: 1px; min-width: 0; }
.rmain b { font: 700 17px/1.3 var(--font-display); }
.rmain span { font-size: 14.5px; color: var(--muted); }
.rstatus { font-weight: 600; font-size: 15px; white-space: nowrap; }
.rs-approved { color: var(--good-ink); }
.rs-rejected { color: var(--muted); }

.open-slots { margin-top: 14px; display: grid; gap: 16px; justify-items: start; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-chip { min-width: 60px; padding: 11px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; background: none; color: var(--ink-2); font: 600 15px var(--font-display); font-variant-numeric: tabular-nums; cursor: pointer; }
.slot-chip:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }

/* ---------- özet rakamlar ---------- */
.kpis { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.kpi { padding: 18px 16px 18px 0; min-width: 0; }
.kpi dt { font-size: 14px; color: var(--muted); }
.kpi dd { margin: 4px 0 0; font: 700 clamp(22px, 2.6vw, 28px)/1.15 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

.block { margin-top: clamp(36px, 4.5vw, 56px); }
.block > h2, .block-head { margin-bottom: 14px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; }
@media (min-width: 900px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tbl-sm tr.strong th, .tbl-sm tr.strong td, .tbl-sm tr.total th, .tbl-sm tr.total td { font-weight: 600; color: var(--ink); }
.tbl-sm tr.total th, .tbl-sm tr.total td { border-bottom: 0; }
.tbl .text-link { text-align: left; font-size: inherit; white-space: normal; }
.tbl tbody th small { font-weight: 400; }
.filters { display: flex; gap: 12px 24px; flex-wrap: wrap; margin-top: 18px; }
.field-inline { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }

.current { display: grid; gap: 12px; max-width: 40em; }
.current > div:first-child { display: grid; gap: 1px; }
.current b { font: 700 18px/1.3 var(--font-display); }
.current span { font-size: 14.5px; color: var(--muted); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ---------- tedarik adımları ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 0 0 24px 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--ink-2); border-color: var(--ink-2); }
.timeline li.is-cur::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.timeline b { font: 700 17px/1.3 var(--font-display); }
.timeline p { margin-top: 3px; color: var(--ink-2); font-size: 15px; max-width: 34em; }
.timeline li > span { color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.timeline li.is-cur b { color: var(--accent); }

/* ---------- takvim ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-nav .range { color: var(--muted); font-size: 14.5px; margin-right: 6px; }
.cal-scroll { overflow-x: auto; }
.cal { display: grid; grid-template-columns: 72px minmax(440px, 1fr); border-top: 1px solid var(--line); }
.cal-corner, .cal-hours { height: 26px; border-bottom: 1px solid var(--line); }
.cal-hours { position: relative; }
.cal-hours span { position: absolute; top: 5px; transform: translateX(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-hours span:first-child { transform: none; }
.cal-hours span:last-child { transform: translateX(-100%); }
.cal-day { display: grid; align-content: center; line-height: 1.2; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.cal-day b { font-size: 14px; font-weight: 600; }
.cal-day small { font-size: 12.5px; color: var(--muted); }
.cal-day.is-today b { color: var(--accent); }
.cal-track { position: relative; height: 46px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%; }
.cal-block { position: absolute; top: 8px; bottom: 8px; border: 0; border-radius: 4px; padding: 0 8px; overflow: hidden; display: flex; align-items: center; font: 600 12.5px var(--font-body); white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 1px var(--surface); }
.cal-block span { overflow: hidden; text-overflow: ellipsis; }
.cal-block.own { background: var(--c-own); color: var(--on-own); }
.cal-block.platform { background: var(--c-platform); color: var(--on-platform); }
.cal-block.maint { background: repeating-linear-gradient(45deg, var(--surface-3) 0 5px, transparent 5px 9px); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal-block.is-past { opacity: .55; }
.cal-block.is-sel { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); z-index: 2; }
.cal-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); z-index: 3; pointer-events: none; }
.cal-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.key.own { background: var(--c-own); }
.key.platform { background: var(--c-platform); }
.key.maint { background: repeating-linear-gradient(45deg, var(--line-strong) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tbl.jobs { margin-top: 20px; }
.job-detail { margin-top: 20px; padding: 18px 20px 20px; border: 1px solid var(--line-strong); border-radius: 10px; }
.jd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.jd-head h3 { font-size: 19px; }
.kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; }
.kv dt { font-size: 13.5px; color: var(--muted); }
.kv dd { margin: 1px 0 0; font-size: 15.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv dd.strong { font-weight: 600; }

/* ---------- grafik ---------- */
.chart { position: relative; width: 100%; min-width: 0; }
.platform .chart-note { margin-top: 10px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--muted); font: 500 12px var(--font-body); }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-line { stroke: var(--axis); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hl { fill: var(--ink); opacity: .05; }
.chart .lbl-strong { fill: var(--ink); font-weight: 600; }
.tooltip { position: fixed; z-index: 90; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow-1); padding: 9px 11px; font-size: 13.5px; min-width: 160px; max-width: 280px; display: grid; gap: 4px; }
.tooltip .tt-title { font-size: 13px; color: var(--muted); font-weight: 600; }
.tooltip .tt-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.tooltip .tt-row i { width: 12px; height: 2px; display: block; }
.tooltip .tt-row span { color: var(--ink-2); }
.tooltip .tt-row b { font-variant-numeric: tabular-nums; }
.tooltip .tt-total { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }

/* ---------- pencereler ve formlar ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(6, 30, 35, .5); display: flex; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal { width: min(520px, 100%); margin: auto; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-2); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 22px; letter-spacing: -0.015em; }
.modal-head .fine { margin-top: 2px; }
.modal-body { padding: 22px 24px 24px; display: grid; gap: 16px; }
@media (max-width: 480px) { .modal-head { padding: 16px 18px 14px; } .modal-body { padding: 18px; } }
.icon-btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 14.5px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field small { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea, .field-inline select {
  font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field-inline select { width: auto; padding: 8px 12px; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus, .field-inline select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 480px) { .two-fields { grid-template-columns: minmax(0, 1fr); } }
.types { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.types legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.type-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
.type-row:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.type-row input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.tr-main, .tr-price { display: grid; gap: 1px; min-width: 0; }
.tr-main b { font: 700 16.5px/1.3 var(--font-display); }
.tr-main span, .tr-price span { font-size: 13.5px; color: var(--muted); }
.tr-price { text-align: right; }
.tr-price b { font-weight: 600; font-variant-numeric: tabular-nums; }
.form-error { font-size: 14.5px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, #d03b3b 10%, transparent); border: 1px solid color-mix(in srgb, #d03b3b 40%, transparent); }
.form-info { font-size: 14.5px; padding: 10px 12px; border-radius: 8px; background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.auth-switch { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); justify-items: start; }
.auth-switch .text-link { font-size: 14.5px; color: var(--accent); }

.toast { position: fixed; z-index: 95; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 84px); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 8px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-2); max-width: calc(100% - 32px); text-align: center; }

/* ---------- alt bilgi ---------- */
.platform-foot { border-top: 1px solid var(--line); padding-block: 26px max(30px, env(safe-area-inset-bottom, 0px)); font-size: 14.5px; color: var(--muted); }
.platform-foot .wrap { display: flex; gap: 10px 28px; flex-wrap: wrap; }
.platform-foot a { color: var(--ink-2); text-decoration: none; }
.platform-foot a:hover { color: var(--ink); }
.platform-foot span { margin-left: auto; }
@media (max-width: 600px) { .platform-foot span { margin-left: 0; width: 100%; } }

/* ---------- yönetim ekranı ---------- */
.tbl-text td { text-align: left; white-space: normal; vertical-align: top; }
.tbl-text thead th { text-align: left; padding-left: 16px; }
.tbl-text thead th:first-child { padding-left: 0; }
.tbl-text td small, .tbl-text th small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; }
.tbl-text td.act { text-align: right; white-space: nowrap; }
.adm-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; margin-bottom: 8px; }
.adm-form .wide { grid-column: 1 / -1; }
.adm-form .row-actions { grid-column: 1 / -1; align-items: center; }
.adm-sub { margin: 28px 0 10px; font: 600 15px var(--font-body); color: var(--muted); }
.field select[disabled] { opacity: .6; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* dar ekranda kayıtlı kullanıcı girişe ulaşabilsin */
@media (max-width: 430px) {
  .platform .header-actions { min-height: 52px; }
  .platform .header-actions .text-link { display: inline; }
  .platform .header-actions .btn-primary { display: none; }
}

/* ---------- hesaplama ---------- */
:root { --neg: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --neg: #ff9488; } }
:root[data-theme="dark"] { --neg: #ff9488; }
.calc .neg, #hesap-types .neg, .calc-bar .neg, .calc-tbl tr.neg td, .calc-tbl tr.neg th { color: var(--neg); }
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.calc-sec { padding: 30px 0; border-top: 1px solid var(--line); }
.calc-sec:first-child { padding-top: 0; border-top: 0; }
.calc-sec h2 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 16px; }
.calc-sec h3 { font: 600 15px var(--font-body); color: var(--muted); margin: 26px 0 10px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.calc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-narrow { max-width: 170px; grid-template-columns: minmax(0, 1fr); }
.calc-intro { margin: -8px 0 14px; font-size: 14.5px; color: var(--ink-2); }
.calc .field input { padding: 8px 10px; font-size: 15px; }
.calc .field > span { font-size: 14px; }
.calc input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.calc input[type="number"]::-webkit-outer-spin-button, .calc input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-m { display: grid; grid-template-columns: minmax(0, 1.4fr) 52px repeat(3, minmax(0, 1fr)) 32px; gap: 6px; align-items: end; margin: 0 0 6px; }
.calc-mhead { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.calc-m .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calc-m .icon-btn, .calc-row .icon-btn { width: 32px; height: 38px; }
.calc-m input[type="text"] { font-weight: 600; }
.calc-hint { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.calc-hint:empty { display: none; }
.calc-note { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 46em; }
.calc-note .text-link { font-size: inherit; color: var(--accent); margin-left: 4px; }
.calc-row, .calc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 64px 120px 32px; gap: 6px; align-items: center; }
.calc-row { margin-bottom: 6px; }
.calc-row:not(.calc-row-3), .calc-cols-2 { grid-template-columns: minmax(0, 1fr) 120px 32px; }
.calc-cols { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.calc-add { margin-top: 4px; font-size: 15px; color: var(--accent); }
.calc-add:hover { color: var(--accent-strong); }
.calc-range { margin-top: 18px; }
.calc-range output { font-weight: 700; margin-left: 6px; font-variant-numeric: tabular-nums; }
.field input[type="range"] { padding: 0; border: 0; height: 28px; background: none; accent-color: var(--accent); }
.field input[type="range"]:focus { outline-offset: 4px; }
.calc-out { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scroll-margin-top: 140px; }
.calc-top { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.calc-top dt, .calc-facts dt { font-size: 14px; color: var(--muted); }
.calc-top dd { margin: 4px 0 0; font: 700 clamp(24px, 2.6vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-top small, .calc-facts small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.calc-split { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-split figcaption { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; font-size: 15px; color: var(--ink-2); }
.calc-split figcaption b { font: 700 22px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-split ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; font-size: 15px; color: var(--ink-2); }
.calc-split li { display: flex; align-items: center; gap: 8px; }
.calc-split li i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.calc-split li b { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-split li small { width: 38px; text-align: right; font-size: 13.5px; color: var(--muted); }
.calc-facts { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.calc-facts dd { margin: 2px 0 0; font: 700 20px/1.2 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.calc-warn { margin: 0 0 18px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--neg); color: var(--neg); font-size: 14.5px; font-weight: 500; }
.tbl.calc-tbl tbody th small, .tbl.calc-tbl td small { display: inline; margin-left: 6px; font-size: 13.5px; color: var(--muted); }
.calc-two { margin-top: 0; }
.calc-two h2 { margin-bottom: 6px; }
.calc-h2 { margin-top: clamp(36px, 4.5vw, 56px); margin-bottom: 14px; }
.calc-bar { display: none; }
@media (max-width: 980px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-out { position: static; }
  .calc-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; gap: 4px 20px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-2); }
  .calc-bar b { display: block; font: 700 17px/1.25 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
  .calc-bar button { margin-left: auto; padding: 10px 4px; font: 600 15px var(--font-body); color: var(--accent); }
  .platform:has(.calc-bar) .platform-foot { padding-bottom: 96px; }
}
@media (max-width: 620px) {
  .calc-out { padding: 18px; }
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-narrow { grid-template-columns: minmax(0, 1fr); }
  .calc-row, .calc-cols { grid-template-columns: minmax(0, 1fr) 54px 96px 32px; }
  .calc-row:not(.calc-row-3), .calc-cols-2 { grid-template-columns: minmax(0, 1fr) 104px 32px; }
  .calc-mhead { display: none; }
  .calc-m { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
  .calc-m .lbl { position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: nowrap; font-size: 12.5px; }
  .calc-m > .field { grid-column: span 2; }
  .calc-m > .field:first-child { grid-column: 1 / 6; grid-row: 1; }
  .calc-m > .field:nth-child(5), .calc-m > .field:nth-child(6) { grid-column: span 3; }
  .calc-m .icon-btn { grid-column: 6; grid-row: 1; justify-self: end; }
}
@media (max-width: 899px) { .calc-two > div + div { margin-top: 36px; } }
#hesap-types .tbl tbody th { white-space: nowrap; }

/* ---------- simülasyon ---------- */
.calc .field select { font-size: 15px; padding: 8px 10px; }
.calc-grid + .calc-grid { margin-top: 12px; }
.calc-grid .wide { grid-column: 1 / -1; }
.sim-stage { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: clamp(18px, 3vw, 28px); margin-bottom: clamp(36px, 4.5vw, 56px); }
.sim-stage .neg { color: var(--neg); }
.sim-fac { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sim-fac b { font: 700 18px/1.25 var(--font-display); letter-spacing: -0.01em; }
.sim-fac p { margin: 3px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sim-slots { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; max-width: 290px; }
.sim-slot { width: 22px; height: 22px; border: 1px dashed var(--line-strong); border-radius: 4px; }
.sim-slot.me { border: 1px solid var(--accent); background: var(--accent); }
.sim-scene { display: grid; grid-template-columns: 84px minmax(0, 1fr) 190px; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 28px 0 24px; }
.sim-op, .sim-mc { margin: 0; text-align: center; }
.sim-op svg { display: block; width: 60px; height: 92px; margin: 0 auto 8px; fill: var(--ink-2); }
.sim-op.off svg { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 5 4; }
.sim-op figcaption { font-size: 14px; color: var(--ink-2); }
.sim-op.off figcaption { color: var(--muted); }
.sim-job { border: 1px solid var(--line-strong); border-left-width: 4px; border-radius: 10px; padding: 14px 16px; min-width: 0; }
.sim-job.own { border-left-color: var(--c-own); }
.sim-job.platform { border-left-color: var(--c-platform); }
.sim-job.empty { border-style: dashed; border-left-width: 1px; }
.sim-job h3 { font: 600 18px/1.3 var(--font-display); overflow-wrap: anywhere; }
.sim-job p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sim-job.empty h3, .sim-job.empty p { color: var(--muted); }
.sim-job .sim-job-src { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.sim-prog { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 12px; overflow: hidden; }
.sim-prog span { display: block; height: 100%; background: var(--accent); }
.sim-mc svg { display: block; width: 176px; height: 132px; margin: 0 auto 8px; }
.sim-mc figcaption { display: grid; gap: 4px; justify-items: center; font-size: 14px; }
.sim-mc figcaption b { font-weight: 600; overflow-wrap: anywhere; }
.mc-base { fill: var(--line-strong); }
.mc-body { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.mc-win { fill: var(--surface); stroke: var(--line-strong); }
.sim-mc.run .mc-win { fill: var(--accent-tint); }
.mc-head, .mc-table { fill: var(--muted); }
.mc-tool { fill: var(--ink-2); }
.mc-part { fill: var(--accent); }
.sim-mc:not(.run) .mc-part { display: none; }
.mc-panel { fill: var(--ink-2); }
.mc-screen { fill: var(--muted); }
.sim-mc.run .mc-screen { fill: var(--accent-bright); }
.mc-tower { fill: var(--line-strong); }
.mc-light { fill: var(--s-idle); }
.sim-mc.run .mc-light { fill: var(--s-run); }
.sim-bar { position: relative; height: 30px; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface-3) 6px 12px); }
.sim-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 8px; box-shadow: inset -2px 0 0 var(--surface); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sim-seg.own { background: var(--c-own); color: var(--on-own); }
.sim-seg.platform { background: var(--c-platform); color: var(--on-platform); }
.sim-time { position: relative; padding-top: 12px; }
.sim-mark { position: absolute; top: 0; width: 0; height: 0; margin-left: -7px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--ink); transition: left .25s ease; }
@media (prefers-reduced-motion: reduce) { .sim-mark { transition: none; } }
.sim-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.sim-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.sim-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sim-legend i { width: 12px; height: 12px; border-radius: 2px; }
.sim-legend .own { background: var(--c-own); }
.sim-legend .platform { background: var(--c-platform); }
.sim-legend .idle { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--line-strong) 3px 5px); }
.sim-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.sim-ctrl .btn { min-width: 92px; min-height: 40px; }
.sim-ctrl input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; }
.sim-ctrl output { min-width: 92px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(24px, 4vw, 56px); margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sim-ledger h3 { font: 600 15px var(--font-body); color: var(--muted); margin-bottom: 8px; }
.sim-ledger > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; color: var(--ink-2); }
.sim-ledger > div b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-ledger > div small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.sim-ledger .tot { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.sim-ledger .tot b { font: 700 18px/1.2 var(--font-display); }
.sim-off { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.sim-sum { margin-top: 20px; }
.sim-jrow { display: grid; grid-template-columns: minmax(0, 1.5fr) 58px minmax(0, 1fr) minmax(0, 1fr) 58px 32px; gap: 6px; align-items: end; margin: 0 0 6px; }
.sim-jhead { font-size: 12.5px; color: var(--muted); }
.sim-jrow .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sim-jrow .icon-btn { width: 32px; height: 38px; }
.sim-jrow input[type="text"] { font-weight: 600; }
@media (max-width: 760px) {
  .sim-scene { grid-template-columns: 72px minmax(0, 1fr); }
  .sim-mc { grid-column: 1 / -1; }
  .sim-slots { margin-left: 0; }
}
@media (max-width: 620px) {
  .sim-today { grid-template-columns: minmax(0, 1fr); }
  .sim-ctrl { flex-wrap: wrap; justify-content: space-between; row-gap: 8px; }
  .sim-ctrl input[type="range"] { order: 3; flex-basis: 100%; }
  .sim-ctrl output { min-width: 0; }
  .sim-jhead { display: none; }
  .sim-jrow { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
  .sim-jrow .lbl { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: 12.5px; }
  .sim-jrow > .field:nth-child(1) { grid-column: 1 / 6; }
  .sim-jrow .icon-btn { grid-column: 6; grid-row: 1; justify-self: end; }
  .sim-jrow > .field:nth-child(2) { grid-column: span 2; }
  .sim-jrow > .field:nth-child(3) { grid-column: span 4; }
  .sim-jrow > .field:nth-child(4), .sim-jrow > .field:nth-child(5) { grid-column: span 3; }
}

/* hesaplama: saatlik iş ücreti satırları */
.calc-rate { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 6px 0; }
.calc-rate > span { font-weight: 600; overflow-wrap: anywhere; }
.calc-rate > span em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; font-size: 14px; }
.calc-rate small { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-rate + h3 { margin-top: 22px; }
@media (max-width: 480px) {
  .calc-rate { grid-template-columns: minmax(0, 1fr) 110px; }
  .calc-rate small { grid-column: 1 / -1; margin-top: -2px; }
}

/* hesaplama: yatırımcı ve platform hesabı */
.calc-period { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; padding: 3px; margin-bottom: 20px; }
.calc-period button { border: 0; background: none; padding: 7px 14px; min-height: 36px; border-radius: 6px; font: 600 14px var(--font-body); color: var(--ink-2); cursor: pointer; }
.calc-period button:hover { color: var(--ink); }
.calc-period button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.calc-stmt + .calc-stmt { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.calc-stmt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.calc-stmt h2 { font-size: 21px; letter-spacing: -0.015em; }
.calc-stmt h3 { font: 600 13.5px var(--font-body); color: var(--muted); margin: 16px 0 2px; }
.calc-stmt-tag { font-size: 13.5px; color: var(--muted); }
.calc-view select { font: 500 14.5px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; max-width: 100%; }
.calc-view select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.calc-paid { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 12px 14px; background: var(--surface-2); border-radius: 8px; }
.calc-paid dt { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.calc-paid dd { margin: 0; font: 700 22px/1.2 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.calc-paid small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.calc-lines { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.calc-lines th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 5px 8px 5px 0; }
.calc-lines th small { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.calc-lines td { text-align: right; padding: 5px 0; white-space: nowrap; font-weight: 500; color: var(--ink); }
.calc-net { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.calc-net span { font-weight: 600; font-size: 15px; }
.calc-net b { font: 700 clamp(22px, 2.4vw, 28px)/1.15 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.calc-out .calc-facts { margin-top: 20px; }
.calc-gap { margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 981px) { .calc-out { max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; } }
