/* ARASİS Teknik Kontrol tasarım altyapısı (planlama uygulamasıyla ortak renkler ve bileşenler) — sade, lacivert ana renk, mobil öncelikli */
:root {
  --navy: #1e3a5f; --navy-dark: #15294a; --navy-light: #e8eef6;
  --bg: #f4f6f9; --surface: #ffffff; --border: #dde3ea; --text: #1f2937; --muted: #6b7280;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --err: #b91c1c; --err-bg: #fee2e2;
  --info: #1d4ed8; --info-bg: #dbeafe; --purple: #6d28d9; --purple-bg: #ede9fe;
  --radius: 10px; --shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--navy); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; } h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; } h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .strong { font-weight: 600; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 20px; padding-bottom: 90px; min-height: 70vh; }
.inline { display: inline; }

/* üst çubuk */
.topbar { background: #fff; color: var(--text); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { font-size: 1.05rem; line-height: 1.15; letter-spacing: .04em; }
.brand-text strong { font-weight: 800; display: block; }
.brand-sub { display: block; font-size: .78rem; letter-spacing: 0; color: var(--muted); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.login-logo { width: 100%; max-width: 320px; height: auto; margin: 0 auto 8px; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--bg); }
.nav a.active { background: var(--navy); color: #fff; }
.user-box { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.user-name { opacity: .9; }
.bottom-nav { display: none; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 16px 100px; }

/* kartlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-title { font-weight: 600; margin: 0 0 8px; font-size: 1.05rem; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .label { color: var(--muted); font-size: .85rem; } .stat .value { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.progress { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--navy); border-radius: 999px; transition: width .3s; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 8px; border: 1px solid transparent; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 46px; background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy-dark); }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--navy); } .btn-secondary:hover { background: var(--navy-light); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); min-height: 36px; padding: 6px 12px; font-size: .9rem; } .btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--err); } .btn-danger:hover { background: #991b1b; }
.btn-ok { background: var(--ok); } .btn-ok:hover { background: #166534; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.actions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0; }
.actions .btn { min-height: 60px; font-size: 1.05rem; }

/* formlar */
label { display: block; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c9d2dd; border-radius: 8px; font-size: 1rem; background: #fff; color: var(--text); min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 160px; }
.validation-summary-errors, .field-validation-error { color: var(--err); font-size: .9rem; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; }
.check.on { border-color: var(--navy); background: var(--navy-light); }

/* uyarılar ve rozetler */
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.alert-err { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #bfdbfe; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); } .badge-info { background: var(--info-bg); color: var(--info); }
.badge-purple { background: var(--purple-bg); color: var(--purple); } .badge-muted { background: #e5e7eb; color: #4b5563; }
.badge-navy { background: var(--navy-light); color: var(--navy); }

/* tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
tr:hover td { background: #fafbfc; }

.empty { text-align: center; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--border); border-radius: var(--radius); background: #fff; }

/* chromeless sayfa */
.page-chromeless { padding: 0; }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .brand-text { font-size: .95rem; } .brand-sub { font-size: .7rem; } .brand-img { width: 38px; height: 38px; }
  .page { padding-bottom: 40px; }
  .footer { padding-bottom: 32px; }
}

/* ===================== Teknik kontrol (pf-) — arayüz ajanı ===================== */
.pf-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pf-who { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-size: .9rem; text-align: right; min-width: 0; }
.pf-who .muted { font-size: .8rem; }
.pf-band { max-width: 760px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 8px; background: var(--info-bg); color: var(--info); border: 1px solid #bfdbfe; font-size: .92rem; }
.pf-app { max-width: 760px; margin: 0 auto; }
.pf-boot-text { color: var(--muted); margin: 0; }

/* ilerleme */
.pf-progress { margin: 0 0 14px; }
.pf-progress-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; font-size: .9rem; }
.pf-progress-step { font-weight: 600; color: var(--navy); }
.pf-progress-eta { color: var(--muted); white-space: nowrap; }
.pf-bar { height: 6px; }
.pf-bar > span { transition: width .4s ease; }
.pf-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 10px 0 0; }
.pf-steps li { flex: 1 1 0; min-width: 0; font-size: .75rem; color: var(--muted); }
.pf-steps li::before { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--border); margin-bottom: 5px; }
.pf-steps li[data-state=done] { color: var(--ok); } .pf-steps li[data-state=done]::before { background: var(--ok); }
.pf-steps li[data-state=now] { color: var(--navy); font-weight: 600; } .pf-steps li[data-state=now]::before { background: var(--navy); }
.pf-steps li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-offline { margin-bottom: 14px; }

/* panel ve adım geçişi */
.pf-panel { padding: 24px; }
.pf-panel:focus-within { box-shadow: var(--shadow); }
.pf-enter { animation: pf-in .22s ease-out both; }
@keyframes pf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
[tabindex="-1"]:focus { outline: none; }
.pf-title { font-size: 1.5rem; margin-bottom: .35rem; color: var(--text); }
.pf-lead { color: var(--navy); font-weight: 600; margin-bottom: 1rem; }
.pf-lead-soft { color: var(--muted); font-weight: 400; }
.pf-before { margin: 0 0 4px; padding-left: 20px; color: var(--text); }
.pf-before li { margin-bottom: 4px; }
.pf-privacy { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.pf-step-title { margin: 0 0 6px; font-size: 1.3rem; }
.pf-step-intro { color: #374151; margin-bottom: 14px; }
.pf-stage:empty { display: none; }
.pf-stage { margin: 4px 0 12px; display: grid; gap: 14px; }
.pf-module:empty { display: none; }
.pf-module video { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; background: #0f172a; }
.pf-say { font-size: 1.1rem; line-height: 1.45; color: var(--navy); background: var(--navy-light); border-radius: 10px; padding: 14px 16px; margin: 0; }
.pf-hint { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border); color: #374151; }

/* düğme dizisi */
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.pf-actions .btn-ghost { min-height: 46px; }
@media (max-width: 560px) {
  .pf-panel { padding: 18px 16px; }
  .pf-actions { flex-direction: column; align-items: stretch; }
  .pf-actions .btn { width: 100%; }
  .pf-steps li span { display: none; }
  .pf-who { display: none; }
}

/* soru / seçim / geri sayım */
.pf-ask:empty { display: none; }
.pf-ask { margin: 0 0 12px; }
.pf-ask-box { border: 1px solid var(--navy); background: var(--navy-light); border-radius: 10px; padding: 14px 16px; }
.pf-ask-text { font-weight: 600; margin-bottom: 10px; }
.pf-ask-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-choice { display: grid; gap: 8px; }
.pf-choice-btn { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; width: 100%; padding: 12px 14px; border: 1px solid #c9d2dd; border-radius: 8px; background: #fff; font: inherit; color: var(--text); cursor: pointer; min-height: 46px; }
.pf-choice-btn:hover { border-color: var(--navy); }
.pf-choice-btn.is-current { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.pf-choice-label { font-weight: 600; } .pf-choice-hint { color: var(--muted); font-size: .85rem; }
.pf-count { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.pf-count-dial { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.pf-count-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--navy) var(--pf-p, 0%), var(--navy-light) 0); -webkit-mask: radial-gradient(circle, transparent 20px, #000 21px); mask: radial-gradient(circle, transparent 20px, #000 21px); animation: pf-ring linear forwards; }
@property --pf-p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes pf-ring { to { --pf-p: 100%; } }
.pf-count-num { font-size: 1.3rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.pf-count-label { margin: 0; font-weight: 600; }

/* ses göstergesi */
.pf-meter-host:empty { display: none; }
.pf-meter-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.pf-meter-label { color: var(--muted); }
.pf-meter-word { font-weight: 600; color: var(--muted); }
.pf-meter[data-zone=ok] .pf-meter-word { color: var(--ok); }
.pf-meter[data-zone=low] .pf-meter-word, .pf-meter[data-zone=high] .pf-meter-word { color: var(--warn); }
.pf-meter-track { position: relative; height: 14px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.pf-meter-zone { position: absolute; top: 0; bottom: 0; background: rgba(21,128,61,.14); border-left: 1px solid rgba(21,128,61,.35); border-right: 1px solid rgba(21,128,61,.35); }
.pf-meter-fill { position: absolute; inset: 0; background: var(--navy); transform-origin: left center; transform: scaleX(0); transition: transform .08s linear; border-radius: 999px; }
.pf-meter[data-zone=high] .pf-meter-fill { background: var(--warn); }
.pf-meter-peak { position: absolute; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--navy-dark); opacity: .55; }

/* kamera önizleme */
.pf-preview-wrap { display: grid; gap: 8px; }
.pf-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0f172a; border: 3px solid transparent; transition: border-color .25s; }
.pf-preview[data-tone=ok] { border-color: var(--ok); } .pf-preview[data-tone=warn] { border-color: #f59e0b; } .pf-preview[data-tone=err] { border-color: var(--err); }
.pf-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-mirror { transform: scaleX(-1); }
.pf-guide { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 3 / 4; transform: translate(-50%, -52%); border: 2px dashed rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 0 0 999px rgba(15,23,42,.18); pointer-events: none; }
.pf-preview-tip { margin: 0; min-height: 1.5em; font-weight: 600; color: var(--navy); }

/* bağlantı göstergeleri */
.pf-net { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.pf-net-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: #fff; display: grid; gap: 2px; }
.pf-net-label { font-size: .8rem; color: var(--muted); }
.pf-net-num { display: flex; align-items: baseline; gap: 4px; }
.pf-net-value { font-size: 1.35rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.pf-net-unit { font-size: .78rem; color: var(--muted); }
.pf-net-state { font-size: .78rem; font-weight: 600; color: var(--muted); }
.pf-net-card[data-state=wait] .pf-net-state::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--navy); animation: pf-pulse 1s ease-in-out infinite; vertical-align: middle; }
@keyframes pf-pulse { 50% { opacity: .2; } }
.pf-net-card[data-state=ok] .pf-net-state { color: var(--ok); }
.pf-net-card[data-state=warn] .pf-net-state { color: var(--warn); } .pf-net-card[data-state=warn] { border-color: #fde68a; }
.pf-net-card[data-state=err] .pf-net-state { color: var(--err); } .pf-net-card[data-state=err] { border-color: #fecaca; }

/* sonuç satırları */
.pf-outcome:empty { display: none; }
.pf-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pf-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; }
.pf-row + .pf-row { border-top: 1px solid var(--border); }
.pf-row-main { min-width: 0; display: grid; }
.pf-row-title { font-weight: 600; }
.pf-row-opt { font-weight: 400; color: var(--muted); font-size: .78rem; margin-left: 6px; }
.pf-row-text { color: #4b5563; font-size: .9rem; }
.pf-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; line-height: 1; }
.pf-ico-ok, .pf-ico-onceki { background: var(--ok-bg); color: var(--ok); }
.pf-ico-uyari { background: var(--warn-bg); color: var(--warn); }
.pf-ico-hata { background: var(--err-bg); color: var(--err); }
.pf-ico-olculemedi, .pf-ico-atlandi { background: #e5e7eb; color: #4b5563; }
@media (max-width: 480px) { .pf-row { grid-template-columns: auto 1fr; } .pf-row > .badge { grid-column: 2; justify-self: start; } }

/* çözüm kartları */
.pf-fixes { display: grid; gap: 10px; margin-top: 14px; }
.pf-fixes > h3 { margin: 8px 0 2px; }
.pf-fix { border: 1px solid var(--border); border-left: 4px solid var(--warn); border-radius: 8px; background: #fff; }
.pf-fix-hata { border-left-color: var(--err); }
.pf-fix > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 46px; }
.pf-fix > summary::-webkit-details-marker { display: none; }
.pf-fix > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; }
.pf-fix[open] > summary::after { transform: rotate(-135deg); }
.pf-fix > summary:focus-visible, .pf-details > summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.pf-fix-body { padding: 0 14px 14px; }
.pf-fix-why { color: #4b5563; }
.pf-fix-lead { font-weight: 600; margin-bottom: 4px; }
.pf-fix-steps { margin: 0; padding-left: 20px; }
.pf-fix-steps li { margin-bottom: 4px; }
.pf-notes { margin-top: 12px; font-size: .88rem; color: #4b5563; }
.pf-notes-head { font-weight: 600; margin-bottom: 2px; }
.pf-notes ul { margin: 0; padding-left: 18px; }

/* sonuç ekranı */
.pf-verdict { text-align: center; padding: 6px 0 16px; }
.pf-verdict-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 800; letter-spacing: .06em; font-size: .9rem; }
.pf-tone-ok { background: var(--ok-bg); color: var(--ok); } .pf-tone-warn { background: var(--warn-bg); color: var(--warn); }
.pf-tone-err { background: var(--err-bg); color: var(--err); } .pf-tone-muted { background: #e5e7eb; color: #4b5563; }
.pf-verdict-head { margin: 12px 0 6px; font-size: 1.35rem; }
.pf-verdict-text { color: #4b5563; max-width: 520px; margin: 0 auto; }
.pf-save { text-align: center; font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.pf-save-ok { color: var(--ok); }
.pf-save-wait::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); margin-right: 8px; animation: pf-pulse 1s ease-in-out infinite; }
.pf-save-failed p { margin: 0 0 8px; }
.pf-details { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.pf-details > summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.pf-det-body { margin-top: 10px; }
.pf-det-group { margin-bottom: 10px; }
.pf-det-title { font-weight: 600; font-size: .88rem; margin: 0 0 4px; }
.pf-det-list { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0; font-size: .82rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #4b5563; }
.pf-det-list dt { color: var(--muted); } .pf-det-list dd { margin: 0; overflow-wrap: anywhere; }

/* hazır ekranı */
.pf-ready { text-align: center; }
.pf-ready-mark { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; background: var(--ok-bg); color: var(--ok); }
.pf-ready-err .pf-ready-mark { background: var(--err-bg); color: var(--err); }
.pf-ready h2 { margin-top: 0; }
.pf-ready .pf-actions { justify-content: center; }
.pf-until { font-weight: 600; color: var(--navy); }

/* eğitmen ekranı */
.pf-eg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pf-eg-head h1 { margin: 0; }
.pf-eg-live { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pf-eg-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.pf-eg-live[data-state=on]::before { background: var(--ok); }
.pf-eg-live[data-state=off]::before { background: var(--warn); }
.pf-eg-filter { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
.pf-eg-filter input { width: 20px; height: 20px; margin: 0; }
.pf-eg-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.pf-eg-count { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fff; }
.pf-eg-count b { display: block; font-size: 1.3rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pf-eg-count span { font-size: .78rem; color: var(--muted); }
.pf-eg-count[data-k=ready] b { color: var(--ok); } .pf-eg-count[data-k=warn] b { color: var(--warn); }
.pf-eg-count[data-k=err] b { color: var(--err); } .pf-eg-count[data-k=none] b { color: #4b5563; }
.pf-eg-session .card-title { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.pf-eg-when { font-weight: 400; color: var(--muted); font-size: .9rem; }
.pf-eg-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pf-eg-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) auto minmax(260px, 2fr); gap: 8px 16px; align-items: center; padding: 12px 14px; background: #fff; }
.pf-eg-row + .pf-eg-row { border-top: 1px solid var(--border); }
.pf-eg-row.pf-flash { animation: pf-flash 1.2s ease-out; }
@keyframes pf-flash { from { background: var(--navy-light); } to { background: #fff; } }
.pf-eg-name { font-weight: 600; }
.pf-eg-meta { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.pf-eg-dots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.pf-eg-dots li { display: grid; justify-items: center; gap: 3px; font-size: .68rem; color: var(--muted); min-width: 0; }
.pf-eg-dots li span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dot { width: 12px; height: 12px; border-radius: 50%; background: #e5e7eb; border: 1px solid #d1d5db; }
.pf-dot[data-s=ok] { background: var(--ok); border-color: var(--ok); }
.pf-dot[data-s=uyari] { background: #f59e0b; border-color: #d97706; border-radius: 3px; }
.pf-dot[data-s=hata] { background: var(--err); border-color: var(--err); border-radius: 2px; transform: rotate(45deg) scale(.85); }
.pf-dot[data-s=olculemedi] { background: #fff; border: 2px solid #9ca3af; }
.pf-dot[data-s=atlandi] { background: #fff; border: 1px dashed #9ca3af; }
.pf-eg-issues { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-eg-issues li { font-size: .82rem; padding: 2px 8px; border-radius: 6px; background: var(--err-bg); color: var(--err); }
.pf-eg-row[data-status=Warning] .pf-eg-issues li { background: var(--warn-bg); color: var(--warn); }
.pf-eg-empty { padding: 14px; color: var(--muted); text-align: center; background: #fff; }
.pf-eg-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.pf-eg-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .pf-eg-row { grid-template-columns: 1fr auto; }
  .pf-eg-dots { grid-column: 1 / -1; }
  .pf-eg-counts { grid-template-columns: repeat(2, 1fr); }
}

/* ana sayfa */
.pf-hero { max-width: 760px; margin: 0 auto; }
.pf-how { list-style: none; counter-reset: pf; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.pf-how li { counter-increment: pf; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.pf-how li::before { content: counter(pf); width: 28px; height: 28px; border-radius: 50%; background: var(--navy-light); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.pf-how strong { display: block; }

@media (prefers-reduced-motion: reduce) {
  .pf-enter, .pf-eg-row.pf-flash { animation: none; }
  .pf-meter-fill, .pf-bar > span, .pf-preview, .pf-fix > summary::after { transition: none; }
  .pf-count-ring { animation: none; --pf-p: 0%; }
  .pf-net-card[data-state=wait] .pf-net-state::after, .pf-save-wait::before { animation: none; }
}
.pf-eg-sub { margin: 0; }
.pf-eg-tools { display: grid; gap: 6px; justify-items: end; }
.pf-how-title { margin-top: 1.25rem; }
@media (max-width: 560px) { .pf-eg-tools { justify-items: start; } }
.pf-net-note { margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.3em; }
.pf-net-note:empty { display: none; }
.pf-app [hidden], .pf-eg-row[hidden], .pf-eg-filtered[hidden] { display: none !important; }

/* yüz adımı canlı göstergeleri ve satır altı ölçüm açıklaması */
.pf-face-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .85rem; background: #e5e7eb; color: #4b5563; border: 1px solid transparent; }
.pf-chip b { font-weight: 600; } .pf-chip i { font-style: normal; }
.pf-chip[data-state=ok] { background: var(--ok-bg); color: var(--ok); }
.pf-chip[data-state=warn] { background: var(--warn-bg); color: var(--warn); }
.pf-chip[data-state=err] { background: var(--err-bg); color: var(--err); }
.pf-row-detail { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* ayrıntılı rapor + yazdırma */
.pf-report { margin-top: 20px; }
.pf-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pf-report-head h3 { margin: 0; }
.pf-report-table td, .pf-report-table th { font-size: .88rem; vertical-align: top; }
.pf-report-table td:nth-child(3) { color: var(--muted); min-width: 220px; }
.pf-fixes-none p { color: var(--ok); font-weight: 500; }
@media print {
  .topbar, .footer, .pf-actions, .pf-print, .pf-details, .pf-save-failed button, .pf-trial-bar { display: none !important; }
  .card, .pf-fix { box-shadow: none; border-color: #999; break-inside: avoid; }
  details.pf-fix { open: true; }
  body { background: #fff; }
}

/* sonuç ekranı: bölümler tek düzende */
.pf-section { margin-top: 24px; }
.pf-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.pf-section-head h3 { margin: 0; font-size: 1.05rem; }
.pf-fixes.pf-section > h3, .pf-report > h3 { margin: 0; }
.pf-fixes > .small { margin: -4px 0 4px; }
.pf-notes { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.pf-notes-head { margin-bottom: 4px; }
.pf-actions.pf-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.pf-report .table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pf-report-table { font-size: .88rem; }
.pf-report-table th { font-size: .78rem; }
.pf-report-table td:nth-child(3) { color: var(--muted); min-width: 220px; }
.pf-report > .small { margin-bottom: 10px; }
.pf-details { margin-top: 20px; }
@media (max-width: 600px) { .pf-actions.pf-section .btn { width: 100%; } .pf-section-head .btn { width: 100%; } }
