:root {
  --bg: #f4f6fa; --panel: #ffffff; --ink: #14233d; --muted: #5d6b82; --line: #e1e6ee;
  --brand: #0f2747; --brand-hover: #173763; --brand2: #0a6cf0; --accent: #0a74ff; --soft: #eaf2ff;
  --ok: #15803d; --okbg: #e7f6ec; --warn: #b45309; --warnbg: #fdf3e3; --bad: #b91c1c; --badbg: #fdecec;
  --info: #1d4ed8; --infobg: #eaf0fd;
  --P: #0f766e; --I: #7c3aed; --C: #c2410c; --O: #1d4ed8;
  --r: 12px; --shadow: 0 1px 2px rgba(15,39,71,.06), 0 4px 16px rgba(15,39,71,.05);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14.5px/1.55 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand2); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; } h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: var(--brand); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brandlogo { height: 38px; width: auto; display: block; }
.tagline { font-size: 11px; opacity: .6; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.2); }
@media (max-width: 960px) { .tagline { display: none; } }
.homelogo { width: min(340px, 100%); height: auto; display: block; margin: 4px 0 14px; }
.projectbar { flex: 1; display: flex; gap: 8px; align-items: center; }
.projectbar select, .projectbar input { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.projectbar select option { color: #000; }
.statusbar { display: flex; gap: 8px; font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--soft); color: var(--brand); white-space: nowrap; }
.topbar .pill { background: rgba(255,255,255,.14); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; }
.dot.on { background: #4ade80; } .dot.off { background: #f87171; }

.stepper { display: flex; gap: 4px; padding: 10px 24px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 54px; z-index: 19; }
.step { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 500; font-size: 13.5px; }
.step:hover { background: var(--bg); }
.step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--line); color: var(--muted); font-weight: 600; }
.step.active { background: var(--soft); color: var(--brand); }
.step.active .n { background: var(--brand); color: #fff; }
.step.done .n { background: var(--ok); color: #fff; }

.app { max-width: 1320px; margin: 0 auto; padding: 24px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.side { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); align-items: start; }
@media (max-width: 960px) { .g2, .g3, .g4, .side { grid-template-columns: 1fr; } .app { padding: 16px; } .topbar { flex-wrap: wrap; padding: 10px 16px; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tint { background: var(--soft); border-color: #cddfff; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
/* Yapışkan sağ sütun: ekrandan uzunsa kendi içinde kaydırılır (alt kısmı her zaman erişilebilir) */
.sticky { position: sticky; top: 126px; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
@media (max-width: 960px) { .sticky { position: static; max-height: none; overflow: visible; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.right { margin-left: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

button, .btn { font: inherit; font-weight: 500; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
button:hover, .btn:hover { border-color: #c5cfdd; background: #f8fafd; }
button.primary, .btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.primary:hover { background: var(--brand-hover); }
button.ghost { background: transparent; border-color: transparent; color: var(--brand2); padding: 4px 8px; }
button.danger { color: var(--bad); }
button.sm, .btn.sm { padding: 3px 9px; font-size: 12.5px; border-radius: 7px; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.ok, .btn.ok { background: var(--okbg); color: var(--ok); border-color: #bfe3cb; }
button.no { background: var(--badbg); color: var(--bad); border-color: #f3c7c7; }

input[type=text], input[type=number], input[type=password], input[type=date], textarea, select { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; min-height: 70px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #9cc3ff; border-color: var(--brand2); }
label.f { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.inline { width: auto !important; }
input[type=checkbox] { accent-color: var(--brand2); width: 15px; height: 15px; }

.callout { padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 13.5px; }
.callout.info { background: var(--infobg); border-color: #cddbfb; color: #1e3a8a; }
.callout.warn { background: var(--warnbg); border-color: #f5ddb5; color: #78350f; }
.callout.ok { background: var(--okbg); border-color: #bfe3cb; color: #14532d; }
.callout.bad { background: var(--badbg); border-color: #f3c7c7; color: #7f1d1d; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stat { padding: 12px 14px; border-radius: 10px; background: var(--bg); }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }

.flow { counter-reset: s; display: grid; gap: 12px; }
.flow .fs { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.flow .fs .num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-weight: 700; font-size: 18px; }
.flow .fs.done .num { background: var(--ok); color: #fff; }

/* PICO */
.alt { border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; }
.alt.on { border-color: var(--brand2); box-shadow: 0 0 0 2px #9cc3ff; }
.alt dl { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; margin: 8px 0 0; font-size: 13px; }
.alt dt { font-weight: 700; color: var(--brand2); }
.alt dd { margin: 0; }
.q { padding: 12px 0; border-top: 1px dashed var(--line); }
.q:first-child { border-top: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; color: #fff; background: var(--muted); margin-right: 6px; }
.tag.P { background: var(--P); } .tag.I, .tag.E { background: var(--I); } .tag.C { background: var(--C); } .tag.O { background: var(--O); } .tag.S, .tag.T { background: #475569; }

/* Equalizer */
.eq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.eqcol { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; background: #fff; display: flex; flex-direction: column; align-items: center; }
/* Hizalama: başlık, sürgü, bilgi ve "aramaya dahil" her sütunda aynı yükseklikte */
.eqhead { height: 40px; width: 100%; display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.eqlabel { font-size: 12.5px; line-height: 1.3; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eqhead .tag { flex: none; margin: 1px 0 0; }
.eqslider { height: 150px; display: flex; align-items: center; justify-content: center; }
.eqinfo { min-height: 58px; margin-top: 6px; }
.eqinc { margin-top: auto; padding-top: 10px; white-space: nowrap; }
.eqticks { height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 7px 0; }
.eqcol.off { opacity: .55; }
.eqcol input[type=range] { writing-mode: vertical-lr; direction: rtl; height: 140px; width: 28px; accent-color: var(--c, var(--brand2)); }
.eqcol .lv { font-weight: 600; font-size: 13px; }
.eqcol .cnt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.eqscale { display: flex; flex-direction: column; padding-top: 15px; font-size: 11px; color: var(--muted); text-align: left; white-space: nowrap; }

/* Term table */
.concept { border-left: 4px solid var(--c); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
tr.inactive td { color: #9aa6b8; }
tr.suggested td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.fbadge { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: #eef2ff; color: #3730a3; }
.fbadge.mesh { background: #fef3c7; color: #92400e; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--c, var(--brand2)); }
.gain { color: var(--ok); font-weight: 600; }
.entrytag { font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 4px; background: #fef3c7; color: #92400e; white-space: nowrap; }
select.tier { width: auto; min-width: 112px; padding: 2px 22px 2px 6px; font-size: 12px; }

.query { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; background: var(--brand); color: #dbeafe; padding: 14px; border-radius: 10px; max-height: 260px; overflow: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 8px 12px; border: 0; background: none; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tab:hover { background: none; color: var(--ink); }

ol.steps { padding-left: 20px; margin: 0; }
ol.steps li { margin: 6px 0; }
kbd { font-family: var(--mono); font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }

.drop { border: 2px dashed #b9c8e0; border-radius: 12px; padding: 28px; text-align: center; background: #f9fbfe; cursor: pointer; }
.drop.over { border-color: var(--brand2); background: var(--soft); }

/* Records */
.rec { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.rec + .rec { margin-top: 8px; }
.rec .t { font-weight: 600; }
.rec .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rec .abs { font-size: 13px; margin-top: 8px; color: #33425c; max-height: 4.6em; overflow: hidden; }
.rec.open .abs { max-height: none; }
.rec .ai { margin-top: 8px; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: var(--bg); }
.dec { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; text-transform: uppercase; }
.dec.include { background: var(--okbg); color: var(--ok); } .dec.exclude { background: var(--badbg); color: var(--bad); } .dec.uncertain { background: var(--warnbg); color: var(--warn); }

.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand2); transition: width .3s; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.toasts { position: fixed; bottom: 18px; right: 18px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 420px; font-size: 13.5px; }
.toast.err { background: #7f1d1d; }

.prisma svg { width: 100%; height: auto; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 12px; }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* Ana sayfa: logonun tasarlandığı koyu zemin */
.card.hero { background: var(--brand); border-color: var(--brand); color: #dbe4f0; }
.card.hero p { color: #b8c4d6; }
.card.hero label.f { color: #8fa0b8; }
.card.hero input[type=text] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.card.hero input::placeholder { color: #8fa0b8; }
.card.hero button.primary { background: var(--accent); border-color: var(--accent); }
.card.hero button.primary:hover { background: #2b86ff; }


/* Tema seçici (sağ üst) */
.themesw { display: inline-flex; border-radius: 999px; padding: 2px; background: rgba(255,255,255,.12); gap: 2px; }
.themesw button { border: 0; background: transparent; color: inherit; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; opacity: .75; }
.themesw button:hover { background: rgba(255,255,255,.12); opacity: 1; }
.themesw button.on { background: #fff; color: var(--brand); opacity: 1; }
html[data-theme="v2"] .themesw, html[data-theme="v3"] .themesw { background: var(--soft); }
html[data-theme="v2"] .themesw button:hover, html[data-theme="v3"] .themesw button:hover { background: #d4ecff; }
html[data-theme="v2"] .themesw button.on, html[data-theme="v3"] .themesw button.on { background: var(--brand); color: #fff; }

/* ================= TEMALAR =================
   v1 ve v3: yukarıdaki :root (lacivert site); yalnız logolar farklı.
   v2: Logo2'nin orijinal renkleri — lacivert #12264a, gök mavisi #24a9f8, flamingo #eb6364, güneş #f2b84b */
.only-v1, .only-v2, .only-v3 { display: none !important; }
html[data-theme="v1"] .only-v1, html[data-theme="v2"] .only-v2, html[data-theme="v3"] .only-v3 { display: block !important; }

html[data-theme="v2"], html[data-theme="v3"] {
  --bg: #f3f8fd; --panel: #ffffff; --ink: #12264a; --muted: #5a6b86; --line: #dfe8f3;
  --brand: #12264a; --brand-hover: #1d3a6b; --brand2: #0b86e0; --accent: #24a9f8; --soft: #e6f5ff;
  --coral: #eb6364; --sun: #f2b84b;
  --info: #0b6fc0; --infobg: #e8f5ff;
  --P: #1d9bf0; --I: #eb6364; --C: #e0892c; --O: #12264a;
  --shadow: 0 1px 2px rgba(18,38,74,.06), 0 4px 16px rgba(18,38,74,.06);
}
html[data-theme="v2"] .topbar, html[data-theme="v3"] .topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
html[data-theme="v2"] .topbar::after, html[data-theme="v3"] .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0 45%, var(--coral) 45% 78%, var(--sun) 78% 100%); }
html[data-theme="v2"] .brandlogo, html[data-theme="v3"] .brandlogo { height: 40px; }
html[data-theme="v2"] .tagline, html[data-theme="v3"] .tagline { color: var(--muted); opacity: 1; border-left-color: var(--line); }
html[data-theme="v2"] .topbar .pill, html[data-theme="v3"] .topbar .pill { background: var(--soft); color: var(--ink); }
html[data-theme="v2"] .projectbar select, html[data-theme="v3"] .projectbar select, html[data-theme="v2"] .projectbar input, html[data-theme="v3"] .projectbar input { background: #fff; color: var(--ink); border-color: var(--line); }
html[data-theme="v2"] .stepper, html[data-theme="v3"] .stepper { top: 57px; }
html[data-theme="v2"] .step.active, html[data-theme="v3"] .step.active { background: var(--soft); color: var(--ink); }
html[data-theme="v2"] .step.active .n, html[data-theme="v3"] .step.active .n { background: var(--accent); }
html[data-theme="v2"] .callout.info, html[data-theme="v3"] .callout.info { border-color: #bfe3fb; color: #0c3d6b; }
html[data-theme="v2"] .card.tint, html[data-theme="v3"] .card.tint { border-color: #c9e8fc; }
html[data-theme="v2"] .card.hero, html[data-theme="v3"] .card.hero { background: #fff; border-color: var(--line); color: var(--ink); position: relative; overflow: hidden; }
html[data-theme="v2"] .card.hero::before, html[data-theme="v3"] .card.hero::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 45%, var(--coral) 45% 78%, var(--sun) 78% 100%); }
html[data-theme="v2"] .card.hero p, html[data-theme="v3"] .card.hero p { color: var(--muted); }
html[data-theme="v2"] .card.hero label.f, html[data-theme="v3"] .card.hero label.f { color: var(--muted); }
html[data-theme="v2"] .card.hero input[type=text], html[data-theme="v3"] .card.hero input[type=text] { background: #fff; border-color: var(--line); color: var(--ink); }
html[data-theme="v2"] .card.hero input::placeholder, html[data-theme="v3"] .card.hero input::placeholder { color: #94a3b8; }
html[data-theme="v2"] .card.hero button.primary, html[data-theme="v3"] .card.hero button.primary { background: var(--brand); border-color: var(--brand); }
html[data-theme="v2"] .card.hero button.primary:hover, html[data-theme="v3"] .card.hero button.primary:hover { background: var(--brand-hover); }

/* ---------- Görev bazlı renk sistemi (tüm temalar) ----------
   Her tema kendi logosundan şu rolleri doldurur:
   --sky   etkileşim/seçim (odak, seçili çip, bağlantı, ilerleme)   --coral dikkat/dışlama
   --sun   uyarı/öneri                                               --acc1..4 istatistik kartı şeritleri
   --tabline aktif sekme alt çizgisi · --sugline öneri satırı vurgusu · --grad ilerleme/şerit gradyanı */
:root, html[data-theme="v1"] {
  /* v1: ilk logo — mavi #0a74ff + gümüş gri */
  --sky: #0a74ff; --sky-d: #0a5fd0; --sky-soft: #eaf2ff; --sky-line: #c9dcff;
  --coral: #dc2626; --coral-d: #b91c1c; --coral-soft: #fdecec; --coral-line: #f3c7c7;
  --sun: #d99a2b; --sun-d: #8a5a00; --sun-soft: #fff6df; --sun-line: #f5dc9e;
  --acc1: #0a74ff; --acc2: #9aa3ad; --acc3: #7fb4ff; --acc4: #0f2747;
  --tabline: #0a74ff; --sugline: #0a74ff;
  --grad: linear-gradient(90deg, #0a74ff, #7fb4ff 60%, #c5ccd6);
  --grad-soft: linear-gradient(90deg, #0a74ff, #4f97ff 45%, #9cc2ff 80%, #c5ccd6);
}
html[data-theme="v2"], html[data-theme="v3"] {
  /* v2 ve v3 (aynı palet; v3 yalnız logoda ayrışır — Justifex): Logo2 — lacivert, gök mavisi, mercan, sarı */
  --sky: #24a9f8; --sky-d: #0b78c9; --sky-soft: #e6f5ff; --sky-line: #bfe3fb;
  --coral: #eb6364; --coral-d: #c9464a; --coral-soft: #fdeeee; --coral-line: #f7c9ca;
  --sun: #f2b84b; --sun-d: #8a5a00; --sun-soft: #fff6df; --sun-line: #f5dc9e;
  --acc1: #24a9f8; --acc2: #eb6364; --acc3: #f2b84b; --acc4: #12264a;
  --tabline: #eb6364; --sugline: #f2b84b;
  --grad: linear-gradient(90deg, #24a9f8 0 45%, #eb6364 45% 78%, #f2b84b 78% 100%);
  /* ilerleme çubukları: renkler birbirine yumuşakça geçer */
  --grad-soft: linear-gradient(90deg, #24a9f8, #eb6364 62%, #f2b84b);
}
html { --brand2: var(--sky-d); --warn: var(--sun-d); --warnbg: var(--sun-soft); --bad: var(--coral-d); --badbg: var(--coral-soft); }

/* Üst bar şeridi (v1; v2 ve v3'te kendi kuralı var) */
html[data-theme="v1"] .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
html[data-theme="v1"] .topbar::after { background: linear-gradient(90deg, #0a74ff, #7fb4ff 55%, #c5ccd6); opacity: .9; }

/* Bağlantılar — adımlar, düğme görünümlü bağlantılar ve logo hariç */
a:not(.step):not(.btn):not(.brand) { color: var(--sky-d); }
.btn { color: var(--ink); }
.btn.primary { color: #fff; }
input:focus, textarea:focus, select:focus { outline-color: color-mix(in srgb, var(--sky) 45%, white); border-color: var(--sky); }
input[type=checkbox], input[type=range] { accent-color: var(--sky-d); }

/* Düğmeler */
button:hover, .btn:hover { border-color: var(--sky-line); background: #f7fbff; }
button.primary, .btn.primary { box-shadow: inset 0 -2px 0 var(--sky); }
button.primary:hover, .btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button.ghost { color: var(--sky-d); }
button.danger, button.ghost.danger { color: var(--coral-d); }
button.no { background: var(--coral-soft); color: var(--coral-d); border-color: var(--coral-line); }
.card.hero button.primary { box-shadow: none; }

/* Uyarı kutuları */
.callout.info { background: var(--sky-soft); border-color: var(--sky-line); color: #0c3d6b; }
.callout.warn { background: var(--sun-soft); border-color: var(--sun-line); color: #6b4400; }
.callout.bad { background: var(--coral-soft); border-color: var(--coral-line); color: #7a1f1a; }
.card.tint { background: var(--sky-soft); border-color: var(--sky-line); }

/* Çipler, rozetler, sekmeler */
.pill { background: var(--sky-soft); color: var(--ink); }
.chip:hover { border-color: var(--sky-line); }
.chip.on { background: var(--sky-soft); color: var(--ink); border-color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky); font-weight: 600; }
.tab.on { color: var(--ink); border-bottom-color: var(--tabline); }
.tab:hover { color: var(--sky-d); }
.fbadge { background: var(--sky-soft); color: var(--sky-d); }
.fbadge.mesh, .entrytag { background: var(--sun-soft); color: var(--sun-d); }
.dec.exclude { background: var(--coral-soft); color: var(--coral-d); }
.dec.uncertain { background: var(--sun-soft); color: var(--sun-d); }

/* Adımlar, iş akışı, istatistik kartları */
.step.active .n { background: var(--sky); }
.step.done .n { background: var(--sky-soft); color: var(--sky-d); box-shadow: inset 0 0 0 1.5px var(--sky); }
.flow .fs .num { background: var(--sky-soft); color: var(--sky-d); }
.flow .fs.done .num { background: var(--sky); color: #fff; }
.flow .fs:hover { border-color: var(--sky-line); }
.stat { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--acc1); }
.grid > .stat:nth-child(4n+2) { border-left-color: var(--acc2); }
.grid > .stat:nth-child(4n+3) { border-left-color: var(--acc3); }
.grid > .stat:nth-child(4n+4) { border-left-color: var(--acc4); }

/* PICO alternatifleri, hedge tablosu, ekolayzır */
.alt:hover { border-color: var(--sky-line); }
.alt.on { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky-line); }
.alt dt { color: var(--sky-d); }
tr.suggested td:first-child { box-shadow: inset 3px 0 0 var(--sugline); }
.gain { color: var(--sky-d); }
.eqcol { border-top: 3px solid var(--c, var(--sky)); }

/* Sorgu kutusu, ilerleme, yükleme alanı, kayıtlar, bildirimler */
.query { border-left: 3px solid var(--sky); }
.progress i { background: var(--grad-soft); }
.drop { border-color: var(--sky-line); background: #f7fbff; }
.drop:hover, .drop.over { border-color: var(--sky); background: var(--sky-soft); }
.rec:hover { border-color: var(--sky-line); }
.rec .ai { background: var(--sky-soft); }
.toast { box-shadow: inset 3px 0 0 var(--sky), var(--shadow); }
.toast.err { background: var(--coral-d); box-shadow: var(--shadow); }


/* ---------- Animasyonlu "E" (bekleme göstergesi) ---------- */
.eanim { display: inline-block; vertical-align: middle; flex: none; overflow: visible; margin: 3px; }
.eanim .e-splash { transform-box: view-box; transform-origin: 50% 50%; }
.eanim.busy .e-splash { animation: eBreath 4.2s linear infinite; filter: url(#eWobble); }
/* Belirgin, yavaş "nefes": büyür, küçülür, hafifçe salınır */
@keyframes eBreath {
  0%   { transform: scale(1)    rotate(0deg);    animation-timing-function: ease-in-out; }
  25%  { transform: scale(1.2)  rotate(-4deg);   animation-timing-function: ease-in-out; }
  50%  { transform: scale(.88)  rotate(2deg);    animation-timing-function: ease-in-out; }
  75%  { transform: scale(1.12) rotate(3.5deg);  animation-timing-function: ease-in-out; }
  100% { transform: scale(1)    rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .eanim.busy .e-splash { animation-duration: 5s; filter: none; } }
.jobbar { display: flex; align-items: center; gap: 10px; }
.eanim.corner { margin: -10px -6px -14px 0; }
button .eanim { margin: -3px 0; }

.cmode { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--C); border-radius: 10px; background: #fff; display: grid; gap: 6px; font-size: 13px; }
.cmode label { display: flex; gap: 8px; align-items: flex-start; }
.cmode input { margin-top: 3px; accent-color: var(--sky-d); }
tr.curcombo td { font-weight: 600; background: var(--sky-soft); }
details.advice { margin-top: 10px; }
details.advice summary { cursor: pointer; font-size: 12.5px; color: var(--sky-d); font-weight: 600; }
.concept { overflow-x: auto; }

/* Terim satırı: arama alanı seçimi (rozet görünümlü) */
select.fsel { width: auto; min-width: 92px; padding: 2px 22px 2px 7px; font-size: 11.5px; font-weight: 600; border-radius: 6px; border: 1px solid transparent; background-color: var(--sky-soft); color: var(--sky-d); cursor: pointer; }
select.fsel.mesh { background-color: var(--sun-soft); color: var(--sun-d); }
select.fsel.custom { border-color: currentColor; }
select.fsel:hover { border-color: var(--sky-line); }

tr.dangerrow td { background: var(--coral-soft); }

/* Sağ sütundaki ana düğme: sütun kaydırılsa da altta sabit, her zaman görünür */
/* Sağ sütun = [kendi içinde kayan içerik] + [ayrı duran ana düğme]: ikisi asla çakışmaz */
.sticky.stickycol { display: flex; flex-direction: column; gap: 10px; overflow: visible; padding-right: 0; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
.stickycol > .stickyscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 2px 2px 0; }
.stickycol > .stickyfoot { flex: none; width: 100%; justify-content: center; }
@media (max-width: 960px) { .sticky.stickycol { max-height: none; } .stickycol > .stickyscroll { overflow: visible; } }

/* Hedge danışmanı */
.advpanel { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--sky-line); border-radius: 10px; background: var(--sky-soft); }
tr.advrow td { border-bottom: 1px solid var(--line); padding-top: 0; }
.adv { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 8px; border-left: 3px solid var(--sky); background: #fff; font-size: 12.5px; }
.adv.keep { border-left-color: var(--ok); background: #f3fbf5; }
.adv.off { border-left-color: var(--coral); background: var(--coral-soft); }
.adv.warn { border-left-color: var(--sun); background: var(--sun-soft); }
.adv.done { opacity: .55; }
.advtag { font-weight: 700; white-space: nowrap; min-width: 118px; }
.adv.keep .advtag { color: var(--ok); } .adv.off .advtag { color: var(--coral-d); } .adv.warn .advtag { color: var(--sun-d); }
.advtxt { flex: 1; min-width: 0; }
.advbtns { display: flex; gap: 4px; flex: none; }

input.mini { width: 132px; min-width: 0; padding: 3px 6px; font-size: 12px; border-radius: 6px; }
.slog td { white-space: nowrap; }
.slog td:last-child { white-space: normal; min-width: 70px; }
input.mini.num { width: 78px; text-align: right; }

.kbdhint { font-size: 12px; color: var(--muted); margin: -2px 0 10px; }
.kbdhint kbd { margin: 0 1px; }
.rec.cur { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky-line); }

input.numsm { width: 76px !important; padding: 4px 8px; margin-left: 4px; }
/* Terim tablosu: başlıklar kırılabilir, yatay taşma azalır (taşarsa kaydırma konumu korunur) */
.concept th.num { white-space: normal; font-family: inherit; font-size: 11px; line-height: 1.25; min-width: 64px; }
.concept td { padding: 6px 6px; }
.concept select.tier { min-width: 0; }
.concept .bar.minibar { min-width: 0; width: 100%; height: 4px; margin-top: 3px; }
.concept td:last-child, .concept th:last-child { padding-left: 2px; padding-right: 2px; }
.concept { scrollbar-width: thin; }
/* İpucu katmanı (yeniden çizimden bağımsız) */
.tiplayer { position: fixed; z-index: 1000; max-width: 340px; padding: 8px 11px; border-radius: 8px; background: var(--brand, #0f2747); color: #fff; font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 22px rgba(10, 25, 50, .22); pointer-events: auto; opacity: 0; visibility: hidden; transition: opacity .12s; white-space: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tiplayer.on { opacity: 1; visibility: visible; }
.help { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--sky-d, #0a74ff); font-size: 13px; padding: 0 3px; border-radius: 50%; user-select: none; }
.help:hover { background: var(--sky-soft, #e8f1ff); }
/* Doğrulama seti, tam metin kutusu */
.valline { margin-top: 10px; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: var(--sky-soft); }
.valline.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.valline.bad { background: color-mix(in srgb, var(--coral, #e5533d) 12%, transparent); }
table.valtab td { vertical-align: top; }
.ftbox { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ftbox select.ftreason { max-width: 260px; font-size: 12px; }
.pmfetch { border-left: 3px solid var(--sky); }
.adv.peek.ok { border-left-color: var(--ok); background: #f3fbf5; }
.adv.peek.no { border-left-color: var(--coral); background: var(--coral-soft); }
/* Kapalı terim önizlemesi */
button.peekbtn { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; line-height: 1.4; font-size: 11px; padding: 1px 8px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--sky-line); background: var(--sky-soft); color: var(--sky-d); font-weight: 600; vertical-align: 1px; }
button.peekbtn:hover { background: var(--sky-soft); border-color: var(--sky); }
.adv.peek { border-left-style: dashed; }
.peeklist { margin-top: 6px; font-size: 12px; }
.peeklist summary { cursor: pointer; color: var(--sky-d); font-weight: 600; }
.peeklist ol { margin: 6px 0 0 18px; padding: 0; }
.peeklist li { margin: 2px 0; }

/* ===== 2026-11-11: yol gösterici, akıllı ayar, kaçırma kontrolü, tema cilası (tüm temalar) ===== */
/* Yol gösterici şerit */
.guide { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 16px; padding: 9px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; position: relative; overflow: hidden; }
.guide::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-soft); }
.guide .gicon { color: var(--sky-d); font-weight: 700; padding-left: 4px; }
.guide > span:nth-child(2) { flex: 1; min-width: 220px; }

/* Akıllı ayar */
.card.tuner { border-color: var(--sky-line); position: relative; overflow: hidden; }
.card.tuner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-soft); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.topt { border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: var(--panel); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.topt:hover { border-color: var(--sky-line); box-shadow: 0 4px 14px rgba(15, 39, 71, .07); }
.topt.rec { border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 16%, transparent); }
.topt.on { background: color-mix(in srgb, var(--ok) 6%, var(--panel)); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.topt .tlabel { font-weight: 700; font-size: 13px; }
.topt.rec .tlabel { color: var(--sky-d); }
.topt .tcount { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 2px; font-variant-numeric: tabular-nums; }
.topt .tcount span { font-size: 12px; font-weight: 500; color: var(--muted); }
.topt > button { margin-top: auto !important; }
table.tmeta { margin-top: 6px; }
table.tmeta td { border: 0; padding: 2px 0; font-size: 11.5px; vertical-align: top; }
table.tmeta td:first-child { color: var(--muted); width: 92px; padding-right: 6px; }
.tmissed { margin-top: 6px; font-size: 11.5px; }
.tmissed summary { cursor: pointer; color: var(--coral-d); font-weight: 600; }
.tmissed ul { margin: 4px 0 0 16px; padding: 0; }

/* Sürgü açıklaması */
.lvdesc { font-size: 10.5px; line-height: 1.3; color: var(--muted); margin: 2px 0 3px; min-height: 2.6em; }
table.lvtable { margin-top: 12px; table-layout: fixed; }
table.lvtable th, table.lvtable td { font-size: 11px; padding: 4px 6px; vertical-align: top; text-transform: none; letter-spacing: 0; }
table.lvtable th { width: 62px; color: var(--muted); }

/* Kaçırma kontrolü */
.safety { margin: 12px 0 4px; padding: 9px 11px; border-radius: 9px; background: var(--sky-soft); border: 1px solid var(--sky-line); }
.rec .ai.second { border-left: 3px solid var(--sun); padding-left: 8px; }
.upd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Tema cilası: daha yumuşak kartlar, net odak halkası, sakin hover */
:root { --r: 14px; --shadow: 0 1px 2px rgba(15, 39, 71, .05), 0 6px 22px rgba(15, 39, 71, .055); }
.card { transition: box-shadow .2s; }
button, .btn { transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s; }
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid color-mix(in srgb, var(--sky) 60%, white); outline-offset: 2px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.stat { transition: transform .15s; }
h2 { letter-spacing: -.01em; }
::selection { background: color-mix(in srgb, var(--sky) 28%, transparent); }
/* Akıllı ayar: karşılaştırma satırları */
.tlist { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(150px, 1.3fr) 92px minmax(170px, 1.7fr) 118px 74px; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.trow:first-child { border-top: 0; }
.trow.thead { background: var(--bg); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 7px; padding-bottom: 7px; }
.trow.rec { background: color-mix(in srgb, var(--sky) 7%, var(--panel)); box-shadow: inset 3px 0 0 var(--sky); }
.trow.on { box-shadow: inset 3px 0 0 var(--ok); }
.trow .tlabel { font-weight: 700; font-size: 13.5px; }
.trow.rec .tlabel { color: var(--sky-d); }
.trow .tnum { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.trow .tnum span { font-size: 11px; font-weight: 500; color: var(--muted); }
.trow .tact { text-align: right; }
.trow .tdet { grid-column: 1 / -1; font-size: 12px; margin-top: -2px; }
.trow .tdet summary { cursor: pointer; color: var(--sky-d); font-weight: 600; font-size: 11.5px; }
.trow .tdet ul { margin: 4px 0 0 16px; padding: 0; }
.riskpill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.riskpill.none, .riskpill.low { background: var(--okbg); color: var(--ok); }
.riskpill.mid { background: var(--sun-soft); color: var(--sun-d); }
.riskpill.high { background: var(--coral-soft); color: var(--coral-d); }
.riskpill.unk { background: var(--bg); color: var(--muted); }
@media (max-width: 760px) { .trow { grid-template-columns: 1fr 1fr; } .trow.thead { display: none; } .trow .tact { text-align: left; } }
/* Kriter hatırlatma çipleri tek satırda kalsın */
.q .chips .chip { white-space: nowrap; }
.q .row > .small { flex: 1; min-width: 0; }
/* Yardım kutuları: çok satırlı, uzun metin kaydırılır */
.tiplayer { white-space: pre-line; max-width: 420px; max-height: 72vh; overflow-y: auto; font-size: 12.5px; line-height: 1.5; padding: 11px 14px; }
h2 .help, h3 .help { font-size: 14px; vertical-align: 2px; }
.help { font-weight: 600; }
/* Arama genişliği tablosu */
table.lvmatrix { margin-top: 12px; table-layout: fixed; }
table.lvmatrix th, table.lvmatrix td { font-size: 11.5px; padding: 5px 6px; text-align: center; text-transform: none; letter-spacing: 0; }
table.lvmatrix th:first-child { text-align: left; width: 34%; color: var(--ink); font-weight: 600; }
table.lvmatrix thead th { color: var(--muted); font-weight: 600; }
table.lvmatrix .yes { color: var(--ok); font-weight: 700; }
table.lvmatrix .no { color: #c3cad6; }
.oolv { font-size: 10.5px; color: var(--sun-d); background: var(--sun-soft); border-radius: 999px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.lv { font-weight: 700; }
/* Kavram harfleri (P, I, C, O) metin içinde renkli ve kalın */
b.ck { font-weight: 800; padding: 0 1px; }
b.ck.P { color: var(--P); } b.ck.I { color: var(--I); } b.ck.C { color: var(--C); } b.ck.O { color: var(--O); }
html[data-theme="v2"] b.ck.O, html[data-theme="v3"] b.ck.O { color: #3b5b8f; }
/* PICO açılımı */
.picolegend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 10px; padding: 7px 11px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; }
.picolegend .pl { white-space: nowrap; cursor: help; }
.picolegend .ck { font-size: 14px; }
/* Adım adım rehber penceresi */
.guidecall { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--sky-soft); border: 1px solid var(--sky-line); font-size: 13px; }
.guidecall > span { font-size: 22px; }
.guidecall > div { flex: 1; min-width: 220px; }
.guideov { position: fixed; inset: 0; z-index: 900; background: rgba(10, 22, 44, .55); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(2px); }
.gbox { width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--panel); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); padding: 16px 18px; position: relative; }
.ghead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ghead > b { font-size: 15px; }
.gtabs { display: flex; gap: 4px; margin-left: auto; }
.gtabs button { padding: 4px 11px; font-size: 12.5px; border-radius: 999px; }
.gtabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.gx { padding: 3px 9px; }
.gimg { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f8fafc; }
.gimg img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gimg .mock { display: block; width: 100%; height: auto; }
.gimg.ev { max-height: 56vh; margin: 0 auto; }
.ghl { position: absolute; border: 3px solid #f59e0b; border-radius: 10px; box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); animation: ghl 1.4s ease-in-out infinite; pointer-events: none; }
.mock .mhl { fill: none; stroke: #f59e0b; stroke-width: 4; animation: ghls 1.4s ease-in-out infinite; }
@keyframes ghl { 50% { box-shadow: 0 0 0 9px rgba(245, 158, 11, .08); } }
@keyframes ghls { 50% { stroke-opacity: .35; } }
.greal { position: absolute; right: 8px; bottom: 8px; font-size: 11px; background: rgba(15, 39, 71, .75); color: #fff; padding: 2px 8px; border-radius: 999px; }
.gcap { display: flex; gap: 12px; align-items: flex-start; margin: 14px 2px 10px; font-size: 14px; line-height: 1.55; min-height: 66px; }
.gnum { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.gnav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gdots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.gdots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: var(--line); border: 0; }
.gdots button.on { background: var(--sky); transform: scale(1.25); }
.gprog { height: 3px; background: var(--line); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.gprog i { display: block; height: 100%; width: 0; background: var(--grad-soft); animation: gprog linear forwards; }
@keyframes gprog { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ghl, .mock .mhl { animation: none; } }

/* Önerilen PICO alternatifi: çok hafif ton farkı (tüm temalar) */
.alt.rec { background: color-mix(in srgb, var(--brand2) 6%, #fff); border-color: color-mix(in srgb, var(--brand2) 22%, var(--line)); }

/* Filtre kutucukları: ✓ taramaya girer, ✕ dışlanır (tüm temalar) */
.chip.fchip { background: #fff; color: var(--ink); box-shadow: none; font-weight: 500; }
.chip.fchip.out { background: color-mix(in srgb, var(--bad, #c0392b) 9%, #fff); border-color: color-mix(in srgb, var(--bad, #c0392b) 45%, #fff); color: var(--bad, #c0392b); text-decoration: line-through; box-shadow: none; }
/* 679 → 45 akış şeması */
.ffwrap { margin-top: 14px; }
.ffwrap > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.ff { margin-top: 10px; display: grid; gap: 4px; }
.ffrow { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 12px; align-items: center; }
.ffbox { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.ffbox b { font-size: 18px; }
.ffbox.final { border-color: var(--ok, #2e7d32); background: color-mix(in srgb, var(--ok, #2e7d32) 7%, #fff); }
.ffarrow { text-align: center; color: var(--muted); font-size: 18px; line-height: 1; }
.ffout { border-left: 3px solid var(--bad, #c0392b); padding: 4px 10px; font-size: 13px; background: color-mix(in srgb, var(--bad, #c0392b) 5%, #fff); border-radius: 0 8px 8px 0; }
.ffout b { color: var(--bad, #c0392b); }
@media (max-width: 700px) { .ffrow { grid-template-columns: 1fr; } }

/* Tarifle tarama */
.pcard textarea { width: 100%; }
.pq { border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 10px; padding: 10px 12px; margin-top: 8px; background: #fff; font-size: 14px; }
.pq.done { border-left-color: var(--ok); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 12px; }
.pqhead { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }

/* Daha kolay seçilen sekme ve küçük düğmeler (tüm temalar; renkler temanın değişkenlerinden) */
.tabs { gap: 6px; padding-bottom: 6px; }
.tab { padding: 9px 16px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--brand) 4%, var(--panel, #fff)); color: var(--ink); font-weight: 500; cursor: pointer; }
.tab:hover { background: color-mix(in srgb, var(--brand) 10%, var(--panel, #fff)); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--ink); }
.tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 30%, transparent); }
.tab.on:hover { background: var(--brand); color: #fff; }
button.sm, .btn.sm { padding: 6px 12px; min-height: 32px; font-size: 13.5px; border-radius: 8px; }
button.ghost, button.ghost.sm { border: 1px solid transparent; }
button.ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.btn.sm:not(.primary):not(.ok):not(.ghost), button.sm:not(.primary):not(.ok):not(.no):not(.ghost):not(.peekbtn) { border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }

/* Giriş: iki çalışma türü */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mode { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--panel, #fff); }
.mode.quick { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: color-mix(in srgb, var(--brand) 5%, var(--panel, #fff)); }
.mode .mhead { font-weight: 700; font-size: 16px; }
.mode p { margin: 0; flex: 1; }
.mode button { align-self: flex-start; margin-top: 4px; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }
/* Hızlı tarama */
.qbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.qreview h4 { margin: 14px 0 4px; }
.qreview p { margin: 0 0 6px; line-height: 1.6; }
.qreview a[data-act="qJump"] { font-weight: 600; text-decoration: none; }
.qitem { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; transition: background-color .4s; }
.qitem.flash { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.qitem .qnum { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.qitem .t a { color: var(--ink); font-weight: 600; text-decoration: none; }
.qitem .t a:hover { text-decoration: underline; }
.pill.dz.hi { background: color-mix(in srgb, var(--ok, #15803d) 14%, #fff); color: var(--ok, #15803d); }
.pill.dz.mid { background: color-mix(in srgb, var(--warn, #b45309) 12%, #fff); color: var(--warn, #b45309); }
.pill.dz.lo { background: color-mix(in srgb, var(--muted, #6b7280) 12%, #fff); }

/* Tarifle tarama sürerken kutunun altındaki durum alanı */
.pjob { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--panel, #fff)); }
.pjobhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.pjobhead .tiny { margin-left: auto; }
.pcard textarea:disabled { opacity: .7; }

/* Tarif kutusu: belirgin (tüm temalar) */
.pcard textarea { background: var(--panel, #fff); color: var(--ink); border: 2px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.55; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.pcard textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.pcard textarea::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.pcard textarea:disabled { opacity: 1; background: color-mix(in srgb, var(--brand) 4%, var(--panel, #fff)); color: color-mix(in srgb, var(--ink) 75%, transparent); }
.abs.noabs { display: flex; flex-direction: column; background: color-mix(in srgb, var(--warn, #b45309) 6%, var(--panel, #fff)); border-radius: 10px; padding: 10px 12px; }

/* Aşama sonu kontrol kartı */
.card.finish { border: 1px solid var(--line); }
.card.finish.ready { border-color: var(--ok, #15803d); background: color-mix(in srgb, var(--ok, #15803d) 6%, var(--panel, #fff)); }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checks li > span { flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1.5px solid var(--line); color: var(--muted); }
.checks li.ok > span { background: var(--ok, #15803d); border-color: var(--ok, #15803d); color: #fff; }

/* ---- Sonraki aşama düğmesi (tüm aşamalarda aynı; renkler temadan) ----
   Koyu ana renk zemin + altta temanın şerit gradyanı + sağda yuvarlak ok. Sıradan düğmelerden belirgin biçimde ayrışır. */
.nextbtn { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 14px 14px 18px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; text-align: left; cursor: pointer; overflow: hidden; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); transition: transform .12s, box-shadow .15s, background-color .15s; }
.nextbtn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad, linear-gradient(90deg, var(--acc1), var(--acc2), var(--acc3))); }
.nextbtn:hover { background: var(--brand); transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 38%, transparent); }
.nextbtn:active { transform: translateY(0); }
.nextbtn .nb-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nextbtn .nb-k { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.nextbtn .nb-t { font-size: 17px; font-weight: 700; line-height: 1.25; }
.nextbtn .nb-arrow { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; background: var(--acc1, #24a9f8); color: #fff; transition: transform .15s; }
.nextbtn:hover .nb-arrow { transform: translateX(3px); }
/* henüz hazır değilken: aynı biçim, sakin renk (yine tıklanabilir) */
.nextbtn.soft { background: var(--panel, #fff); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: none; }
.nextbtn.soft:hover { background: color-mix(in srgb, var(--brand) 5%, var(--panel, #fff)); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 12%, transparent); }
.nextbtn.soft .nb-arrow { background: color-mix(in srgb, var(--brand) 12%, var(--panel, #fff)); color: var(--brand); }
.stickycol > .nextbtn.stickyfoot { margin-top: 12px; }

/* Sayfa başı: "Sıradaki" şeridi + sağ üstte sonraki aşama düğmesi */
.pagehead { display: flex; gap: 14px; align-items: stretch; margin-bottom: 18px; }
.pagehead .guide { flex: 1; min-width: 0; margin-bottom: 0; }
.pagehead .nextbtn.pagenext { flex: 0 0 340px; width: 340px; min-height: 58px; }
@media (max-width: 900px) { .pagehead { flex-direction: column; } .pagehead .nextbtn.pagenext { flex: none; width: 100%; } }
/* Eksik hatırlatma penceresi */
.gateov { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 1000; padding: 16px; }
.gatebox { background: var(--panel, #fff); color: var(--ink); border-radius: 16px; padding: 20px 22px; max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.gatebox h3 { margin: 0 0 4px; }
.gatebox .checks li:not(.ok) > span { border-color: var(--warn, #b45309); color: var(--warn, #b45309); font-weight: 700; }
.trbar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.abs.trabs { border-left: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); padding-left: 10px; }
.guide .backbtn { background: var(--panel, #fff); color: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--line)); font-weight: 600; }
.guide .backbtn:hover { background: color-mix(in srgb, var(--brand) 6%, var(--panel, #fff)); }

/* Ayak izi · isteğe bağlı hedge güncelleme adımları */
.card.hupd { border-top: 3px solid color-mix(in srgb, var(--brand) 40%, var(--line)); }
.hsteps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hstep { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.hstep b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, var(--panel, #fff)); color: var(--brand); font-size: 12px; }
.hstep.on { border-color: var(--brand); color: var(--ink); font-weight: 600; }
.hstep.on b { background: var(--brand); color: #fff; }
.hstep.done b { background: var(--ok, #15803d); color: #fff; }
.hfetch { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.newrecs { padding: 8px 0 4px; }
.newrec { font-size: 13.5px; padding: 4px 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.newrec a { color: var(--ink); font-weight: 600; text-decoration: none; }
.newrec a:hover { text-decoration: underline; }
.ai.carried { background: color-mix(in srgb, var(--ok, #15803d) 7%, var(--panel, #fff)); }

/* Yapay zekâ kullanım sınırı uyarısı */
.limitbar { display: flex; align-items: center; gap: 12px; margin: -6px 0 14px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--warn, #b45309) 45%, var(--line)); background: color-mix(in srgb, var(--warn, #b45309) 9%, var(--panel, #fff)); font-size: 14px; }
.limitbar .lbicon { font-size: 22px; }

/* v2 (flamingo logosu): üst bar v1'deki gibi koyu, logo beyaz; sayfanın geri kalanı v2 renkleriyle */
html[data-theme="v2"] .topbar { background: var(--brand); color: #fff; border-bottom: 0; }
html[data-theme="v2"] .brandlogo { height: 36px; }
html[data-theme="v2"] .tagline { color: #fff; opacity: .65; border-left-color: rgba(255,255,255,.25); }
html[data-theme="v2"] .topbar .pill { background: rgba(255,255,255,.14); color: #fff; }
html[data-theme="v2"] .projectbar select, html[data-theme="v2"] .projectbar input { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
html[data-theme="v2"] .projectbar select option { color: #000; }
html[data-theme="v2"] .themesw { background: rgba(255,255,255,.12); }
html[data-theme="v2"] .themesw button:hover { background: rgba(255,255,255,.12); }
html[data-theme="v2"] .themesw button.on { background: #fff; color: var(--brand); }
html[data-theme="v2"] .homelogo { width: min(380px, 100%); }


/* ---- Flamingo simgesi (harf animasyonunun yerine) ----
   Durağan: logonun kendi rengi. İşlem sürerken: flamingo şeklinde gökkuşağı renkleri akar. */
.flam { display: inline-block; vertical-align: middle; flex: none; margin: 3px; background: url(img/flamingo.png) center / contain no-repeat; }
.flam.busy { background: linear-gradient(165deg, #eb6364, #f2b84b, #4cc38a, #24a9f8, #8b5cf6, #eb6364, #f2b84b, #4cc38a, #24a9f8) 0 0 / 100% 300%;
  -webkit-mask: url(img/flamingo.png) center / contain no-repeat; mask: url(img/flamingo.png) center / contain no-repeat;
  animation: flamRainbow 2.4s linear infinite; }
@keyframes flamRainbow { to { background-position: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .flam.busy { animation-duration: 8s; } }
.flam.corner { margin: -8px -4px -10px 0; }
button .flam { margin: -3px 0; }
.toast.undo { display: flex; align-items: center; gap: 10px; }
.toast.undo button { background: #fff; color: var(--brand); border: 0; font-weight: 700; }

/* ---- Flamingo: kafa sağa-sola dönme animasyonu (FLAM_MODE = "head") ----
   Gövde ve boyun ayrı katman; boyun, gövdeye bağlandığı noktanın (≈ %64,5 · %50) etrafında döner.
   Döngü 3,6 sn: hızla iner → yerde oyalanıp suyu karıştırır (küçük salınımlar) → kalkar → kısa bekleyip yine iner. */
.flamx { position: relative; display: inline-block; vertical-align: middle; flex: none; margin: 3px; overflow: visible; }
.flamx .fb, .flamx .fn { position: absolute; inset: 0; background: linear-gradient(165deg, #eb6364, #f2b84b, #4cc38a, #24a9f8, #8b5cf6, #eb6364, #f2b84b, #4cc38a, #24a9f8) 0 0 / 100% 300%; animation: flamRainbow 2.4s linear infinite; }
.flamx .fb { -webkit-mask: url(img/flamingo-body.png) center / contain no-repeat; mask: url(img/flamingo-body.png) center / contain no-repeat; }
.flamx .fn { -webkit-mask: url(img/flamingo-neck.png) center / contain no-repeat; mask: url(img/flamingo-neck.png) center / contain no-repeat;
  transform-origin: 66.2% 51.6%; animation: flamRainbow 2.4s linear infinite, flamTurn 2.6s ease-in-out infinite; }
@keyframes flamTurn { /* boyun + kafa birlikte sırayla sağa ve sola döner: boynun gövdeye bağlandığı noktada aynalanır (kopukluk olmaz) */
  0%, 38%  { transform: scaleX(1); }    /* sağa bakar */
  50%, 88% { transform: scaleX(-1); }   /* sola bakar */
  100%     { transform: scaleX(1); }
}
}
@media (prefers-reduced-motion: reduce) { .flamx .fn { animation: flamRainbow 8s linear infinite; } }
.flamx.corner { margin: -8px -4px -10px 0; }
button .flamx { margin: -3px 0; }

/* ---- Kart tonları: beyaz kartlar arasında kaybolmasın ----
   Zemin bir ton koyu; araç kartları ana içerikten farklı tonda ve sol kenarı renkli.
   sky = Evidoxia'ya iş yaptıran araçlar · sun = kontrol/güvence (doğrulama seti, kaçırma kontrolü) · coral = isteğe bağlı hedge güncellemesi */
html[data-theme="v2"] { --bg: #eaf1f8; }
.card { border-color: #d9e3ef; box-shadow: 0 1px 2px rgba(18,38,74,.07), 0 6px 18px rgba(18,38,74,.07); }
.card.tool { border-left: 5px solid var(--tc); background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 9%, #fff), color-mix(in srgb, var(--tc) 4%, #fff) 70%); border-color: color-mix(in srgb, var(--tc) 30%, #d9e3ef); border-left-color: var(--tc); }
.card.tool.sky { --tc: #24a9f8; }
.card.tool.sun { --tc: #f2b84b; }
.card.tool.coral { --tc: #eb6364; }
.card.tool h3 { color: var(--ink); }
.card.tool .callout { background: rgba(255,255,255,.75); }
/* kaçırma kontrolü kutusu (eleme kriterleri içinde) */
.safety { background: color-mix(in srgb, #f2b84b 12%, #fff) !important; border: 1px solid color-mix(in srgb, #f2b84b 40%, #d9e3ef) !important; border-left: 4px solid #f2b84b !important; }

/* Ana yazma alanları (PICO fikri, yeni çalışma adı, notlar, doğrulama makaleleri): belirgin kenarlık, odakta çerçeve */
.bigbox { background: var(--panel, #fff); color: var(--ink); border: 2px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.55; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.bigbox:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.bigbox::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }

/* Hızlı tarama · çalışmalar tablosu */
.qtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.qtable th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.qtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qtable tr:hover td { background: color-mix(in srgb, var(--brand) 3%, transparent); }
.qtable a { color: var(--ink); text-decoration: none; }
.qtable .qt-title { max-width: 260px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qtable td:nth-child(4) { min-width: 190px; } .qtable td:nth-child(5) { min-width: 140px; } .qtable .qt-title { max-width: 180px; } .qtable td:last-child { white-space: nowrap; }
.pill.st-yes { background: color-mix(in srgb, var(--ok, #15803d) 14%, #fff); color: var(--ok, #15803d); }
.pill.st-no { background: color-mix(in srgb, #eb6364 16%, #fff); color: #b8383c; }
.pill.st-mixed { background: color-mix(in srgb, #f2b84b 20%, #fff); color: #8a5a00; }
.meter { display: flex; height: 24px; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; font-size: 12px; font-weight: 600; color: #fff; }
.meter span { display: grid; place-items: center; white-space: nowrap; }
.meter .m-yes { background: #2f9e6a; } .meter .m-mixed { background: #e0a83a; } .meter .m-no { background: #eb6364; }
.qintro { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.qintro > .flam, .qintro > .flamx { flex: none; }
/* Zotero gönderim sonucu */
.zok { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ok, #15803d) 45%, var(--line)); background: color-mix(in srgb, var(--ok, #15803d) 8%, #fff); border-left: 5px solid var(--ok, #15803d); }
.zok .zcheck { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ok, #15803d); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.zok .zt { font-size: 16px; font-weight: 700; color: var(--ok, #15803d); margin-bottom: 2px; }

/* ===================== Yeni düzen (2026-11-12): yan menü, hesap, yönetim, duyarlılık testi ===================== */
/* Yan menü: her basamak tek iş; ad + kısa açıklama (Nebaria prototipindeki anlaşılır adım listesinden) */
.shell { display: block; }
body.withnav .shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
.stepper { flex-direction: column; gap: 2px; padding: 14px 10px 24px; border-bottom: 0; border-right: 1px solid var(--line); position: sticky; top: 60px; height: calc(100vh - 60px); height: calc(100dvh - 60px); overflow-y: auto; z-index: 5; }
html[data-theme="v2"] .stepper, html[data-theme="v3"] .stepper { top: 60px; }
.stepper .navtitle { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 8px 6px; }
.stepper .navgroup { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); opacity: .8; padding: 10px 8px 3px; border-top: 1px dashed var(--line); margin-top: 6px; }
.stepper .step { white-space: normal; align-items: flex-start; padding: 7px 8px; font-size: 13.5px; }
.stepper .step .n { flex: none; margin-top: 1px; }
.stepper .step .st { display: flex; flex-direction: column; min-width: 0; }
.stepper .step .sl { line-height: 1.25; }
.stepper .step small { font-size: 11.5px; font-weight: 400; color: var(--muted); line-height: 1.3; margin-top: 1px; }
.stepper .step.active small { color: var(--ink); opacity: .75; }
body.withnav .app { margin: 0; max-width: 1240px; }
@media (max-width: 960px) {
  body.withnav .shell { display: block; }
  .stepper { flex-direction: row; height: auto; position: sticky; top: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; overflow-x: auto; }
  .stepper .navtitle, .stepper .navgroup, .stepper .step small { display: none; }
  .stepper .step { white-space: nowrap; align-items: center; }
}

/* Kullanıcı menüsü */
.usermenu { margin-left: 4px; }
.umenu { position: relative; }
.umenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.umenu summary::-webkit-details-marker { display: none; }
.umenu .avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; }
.umenu .uname { font-size: 13px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu-box { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; z-index: 50; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.umenu-box a, .umenu-box button { display: block; text-align: left; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; width: 100%; }
.umenu-box a:hover, .umenu-box button:hover { background: var(--soft); }
.rolepill { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--brand); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.rolepill.superadmin { background: #fde8e8; color: #b4232c; }
.rolepill.admin { background: #fff4dc; color: #8a5a00; }
@media (max-width: 960px) { .umenu .uname, .umenu .rolepill { display: none; } }

/* Giriş ekranı */
.authwrap { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.authcard { width: min(420px, 100%); }
.authcard h2 { text-align: center; }
.authcard p.small { text-align: center; }
.annbar { margin-bottom: 14px; }

/* Ortak küçük parçalar */
.tablewrap { overflow: auto; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 4px 10px; font-size: 12.5px; background: var(--panel); color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--soft); color: var(--brand); font-weight: 600; }
.seg button:disabled { opacity: .35; }
.modeseg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding: 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.modeseg button { border-radius: 8px; padding: 6px 12px; }
.modeseg button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.modeseg button.on .tiny { opacity: .8; }
.vpill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.vpill.good { background: var(--okbg); color: var(--ok); }
.vpill.warn { background: var(--warnbg); color: var(--warn); }
.vpill.bad { background: var(--badbg); color: var(--bad); }
.vpill.info { background: var(--infobg); color: var(--info); }
.okc { color: var(--ok); } .badc { color: var(--bad); }
.kpline { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 13px; }
.kpline b { font-size: 20px; }
.bar.sensbar { height: 8px; border-radius: 999px; margin-top: 4px; }
.bar.sensbar i { background: var(--ok); border-radius: 999px; }
.bar.sensbar.mid i { background: var(--warn); } .bar.sensbar.low i { background: var(--bad); }
.senstab tr.srow { cursor: pointer; }
.senstab tr.srow:hover td { background: var(--bg); }
.senstab tr.srow.sel td { background: var(--soft); }
.samp { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.samplist { margin: 6px 0; padding-left: 20px; font-size: 12.5px; }
.samplist li { margin: 3px 0; }
.samplist label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.samplist input { margin-top: 3px; flex: none; }
.sampout { margin-top: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.disc { display: flex; flex-direction: column; }
.rvlist, .cands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.rvlist li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); }
.rvlist li.sel { border-color: var(--brand2); box-shadow: 0 0 0 2px var(--soft); }
.cands { max-height: 320px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.cands label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.cands input { margin-top: 3px; flex: none; }
/* Doygunluk eğrisi */
.cwrap { margin-top: 10px; }
.cwrap.stale svg { opacity: .45; }
.curvesvg { display: block; width: 100%; height: auto; overflow: visible; }
.curvesvg text { font: 10.5px var(--mono); fill: var(--muted); }
.curvesvg text.cl { font: 600 10.5px Inter, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-area { fill: var(--soft); }
.c-line { fill: none; stroke: var(--brand2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-line.c2 { stroke: var(--ok); }
.c-dot { fill: var(--panel); stroke: var(--brand2); stroke-width: 2; }
.c-dot.c2 { stroke: var(--ok); }
.c-dot.sat { fill: var(--brand2); } .c-dot.c2.sat { fill: var(--ok); }
.c-sat { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }
.curvesvg text.c-satl { fill: var(--ink); }
.csum { font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: var(--bg); border-left: 3px solid var(--brand2); margin: 8px 0; }
.csum.warn { border-left-color: var(--warn); }
/* Yönetim */
.plantab input.mini { width: 100%; min-width: 90px; margin: 2px 0; }
.plantab td:first-child { font-size: 12.5px; color: var(--muted); }
a.tab { text-decoration: none; display: inline-block; }
select.mini { padding: 2px 6px; font-size: 12px; }
body.withnav .sticky { top: 76px; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); }
@media (max-width: 960px) { body.withnav .sticky { max-height: none; } }
.umenu summary { color: var(--ink); }
/* telefon: geniş tablo/kartlar sayfayı yana taşırmasın */
.grid > * { min-width: 0; }
@media (max-width: 960px) { .side, .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .stepper { max-width: 100vw; } .shell, .app { max-width: 100vw; } }
/* Olası kopyalar */
.duppair { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.duppair.same { border-color: var(--ok); } .duppair.diff { opacity: .75; }
.duptwo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duprec { background: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .duptwo { grid-template-columns: minmax(0, 1fr); } }
/* Akıllı ayar tablosu: yan menüyle daralan sütunda butonlar kesilmesin */
.tlist { overflow-x: auto; }
.trow { grid-template-columns: minmax(0, 1.3fr) minmax(76px, .6fr) minmax(0, 1.5fr) minmax(0, 1fr) auto; }
.trow > * { min-width: 0; }
.trow .tact button { white-space: nowrap; }
@media (max-width: 1280px) { body.withnav .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } body.withnav .trow.thead { display: none; } body.withnav .trow .tact { text-align: left; } }
/* Makale kartları: varsayılan kapalı, başlığa tıklayınca açılır */
.rec.collapsed { padding: 9px 14px; }
.rec .rectoggle { cursor: pointer; display: inline; }
.rec .rectoggle:hover { color: var(--brand2); }
.rec .chev { display: inline-block; width: 16px; color: var(--muted); font-size: 12px; }
.rec.expanded .chev { color: var(--brand2); }
.rec .recbody { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 2px; }
.rec.collapsed .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Kavram kartları: varsayılan kapalı, tıklayınca açılır */
.concept .conhead { cursor: pointer; border-radius: 8px; margin: -4px -6px; padding: 4px 6px; }
.concept .conhead:hover { background: var(--bg); }
.concept .chev { width: 14px; color: var(--muted); }
.concept .contoggle { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 8px; color: var(--brand2); white-space: nowrap; }
.concept .contoggle.primary { background: var(--brand); color: #fff; }
.concept.cclosed .conhint { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px dashed var(--line); cursor: pointer; }
.concept.cclosed .conhint:hover { border-color: var(--brand2); }
.conbar { margin: 18px 2px 6px; }

/* ===================== Nebaria sayfa yapısı, Evidoxia temasıyla (2026-11-12) ===================== */
/* sayfa başlığı + sıradaki iş + alt gezinme */
.page-h { margin: 2px 0 12px; }
.page-h h2 { font-size: 22px; margin: 0 0 4px; }
.page-h p { color: var(--muted); max-width: 78ch; margin: 0; }
.pbanner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--line); background: var(--warnbg); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; font-size: 13px; }
.pbanner b { color: var(--warn); }
.pbanner.here { background: var(--soft); } .pbanner.here b { color: var(--brand2); }
.pbanner button { margin-left: auto; }
.nav-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.nav-foot .nfr { display: flex; align-items: center; gap: 10px; }
.nav-foot button.primary { padding: 9px 18px; font-size: 14.5px; }
/* hedge: bileşenler + sağ panel */
.hedge-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); gap: 18px; align-items: start; }
.comps { min-width: 0; }
.comps > .card + .card, .comps > details + .card, .comps > .card + details { margin-top: 14px; }
.panel { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.panel > .card { box-shadow: none; padding: 12px; margin: 0; border-radius: 10px; }
.panel .grid.g3, .panel .grid.g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel .how { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.kpi1 { padding: 2px 2px 0; }
@media (max-width: 1180px) { .hedge-wrap { grid-template-columns: minmax(0, 1fr); } .panel.sticky { position: static; max-height: none; } }
details.fold > summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.fold > summary::before { content: "▸"; color: var(--muted); }
details.fold[open] > summary::before { content: "▾"; }
.comphead { display: flex; gap: 12px; align-items: center; }
.comphead .grow { flex: 1; min-width: 0; }
.badge { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; font: 700 13px var(--mono); flex: none; background: var(--c, var(--brand)); }
.badge.P { background: var(--P); } .badge.I { background: var(--I); } .badge.C { background: var(--C); } .badge.O { background: var(--O); }
.switch { display: flex; gap: 6px; align-items: center; cursor: pointer; font-size: 13px; white-space: nowrap; }
.switch input { width: 34px; height: 18px; appearance: none; -webkit-appearance: none; background: var(--line); border-radius: 999px; position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--brand2); }
.switch input:checked::after { transform: translateX(16px); }
.offnote { margin-top: 8px; padding: 7px 10px; font-size: 12px; border-radius: 8px; background: var(--bg); color: var(--muted); }
.compfoot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.compfoot b { color: var(--ink); }
.qline { margin: 8px 0 0; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font: 11.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow: auto; }
section.final { border: 1px solid var(--brand2); }
/* veritabanı sorguları */
.qgrid { display: flex; flex-direction: column; gap: 14px; max-width: 1040px; }
.qgrid > .card + .card { margin-top: 0; }
.qhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qhead h3 { margin: 0 auto 0 0; }
pre.code { margin: 8px 0 0; padding: 10px 12px; background: var(--brand); color: #dbeafe; border-radius: 10px; font: 12px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.notes { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.qcard .pmfetch { margin-top: 12px; }
details.steps-d { margin-top: 10px; }
details.steps-d > summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--brand2); }
/* dosya yükleme */
.upgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.upgrid > .card + .card { margin-top: 0; }
.upc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fmts { font: 500 11px var(--mono); color: var(--muted); }
.upc .drop { padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.upc .drop small { color: var(--muted); font-size: 12px; }
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.flist li { background: var(--bg); border-radius: 8px; padding: 7px 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: 12.5px; }
.flist .fn { font-family: var(--mono); overflow-wrap: anywhere; }
.flist .fm { grid-column: 1; color: var(--muted); font-size: 12px; }
.flist .rm { grid-row: 1 / span 2; grid-column: 2; align-self: center; border: 0; background: none; color: var(--muted); font-size: 18px; padding: 0 4px; }
.flist .rm:hover { color: var(--bad); }
.flist .callout { grid-column: 1 / -1; margin: 4px 0 0; }
.uptotal { margin-top: 14px; }
.uptotal .num b { font-size: 20px; }
.drop.mini { padding: 6px 12px; font-size: 12.5px; border-width: 1.5px; }
/* duplike */
.ddwrap { display: flex; flex-direction: column; gap: 14px; }
.ddwrap > .card + .card, .ddwrap .card + .card { margin-top: 0; }
.kpi4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpi small { color: var(--muted); display: block; font-size: 12px; }
.kpi b { font-size: 24px; display: block; margin-top: 2px; }
.kpi.fin { border-color: var(--brand2); box-shadow: inset 3px 0 0 var(--brand2); }
/* başlık-özet tarama */
.ai-card { margin-bottom: 14px; }
.scr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 14px; }
.scr-wrap .side-c > .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .scr-wrap { grid-template-columns: minmax(0, 1fr); } .side-c.sticky { position: static; max-height: none; } }
.scr-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.scr-bar .pos { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.scr-card.empty { padding: 30px; text-align: center; color: var(--muted); }
.rec.cur.expanded { padding: 18px 20px; }
.rec.expanded .t { font-size: 17px; line-height: 1.35; }
.rec.expanded .abs { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
mark.hg { background: var(--okbg); box-shadow: inset 0 -1px 0 var(--ok); color: inherit; border-radius: 3px; padding: 0 2px; }
.decs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.dec-b { padding: 9px 16px; font-weight: 600; border-radius: 9px; }
.dec-b kbd { font: 500 11px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--muted); background: var(--bg); margin-left: 4px; }
.dec-b.inc:hover, .dec-b.inc.on { background: var(--okbg); border-color: var(--ok); color: var(--ok); }
.dec-b.exc:hover, .dec-b.exc.on { background: var(--badbg); border-color: var(--bad); color: var(--bad); }
.stack3 { display: flex; height: 9px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; margin: 6px 0 8px; }
.stack3 i { display: block; height: 100%; }
.legend3 { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12.5px; }
.legend3 > span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12.5px; color: var(--muted); align-items: center; }
.keys kbd { font: 500 11px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; text-align: center; color: var(--ink); background: var(--bg); }
@media (max-width: 960px) {
  .card table { display: block; overflow-x: auto; max-width: 100%; }
  .card { overflow-wrap: anywhere; }
  .nav-foot { flex-wrap: wrap; } .nav-foot button { white-space: normal; text-align: left; }
  .picolegend { flex-wrap: wrap; }
}
@media (max-width: 960px) { .chips { flex-wrap: wrap; } .chip { white-space: normal; max-width: 100%; } }
@media (max-width: 960px) { html, body { overflow-x: hidden; } }
/* Süper yönetici paneli */
.minichart { display: block; width: 100%; height: auto; overflow: visible; }
.minichart text { font: 10.5px var(--mono); fill: var(--muted); }
.minichart .bar1 { fill: var(--brand2); }
.minichart .c-hit { fill: transparent; }
.minichart .c-hit:hover { fill: color-mix(in srgb, var(--brand2) 10%, transparent); }
.meterrow { margin: 8px 0; }
.featlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.featrow { display: flex; gap: 12px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.featrow.off span:last-child { color: var(--muted); text-decoration: line-through; }
.featrow .switch span { min-width: 44px; font-size: 12px; color: var(--muted); }
a.tab.on { color: #fff; }
html .tabs a.tab.on { color: #fff !important; }
