/* VoltGuard · Ev Elektrik Karnesi (hesaplama/ev-elektrik-karnesi.html, js/ev-karnesi.js)
   Yüzey ve metin renkleri --th-* tokenlarından gelir (css/vg-shell.css); koyu tema yalnız tokenları değiştirir.
   Ev çizimi bir illüstrasyondur: duvar/zemin renkleri iki temada aynıdır, yalnız gökyüzü ve zemin temaya uyar.
   Karne kartı ve teklif bandı, sitedeki diğer koyu bantlar gibi temadan bağımsız lacivert adalardır.
   Durum renkleri hiçbir yerde tek ipucu değildir: rozet simgesi, metin ve ekran okuyucu metni de değişir. */
.ek {
  --ek-sky-1: var(--th-tint-blue);
  --ek-sky-2: var(--th-surface-2);
  --ek-ground: #cfe1c3;
  --ek-walk: #d9d4c8;
  --ek-sun: #fcd34d;
  --ek-cloud: #ffffff;
  --ek-green: #15803d;
  --ek-amber: #f59e0b;
  --ek-red: #dc2626;
  --ek-navy: #0a1628;
  --ek-radius: 18px;
  max-width: 1180px;
}
:root[data-theme="dark"] .ek {
  --ek-ground: #1b2b23;
  --ek-walk: #273447;
  --ek-sun: #e2e8f0;
  --ek-cloud: #22344f;
}
.ek-body .breadcrumb { max-width: 1180px; }
.ek-prose { max-width: 820px; }
.ek-cta-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.ek-sources li { overflow-wrap: anywhere; }
.ek-back { margin-top: 1.6rem; }
.ek [hidden], .ek-app [hidden] { display: none !important; }
.ek-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- giriş: başlık + güvenlik notu, yanında acil durum kutusu (statik) ---------- */
.ek-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.ek-hero .article__summary { margin-bottom: .9rem; }
.article .ek-safe { margin: 0; padding: .7rem .95rem; border-radius: 12px; background: var(--th-tint-amber); border: 1px solid var(--th-amber-line); color: var(--th-amber-ink-2); font-size: .92rem; line-height: 1.6; }
.ek-safe strong { color: var(--th-amber-ink); }
.ek-acil { margin-top: .4rem; border-radius: 16px; padding: 1rem 1.1rem; background: var(--th-tint-red); border: 1px solid var(--th-red-line); color: var(--th-text); font-size: .9rem; }
.article .ek-acil h2 { font-size: 1rem; font-weight: 800; margin: 0 0 .45rem; color: var(--th-red-ink); }
.ek-acil ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ek-acil li { position: relative; padding-left: 1.05rem; line-height: 1.55; color: var(--th-text); }
.ek-acil li::before { content: ""; position: absolute; left: .1rem; top: .6em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--ek-red); }
.article .ek-acil a { color: var(--th-red-ink); font-weight: 700; }
.article .ek-hero__go { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1rem 0 0; }
.ek-hero__go .btn { white-space: normal; }
.ek-hero__meta { font-size: .88rem; color: var(--th-text-2); }

/* ---------- uygulama kabı ---------- */
.ek-app { position: relative; margin: 1.25rem 0 2.25rem; border: 1px solid var(--th-border); border-radius: 22px; background: var(--th-surface); box-shadow: 0 22px 44px -30px rgba(var(--th-shadow-rgb), .55); overflow: clip; color: var(--th-text); }
.ek-app > noscript p, .ek-boot { margin: 0; padding: 1.4rem 1.5rem; color: var(--th-text-2); }
.ek-app.is-ready .ek-boot { display: none; }
.ek-app h2, .ek-app h3 { font-family: var(--font-heading); color: var(--th-heading); }
.ek-app p { margin: 0; line-height: 1.6; color: inherit; }

/* düğmeler */
.ek-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .6rem 1.1rem; border-radius: 10px; border: 2px solid transparent; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; line-height: 1.2; text-align: center; cursor: pointer; text-decoration: none; background: transparent; color: var(--th-heading); transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.ek-btn:focus-visible, .ek-chip:focus-visible, .ek-app a:focus-visible, .ek-q__why summary:focus-visible { outline: 3px solid var(--clr-accent-text); outline-offset: 2px; }
.ek-btn--primary { background: var(--ek-amber); border-color: var(--ek-amber); color: var(--ek-navy); }
.ek-btn--primary:hover { background: #d97706; border-color: #d97706; color: var(--ek-navy); }
.ek-btn--ghost { border-color: var(--th-border-strong); background: var(--th-surface); }
.ek-btn--ghost:hover { border-color: var(--th-heading); }
.ek-btn--text { min-height: 40px; padding: .4rem .5rem; color: var(--th-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.ek-btn--danger { background: var(--th-tint-red-2); border-color: var(--th-red-line); color: var(--th-red-ink); }
.ek-btn--small { min-height: 40px; padding: .45rem .85rem; font-size: .88rem; }
.ek-btn--lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.ek-btn.is-disabled, .ek-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ek-btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.ek-btn .ek-ico { width: 1.15em; height: 1.15em; }

/* ---------- simgeler ---------- */
.ek-ico { display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ek-ico .w { fill: var(--th-surface); }
.ek-ico .a { fill: var(--ek-amber); }
.ek-ico .k { fill: currentColor; stroke: none; }
.ek-ico .b { fill: #60a5fa; stroke: #1d4ed8; }
.ek-ico .g { fill: #22c55e; stroke: #15803d; }
.ek-ico .r { fill: #f87171; stroke: #b91c1c; }
.ek-ico .sa { stroke: #d97706; }
.ek-ico .sb { stroke: #2563eb; }
.ek-ico .sg { stroke: #16a34a; }
.ek-ico .sr { stroke: #dc2626; }
:root[data-theme="dark"] .ek-ico .sb { stroke: #60a5fa; }
:root[data-theme="dark"] .ek-ico .sr { stroke: #f87171; }

/* ---------- Volti ---------- */
.ek-volti { width: 46px; height: 46px; flex: none; }
.ek-volti__eyes rect, .ek-volti__alarm rect { fill: #5cf0ff; }
.ek-volti__happy path { fill: none; stroke: #5cf0ff; stroke-width: 3.2; stroke-linecap: round; }
.ek-volti__alarm path { fill: none; stroke: #fca5a5; stroke-width: 3; stroke-linecap: round; }
.ek-volti__alarm rect { fill: #fca5a5; }
.ek-volti__happy, .ek-volti__alarm { display: none; }
.is-happy .ek-volti__eyes, .is-alarm .ek-volti__eyes { display: none; }
.is-happy .ek-volti__happy, .is-alarm .ek-volti__alarm { display: inline; }
.ek-volti__eyes rect { transform-box: fill-box; transform-origin: center; animation: ek-blink 5s infinite; }
@keyframes ek-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
.ek-coach { display: flex; gap: .75rem; align-items: flex-start; background: var(--th-tint-amber); border: 1px solid var(--th-amber-line); border-radius: 14px; padding: .7rem .9rem; margin: .9rem 0 1rem; }
.ek-coach p { color: var(--th-amber-ink-2); font-size: .94rem; line-height: 1.55; }
.ek-coach strong { color: var(--th-amber-ink); }

/* ---------- başlangıç ---------- */
.ek-start { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; align-items: center; }
.ek-start__h { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; line-height: 1.25; margin: 0; }
.ek-start__list { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.ek-start__list li { display: flex; gap: .55rem; align-items: baseline; color: var(--th-text); }
.ek-start__list i { color: var(--th-accent-text); width: 1.1rem; text-align: center; }
.ek-start__acts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ek-reset { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ek-reset__q { font-weight: 600; color: var(--th-red-ink); }

/* ---------- ev sahnesi ---------- */
.ek-scene { border-radius: 16px; background: linear-gradient(180deg, var(--ek-sky-1), var(--ek-sky-2)); border: 1px solid var(--th-border); overflow: hidden; }
.ek-house { display: block; width: 100%; height: auto; }
.ek-sky { fill: transparent; }
.ek-sun { fill: var(--ek-sun); }
.ek-cloud { fill: var(--ek-cloud); opacity: .9; }
.ek-ground { fill: var(--ek-ground); }
.ek-walk { fill: var(--ek-walk); }
.ek-e { stroke: #0b1328; stroke-opacity: .32; stroke-width: .6; stroke-linejoin: round; }
.ek-sw { fill: #f1ead9; fill-opacity: .16; stroke: #f1ead9; stroke-opacity: .55; stroke-width: 1; }
.ek-sw--dis { fill-opacity: .3; }
.ek-rail line { stroke: #475569; stroke-width: 2.2; stroke-linecap: round; }
.ek-rail .ek-rail__p { stroke-width: 1.1; }
.ek-house .is-click { cursor: pointer; }
.ek-room.is-click:hover { filter: brightness(1.06); }
.ek-tint { fill: transparent; }
.ek-tint[data-st="yesil"] { fill: #22c55e; fill-opacity: .2; }
.ek-tint[data-st="sari"] { fill: #f59e0b; fill-opacity: .24; }
.ek-tint[data-st="kirmizi"] { fill: #ef4444; fill-opacity: .3; }
.ek-tint[data-st="atlandi"] { fill: #475569; fill-opacity: .42; }
.ek-edge { stroke: transparent; stroke-width: 4.5; stroke-linecap: round; }
.ek-edge[data-st="yesil"] { stroke: var(--ek-green); }
.ek-edge[data-st="sari"] { stroke: var(--ek-amber); }
.ek-edge[data-st="kirmizi"] { stroke: var(--ek-red); }
.ek-edge[data-st="atlandi"] { stroke: #64748b; stroke-dasharray: 5 5; }
.ek-frame { fill: none; stroke: none; pointer-events: none; }
.ek-frame.is-on { stroke: #f59e0b; stroke-width: 2.6; stroke-dasharray: 8 5; animation: ek-dash 1.4s linear infinite; }
@keyframes ek-dash { to { stroke-dashoffset: -26; } }
.ek-badge__s { transform: scale(var(--ek-u, 1)); transform-box: fill-box; transform-origin: center; }
.ek-badge__c { fill: #e2e8f0; stroke: #475569; stroke-width: 1.2; }
.ek-badge__i path { fill: none; stroke: #ffffff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ek-badge__i circle { fill: var(--ek-navy); }
.ek-badge__i text { fill: #1e293b; font: 800 10px var(--font-heading); }
.ek-badge[data-st="yesil"] .ek-badge__c { fill: var(--ek-green); stroke: #f8fafc; }
.ek-badge[data-st="sari"] .ek-badge__c { fill: var(--ek-amber); stroke: #f8fafc; }
.ek-badge[data-st="sari"] .ek-badge__i path { stroke: var(--ek-navy); }
.ek-badge[data-st="kirmizi"] .ek-badge__c { fill: var(--ek-red); stroke: #f8fafc; }
.ek-badge[data-st="kirmizi"] .ek-badge__i path { fill: #ffffff; stroke: none; }
.ek-badge[data-st="atlandi"] .ek-badge__c { fill: #64748b; stroke: #f8fafc; }
.ek-lbl { fill: #ffffff; font: 700 10.5px var(--font-heading); paint-order: stroke; stroke: #0a1020; stroke-width: 3px; stroke-linejoin: round; letter-spacing: .01em; pointer-events: none; }
.ek-house.is-small .ek-lbl { display: none; }
.ek-hot__r { fill: rgba(245, 158, 11, .2); stroke: #f59e0b; stroke-width: 2.2; transform-box: fill-box; transform-origin: center; animation: ek-pulse 1.5s ease-in-out infinite; }
.ek-hot__d { fill: #f59e0b; }
@keyframes ek-pulse { 0%, 100% { transform: scale(.85); opacity: 1; } 50% { transform: scale(1.25); opacity: .55; } }
.ek-hvolti { transition: transform .75s cubic-bezier(.34, 1.3, .5, 1); pointer-events: none; }
.ek-house--mini .ek-lbl { display: none; }

/* ---------- tur ---------- */
.ek-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; padding: .75rem 1.1rem; background: var(--th-surface-2); border-bottom: 1px solid var(--th-border); }
.ek-top__where { display: flex; flex-direction: column; min-width: 0; }
.ek-top__k { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-muted); }
.ek-top__where strong { font-family: var(--font-heading); font-size: 1.02rem; color: var(--th-heading); }
.ek-top__prog { flex: 1 1 220px; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ek-progress { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--th-surface-4); appearance: none; -webkit-appearance: none; }
.ek-progress::-webkit-progress-bar { background: var(--th-surface-4); border-radius: 999px; }
.ek-progress::-webkit-progress-value { background: linear-gradient(90deg, #f59e0b, #16a34a); border-radius: 999px; transition: width .4s ease; }
.ek-progress::-moz-progress-bar { background: linear-gradient(90deg, #f59e0b, #16a34a); border-radius: 999px; }
.ek-top__ptext { font-size: .82rem; color: var(--th-text-2); }
.ek-top .ek-btn.is-ready { background: var(--ek-amber); border-color: var(--ek-amber); color: var(--ek-navy); }
.ek-tour__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); align-items: start; }
.ek-side { padding: 1rem; border-right: 1px solid var(--th-border); position: sticky; top: calc(var(--vg-header-h, 64px) + 8px); }
.ek-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: .6rem .2rem .7rem; padding: 0; font-size: .8rem; color: var(--th-text-2); }
.ek-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.ek-dot { width: .8rem; height: .8rem; border-radius: 50%; background: #94a3b8; flex: none; border: 2px solid var(--th-surface); box-shadow: 0 0 0 1px var(--th-border-strong); }
.is-yesil > .ek-dot, [data-st="yesil"] > .ek-dot { background: var(--ek-green); }
.is-sari > .ek-dot, [data-st="sari"] > .ek-dot { background: var(--ek-amber); }
.is-kirmizi > .ek-dot, [data-st="kirmizi"] > .ek-dot { background: var(--ek-red); }
[data-st="atlandi"] > .ek-dot { background: #64748b; }
.ek-rooms__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.ek-chip { position: relative; width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .45rem .3rem; border-radius: 12px; border: 2px solid var(--th-border); background: var(--th-surface); color: var(--th-heading); cursor: pointer; font: 600 .78rem/1.2 var(--font-body, Inter, sans-serif); text-align: center; }
.ek-chip:hover { border-color: var(--th-border-strong); }
.ek-chip[aria-current="step"] { border-color: var(--ek-amber); background: var(--th-tint-amber); }
.ek-chip__ico { position: relative; width: 30px; height: 30px; color: var(--th-heading); }
.ek-chip__ico .ek-ico { width: 30px; height: 30px; }
.ek-chip__dot { position: absolute; right: -6px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--th-surface-4); border: 2px solid var(--th-surface); color: #fff; font: 800 9px/11px var(--font-heading); text-align: center; }
.ek-chip[data-st="yesil"] .ek-chip__dot { background: var(--ek-green); }
.ek-chip[data-st="yesil"] .ek-chip__dot::before { content: "\2713"; }
.ek-chip[data-st="sari"] .ek-chip__dot { background: var(--ek-amber); color: var(--ek-navy); }
.ek-chip[data-st="sari"] .ek-chip__dot::before { content: "!"; }
.ek-chip[data-st="kirmizi"] .ek-chip__dot { background: var(--ek-red); }
.ek-chip[data-st="kirmizi"] .ek-chip__dot::before { content: "!"; }
.ek-chip[data-st="atlandi"] .ek-chip__dot { background: #64748b; }
.ek-chip[data-st="atlandi"] .ek-chip__dot::before { content: "\2013"; }
.ek-chip__n { overflow-wrap: anywhere; }

/* oda paneli */
.ek-panel { padding: 1.1rem 1.3rem 1.4rem; min-width: 0; }
.ek-room-head { display: flex; align-items: center; gap: .8rem; scroll-margin-top: 12px; }
.ek-room-head__ico { width: 50px; height: 50px; border-radius: 14px; background: var(--th-tint-blue); color: var(--th-heading); display: grid; place-items: center; flex: none; }
.ek-room-head__ico .ek-ico { width: 34px; height: 34px; }
.ek-room-head__t { flex: 1; min-width: 0; }
.ek-room-head__k { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--th-muted); }
.ek-room-head__h { margin: 0; font-size: 1.45rem; font-weight: 800; line-height: 1.2; scroll-margin-top: 12px; }
.ek-room-head__h:focus { outline: none; }
.ek-room-head__h:focus-visible { outline: 3px solid var(--clr-accent-text); outline-offset: 3px; border-radius: 4px; }
.ek-pill { flex: none; padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--th-surface-3); color: var(--th-text-2); border: 1px solid var(--th-border); }
.ek-pill[data-st="yesil"] { background: var(--th-tint-green); color: var(--th-green-ink); border-color: var(--th-green-line); }
.ek-pill[data-st="sari"] { background: var(--th-tint-amber); color: var(--th-amber-ink); border-color: var(--th-amber-line); }
.ek-pill[data-st="kirmizi"] { background: var(--th-tint-red); color: var(--th-red-ink); border-color: var(--th-red-line); }
.ek-skip { margin: -.2rem 0 .8rem; }
.ek-skipped { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--th-surface-2); border: 1px dashed var(--th-border-strong); margin-bottom: 1rem; }
.ek-note { margin: .2rem 0 .9rem; padding: .65rem .85rem; border-radius: 12px; background: var(--th-tint-blue); border: 1px solid var(--th-blue-line); color: var(--th-text); font-size: .9rem; }
.ek-note--warn { background: var(--th-tint-amber); border-color: var(--th-amber-line); color: var(--th-amber-ink-2); }
.ek-note .ek-btn { margin-left: .2rem; }

/* soru kartı */
.ek-q { margin: 0 0 .95rem; padding: .95rem 1rem 1rem; border: 1px solid var(--th-border); border-left: 5px solid var(--th-border-strong); border-radius: 14px; background: var(--th-surface); min-width: 0; }
.ek-q[data-risk="0"] { border-left-color: var(--ek-green); }
.ek-q[data-risk="1"], .ek-q[data-risk="2"] { border-left-color: var(--ek-amber); }
.ek-q[data-risk="3"], .ek-q[data-risk="4"] { border-left-color: var(--ek-red); }
.ek-q__lg { float: left; width: 100%; padding: 0; margin: 0 0 .65rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.04rem; line-height: 1.4; color: var(--th-heading); }
.ek-q__lg + * { clear: both; }
.ek-q__n { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-muted); margin-bottom: .15rem; }
.ek-q__body { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .85rem; align-items: start; }
.ek-q__art { width: 64px; height: 64px; border-radius: 14px; background: var(--th-tint-blue); color: var(--th-heading); display: grid; place-items: center; }
.ek-q__art .ek-ico { width: 46px; height: 46px; }
.ek-q__hint { font-size: .9rem; color: var(--th-text-2); }
.ek-q__hint strong { color: var(--th-heading); }
.ek-q__why { margin-top: .4rem; font-size: .88rem; }
.ek-q__why summary { cursor: pointer; font-weight: 700; color: var(--th-accent-text); width: fit-content; min-height: 28px; display: inline-flex; align-items: center; }
.ek-q__why p { margin-top: .3rem; color: var(--th-text-2); }
.ek-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .85rem; }
.ek-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ek-opt { position: relative; display: block; min-width: 0; }
.ek-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ek-opt__b { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .45rem .5rem; border: 2px solid var(--th-border-strong); border-radius: 11px; background: var(--th-surface); color: var(--th-heading); font-family: var(--font-heading); font-weight: 700; font-size: .95rem; line-height: 1.15; text-align: center; transition: background-color .15s ease, border-color .15s ease; }
.ek-opt__i { width: 1.2rem; height: 1.2rem; flex: none; stroke-width: 4; }
.ek-opt:hover .ek-opt__b { border-color: var(--th-heading); }
.ek-opt input:focus-visible + .ek-opt__b { outline: 3px solid var(--clr-accent-text); outline-offset: 2px; }
/* seçili yanıt iki temada da ters renkli dolguyla belirgin: açıkta lacivert zemin/beyaz yazı, koyuda açık zemin/koyu yazı */
.ek-opt input:checked + .ek-opt__b { background: var(--th-heading); border-color: var(--th-heading); color: var(--th-surface); }
.ek-q__say { margin-top: .7rem; padding: .5rem .75rem; border-radius: 10px; font-size: .9rem; background: var(--th-surface-2); color: var(--th-text); }
.ek-q[data-risk="0"] .ek-q__say { background: var(--th-tint-green); color: var(--th-green-ink); }
.ek-q[data-risk="1"] .ek-q__say, .ek-q[data-risk="2"] .ek-q__say { background: var(--th-tint-amber); color: var(--th-amber-ink-2); }
.ek-q[data-risk="3"] .ek-q__say, .ek-q[data-risk="4"] .ek-q__say { background: var(--th-tint-red); color: var(--th-red-ink); }
.ek-alarm { margin-top: .75rem; padding: .8rem .95rem; border-radius: 12px; background: var(--th-tint-red); border: 2px solid var(--ek-red); color: var(--th-text); font-size: .92rem; }
.ek-alarm p + p { margin-top: .35rem; }
.ek-alarm__t { font-family: var(--font-heading); font-weight: 800; color: var(--th-red-ink); }
.ek-alarm a { color: var(--th-red-ink); font-weight: 700; }
.ek-alarm--big { margin: 0 0 1rem; }
.ek-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 1.1rem; }
.ek-nav [data-ek-next] { margin-left: auto; }

/* ---------- karne ---------- */
.ek-karne { padding: 1.25rem; }
.ek-kcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; padding: 1.4rem 1.5rem; border-radius: 20px; background: linear-gradient(135deg, #0a1628, #14294a); color: #ffffff; margin-bottom: 1rem; scroll-margin-top: 12px; }
.ek-grade { width: 150px; height: 150px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ek-green); color: #ffffff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
.ek-kcard[data-tone="sari"] .ek-grade { background: var(--ek-amber); color: var(--ek-navy); }
.ek-kcard[data-tone="kirmizi"] .ek-grade { background: var(--ek-red); }
.ek-grade__l { font-family: var(--font-heading); font-size: 5.6rem; font-weight: 800; line-height: .9; }
.ek-grade__t { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.ek-kcard__k { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fcd34d; }
.ek-app .ek-kcard__h { color: #ffffff; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; margin: .15rem 0 .3rem; line-height: 1.2; scroll-margin-top: 80px; }
.ek-kcard__h:focus { outline: none; }
.ek-kcard__h:focus-visible { outline: 3px solid #fcd34d; outline-offset: 3px; border-radius: 4px; }
.ek-kcard__meta { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.ek-kcard__desc { color: rgba(255, 255, 255, .92); margin-top: .35rem; }
.ek-counts { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.ek-counts li { padding: .3rem .75rem; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.ek-counts b { font-family: var(--font-heading); font-size: 1rem; }
.ek-counts .is-acil { background: var(--ek-red); color: #ffffff; }
.ek-counts .is-pro { background: var(--ek-amber); color: var(--ek-navy); }
.ek-counts .is-diy { background: var(--ek-green); color: #ffffff; }
.ek-counts .is-zero { background: rgba(255, 255, 255, .12); color: #dbe4ef; }
.ek-proj { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--th-tint-green); border: 1px solid var(--th-green-line); color: var(--th-green-ink); font-weight: 600; }
.ek-kh { font-size: 1.15rem; font-weight: 800; margin: 1.3rem 0 .6rem; }
.ek-kgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ek-kmap { border-radius: 14px; overflow: hidden; border: 1px solid var(--th-border); background: linear-gradient(180deg, var(--ek-sky-1), var(--ek-sky-2)); }
.ek-krooms { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ek-krooms li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .55rem; align-items: center; padding: .5rem .7rem; border-radius: 10px; background: var(--th-surface-2); border: 1px solid var(--th-border); }
.ek-krooms__n { font-weight: 700; color: var(--th-heading); }
.ek-krooms__s { grid-column: 2; font-size: .84rem; color: var(--th-text-2); }
.ek-tier { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--th-border); border-top: 5px solid var(--th-border-strong); background: var(--th-surface); }
.ek-tier--acil { border-top-color: var(--ek-red); background: var(--th-tint-red); }
.ek-tier--pro { border-top-color: var(--ek-amber); }
.ek-tier--diy { border-top-color: var(--ek-green); }
.ek-tier--acil.is-empty { background: var(--th-tint-green); border-top-color: var(--ek-green); }
.ek-tier--acil.is-empty .ek-tier__h { color: var(--th-green-ink); }
.ek-tier__h { display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem; font-size: 1.08rem; font-weight: 800; }
.ek-tier--acil .ek-tier__h { color: var(--th-red-ink); }
.ek-tier--pro .ek-tier__h i { color: var(--th-amber-ink); }
.ek-tier--diy .ek-tier__h i { color: var(--th-green-ink); }
.ek-tier__c { margin-left: auto; min-width: 1.9rem; padding: .1rem .5rem; border-radius: 999px; background: var(--th-surface-3); color: var(--th-heading); font-size: .82rem; text-align: center; }
.ek-tier__none { color: var(--th-text-2); font-size: .92rem; }
.ek-acts { margin: 0; padding-left: 1.35rem; display: grid; gap: .7rem; }
.ek-act::marker { font-family: var(--font-heading); font-weight: 800; color: var(--th-heading); }
.ek-act__t { font-weight: 700; color: var(--th-heading); }
.ek-act__adv { display: inline-block; margin-left: .45rem; padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--th-tint-blue); color: var(--th-blue-ink); border: 1px solid var(--th-blue-line); vertical-align: middle; }
.ek-act__why { font-size: .92rem; color: var(--th-text-2); margin-top: .1rem; }
.ek-act__meta { font-size: .82rem; color: var(--th-muted); margin-top: .15rem; }
.ek-app .ek-act__meta a { color: var(--th-accent-text); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.ek-share { margin-top: 1.4rem; }
.ek-share__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.ek-share__prev { border-radius: 14px; overflow: hidden; border: 1px solid var(--th-border); background: #0a1628; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.ek-share__img { display: block; width: 100%; height: auto; }
.ek-share__wait { color: #cbd5e1; font-size: .9rem; padding: 1rem; text-align: center; }
.ek-share__tools { display: flex; flex-wrap: wrap; gap: .55rem; align-content: flex-start; }
.ek-share__tools > .ek-btn { flex: 1 1 230px; }
.ek-share__status { flex-basis: 100%; min-height: 1.4em; font-size: .88rem; color: var(--th-text-2); }
.ek-share__note { flex-basis: 100%; font-size: .84rem; color: var(--th-muted); }
.ek-cta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 18px; background: linear-gradient(135deg, #0a1628, #0d1f3c); color: #ffffff; }
.ek-cta__t { flex: 1 1 320px; min-width: 0; }
.ek-cta__t strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: .25rem; }
.ek-cta__t span { color: rgba(255, 255, 255, .8); font-size: .93rem; }
.ek-cta__b { display: flex; flex-wrap: wrap; gap: .55rem; min-width: 0; max-width: 100%; }
.ek-cta .btn { white-space: normal; line-height: 1.25; text-align: center; max-width: 100%; }
.ek-again { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.2rem; }
.ek-disc { margin-top: 1rem !important; font-size: .84rem; color: var(--th-muted); }

/* masaüstünde ilerleme çubuğu kaydırırken görünür kalır; ev çizimi onun altında yapışır */
@media (min-width: 961px) {
  .ek-top { position: sticky; top: var(--vg-header-h, 64px); z-index: 4; }
  .ek-side { top: calc(var(--vg-header-h, 64px) + 72px); }
  .ek-room-head__h { scroll-margin-top: 84px; }
  .ek-room-head { scroll-margin-top: 72px; }
}
/* Yapışkan yan panel (ev + bölüm düğmeleri, ~200 px + çizim) ekrana sığsın: 1366×768 dizüstünde tarayıcının içerik alanı
   ~620 px'tir ve tam genişlikteki çizim bölüm düğmelerini ekranın altına itiyordu. Çizim yüksekliği ekrana göre sınırlanır
   (en-boy oranı 524/346 korunur); 600 px'ten kısa ekranda panel yapışmaz. */
@media (min-width: 961px) and (min-height: 600px) {
  .ek-side .ek-scene { max-width: calc((100vh - var(--vg-header-h, 64px) - 300px) * 1.514); margin-inline: auto; }
}
@media (min-width: 961px) and (max-height: 599.98px) {
  .ek-side { position: static; }
}

/* ---------- duyarlı düzen ---------- */
@media (max-width: 960px) {
  .ek-tour__grid { grid-template-columns: 1fr; }
  .ek-side { position: static; border-right: 0; border-bottom: 1px solid var(--th-border); }
  .ek-start { grid-template-columns: 1fr; }
  .ek-hero { grid-template-columns: 1fr; gap: 1rem; }
  .ek-acil { margin-top: 0; }
}
@media (max-width: 760px) {
  .ek-kgrid, .ek-share__grid { grid-template-columns: 1fr; }
  .ek-krooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ek-krooms li { padding: .45rem .55rem; }
  .ek-share__prev { max-width: 360px; }
  .ek-kcard { grid-template-columns: 1fr; justify-items: start; }
  .ek-grade { width: 118px; height: 118px; }
  .ek-grade__l { font-size: 4.4rem; }
}
@media (max-width: 560px) {
  .ek-app { border-radius: 16px; margin-inline: 0; }
  .ek-start, .ek-karne { padding: .85rem; }
  .ek-side { padding: .7rem; }
  .ek-panel { padding: .9rem .8rem 1.1rem; }
  .ek-top { padding: .65rem .8rem; }
  .ek-rooms__list { gap: .3rem; }
  .ek-chip { min-height: 58px; padding: .4rem .15rem; font-size: .7rem; border-radius: 10px; }
  .ek-chip__ico, .ek-chip__ico .ek-ico { width: 24px; height: 24px; }
  .ek-q { padding: .8rem .75rem .85rem; }
  .ek-q__body { grid-template-columns: 48px minmax(0, 1fr); gap: .65rem; }
  .ek-q__art { width: 48px; height: 48px; border-radius: 12px; }
  .ek-q__art .ek-ico { width: 34px; height: 34px; }
  .ek-room-head__h { font-size: 1.25rem; }
  .ek-room-head__ico { width: 42px; height: 42px; }
  .ek-room-head { flex-wrap: wrap; }
  .ek-nav .ek-btn { flex: 1 1 100%; }
  .ek-nav [data-ek-next] { order: -1; }
  .ek-kcard { padding: 1.1rem; }
  .ek-cta { padding: 1.1rem; }
  .ek-cta__b, .ek-cta__b .btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
  .ek-krooms__s { font-size: .78rem; }
  .ek-opts { grid-template-columns: 1fr 1fr; }
  .ek-opts:not(.ek-opts--2) .ek-opt:last-child { grid-column: 1 / -1; }
  .ek-btn { padding-inline: .8rem; }
}
@media (max-width: 360px) {
  .ek-krooms { grid-template-columns: 1fr; }
}

/* ---------- Windows yüksek karşıtlık (forced-colors) ----------
   Gerçek radyo düğmesi saydam olduğu için seçili yanıt yalnız dolgu rengiyle belli olur; bu kipte tarayıcı dolguyu
   ezer ve seçili/seçilmemiş yanıt aynı görünür. Seçili yanıt sistem vurgu rengiyle, geçerli bölüm biçimle ayrılır. */
@media (forced-colors: active) {
  .ek-opt input:checked + .ek-opt__b { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .ek-opt input:focus-visible + .ek-opt__b { outline-color: CanvasText; }
  .ek-chip[aria-current="step"] { border-style: double; border-width: 4px; }
  .ek-chip[aria-current="step"] .ek-chip__n { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  .ek-frame.is-on, .ek-hot__r, .ek-volti__eyes rect { animation: none; }
  .ek-hvolti, .ek-btn, .ek-opt__b, .ek-progress::-webkit-progress-value { transition: none; }
}

/* ---------- yazdırma: karne açıksa yalnız karne basılır ---------- */
@media print {
  body.ek-karne-on .breadcrumb, body.ek-karne-on .ek-prose, body.ek-karne-on .ek-hero,
  body.ek-karne-on .ek-share, body.ek-karne-on .ek-cta__b, body.ek-karne-on .ek-again, body.ek-karne-on .ek-note .ek-btn,
  body.ek-karne-on .kb-cta, body.ek-karne-on .ek-back { display: none !important; }
  .ek-app { border: 0; box-shadow: none; margin: 0; overflow: visible; }
  .ek-karne { padding: 0; }
  .ek-kcard, .ek-cta { background: #ffffff !important; color: #0a1628 !important; border: 1px solid #94a3b8; }
  .ek-app .ek-kcard__h, .ek-kcard__desc, .ek-kcard__meta, .ek-cta__t span { color: #0a1628 !important; }
  .ek-kcard__k { color: #92400e !important; }
  .ek-grade, .ek-counts li, .ek-dot, .ek-tier, .ek-house { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ek-tier, .ek-act, .ek-krooms li, .ek-kcard { break-inside: avoid; }
  .ek-kmap { max-width: 120mm; }
}
