/* Diploma Zinciri — arayüz stilleri
   Kimlik: lacivert mürekkep + mühür kırmızısı. Tek vurgu öğesi: onay mühürleri zinciri. */
:root {
  --ink: #1b2a4a;
  --ink-2: #2b3d63;
  --text: #14213d;
  --muted: #5b6475;
  --paper: #f3f5f9;
  --surface: #ffffff;
  --line: #d8dee8;
  --line-2: #e7ebf2;
  --seal: #9e1b32;
  --seal-soft: #f6e7ea;
  --ok: #1f7a4d;
  --ok-soft: #e4f2ea;
  --warn: #a35f00;
  --warn-soft: #fbf0dc;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --gold: #b8923a;
  --focus: #3d6bd9;
  --radius: 8px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 15px/1.55 var(--sans);
}
a { color: var(--ink-2); text-underline-offset: 2px; }
a:hover { color: var(--seal); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .85em; word-break: break-all; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- Üst bar ---- */
.topbar { background: var(--ink); color: #fff; }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand small { font-family: var(--sans); font-weight: 400; color: #aab4c8; font-size: .82rem; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: #d7deeb; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .93rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; color: #d7deeb; }
.who strong { color: #fff; font-weight: 500; }
.who .role { display: block; font-size: .78rem; color: #aab4c8; }
.who button { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 10px; border-radius: 6px; cursor: pointer; font: inherit; font-size: .85rem; }
.who button:hover { background: rgba(255,255,255,.1); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }
.wrap-narrow { max-width: 760px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { color: var(--muted); margin: 0; }

/* ---- Yüzeyler ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.grid-2 > .panel, .layout-detail > .panel { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.layout-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid-2, .layout-detail { grid-template-columns: 1fr; } }

/* ---- Form ---- */
label { display: block; font-size: .87rem; font-weight: 500; color: var(--ink); margin-bottom: 5px; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #c3ccda; border-radius: 6px; padding: 9px 11px; min-height: 40px;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid rgba(61,107,217,.2); }
textarea { min-height: 84px; resize: vertical; }
input[type="file"] { padding: 7px; }
input[type="checkbox"] { width: auto; min-height: 0; }
.field { margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; margin-bottom: 12px; padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: .93rem; padding: 9px 16px; min-height: 40px;
  border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: #fff;
}
.btn:hover { background: var(--ink-2); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-seal { background: var(--seal); }
.btn-seal:hover { background: #861629; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #c3ccda; }
.btn-ghost:hover { background: #f0f3f8; color: var(--ink); }
.btn-danger { background: #fff; color: var(--bad); border-color: #e9b4ae; }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn-sm { padding: 5px 10px; min-height: 32px; font-size: .85rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- Bildirimler ---- */
.alert { border-radius: 6px; padding: 11px 14px; font-size: .92rem; margin-bottom: 14px; border: 1px solid; }
.alert-error { background: var(--bad-soft); border-color: #f2c1bb; color: #7a1a12; }
.alert-ok { background: var(--ok-soft); border-color: #b9dcc8; color: #145235; }
.alert-info { background: #eaf0fb; border-color: #c7d5f1; color: #23396b; }
.alert-warn { background: var(--warn-soft); border-color: #ecd2a4; color: #6b3f00; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 6px; font-size: .92rem; z-index: 100; box-shadow: 0 6px 24px rgba(20,33,61,.25); max-width: calc(100% - 32px); }
.toast.err { background: var(--bad); }

/* ---- Durum etiketi ---- */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; white-space: nowrap; border: 1px solid; }
.pill.taslak { background: #eef1f6; color: var(--muted); border-color: #d8dee8; }
.pill.fakulte_onayinda, .pill.rektorluk_onayinda, .pill.merkez_onayinda { background: var(--warn-soft); color: var(--warn); border-color: #ecd2a4; }
.pill.nft_bekliyor { background: #eaf0fb; color: #23396b; border-color: #c7d5f1; }
.pill.tamamlandi { background: var(--ok-soft); color: var(--ok); border-color: #b9dcc8; }
.pill.reddedildi, .pill.iptal { background: var(--bad-soft); color: var(--bad); border-color: #f2c1bb; }
.pill.sim { background: #f3eefc; color: #5b3a9a; border-color: #dccff3; }

/* ---- Tablo ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: .82rem; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: #f7f9fc; }
td .sub { display: block; color: var(--muted); font-size: .82rem; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }

@media (max-width: 720px) {
  .topbar-in { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 16px; gap: 6px 12px; }
  .brand small { display: none; }
  .nav { margin-left: 0; order: 3; width: 100%; overflow-x: auto; }
  .nav a { padding: 6px 10px; font-size: .88rem; white-space: nowrap; }
  .who { gap: 8px; }
  .who .role { display: none; }
  .wrap { padding: 20px 16px 48px; }
  h1 { font-size: 1.55rem; }
}

/* ---- Sekmeler ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--seal); font-weight: 500; }
.tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--seal); color: #fff; font-size: .75rem; text-align: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input { max-width: 320px; }
.toolbar select { max-width: 240px; }

/* ---- Tanım listesi ---- */
.dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .93rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }

/* ---- Mühür zinciri (imza öğesi) ---- */
.seals { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin: 6px 0 4px; }
.seals::before { content: ""; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.seals .progress { position: absolute; top: 31px; left: 12.5%; height: 2px; background: var(--seal); transition: width .6s ease; }
.seal { position: relative; text-align: center; padding: 0 4px; }
.seal-disc {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--surface); border: 2px dashed #b8c2d3; color: #8a95a8;
}
.seal-disc svg { width: 30px; height: 30px; }
.seal-name { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: .98rem; }
.seal-meta { font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.seal.done .seal-disc { background: var(--seal); border: 2px solid var(--seal); color: #fff; box-shadow: inset 0 0 0 4px var(--seal), inset 0 0 0 5.5px rgba(255,255,255,.55); }
.seal.done.fresh .seal-disc { animation: press .5s cubic-bezier(.2,1.6,.4,1); }
.seal.current .seal-disc { border: 2px solid var(--warn); color: var(--warn); background: var(--warn-soft); }
.seal.rejected .seal-disc { border: 2px solid var(--bad); color: var(--bad); background: var(--bad-soft); }
@keyframes press { 0% { transform: scale(1.35); opacity: .2; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .seal.done.fresh .seal-disc { animation: none; } .seals .progress { transition: none; } }
@media (max-width: 560px) {
  .seal-disc { width: 48px; height: 48px; } .seal-disc svg { width: 22px; height: 22px; }
  .seals::before, .seals .progress { top: 23px; }
  .seal-name { font-size: .85rem; } .seal-meta { font-size: .72rem; }
}
.mini-seals { display: inline-flex; gap: 4px; vertical-align: middle; }
.mini-seals i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #b8c2d3; display: inline-block; }
.mini-seals i.done { background: var(--seal); border-color: var(--seal); }
.mini-seals i.current { border-color: var(--warn); background: var(--warn-soft); }

/* ---- Onay geçmişi ---- */
.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 12px 0; border-top: 1px solid var(--line-2); }
.history li:first-child { border-top: 0; }
.history .h-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.history .h-who { font-weight: 500; }
.history .h-when { color: var(--muted); font-size: .85rem; }
.history .h-comment { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.check-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chk { font-size: .76rem; padding: 1px 8px; border-radius: 4px; background: var(--ok-soft); color: var(--ok); }
.chk.no { background: var(--bad-soft); color: var(--bad); }
details.vc { margin-top: 6px; }
details.vc summary { cursor: pointer; font-size: .85rem; color: var(--ink-2); }
pre.json { background: #0f1a30; color: #d8e1f3; padding: 12px; border-radius: 6px; font: 12px/1.5 var(--mono); overflow: auto; max-height: 360px; }

/* ---- Modal ---- */
dialog { border: 0; border-radius: 10px; padding: 0; width: min(480px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(20,33,61,.3); color: var(--text); }
dialog::backdrop { background: rgba(20,33,61,.45); }
.dlg-body { padding: 22px; }
.dlg-foot { padding: 14px 22px; background: #f5f7fa; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line-2); }

/* ---- Giriş / Kurulum ---- */
.auth-shell { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: min(420px, 100%); }
.auth-card .panel { padding: 28px; }

/* ---- Ana sayfa ---- */
.hero { background: var(--ink); color: #e8edf6; padding: 56px 20px 72px; }
.hero-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.01em; margin-bottom: 16px; }
.hero p { font-size: 1.06rem; color: #c3cde0; max-width: 54ch; }
.verify-box { background: #fff; color: var(--text); border-radius: 10px; padding: 24px; }
.verify-box h2 { font-size: 1.15rem; }
.verify-box p { color: var(--muted); }
.code-input { display: flex; gap: 8px; }
.dl.wide { grid-template-columns: 210px minmax(0, 1fr); }
.code-input input.code { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; }
.code-input input.code::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--sans); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: 28px; } }
.flow { max-width: 1180px; margin: -36px auto 0; padding: 0 20px 64px; }
.flow .panel { padding: 28px 22px 22px; }
.flow-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.flow-foot h3 { margin-bottom: 4px; }
.flow-foot p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 760px) { .flow-foot { grid-template-columns: 1fr; } }

/* ---- Doğrulama sayfası ---- */
.verdict { border-radius: 10px; padding: 22px 24px; display: flex; gap: 18px; align-items: center; margin-bottom: 18px; border: 1px solid; }
.verdict svg { width: 44px; height: 44px; flex: none; }
.verdict h1 { margin: 0 0 2px; font-size: 1.5rem; }
.verdict p { margin: 0; }
.verdict.gecerli { background: var(--ok-soft); border-color: #b9dcc8; }
.verdict.gecerli h1, .verdict.gecerli svg { color: var(--ok); }
.verdict.iptal, .verdict.gecersiz, .verdict.bulunamadi { background: var(--bad-soft); border-color: #f2c1bb; }
.verdict.iptal h1, .verdict.gecersiz h1, .verdict.bulunamadi h1, .verdict.iptal svg, .verdict.gecersiz svg, .verdict.bulunamadi svg { color: var(--bad); }
.verdict.beklemede { background: var(--warn-soft); border-color: #ecd2a4; }
.verdict.beklemede h1, .verdict.beklemede svg { color: var(--warn); }

.diploma-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px 32px 28px; position: relative;
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(135deg, var(--gold), #e3cf95 50%, var(--gold));
  background-origin: border-box; background-clip: padding-box, border-box; border: 3px solid transparent;
}
.diploma-card .dc-uni { font-family: var(--serif); text-align: center; color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.diploma-card .dc-type { text-align: center; color: var(--gold); font-family: var(--serif); font-style: italic; margin: 2px 0 22px; }
.diploma-card .dc-name { font-family: var(--serif); text-align: center; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--ink); margin: 0 0 6px; font-weight: 600; }
.diploma-card .dc-prog { text-align: center; color: var(--muted); margin-bottom: 22px; }
.dc-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; border-top: 1px solid var(--line-2); padding-top: 18px; }
.dc-grid .dl { grid-template-columns: 130px minmax(0,1fr); font-size: .9rem; }
.dc-qr { width: 132px; text-align: center; font-size: .75rem; color: var(--muted); }
.dc-qr img { width: 132px; height: 132px; display: block; border: 1px solid var(--line-2); border-radius: 4px; }
@media (max-width: 600px) { .diploma-card { padding: 24px 18px; } .dc-grid { grid-template-columns: 1fr; } .dc-qr { margin: 0 auto; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.checks li:first-child { border-top: 0; }
.checks .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; margin-top: 1px; }
.checks .ic.ok { background: var(--ok); }
.checks .ic.no { background: var(--bad); }
.checks b { display: block; font-weight: 500; }
.checks span { color: var(--muted); font-size: .88rem; }

.kv-small { font-size: .85rem; }
.kv-small .dl { grid-template-columns: 120px minmax(0,1fr); font-size: .85rem; }

footer.site { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px 16px 36px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.btn-ghost .spinner { border-color: rgba(27,42,74,.25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.mode-banner { background: #f3eefc; color: #4a2f80; border-bottom: 1px solid #dccff3; font-size: .85rem; text-align: center; padding: 7px 12px; }

@media print {
  .topbar, .no-print, footer.site, .mode-banner { display: none !important; }
  body { background: #fff; }
  .wrap { padding: 0; }
}

/* =====================================================================
   Kurum panelleri: yan menülü kabuk. --role her kurumun kendi rengidir.
   ===================================================================== */
:root { --role: var(--ink); --role-soft: #e8ecf3; --side-w: 260px; }
body.shell { padding-left: var(--side-w); }
body.shell .wrap { max-width: 1240px; padding-top: 32px; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 20;
  background: var(--ink); color: #cfd7e6; display: flex; flex-direction: column;
  border-right: 4px solid var(--role);
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.2; }
.side-brand:hover { color: #fff; }
.side-brand small { display: block; font-family: var(--sans); font-weight: 400; color: #93a0b8; font-size: .78rem; margin-top: 2px; }
.side-org { margin: 0 14px 14px; padding: 14px; border-radius: 10px; background: rgba(255,255,255,.06); display: flex; gap: 12px; align-items: center; }
.side-org strong { display: block; color: #fff; font-weight: 600; font-size: .98rem; }
.side-org small { display: block; color: #a9b4c8; font-size: .8rem; }
.org-ic { width: 40px; height: 40px; border-radius: 9px; background: var(--role); color: #fff; display: grid; place-items: center; flex: none; }
.org-ic svg { width: 22px; height: 22px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #cfd7e6; text-decoration: none; font-size: .93rem; }
.side-nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 500; }
.side-nav a[aria-current="page"] svg { color: var(--role); opacity: 1; }
.side-foot { margin-top: auto; padding: 14px 10px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user { padding: 4px 12px 10px; }
.side-user strong { display: block; color: #fff; font-weight: 500; font-size: .92rem; }
.side-user small { color: #93a0b8; font-size: .8rem; }
.side-foot button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: #cfd7e6; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.side-foot button svg { width: 18px; height: 18px; }
.side-foot button:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-kvkk { display: block; padding: 10px 12px 0; color: #93a0b8; font-size: .78rem; }
.side-kvkk:hover { color: #fff; }
body.shell .mode-banner { margin: 0; }

@media (max-width: 960px) {
  body.shell { padding-left: 0; }
  .sidebar { position: static; width: auto; border-right: 0; border-bottom: 4px solid var(--role); }
  .side-brand { padding: 14px 16px 10px; }
  .side-org { margin: 0 12px 10px; padding: 10px; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 0 10px 10px; }
  .side-nav a { white-space: nowrap; padding: 8px 12px; }
  .side-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px 12px; margin-top: 0; }
  .side-user { width: 100%; padding: 2px 12px 4px; }
  .side-foot button { width: auto; }
  .side-kvkk { padding: 0 12px; }
}

/* ---- Panel başlığı ---- */
.org-hero {
  position: relative; overflow: hidden; border-radius: 14px; padding: 26px 28px;
  background: var(--role); color: #fff; margin-bottom: 22px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}
.org-hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.22); box-shadow: inset 0 0 0 26px rgba(255,255,255,.05);
}
.org-hero h1 { color: #fff; margin: 0 0 6px; font-size: 1.85rem; }
.org-hero p { margin: 0; color: rgba(255,255,255,.82); max-width: 60ch; }
.org-hero .greet { font-size: .9rem; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.org-hero .btn { background: #fff; color: var(--ink); position: relative; z-index: 1; }
.org-hero .btn:hover { background: #f0f2f7; color: var(--ink); }
.org-hero .btn svg { width: 18px; height: 18px; color: var(--role); }

/* ---- Sayaç kartları ---- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.stat:hover { border-color: #b9c3d4; }
.stat[aria-pressed="true"] { border-color: var(--role); box-shadow: inset 0 0 0 1px var(--role); }
.stat .n { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.stat .l { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.stat.primary { background: var(--role-soft); border-color: transparent; }
.stat.primary .n { color: var(--role); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- İş listesi ---- */
.queue { list-style: none; margin: 0; padding: 0; }
.queue li a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 4px; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit;
}
.queue li:first-child a { border-top: 0; }
.queue li a:hover { background: #f8f9fc; }
.queue .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--role-soft); color: var(--role); display: grid; place-items: center; font-weight: 600; font-family: var(--serif); font-size: 1.05rem; }
.queue .who { font-weight: 500; color: var(--ink); }
.queue .meta { display: block; color: var(--muted); font-size: .85rem; }
.queue .go { color: var(--role); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.btn-role { background: var(--role); }
.btn-role:hover { background: var(--role); filter: brightness(.92); }

/* ---- Giriş ekranı ---- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.login-art { background: var(--ink); color: #dfe5f0; padding: 48px clamp(28px, 5vw, 64px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-art::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.12); box-shadow: inset 0 0 0 40px rgba(255,255,255,.025), inset 0 0 0 120px rgba(158,27,50,.12); }
.login-art .brand { margin-bottom: auto; }
.login-art h1 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); max-width: 17ch; margin: 40px 0 14px; }
.login-art > p { color: #b8c3d6; max-width: 46ch; }
.org-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 460px; position: relative; z-index: 1; }
.org-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: .9rem; color: #fff; }
.org-chip i { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.org-chip svg { width: 17px; height: 17px; color: #fff; }
.login-art .foot { margin-top: 40px; font-size: .8rem; color: #8c99b0; position: relative; z-index: 1; }
.login-art .foot a { color: #b8c3d6; }
.login-form { display: grid; place-items: center; padding: 40px 24px; background: var(--paper); }
.login-form .panel { width: min(400px, 100%); padding: 32px; border-radius: 14px; }
.login-form h2 { font-size: 1.5rem; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; padding: 6px 8px; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { padding: 28px 22px 32px; } .login-art h1 { margin-top: 24px; } .org-chips { grid-template-columns: 1fr 1fr; } }

/* ---- KVKK ---- */
.legal h2 { margin-top: 1.6em; }
.legal p, .legal li { max-width: 74ch; line-height: 1.7; }
.legal table { margin: 12px 0 18px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button { background: #fff; border: 0; padding: 7px 14px; font: inherit; cursor: pointer; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px; background: #f5f7fb; border: 1px solid var(--line); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.consent label { font-weight: 400; margin: 0; color: var(--text); }
.verdict.anonimlestirildi { background: #eef1f6; border-color: var(--line); }
.verdict.anonimlestirildi h1, .verdict.anonimlestirildi svg { color: var(--muted); }
.pill.anonimlestirildi { background: #eef1f6; color: var(--muted); border-color: var(--line); }
