/* MassBiome Sonuç Portalı — temadan bağımsız arayüz. Marka: petrol #15555e, nane #59bba6. */

:root {
	--brand-950: #0b2a2f;
	--brand-900: #0f3d43;
	--brand-700: #15555e;
	--brand-600: #1d6b70;
	--brand-500: #2a8780;
	--mint-500: #59bba6;
	--mint-400: #6ed4bf;
	--mint-100: #dff3ee;
	--mint-50: #f0f9f6;
	--ink: #1e293b;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--line-2: #cbd5e1;
	--bg: #f4f7f8;
	--card: #fff;
	--ok: #067647;
	--ok-bg: #e7f6ee;
	--warn: #93370d;
	--warn-bg: #fef6e7;
	--err: #b42318;
	--err-bg: #fdecea;
	--info: #1d4f91;
	--info-bg: #e8f0fb;
	--r: 12px;
	--r-sm: 8px;
	--shadow: 0 1px 2px rgba(15, 61, 67, .06), 0 6px 20px rgba(15, 61, 67, .06);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--brand-700); }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 19px; line-height: 1.3; margin: 0 0 12px; font-weight: 650; }
h3 { font-size: 15.5px; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.spacer { flex: 1; }
.noscript { padding: 40px; text-align: center; }
.ic { display: inline-flex; line-height: 0; }

/* ---------- Üst çubuk ---------- */
.topbar { background: linear-gradient(110deg, var(--brand-950), var(--brand-700) 62%, #2a8a83); color: #fff; }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { height: 26px; width: auto; display: block; }
.brand .wordmark { font-weight: 300; letter-spacing: .32em; font-size: 18px; }
.brand-sub { font-size: 13px; color: rgba(255, 255, 255, .8); border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 12px; white-space: nowrap; }
.brand-home { display: flex; align-items: center; color: #fff; text-decoration: none; }
a.brand-sub { text-decoration: none; }
a.brand-sub:hover, .brand-home:hover { color: #fff; opacity: .9; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex: none; }
.pill.on .dot { background: var(--mint-400); box-shadow: 0 0 0 3px rgba(110, 212, 191, .28); }
.pill.warn .dot { background: #f5b84a; box-shadow: 0 0 0 3px rgba(245, 184, 74, .28); }
.tb-right { display: flex; align-items: center; gap: 4px; }
.tb-link { color: #fff; text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.tb-link:hover, .tb-link[aria-current] { background: rgba(255, 255, 255, .14); }
.tb-user { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

.subbar { background: #fff; border-bottom: 1px solid var(--line); }
.subbar-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; align-items: center; }
.subtab { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px 11px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent; }
.subtab:hover { color: var(--brand-700); }
.subtab[aria-current] { color: var(--brand-700); border-bottom-color: var(--mint-500); }
.subbar .labname { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

main.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }
.narrow { max-width: 480px; margin: 12px auto 0; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 20px 36px; }

/* ---------- Kart, alan, düğme ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 20px; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cardhead h2 { margin: 0; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead .lead { margin: 0; }
.lead { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--brand-500); margin: 0 0 10px; }

.field { margin: 0 0 16px; }
.field > label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 6px; color: var(--ink-2); }
.input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(42, 135, 128, .18); }
.input:disabled { background: #f1f5f9; color: var(--muted); }
.input.mono { font-family: var(--mono); letter-spacing: .06em; }
.input.err { border-color: var(--err); }
select.input { padding-right: 8px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ferr { font-size: 12.5px; color: var(--err); margin-top: 4px; min-height: 0; }
.ferr:empty { display: none; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; height: 36px; width: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; display: grid; place-items: center; }
.pw-toggle:hover { background: #f1f5f9; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-700); }
.otp { font-family: var(--mono); font-size: 26px; letter-spacing: .45em; text-align: center; height: 58px; padding-left: .45em; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.meter span { height: 4px; border-radius: 4px; background: var(--line); }
.meter[data-s="1"] span:nth-child(-n+1) { background: #e5484d; }
.meter[data-s="2"] span:nth-child(-n+2) { background: #f5a524; }
.meter[data-s="3"] span:nth-child(-n+3) { background: var(--mint-500); }
.meter[data-s="4"] span { background: var(--ok); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: #fff; color: var(--brand-700); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--brand-500); background: var(--mint-50); }
.btn-ghost { background: none; color: var(--brand-700); padding: 0 10px; }
.btn-ghost:hover { background: var(--mint-50); }
.btn-danger { background: #fff; color: var(--err); border-color: #f1beb7; }
.btn-danger:hover { background: var(--err-bg); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, .input:focus-visible, a:focus-visible, .row:focus-visible, .drop:focus-visible, .subtab:focus-visible, .tb-link:focus-visible { outline: 3px solid rgba(42, 135, 128, .5); outline-offset: 2px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acts.center { justify-content: center; }
.formfoot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 20px; }

.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; margin: 0 0 16px; border: 1px solid; }
.alert-err { background: var(--err-bg); border-color: #f1beb7; color: #7a1a12; }
.alert-ok { background: var(--ok-bg); border-color: #b7e2c8; color: #054f30; }
.alert-info { background: var(--info-bg); border-color: #c6d8f2; color: #173f74; }
.alert-warn { background: var(--warn-bg); border-color: #f5d9a8; color: var(--warn); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #eef2f6; color: #475569; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip-processing, .chip-uploading { background: var(--info-bg); color: var(--info); }
.chip-done { background: var(--ok-bg); color: var(--ok); }
.chip-failed, .chip-cancelled { background: var(--err-bg); color: var(--err); }

.bar { display: block; height: 8px; border-radius: 99px; background: #e5ecee; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--mint-500)); border-radius: 99px; transition: width .4s ease; }
.bar.big { height: 12px; margin: 6px 0 8px; }
.bar.mini { height: 5px; margin-top: 6px; max-width: 140px; }

.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; vertical-align: middle; }
.loading { display: grid; place-items: center; padding: 48px; color: var(--brand-500); }
.loading .spin { width: 28px; height: 28px; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } }

.code { font-family: var(--mono); font-weight: 700; letter-spacing: .02em; }
.pinbox { display: inline-block; font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: .14em; background: var(--mint-50); border: 1px dashed var(--mint-500); border-radius: 8px; padding: 6px 14px; color: var(--brand-900); }
.pinbox.sm { font-size: 16px; padding: 3px 10px; }
.pinres { display: grid; gap: 10px; justify-items: start; }

/* ---------- Ana ekran (sonuç sorgula) ---------- */
.home { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 24px 0; }
.home h1 { font-size: 36px; line-height: 1.15; }
.feat { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feat li { display: flex; gap: 10px; color: var(--ink-2); }
.feat .ic { color: var(--mint-500); flex: none; margin-top: 2px; }
.lookup h2 { margin-bottom: 18px; }
.labcta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.labbanner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Numune kartı ---------- */
.jobcard + .jobcard, .jobcard + .lookup { margin-top: 20px; }
.jobhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jobhead .code { font-size: 22px; }
.steps { display: flex; margin: 22px 0 18px; list-style: none; padding: 0; }
.steps li { flex: 1; position: relative; text-align: center; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.steps li::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps .ico { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.steps li.done .ico { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.steps li.done::before, .steps li.cur::before { background: var(--mint-500); }
.steps li.cur .ico { border-color: var(--mint-500); color: var(--brand-700); box-shadow: 0 0 0 5px rgba(89, 187, 166, .2); }
.steps li.fail .ico { border-color: var(--err); color: var(--err); }
.steps .l { display: block; font-weight: 600; color: var(--ink-2); }
.steps li.cur .l { color: var(--brand-700); }
.steps .t { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.prog { margin: 4px 0 8px; }
.progline { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }

.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 8px; }
.doc { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.fi { flex: none; width: 42px; height: 50px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; letter-spacing: .04em; position: relative; }
.fi::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 10px 10px 0; border-style: solid; border-color: transparent var(--bg) rgba(0, 0, 0, .18) transparent; }
.fi-pdf { background: #c2410c; }
.fi-xlsx { background: #15803d; }
.fi-html { background: var(--brand-700); }
.fi-other { background: #64748b; }
.doc .meta { min-width: 0; flex: 1; }
.doc .name { font-weight: 600; line-height: 1.3; }
.doc .sub { font-size: 12.5px; color: var(--muted); }
.doc .acts { margin-top: 10px; gap: 4px; }
.docs-foot { margin-top: 12px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Laboratuvar paneli ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 700; color: var(--brand-700); line-height: 1.15; }
.stat .l { font-size: 13px; color: var(--muted); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 380px; }
.search .input { padding-left: 38px; }
.search .ic { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.seg { display: inline-flex; background: #e6edef; border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--brand-700); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.list { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(160px, 1.3fr) minmax(150px, 1fr) 150px 130px 20px; gap: 14px; align-items: center; padding: 13px 16px; border: 0; border-top: 1px solid var(--line); cursor: pointer; background: none; width: 100%; text-align: left; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--mint-50); }
.row > span { min-width: 0; }
.row .code { display: block; font-size: 15px; }
.row .sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .c5 { color: var(--muted); }
.row.head { cursor: default; background: #f8fafc; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding-top: 10px; padding-bottom: 10px; }
.row.head:hover { background: #f8fafc; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .btn { margin-top: 8px; }

.drawer-bg, .modal-bg { position: fixed; inset: 0; background: rgba(11, 42, 47, .38); z-index: 40; animation: fade .15s; }
.modal-bg { z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100%); background: #fff; z-index: 41; box-shadow: -8px 0 32px rgba(0, 0, 0, .16); display: flex; flex-direction: column; animation: slide .2s ease; }
.drawer > header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer > header .code { font-size: 19px; }
.drawer .dbody { padding: 4px 20px 32px; overflow: auto; flex: 1; }
.drawer h3 { margin-top: 26px; }
.modal { position: fixed; inset: 24px; background: #fff; border-radius: var(--r); z-index: 51; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: fade .15s; }
.modal > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.modal iframe { flex: 1; border: 0; width: 100%; background: #525659; }

.drop { border: 2px dashed var(--line-2); border-radius: var(--r); background: #fff; padding: 40px 20px; text-align: center; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--mint-500); background: var(--mint-50); }
.drop .dz-ico { color: var(--brand-500); display: inline-flex; }
.drop .big { font-size: 17px; font-weight: 650; margin: 10px 0 4px; }
.drop .acts { margin-top: 18px; }
.tablewrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.off td { opacity: .5; }
.table .input { height: 38px; }
.table .num { white-space: nowrap; color: var(--ink-2); padding-top: 18px; }
.table td:first-child input[type=checkbox] { margin-top: 12px; width: 18px; height: 18px; accent-color: var(--brand-700); }
.fname { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.fname .ic { color: var(--brand-500); }
.uplist { margin-top: 18px; display: grid; gap: 14px; }
.uprow { display: grid; grid-template-columns: 220px 1fr 180px; gap: 14px; align-items: center; }
.upname .code { display: block; }
.upname .sub { display: block; font-size: 12.5px; }
.st-ok { color: var(--ok); font-weight: 600; }
.st-err, .st-cancel { color: var(--err); }
.st-halt { color: var(--warn); }
.st-note { color: var(--warn); }
.fnote { font-size: 12.5px; color: var(--info); margin-top: 4px; }
.fnote:empty { display: none; }
.xfer { margin: 6px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.xfer .xfer-t { flex: 1 1 320px; }
.xfer.on { border-color: var(--mint-400); background: rgba(110, 212, 191, .10); }
.xfer.on label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.xfer.on input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-700); flex: none; }

.setup-steps { counter-reset: s; list-style: none; padding: 0; margin: 8px 0 0; }
.setup-steps > li { counter-increment: s; position: relative; padding-left: 42px; margin-bottom: 22px; }
.setup-steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.qr { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 8px; }
.qr svg { width: 176px; height: 176px; display: block; }
.secret { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; background: #f1f5f9; padding: 8px 10px; border-radius: 6px; word-break: break-all; margin-top: 8px; }
details summary { cursor: pointer; color: var(--brand-700); font-size: 14px; }
.authicon { color: var(--brand-500); display: inline-flex; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* ---------- Numune bilgileri: panel ---------- */
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.mpanel { margin-top: 24px; }
.drawer .mpanel { border-top: 1px solid var(--line); padding-top: 18px; }
.jobcard .mpanel { border-top: 1px solid var(--line); padding-top: 20px; }
.mpanel > header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mpanel > header h3, .mpanel > header h2 { margin: 0; }
.msum { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin-bottom: 14px; }
.mtile { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; background: #fbfdfd; min-width: 0; }
.mtile .l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.mtile .v { font-weight: 650; margin-top: 3px; font-size: 14.5px; }
.mtile .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 650; padding: 1px 9px; border-radius: 99px; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-err { background: var(--err-bg); color: var(--err); }
.b-muted { background: #eef2f6; color: #475569; }
.mh { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-500); margin: 16px 0 8px; }
.mnotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mnotes li { padding: 9px 12px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.45; border-left: 3px solid; }
.n-err { background: var(--err-bg); border-color: var(--err) !important; color: #7a1a12; }
.n-warn { background: var(--warn-bg); border-color: #e7a33e !important; color: #7a2e0b; }
.n-info { background: var(--info-bg); border-color: #6b93cf !important; color: #173f74; }
.n-muted { background: #f1f5f9; border-color: #94a3b8 !important; color: #475569; }
.mrows { display: grid; grid-template-columns: minmax(140px, 44%) 1fr; gap: 5px 14px; font-size: 13.5px; margin: 0; }
.mrows dt { color: var(--muted); }
.mrows dd { margin: 0; overflow-wrap: anywhere; }
.mrows dd.e { color: #a0aec0; }
.mrows dd.pre { white-space: pre-wrap; }
.mrows .req, .pf .req { color: var(--err); margin-left: 3px; font-weight: 700; }
.mfields { margin-top: 16px; }
.mfields > summary { font-weight: 600; padding: 6px 0; }
.mg h5 { font-size: 12.5px; color: var(--ink-2); margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 650; }
.mempty { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: #fafcfc; }
.mempty > div { flex: 1; min-width: 220px; }
.mfoot { font-size: 12px; color: var(--muted); margin-top: 14px; }
.codeline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row .codeline .code { display: inline; }
.flag { font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 99px; background: #eef2f6; color: #475569; white-space: nowrap; line-height: 1.6; }
.flag.f-ok { background: var(--ok-bg); color: var(--ok); }
.flag.f-warn { background: var(--warn-bg); color: var(--warn); }
.flag.f-err { background: var(--err-bg); color: var(--err); }
.phbtn { white-space: nowrap; }
.phbtn.ok { color: var(--ok); border-color: #b7e2c8; background: var(--ok-bg); }
.phbtn.warn { color: var(--warn); border-color: #f5d9a8; background: var(--warn-bg); }

/* ---------- Numune bilgileri: form düzenleyici ---------- */
.modal.mform { left: 50%; right: auto; width: min(940px, calc(100% - 48px)); transform: translateX(-50%); }
.mform > header { padding: 12px 14px 12px 20px; }
.mform .mbody { flex: 1; overflow: auto; padding: 14px 22px 28px; overscroll-behavior: contain; }
.mform > footer { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; background: #fbfdfd; }
.mform fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.mform legend { font-weight: 700; color: var(--brand-700); font-size: 14.5px; padding: 0 0 5px; width: 100%; border-bottom: 2px solid var(--mint-100); }
.pf { display: grid; grid-template-columns: 260px 1fr; gap: 6px 18px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; align-items: start; }
.pf[hidden] { display: none; }
.pf > .pl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding-top: 5px; line-height: 1.35; }
.pf .fk { display: inline-block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); background: #f1f5f9; border-radius: 4px; padding: 0 4px; margin-right: 6px; font-weight: 600; vertical-align: 1px; }
.pf .ph { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pf.miss > .pl .req::after { content: " gerekli"; font-size: 11px; font-weight: 600; color: var(--warn); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); line-height: 1.3; transition: background .12s, border-color .12s, color .12s; }
.opt:hover { border-color: var(--brand-500); background: var(--mint-50); }
.opt:focus-visible { outline: 3px solid rgba(42, 135, 128, .45); outline-offset: 1px; }
.opt[aria-checked="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.opt.none { border-style: dashed; }
.opt.none[aria-checked="true"] { background: #475569; border-color: #475569; border-style: solid; }
.opts.bristol .opt { border-radius: 10px; display: grid; justify-items: center; gap: 1px; width: 92px; padding: 6px 4px; text-align: center; }
.opts.bristol .opt b { font-size: 17px; line-height: 1.1; }
.opts.bristol .opt small { font-size: 11px; line-height: 1.25; opacity: .85; }
.pin { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pin .input { width: 110px; height: 38px; }
.pin .u { color: var(--muted); font-size: 13px; }
.pf .input.txt { margin-top: 8px; height: 38px; }
.pf .input.txt[hidden] { display: none; }
textarea.input { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.mform .req[hidden] { display: none; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--brand-900); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 70; box-shadow: var(--shadow); font-size: 14px; animation: rise .2s ease; max-width: calc(100% - 32px); }

/* ---------- Kişi izlem ---------- */
.flag.f-subj { background: var(--mint-100); color: var(--brand-700); font-family: var(--mono); }
.row.srow { grid-template-columns: minmax(170px, 1.2fr) minmax(170px, 1.2fr) 200px 100px 20px; text-decoration: none; color: inherit; }
.row.srow .c2 strong { display: block; font-size: 14px; font-weight: 600; }
.spark { display: block; }
.person .msum { margin-bottom: 6px; }
.person > .mnotes { margin-bottom: 20px; }
.pcard-s { margin-top: 20px; padding: 20px 22px; }
.pcard-s .cardhead h2 { font-size: 18px; }
.input.input-sm { height: 34px; width: auto; max-width: 280px; font-size: 13.5px; padding: 0 8px; }
.tlbox { width: 100%; overflow: hidden; }
.tl { display: block; overflow: visible; }
.tl-ev { cursor: default; }
.tl-ev:focus { outline: none; }
.tl-ev:focus rect, .tl-ev:hover rect { stroke: var(--brand-500); stroke-width: 1; }
.tl-evt { font-size: 11.5px; fill: var(--ink-2); font-weight: 600; pointer-events: none; }
.tl-axis { stroke: var(--line-2); stroke-width: 1; }
.tl-tick { font-size: 11px; fill: var(--muted); }
.tl-s { cursor: pointer; }
.tl-s:focus { outline: none; }
.tl-s:focus circle:first-of-type, .tl-s:hover circle:first-of-type { stroke-width: 3; }
.tl-t { font-size: 11px; font-weight: 700; fill: var(--brand-700); }
.tl-c { font-size: 11px; font-family: var(--mono); fill: var(--ink-2); }
.evlist { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.evlist li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.evt-type { flex: 0 0 auto; font-size: 11.5px; font-weight: 650; background: var(--mint-100); color: var(--brand-700); border-radius: 99px; padding: 2px 9px; margin-top: 1px; white-space: nowrap; }
.evt-main { flex: 1; min-width: 0; }
.mcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mc { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px 8px; min-width: 0; background: #fff; }
.mc-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; }
.mc-l { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.mc-x { height: 26px; padding: 0 6px; }
.mc-v { margin: 2px 0 4px; font-size: 13px; }
.mc-v strong { font-size: 18px; font-weight: 650; }
.mcbox { width: 100%; }
.mcbox svg { display: block; }
.mc-hint { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.mc-grid { stroke: #edf1f5; stroke-width: 1; }
.mc-tick { font-size: 10.5px; fill: var(--muted); }
.mc-end { font-size: 11.5px; font-weight: 650; fill: var(--ink); }
.mc-hit { cursor: default; }
.vtip { position: fixed; z-index: 80; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 6px 24px rgba(15, 61, 67, .16); padding: 8px 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); pointer-events: none; max-width: 320px; }
.vtip .t { font-weight: 650; color: var(--ink); }
.comp .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; font-size: 12.5px; color: var(--ink-2); }
.comp .lg { display: inline-flex; align-items: center; gap: 6px; }
.comp .lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.crow { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; margin: 6px 0; }
.clab { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbar { display: flex; gap: 2px; height: 22px; border-radius: 4px; overflow: hidden; background: #fff; }
.cseg { display: flex; align-items: center; justify-content: center; min-width: 2px; flex-shrink: 1; flex-grow: 0; cursor: default; }
.cseg b { font-size: 11px; font-weight: 650; color: #fff; white-space: nowrap; }
.cseg b.dk { color: #0b0b0b; }
.cmp-pick { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.cmp-pick .field { margin: 0; flex: 1; min-width: 220px; }
.cmp-arrow { color: var(--muted); padding: 0 4px; text-align: center; }
.cmp-pick .cmp-arrow { padding-bottom: 12px; font-size: 18px; }
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cmp-head .mh { margin: 0; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.cmp-col { min-width: 0; }
.person, .person .card { min-width: 0; }
.cmp-col h5 { font-size: 13px; margin: 0 0 6px; color: var(--ink-2); }
.ctab { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctab.wide { margin-top: 12px; }
.ctab th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 6px; border-bottom: 1px solid var(--line); }
.ctab td { padding: 6px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.ctab .r { text-align: right; white-space: nowrap; }
.ctab td.small { font-size: 12px; white-space: normal; }
.dcell { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.dbar { display: inline-block; height: 8px; border-radius: 2px; }
.dbar.up { background: #2a78d6; }
.dbar.down { background: #eb6834; }
.slist { display: grid; }
.srow2 { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); border-radius: 6px; transition: background .4s; }
.srow2:first-child { border-top: 0; }
.srow2.flash { background: var(--mint-50); }
.srow2 .st { display: grid; gap: 2px; }
.srow2 .st strong { font-size: 18px; color: var(--brand-700); }
.srow2 .sa { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ctxs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ctx { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #f1f5f9; color: var(--ink-2); }
.ctx-during { background: var(--mint-100); color: var(--brand-700); }
.alert.pre { white-space: pre-wrap; }
.pfoot2 { display: flex; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.modal.mform.msm { width: min(580px, calc(100% - 48px)); top: 8vh; bottom: auto; max-height: 84vh; }
.msm .mbody { padding: 16px 22px 18px; }
.msm .mbody > .input[type=search] { margin-bottom: 10px; }
.grid2.tight { margin-top: 0; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; margin: -4px 0 14px; font-size: 14px; }
.checks input { accent-color: var(--brand-700); }
.picklist { display: grid; gap: 4px; max-height: 300px; overflow: auto; margin-bottom: 14px; }
.pick { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; }
button.pick { grid-template-columns: auto 1fr auto; }
.pick:hover { border-color: var(--brand-500); background: var(--mint-50); }
.pick.cur { border-color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-700); }
.pick input { accent-color: var(--brand-700); width: 16px; height: 16px; }
.newsub { border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 14px 14px; margin: 4px 0 0; }
.newsub legend { font-size: 13px; font-weight: 650; color: var(--brand-700); padding: 0 6px; }
.subjline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.subjbtn { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.subjbtn.on { font-family: var(--mono); }
.upsubj { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vgroup { margin-bottom: 20px; }
.adder { flex-wrap: nowrap; }
.adder .input { width: 230px; height: 34px; font-size: 13.5px; }
.mg .ctab { table-layout: fixed; }
.mg .ctab td:first-child { width: 46%; }
.mg .ctab td.cmp-arrow { width: 32px; }
.vgroup .pcard-s { box-shadow: none; }

/* ---------- Dar ekran ---------- */
@media (max-width: 900px) {
	.home { grid-template-columns: 1fr; gap: 24px; padding: 0; }
	.home h1 { font-size: 28px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.row { grid-template-columns: 1fr auto; gap: 4px 12px; }
	.row .c3, .row .c4, .row .c5 { display: none; }
	.row.head { display: none; }
	.brand-sub { display: none; }
	.kv { grid-template-columns: 1fr; gap: 2px; }
	.kv dt { margin-top: 8px; }
	.modal { inset: 0; border-radius: 0; }
	.uprow { grid-template-columns: 1fr; gap: 6px; }
	.split, .grid2 { grid-template-columns: 1fr; }
	.subbar .labname { display: none; }
	.modal.mform { inset: 0; width: 100%; transform: none; border-radius: 0; }
	.pf { grid-template-columns: 1fr; gap: 6px; }
	.row.srow { grid-template-columns: 1fr auto; }
	.cmp-grid { grid-template-columns: 1fr; }
	.crow { grid-template-columns: 1fr; gap: 3px; }
	.srow2 { grid-template-columns: 56px 1fr; }
	.srow2 .sa { grid-column: 1 / -1; justify-content: flex-start; }
	.mcgrid { grid-template-columns: 1fr; }
	.modal.mform.msm { top: 0; max-height: none; bottom: 0; width: 100%; }
	.evlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
	.evt-type { justify-self: start; }
	.evt-main { grid-column: 1 / -1; grid-row: 2; }
	.adder { flex-wrap: wrap; }
	.adder .input { width: 100%; }
	.cmp-pick .cmp-arrow { display: none; }
	.mrows { grid-template-columns: 1fr; gap: 0; }
	.mrows dd { margin-bottom: 7px; }
}
@media (max-width: 560px) {
	main.wrap { padding: 20px 16px 48px; }
	.card { padding: 18px; }
	.topbar-in, .subbar-in { padding: 0 12px; gap: 6px; }
	.pill .txt { display: none; }
	.pill { padding: 6px; }
	.tb-user { display: none; }
	h1 { font-size: 23px; }
	.steps .t { display: none; }
	.docs { grid-template-columns: 1fr; }
	.table thead { display: none; }
	.table tr { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
	.table td { border: 0; padding: 4px 0; }
	.table td.num { padding-top: 4px; }
}

/* ---------- Yazdırma: yalnız erişim kartları ---------- */
#print-area { display: none; }
@media print {
	@page { size: A4; margin: 12mm; }
	body { background: #fff; }
	#app, .toast, .drawer, .drawer-bg, .modal, .modal-bg { display: none !important; }
	#print-area { display: block; }
}
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.pcard { border: 1px solid #94a3b8; border-radius: 4mm; padding: 6mm; break-inside: avoid; font: 10.5pt/1.4 var(--font); color: #000; }
.ph { display: flex; justify-content: space-between; gap: 4mm; align-items: flex-start; margin-bottom: 4mm; }
.pbrand { font-size: 15pt; font-weight: 300; letter-spacing: .25em; color: #15555e; }
.psub { font-size: 8.5pt; color: #475569; }
.pqr svg { width: 26mm; height: 26mm; display: block; }
.prow { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e2e8f0; padding: 2.2mm 0; }
.pl { font-size: 9pt; color: #475569; }
.pv { font-family: var(--mono); font-size: 14pt; font-weight: 700; letter-spacing: .08em; }
.pins { margin: 3mm 0 2mm; padding-left: 5mm; font-size: 9pt; }
.pfoot { font-size: 8pt; color: #475569; border-top: 1px solid #e2e8f0; padding-top: 2mm; }
/* Numune bilgileri sayfası (yazdır) */
.msheet { font: 9.5pt/1.4 var(--font); color: #000; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.msheet > header h2 { font-size: 15pt; margin: 1mm 0 0; }
.msheet .pbrand { font-size: 10pt; }
.msheet .msum { grid-template-columns: repeat(5, 1fr); }
.msheet .mtile, .msheet .mnotes li, .msheet .mg { break-inside: avoid; }
.msheet .mrows { font-size: 9.5pt; gap: 1.2mm 4mm; }
.msheet .mfields { columns: 2; column-gap: 8mm; }
.msheet .mfields > .mh { column-span: all; }

/* değişim analizi (kişi sayfası) */
.n-ok { background: var(--ok-bg); border-color: #3fae7c !important; color: #0b5132; }
.pex-span { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.pex-hls li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pex-hl { flex: 1; min-width: 0; }
.pex-hls .btn { flex: none; }
.pex-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 12px; }
.pex-sel { font-size: 12.5px; }
.mc-g { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.tr { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tr-pos { color: var(--ok); }
.tr-neg { color: var(--warn); }
.tr-n { color: var(--ink-2); }
.pex-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.pex-tools .search { flex: 1 1 260px; max-width: none; }
.pex-tools select.input { width: auto; flex: 0 1 auto; }
.pex-only { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.pex-only input { width: 17px; height: 17px; accent-color: var(--brand-700); }
.pex-tab td, .pex-tab th { white-space: nowrap; }
.pex-tab td.pex-p { white-space: normal; min-width: 170px; max-width: 280px; }
.pex-gl { display: block; font-size: 11px; color: var(--muted); }
.pex-d { display: block; font-size: 10.5px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.pex-tab .pex-ck { width: 44px; text-align: center; }
.pex-tab .pex-ck input { width: 17px; height: 17px; accent-color: var(--brand-700); }
.pex-tab tr.on td { background: #f3faf8; }
.pex-tab tr.pex-gr td { background: #f8fafc; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-500); font-weight: 650; }
.pex-tinfo { margin-top: 8px; }
.pex-cat { list-style: none; padding: 0; margin: 6px 0; font-size: 13px; display: grid; gap: 4px; }
.nowrap { white-space: nowrap; }

/* süren / yarım kalan yükleme */
.upbanner-w { background: var(--info-bg); border-bottom: 1px solid #c6d8f2; }
.upbanner { max-width: 1180px; margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; gap: 10px; color: #173f74; text-decoration: none; font-size: 13.5px; }
.upbanner .ub-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upbanner .spin { width: 14px; height: 14px; }
.upbox { margin: 0 0 16px; }
.upbox .alert { margin-bottom: 10px; }
.upbox .muted.small { margin-top: 8px; }
.partials { margin-top: 20px; }
.plist { display: grid; gap: 10px; }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.pmain { min-width: 0; }

/* topluluk değişimi */
.cc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cc-tools label { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-chart { margin-bottom: 6px; }
.cc-steps tr.cc-max td { background: #f3faf8; }
.cc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
.cc-mx, .cc-hm { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; }
.cc-mx th, .cc-hm th { font-size: 11.5px; font-weight: 650; color: var(--ink-2); padding: 4px 8px; text-align: left; white-space: nowrap; }
.cc-mx thead th, .cc-hm thead th { text-align: center; }
.cc-mx td { width: 64px; height: 34px; text-align: center; border-radius: 4px; font-variant-numeric: tabular-nums; }
.cc-hm td { min-width: 58px; height: 26px; text-align: center; border-radius: 3px; font-variant-numeric: tabular-nums; font-size: 12px; }
.cc-hm tbody th { font-weight: 500; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.seqlg { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.seqbar { display: inline-flex; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); }
.seqbar i { width: 18px; height: 10px; display: block; }
.cc-tx { list-style: none; padding: 0; margin: 4px 0; font-size: 13px; display: grid; gap: 3px; }

/* =====================================================================
 * v0.5 — sonuç özeti, terimler, bölüm menüsü, iskelet, A4 izlem özeti, karşılaştırma, erişilebilirlik
 * ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num, .stat .n, .mtile .v, .ctab td.r, .rs-kpi .v, .pex-tab td.r { font-variant-numeric: tabular-nums; }
.tb-lang { font-weight: 700; letter-spacing: .06em; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; padding: 3px 8px; }
.pagehead .acts { justify-content: flex-end; }

/* terim açıklaması (ⓘ) */
.term { display: inline-flex; align-items: center; gap: 5px; }
.tinfo { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--brand-600); font: italic 700 10.5px/14px Georgia, serif; text-align: center; padding: 0; cursor: pointer; flex: none; text-transform: none; letter-spacing: 0; }
.tinfo:hover, .tinfo[aria-expanded="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.tinfo:focus-visible { outline: 2px solid var(--mint-500); outline-offset: 2px; }
.tpop { position: absolute; z-index: 90; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 61, 67, .18); padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 400; }
.tpop strong { display: block; color: var(--ink); margin-bottom: 3px; font-size: 13.5px; }
.tpop p { margin: 0; }
/* terim sözlüğü: adın altı noktalı; üzerine gelince açıklama */
.tx { text-decoration: underline dotted var(--brand-500); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; border-radius: 3px; }
.tx:hover, .tx[aria-expanded="true"] { background: var(--mint-50); text-decoration-color: var(--brand-700); }
.tx:focus-visible, .tx-host:focus-visible { outline: 2px solid var(--mint-500); outline-offset: 2px; }
.rs-kpi.rs-type .tx { text-decoration-color: rgba(255, 255, 255, .7); }
.rs-kpi.rs-type .tx:hover, .rs-kpi.rs-type .tx[aria-expanded="true"] { background: rgba(255, 255, 255, .14); text-decoration-color: #fff; }
.tx-host { cursor: help; }
.tpop .tp-t { margin-bottom: 1px; }
.tpop .tp-k { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.tpop p + p { margin-top: 6px; }
.tpop .tp-n { font-size: 12px; color: var(--muted); font-style: italic; }
.tpop .tp-r, .tpop .tp-rep { font-size: 12px; color: var(--ink-2); background: #f6f8fa; border-left: 3px solid var(--line-2); padding: 5px 8px; border-radius: 0 6px 6px 0; }
.tpop .tp-rep { border-left-color: var(--brand-500); }
.tpop .tp-rep b { color: var(--ink); }
@media print { .tx { text-decoration: none; background: none; } }

/* sonuç özeti */
.rsum { margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.rs-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rs-head h3 { margin: 0; font-size: 17px; }
.rs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rs-kpi { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fff; display: grid; gap: 3px; align-content: start; min-width: 0; }
.rs-kpi .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.rs-kpi .v { font-size: 21px; font-weight: 700; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.rs-kpi .s { font-size: 12px; color: var(--muted); }
.rs-kpi .s .chip { font-size: 11.5px; padding: 2px 8px; }
.rs-kpi.rs-type { background: linear-gradient(120deg, var(--brand-900), var(--brand-700)); border-color: transparent; }
.rs-kpi.rs-type .k, .rs-kpi.rs-type .s { color: rgba(255, 255, 255, .78); }
.rs-kpi.rs-type .v { color: #fff; font-size: 16.5px; }
.rs-kpi.rs-type .tinfo { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.rs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.rs-box { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: #fff; min-width: 0; }
.rs-box h4 { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.rs-n { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #eef2f6; color: var(--ink-2); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.rs-attn { list-style: none; margin: 0; padding: 0; display: grid; }
.rs-attn li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 7px 0 7px 12px; border-top: 1px solid var(--line); position: relative; }
.rs-attn li:first-child { border-top: 0; }
.rs-attn li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: #b45309; }
.rs-attn li.k-mid::before { background: #ca9a1b; }
.rs-t { min-width: 0; font-size: 13.5px; }
.rs-t small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.rs-v { font-size: 12.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.rs-goods { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-good { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); }
.rs-gs { opacity: .8; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.rs-g { border-radius: 8px; padding: 7px 9px; font-size: 12px; line-height: 1.3; outline-offset: 2px; }
.rs-g b { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.rs-g.g-ok { background: var(--ok-bg); color: var(--ok); }
.rs-g.g-mid { background: #fbf3d9; color: #6f5200; }
.rs-g.g-low { background: var(--warn-bg); color: var(--warn); }
.rs-g.g-na { background: #f1f5f9; color: var(--muted); }
.rs-stack { display: flex; height: 18px; border-radius: 5px; overflow: hidden; gap: 2px; background: #fff; }
.rs-stack i { display: block; height: 100%; flex-grow: 0; flex-shrink: 0; }
.rs-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 10px; font-size: 12px; color: var(--ink-2); }
.rs-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.rs-gen { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rs-gen li { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 56px; gap: 10px; align-items: center; font-size: 12.5px; }
.rs-gen em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-gbar { height: 8px; border-radius: 4px; background: #eef2f6; overflow: hidden; }
.rs-gbar i { display: block; height: 100%; background: var(--brand-600); border-radius: 0 4px 4px 0; }
.rs-gen .num { text-align: right; color: var(--ink-2); }
.rs-recs { border: 1px solid var(--mint-100); background: var(--mint-50); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 10px; }
.rs-recs .mh { margin: 0; }
.rs-rgrp h5 { margin: 0 0 6px; font-size: 12.5px; color: var(--brand-700); }
.rs-supp { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; }
.rs-p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.rs-foods { display: flex; flex-wrap: wrap; gap: 5px; }
.rs-foods span { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #fff; border: 1px solid var(--mint-100); color: var(--brand-700); }
.rs-pro { margin: 8px 0 0; padding-left: 18px; columns: 2; column-gap: 24px; font-size: 12.5px; }
.rs-scores .rs-sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.rs-scores h5 { margin: 0 0 4px; font-size: 12.5px; }
.rs-foot { margin: 0; }
.rsum.narrow .rs-two { grid-template-columns: 1fr; }
.rsum.narrow .rs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rsum.narrow .rs-kpi.rs-type { grid-column: 1 / -1; }
.rsum.narrow .rs-pro { columns: 1; }
.drawer .rsum { border-top: 1px solid var(--line); }
@media (max-width: 720px) {
	.rs-two { grid-template-columns: 1fr; }
	.rs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-kpi.rs-type { grid-column: 1 / -1; }
	.rs-gen li { grid-template-columns: minmax(90px, 1fr) 1fr 48px; }
	.rs-pro { columns: 1; }
}

/* yükleniyor iskeleti */
.skel { display: grid; gap: 10px; padding: 14px 0; }
.skel span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #edf2f4 0%, #f7fafa 40%, #edf2f4 80%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.skel-rows { padding: 12px 16px; }
.skel-rows span { height: 34px; }
.skel-page span:first-child { height: 30px; width: 40% !important; }
.skel-page span { height: 64px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* boş durum */
.empty-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mint-50); color: var(--brand-500); margin-bottom: 8px; }
.empty-t { font-size: 16px; font-weight: 650; color: var(--ink-2); margin: 4px 0; }

/* bölüm menüsü + daraltma */
.secnav { position: sticky; top: 0; z-index: 6; margin: 4px 0 6px; background: rgba(244, 247, 248, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.secnav-in { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: thin; }
.secnav-a { flex: none; font: 600 12.5px/1 var(--font); padding: 7px 11px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.secnav-a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.secnav-all { background: transparent; border-style: dashed; }
.vgroup .secnav { background: rgba(255, 255, 255, .95); }
.foldable > .cardhead, .pcard-s > .cardhead { position: relative; }
.fold { width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-grid; place-items: center; margin-right: -4px; color: var(--muted); flex: none; }
.fold:hover { background: var(--mint-50); color: var(--brand-700); }
.fold-i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); }
.fold[aria-expanded="false"] .fold-i { transform: rotate(-45deg); }
.pcard-s > .cardhead { justify-content: flex-start; }
.pcard-s > .cardhead > h2 { margin-right: auto; }
.pcard-s.folded > .cardhead { margin-bottom: 0; }
.pcard-s { scroll-margin-top: 56px; }

/* grafik: imleç çizgisi */
.mc-guide { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.mc-ov { cursor: crosshair; }
.mc-hit:focus { outline: none; }
.mc-hit:focus-visible { stroke: var(--mint-500); stroke-width: 2; }

/* karşılaştırma */
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 6px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; }
.cmp-chip strong { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-700); color: #fff; font-size: 12px; }
.modal.mform.msm.mwide { width: min(780px, calc(100% - 48px)); }
.mwide .picklist { max-height: 360px; }
.pick-all { background: var(--mint-50); }
.ck-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* hasta girişi: bu ekranda ne göreceksiniz */
.seeit { margin-top: 26px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.seeit .eyebrow { margin-bottom: 8px; }
.seeit ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.seeit li { display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; counter-increment: s; font-size: 14px; }
.seeit li::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--mint-100); color: var(--brand-700); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.seeit li span { color: var(--muted); font-size: 13px; }

/* A4 izlem özeti (yazdır) */
.fsheet { font: 9.4pt/1.42 var(--font); color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fs-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #15555e; padding-bottom: 3mm; margin-bottom: 4mm; }
.fs-head h2 { margin: 1mm 0 0; font-size: 15pt; }
.fs-head .pbrand { font-size: 10pt; }
.fs-sub { color: #475569; font-size: 9pt; }
.fs-date { color: #475569; font-size: 8.5pt; }
.fsheet .msum { grid-template-columns: repeat(5, 1fr); margin-bottom: 3mm; }
.fs-tl svg { width: 100%; height: auto; }
.fs-ev { margin: 1mm 0 3mm; padding-left: 4mm; font-size: 8.6pt; color: #334155; }
.fs-tab { font-size: 8.8pt; margin-bottom: 3mm; }
.fs-tab td.up { color: #067647; font-weight: 600; }
.fs-tab td.dn { color: #93370d; font-weight: 600; }
.fs-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; margin: 2mm 0 3mm; }
.fs-mc { border: 1px solid #e2e8f0; border-radius: 2mm; padding: 2mm; break-inside: avoid; }
.fs-mc svg { width: 100%; height: auto; }
.fs-mcl { font-size: 8.6pt; font-weight: 600; margin-bottom: 1mm; }
.fsheet .mnotes li { font-size: 8.6pt; padding: 1.6mm 2.4mm; break-inside: avoid; }
.fs-samples td.code { font-family: var(--mono); }
.fs-foot { display: flex; justify-content: space-between; gap: 6mm; margin-top: 4mm; padding-top: 2mm; border-top: 1px solid #e2e8f0; font-size: 7.8pt; color: #64748b; }
.fsheet .mh { margin: 3mm 0 1.5mm; }

/* hareket azaltma */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.spin { animation: rot 1.6s linear infinite !important; animation-iteration-count: infinite !important; }
	.skel span { animation: none !important; }
}
.rs-more { font: 600 12px/1 var(--font); padding: 4px 10px; border-radius: 6px; border: 1px dashed var(--line-2); background: #fff; color: var(--brand-700); cursor: pointer; }
.rs-more:hover { border-color: var(--brand-500); }
.rs-gen { max-width: 720px; }

/* ---------- Diğer analizler (v0.6.0) ---------- */
.pm-jobs { display: grid; gap: 12px; }
.pm-job { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.pm-job:hover { border-color: var(--line-2); }
.pm-job-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pm-job-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-decoration: none; color: var(--ink); }
.pm-job-t:hover .pm-job-n { color: var(--brand-700); text-decoration: underline; }
.pm-job-n { font-weight: 650; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.pm-job-m { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.pm-job-pipe { font-weight: 600; color: var(--ink-2); }
.pm-job-p { display: grid; grid-template-columns: minmax(80px, 200px) minmax(0, 1fr); gap: 12px; align-items: center; }
.pm-job-p .small { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-job-msg { overflow-wrap: anywhere; }
.pm-mode { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); white-space: nowrap; }
.pm-mode .ic { color: var(--brand-500); }
.mono { font-family: var(--mono); }
.pm-head h1 { overflow-wrap: anywhere; }
.pm-head-t { min-width: 0; flex: 1 1 320px; }
.pm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 13.5px; }

/* sihirbaz */
.pm-stepn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-700); color: #fff; font-size: 14px; font-weight: 700; margin-right: 10px; vertical-align: 2px; }
.pm-pipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pm-pipe { display: flex; flex-direction: column; gap: 7px; text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; min-width: 0; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
.pm-pipe:hover { border-color: var(--brand-500); }
.pm-pipe.on { border-color: var(--brand-700); background: var(--mint-50); box-shadow: 0 0 0 3px rgba(42, 135, 128, .15); }
.pm-pipe:focus-visible, .pm-modeb:focus-visible, .pm-dir:focus-visible, .pm-toc-a:focus-visible, .pm-gcard:focus-visible { outline: 3px solid rgba(42, 135, 128, .5); outline-offset: 2px; }
.pm-pipe-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pm-pipe-h strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.pm-pipe-h .badge { flex: none; }
.pm-pipe-s { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.pm-pipe-i, .pm-pipe-n { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pm-pipe-n.warn { color: var(--warn); }
.pm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-tag { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: #e6edef; color: var(--ink-2); }
.pm-tag.t-time { background: var(--info-bg); color: var(--info); }
.pm-catupd { margin: 10px 0 0; }
.pm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-modeb { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.pm-modeb:hover:not(:disabled) { border-color: var(--brand-500); }
.pm-modeb.on { border-color: var(--brand-700); background: var(--mint-50); }
.pm-modeb:disabled { cursor: not-allowed; opacity: .62; background: #f8fafc; }
.pm-modeb-t { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; }
.pm-modeb-t .ic { color: var(--brand-500); }
.pm-modeb-s { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pm-why { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.pm-why .ic { color: var(--muted); }
.pm-src { margin-top: 16px; }
.pm-lbl { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 6px; color: var(--ink-2); }
.pm-pathrow { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-pathrow .input { flex: 1 1 260px; min-width: 0; font-family: var(--mono); }
.pm-checks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 4px; }
.pm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pm-check input { width: 18px; height: 18px; accent-color: var(--brand-700); margin: 0; flex: none; }
.pm-drop { padding: 26px 16px; }
.pm-drop.sm { padding: 16px 14px; margin: 8px 0 10px; }
.pm-drop.sm .acts { margin-top: 12px; }
.pm-scaninfo { margin: 8px 0 0; }
.pm-samples { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.pm-shead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pm-shead h3 { margin: 0; }
.pm-sedit td { vertical-align: middle; }
.pm-sedit .input { min-width: 110px; }
.pm-sedit td:nth-child(2) .input { min-width: 170px; }
.pm-sedit td:first-child input[type=checkbox], .pm-sedit th input[type=checkbox] { margin: 0; width: 18px; height: 18px; accent-color: var(--brand-700); }
.pm-srct { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px/1.4 var(--mono); color: var(--muted); }
.pm-ssum { margin: 10px 0 4px; font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.pm-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 20px; }
.pm-optb { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
.pm-notes { margin-top: 6px; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; }
.pm-notes h3 { margin: 0 0 6px; font-size: 14px; }
.pm-notes ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.pm-notes li + li { margin-top: 3px; }
.pm-starterr { flex: 1 1 200px; align-self: center; margin: 0; }

/* gözat penceresi */
.pm-curw { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pm-cur { font: 13px/1.4 var(--mono); overflow-wrap: anywhere; min-width: 0; flex: 1; padding: 7px 10px; background: #f1f5f9; border-radius: 6px; }
.pm-binfo { margin-top: 4px; }
.pm-dirs { display: grid; gap: 2px; margin-top: 10px; max-height: 50vh; overflow: auto; }
.pm-dir { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
.pm-dir:hover { background: var(--mint-50); }
.pm-dir .ic { color: var(--brand-500); flex: none; }
.pm-dir span:last-child { overflow-wrap: anywhere; }

/* ayrıntı */
.pm-log { max-height: 340px; overflow: auto; background: #0f172a; color: #e2e8f0; font: 12px/1.5 var(--mono); padding: 12px 14px; border-radius: var(--r-sm); white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 12px; }
.pm-log:focus-visible { outline: 3px solid rgba(42, 135, 128, .5); outline-offset: 2px; }
.pm-logh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pm-groups { display: grid; gap: 14px; }
.pm-group { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.pm-group > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.pm-group > header h3 { margin: 0; font-family: var(--mono); font-size: 14.5px; overflow-wrap: anywhere; min-width: 0; }
.pm-group.pm-proj > header { background: var(--mint-50); }
.pm-group.pm-proj > header h3 { font-family: var(--font); }
.pm-file { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.pm-file:first-child { border-top: 0; }
.pm-file .fi { width: 34px; height: 40px; font-size: 9.5px; }
.pm-file-m { flex: 1; min-width: 0; }
.pm-file-m .name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pm-file-m .sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pm-file .acts { flex: none; gap: 4px; justify-content: flex-end; }
.pm-h3 { margin-top: 18px; }
.pm-stable td { overflow-wrap: anywhere; }
.pm-path { display: block; font: 12px/1.45 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.pm-paths summary { font: 12px/1.45 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }

/* yükleme paneli */
.pm-upnote:empty { display: none; }
.pm-uplist { margin-top: 14px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pm-uprow { display: grid; grid-template-columns: minmax(0, 1fr) 140px 120px; gap: 12px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.pm-uprow:first-child { border-top: 0; }
.pm-uprow.on { background: var(--mint-50); }
.pm-upn { min-width: 0; display: flex; flex-direction: column; }
.pm-upf { font: 12.5px/1.35 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-minfo { margin: 0 0 8px; color: var(--ink-2); }

/* rehberler */
.pm-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pm-gcard { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pm-gcard:hover { border-color: var(--brand-500); }
.pm-gcard-t { display: inline-flex; align-items: center; gap: 8px; }
.pm-gcard-t .ic { color: var(--brand-500); }
.pm-guide-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.pm-guide-wrap.no-toc { grid-template-columns: minmax(0, 1fr); }
.pm-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; font-size: 13.5px; }
.pm-toc summary { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; cursor: pointer; }
.pm-toc-l { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.pm-toc-l li.sub { padding-left: 12px; }
.pm-toc-a { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent; margin-left: -2px; padding: 5px 10px; color: var(--ink-2); cursor: pointer; font: inherit; line-height: 1.35; border-radius: 0 6px 6px 0; }
.pm-toc-a:hover { color: var(--brand-700); background: var(--mint-50); border-left-color: var(--mint-500); }
.guide { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; box-shadow: var(--shadow); font-size: 15.5px; line-height: 1.65; min-width: 0; max-width: 840px; overflow-wrap: anywhere; }
.guide > :first-child { margin-top: 0; }
.guide h2 { font-size: 21px; margin: 32px 0 10px; scroll-margin-top: 16px; }
.guide h3 { font-size: 17px; margin: 24px 0 8px; scroll-margin-top: 16px; }
.guide h4 { font-size: 15.5px; margin: 18px 0 6px; }
.guide h2:focus, .guide h3:focus { outline: none; }
.guide p, .guide ul, .guide ol, .guide dl { margin: 0 0 14px; }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 4px 0; }
.guide dt { font-weight: 650; margin-top: 8px; }
.guide dd { margin: 2px 0 0 18px; }
.guide img, .guide svg, .guide video { max-width: 100%; height: auto; border-radius: 8px; }
.guide figure { margin: 18px 0; }
.guide figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.guide table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; display: block; overflow-x: auto; }
.guide th, .guide td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide th { background: #f8fafc; font-weight: 650; }
.guide code { font-family: var(--mono); font-size: .9em; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.guide pre { background: #f1f5f9; padding: 12px 14px; border-radius: 8px; overflow: auto; font-size: 13px; }
.guide pre code { background: none; padding: 0; }
.guide blockquote, .guide .note { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--mint-500); background: var(--mint-50); border-radius: 0 8px 8px 0; }
.guide .warn { margin: 16px 0; padding: 12px 16px; border-left: 4px solid #f5b84a; background: var(--warn-bg); border-radius: 0 8px 8px 0; }
.guide hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

@media (max-width: 900px) {
	.pm-guide-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.pm-toc { position: static; max-height: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
	.pm-toc summary { margin: 0; }
	.pm-toc details[open] summary { margin-bottom: 8px; }
	.pm-uprow { grid-template-columns: minmax(0, 1fr) 90px; gap: 4px 10px; }
	.pm-uprow > .small { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.subbar-in { overflow-x: auto; scrollbar-width: none; }
	.subbar-in::-webkit-scrollbar { display: none; }
	.subtab { padding: 12px 9px 10px; font-size: 13.5px; white-space: nowrap; flex: none; }
	.pm-modes { grid-template-columns: minmax(0, 1fr); }
	.pm-job-p { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.pm-job-h { flex-wrap: wrap; }
	.pm-file { flex-wrap: wrap; }
	.pm-file .acts { width: 100%; padding-left: 46px; justify-content: flex-start; }
	.pm-pathrow .btn { flex: 1 1 auto; }
	.guide { padding: 18px 16px; font-size: 15px; }
	.pm-srct { max-width: none; white-space: normal; overflow-wrap: anywhere; }
	.pm-sedit .input, .pm-sedit td:nth-child(2) .input { min-width: 0; }
	.pm-stable tr { grid-template-columns: minmax(0, 1fr); }
	.pm-stable td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
	.pm-sedit tr { grid-template-columns: auto minmax(0, 1fr); }
	.pm-sedit td:first-child { grid-row: 1 / span 30; padding-top: 22px; }
	.pm-sedit td:not(:first-child) { grid-column: 2; }
	.pm-sedit td:first-child input[type=checkbox] { margin-top: 0; }
}

/* rehber yazdırma: yalnız rehber metni */
@media print {
	body.pm-guide-on #app { display: block !important; }
	body.pm-guide-on #print-area { display: none !important; }
	body.pm-guide-on .topbar, body.pm-guide-on .subbar, body.pm-guide-on .upbanner-w, body.pm-guide-on .foot, body.pm-guide-on .pm-toc, body.pm-guide-on .pagehead .acts, body.pm-guide-on .eyebrow { display: none !important; }
	body.pm-guide-on main.wrap { max-width: none; padding: 0; }
	body.pm-guide-on .pm-guide-wrap { display: block; }
	body.pm-guide-on .guide { border: 0; box-shadow: none; padding: 0; max-width: none; font-size: 11pt; line-height: 1.5; }
	body.pm-guide-on .guide h2, body.pm-guide-on .guide h3 { break-after: avoid; }
	body.pm-guide-on .guide img, body.pm-guide-on .guide figure, body.pm-guide-on .guide table, body.pm-guide-on .guide pre, body.pm-guide-on .guide blockquote { break-inside: avoid; }
	body.pm-guide-on .guide a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #475569; }
}

/* ===== 0.7.0: MassBiome sürümü, form v1.1, MassBiome 6 özeti ===== */
.flag.f-eng { font-family: var(--mono); letter-spacing: .01em; }
.flag.f-eng6 { background: #e8eefc; color: #23408e; }
.flag.f-eng52 { background: #f1f5f9; color: #475569; }
.jobhead .flag.f-eng, .drawer header .flag.f-eng { font-size: 11.5px; }
.jh-l { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
/* form düzenleyici */
.pf-consent { margin-top: 8px; display: grid; gap: 6px; }
.pf-consent .alert { margin: 0; font-size: 13px; }
.pf-det { display: grid; gap: 4px; margin-top: 8px; }
.pf-det[hidden] { display: none; }
.pf-rev { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--warn-bg); color: #7a2e0b; font-size: 12.5px; line-height: 1.45; }
.pf-rev span { flex: 1 1 260px; }
.prods { display: grid; gap: 8px; margin-top: 8px; }
.prods[hidden] { display: none; }
.prod { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; display: grid; gap: 6px; background: #fbfdfd; }
.prod .input.txt { margin-top: 0; }
.prod-h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.alls { display: grid; gap: 6px; margin-top: 8px; }
.all { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 6px 10px; align-items: center; font-size: 13px; }
.all .input.txt { grid-column: 1 / -1; margin-top: 0; }
.all-n { font-weight: 600; color: var(--ink-2); }
.mrows dd .mold { display: block; color: var(--warn); font-size: 12px; margin-top: 2px; }
/* MassBiome 6 özeti */
.rs-verdict { display: grid; gap: 6px; border-left: 4px solid #6b93cf; }
.rs-verdict.b6-priority { border-left-color: #c2410c; }
.rs-verdict.b6-watch { border-left-color: #e7a33e; }
.rs-verdict.b6-balanced { border-left-color: var(--ok); }
.rs-vh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14.5px; }
.rs-sub { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.rs6-l li { grid-template-columns: 1fr auto; }
.rs-attn li.k6-priority::before { background: #c2410c; }
.rs-attn li.k6-watch::before { background: #e7a33e; }
.rs-attn li.k6-balanced::before { background: var(--ok); }
.rs-attn li.k6-info::before { background: #6b93cf; }
.rs-drv { margin: 8px 0 0; }
.rs6-secs { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rs6-secs li { display: grid; gap: 2px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.rs6-secs li:last-child { border-bottom: 0; padding-bottom: 0; }
.rs6-sn { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; }
.rs6-st { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.rs6-ig + .rs6-ig { margin-top: 12px; }
.rs6-ig h5 { margin: 0 0 6px; font-size: 12.5px; color: var(--brand-700); }
.rs6-ind { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rs6-ind li { padding: 6px 0 6px 12px; border-top: 1px solid var(--line); position: relative; }
.rs6-ind li:first-child { border-top: 0; }
.rs6-ind li::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 2px; background: #cbd5e1; }
.rs6-ind li.k6-priority::before { background: #c2410c; }
.rs6-ind li.k6-watch::before { background: #e7a33e; }
.rs6-ind li.k6-balanced::before { background: var(--ok); }
.rs6-ind li.k6-info::before { background: #6b93cf; }
.rs6-ir { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 13.5px; }
.rs6-in { min-width: 0; text-decoration: underline dotted rgba(21, 85, 94, .55); text-underline-offset: 3px; cursor: help; }
.rs6-iv { font-size: 12.5px; color: var(--ink-2); text-align: right; }
.rs6-id { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.rs6-h5 { margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.rs6-foods { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs6-foods li { font-size: 13px; line-height: 1.4; }
.rs-q table { margin-top: 6px; }
@media (max-width: 560px) {
	.rs6-ir { grid-template-columns: 1fr auto; }
	.rs6-ir .chip { grid-column: 1 / -1; justify-self: start; }
	.all { grid-template-columns: 1fr; }
}
@media print {
	.rs6-in { text-decoration: none; }
}

/* ===== 0.7.1 ===== */
/* "Öncelikli" hata kırmızısı değil: koyu turuncu */
.chip-prio { background: #c2410c; color: #fff; }
.rs6-inw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.flag.f-phys { background: #f1f5f9; color: #475569; font-weight: 600; }
.rs6-ia { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.rs6-help { margin: 0 0 10px; line-height: 1.45; }
.rs6-gn { margin: 0 0 6px; }
.rs-kpi .s .chip-prio, .rs-kpi .s .chip { vertical-align: 1px; }
.pm-ruo { margin: 0 0 10px; }

/* ===== 0.7.2: Yeni yüklemede analiz bilgisayarındaki klasör ===== */
.up-src { margin-bottom: 14px; }
.up-src .pm-why { margin-top: 8px; }
.up-local { display: grid; gap: 10px; }
.up-local .alert { margin: 0; }
.up-lpick { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px 10px; margin: 0; min-width: 0; display: grid; gap: 6px; }
.up-lpick legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.up-lopt { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; }
.up-lopt:hover, .up-lopt.on { background: var(--mint-50); }
.up-lopt input { margin-top: 3px; }
.up-lopt-t { min-width: 0; font-size: 13.5px; }
.up-lopt-p { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ===== 0.7.3: Diğer analizler › numune bilgileri ve karşılaştırmalar ===== */
.pmd { display: grid; gap: 10px; }
.pmd-help p { margin: 0 0 4px; }
.pmd-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pmd-ta { width: 100%; min-height: 120px; font-size: 12.5px; line-height: 1.45; white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 12; }
.pmd-prev { display: grid; gap: 8px; }
.pmd-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pmd-msgs li { padding: 7px 10px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.45; border-left: 3px solid; }
.pmd-msgs.err li { background: var(--err-bg); color: #7a1a12; border-color: var(--err); }
.pmd-msgs.warn li { background: var(--warn-bg); color: #7a2e0b; border-color: #e7a33e; }
.pmd-msgs.info li { background: var(--info-bg); color: #173f74; border-color: #6b93cf; }
.pmd-sum { margin: 0; color: var(--ink-2); }
.pmd-tw { max-height: 320px; overflow: auto; }
.pmd-table td, .pmd-table th { font-size: 12.5px; padding: 5px 8px; white-space: nowrap; }
.pmd-table tr.bad td, .pmd-table td.bad { background: var(--err-bg); color: #7a1a12; }
.pmd-cmp { display: grid; gap: 10px; }
.pmd-cmp:empty { display: none; }
.pmd-row { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fbfdfd; display: grid; gap: 8px; }
.pmd-rowh { display: flex; justify-content: space-between; align-items: center; }
.pmd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.pmd-grid .field { margin: 0; }
.pmd-wide { grid-column: 1 / -1; }
.pmd-cov { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pmd-covi { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pmd-covi .input-sm { width: auto; padding: 2px 6px; height: 28px; }
@media (max-width: 560px) {
	.pmd-grid { grid-template-columns: minmax(0, 1fr); }
	/* önizleme dar ekranda da tablo kalır (kaydırılır); genel kart görünümü başlıkları gizler */
	.pmd-table thead { display: table-header-group; }
	.pmd-table tr { display: table-row; padding: 0; }
	.pmd-table td, .pmd-table th { display: table-cell; padding: 5px 8px; border-bottom: 1px solid var(--line); }
}
