/* Otomobin Yönetim: yerleşim, tablo, iletişim kutusu ve sayfa bileşenleri. Renkler yalnız ui-kit/tokens.css belirteçlerindendir (açık/koyu tema). */
body { background-attachment: fixed; }
:focus-visible { outline: 3px solid var(--digital); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
.wrap { flex-wrap: wrap; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: calc(12.5px * var(--fs, 1)); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.neg { color: var(--bad); } .pos { color: var(--ok); }
.btn.warn { background: var(--warn-soft); color: var(--warn); }
.h3 { font-size: calc(16px * var(--fs, 1)); text-transform: none; }

/* kabuk */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.colr { min-width: 0; display: flex; flex-direction: column; }
.nav { background: var(--surface); border-right: 2px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20; }
.nav .brand { height: 26px; align-self: flex-start; margin-bottom: 4px; }
.nav button.item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 12px; font-weight: 700; color: var(--mut); cursor: pointer; margin-bottom: 4px; }
.nav button.item svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav button.item.on { background: var(--accent-soft); color: var(--blue); }
:root[data-theme="dark"] .nav button.item.on { color: var(--fg); }
.nav .count { margin-left: auto; }
.top { display: flex; align-items: center; gap: 10px; padding: 10px 28px; border-bottom: 2px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 15; flex-wrap: wrap; }
.top .who { display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.top .iconbtn svg, .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.top .menu { display: none; }
.sess { font-size: calc(13px * var(--fs, 1)); color: var(--mut); white-space: nowrap; }
.seg { display: inline-flex; border: 2px solid var(--edge); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 11px; font-weight: 800; font-size: calc(13px * var(--fs, 1)); cursor: pointer; }
.seg button.on { background: var(--blue); color: #fff; }
#tl { display: flex; gap: 8px; align-items: center; }
#lg-tools { display: flex; gap: 8px; align-items: center; }
main { padding: 24px 28px 48px; min-width: 0; outline: none; }
.ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h1 { font-size: calc(30px * var(--fs, 1)); }
.live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 6px; animation: ping2 1.4s infinite; }
@keyframes ping2 { 0% { box-shadow: 0 0 0 0 rgba(26, 143, 76, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(26, 143, 76, 0); } }
.alarm { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: #b3201b; color: #fff; font-weight: 700; animation: flash 1.2s ease-in-out infinite; flex-wrap: wrap; }
.alarm svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; flex: none; }
.alarm .btn { margin-left: auto; background: #fff; color: #b3201b; }
@keyframes flash { 50% { filter: brightness(0.82); } }

/* ızgaralar ve kutular */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.g2eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tile { padding: 12px 14px; }
.tile .v { font-size: calc(28px * var(--fs, 1)); }
.tile.warn { border-color: var(--warn); } .tile.bad { border-color: var(--bad); }
.stat.bad { border-color: var(--bad); }
.spark { width: 100%; height: 36px; display: block; margin-top: 4px; overflow: visible; }
.sp-line { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.sp-area { fill: var(--accent-soft); opacity: 0.8; }
.sp-dot { fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mapbox { position: relative; height: 380px; border-radius: var(--r-l); overflow: hidden; border: 2px solid var(--edge); }
.feed { max-height: 380px; overflow: auto; }
.feed div { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; font-size: calc(14px * var(--fs, 1)); }
.feed time { color: var(--mut); font-variant-numeric: tabular-nums; flex: none; }
.feed .au span { color: var(--blue); } .feed span svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; margin-right: 4px; vertical-align: -2px; }
.meter { display: inline-block; width: 90px; max-width: 100%; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--blue); }
.empty { text-align: center; padding: 28px 10px; color: var(--mut); }
.empty img { max-width: 150px; display: block; margin: 0 auto 8px; }
.empty.bad { color: var(--bad); }
.note { margin-top: 10px; }
.ro, .alertc { margin-bottom: 12px; }
.alertc { background: var(--bad-soft); color: var(--bad); font-weight: 700; border: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; margin: 0; }
.kv dt { font-size: calc(11px * var(--fs, 1)); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); font-weight: 700; }
.kv dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.quote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--digital); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.checks li::before { content: "✓ "; font-weight: 800; } .checks li.ok { color: var(--ok); } .checks li.bad { color: var(--bad); } .checks li.bad::before { content: "✕ "; }
.chartbox { margin: 14px 0; max-width: 520px; } .bars { width: 100%; height: auto; display: block; }
.bar { fill: var(--blue); } .bar.bad { fill: var(--bad); } .bar-l { fill: var(--mut); font-size: calc(11px * var(--fs, 1)); font-weight: 700; }

/* sekmeler */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; }
.tabb { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.tabb.on { border-color: var(--edge); background: var(--accent-soft); }
.tabb .count { background: var(--bad); color: #fff; padding: 1px 7px; }
.tabpanel { padding: 12px 14px; }

/* tablo */
.tb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sbox { position: relative; flex: 1 1 200px; max-width: 320px; }
.sbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--mut); fill: none; stroke-width: 2.4; pointer-events: none; }
.input.sm { min-height: 40px; font-size: calc(14px * var(--fs, 1)); border-radius: 12px; }
.sbox .input { padding-left: 34px; }
.fsel { width: auto; max-width: 100%; padding: 0 10px; }
.ta { min-height: 76px; padding: 10px 14px; resize: vertical; line-height: 1.4; }
.tw { overflow-x: auto; }
.tcount { margin: 4px 0; }
.thbtn { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; font-weight: 700; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.table td.num, .table th.num { text-align: right; }
.table td.ract { text-align: right; white-space: nowrap; }
.table tr.p0 { background: var(--bad-soft); }
.table td code { white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 0 2px; }
.skeleton i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--line), var(--surface-2), var(--line)); background-size: 200% 100%; margin: 14px 0; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.hash { font-size: calc(12px * var(--fs, 1)); line-height: 1.5; white-space: nowrap; }

/* iletişim kutusu ve bildirim */
dialog.dlg { border: 3px solid var(--edge); border-radius: 22px; padding: 0; background: var(--surface); color: var(--fg); width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); box-shadow: var(--shadow-soft), 0 8px 0 var(--edge); }
dialog.dlg.wide { width: min(780px, calc(100vw - 20px)); }
dialog.dlg[open], dialog.dlg form { display: flex; flex-direction: column; }
dialog.dlg form { min-height: 0; flex: 1; }
dialog.dlg::backdrop { background: rgba(7, 59, 99, 0.55); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.dlg-h h2 { font-size: calc(20px * var(--fs, 1)); text-transform: none; }
.dlg-b { padding: 6px 18px 12px; overflow-y: auto; flex: 1; min-height: 0; }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 18px 16px; flex-wrap: wrap; border-top: 2px solid var(--line); }
.ferr { color: var(--bad); font-size: calc(13px * var(--fs, 1)); font-weight: 700; } .hint { margin-top: 2px; color: var(--mut); text-transform: none; letter-spacing: 0; }
#toasts { inset: auto 0 16px 0; margin: 0 auto; padding: 0; border: 0; background: transparent; overflow: visible; width: min(440px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; color: inherit; }
#toasts:not(:popover-open) { position: fixed; z-index: 200; }
.toast2 { padding: 12px 16px; border-radius: var(--r-m); background: #17212b; color: #fff; font-weight: 600; animation: rise 0.25s var(--ease); box-shadow: var(--shadow-soft); pointer-events: auto; border-left: 6px solid var(--digital); }
.toast2.ok { border-left-color: var(--ok); } .toast2.bad { border-left-color: var(--bad); }

/* giriş */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 36px; align-items: center; padding: 24px; max-width: 1240px; margin: 0 auto; }
.login-card { padding: 22px; }
.login-card .brand { height: 28px; }
.login-card h1 { margin-top: 14px; font-size: calc(32px * var(--fs, 1)); }
.roles { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.roles legend { margin-bottom: 8px; padding: 0; }
.rolecard { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.rolecard.on { border-color: var(--edge); background: var(--accent-soft); }
.rolecard:focus-within { outline: 3px solid var(--digital); outline-offset: 2px; }
.rolecard input { margin-top: 4px; accent-color: var(--blue); }
.rc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .rc-t code { align-self: flex-start; font-size: calc(11px * var(--fs, 1)); }
.keyinfo { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.keyinfo .ki svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.login-art { text-align: center; padding: 20px; } .login-art img { width: min(320px, 70%); } .login-art h2 { margin-top: 14px; } .login-art p { color: var(--mut); margin-top: 8px; }

/* dört göz kuyruğu */
.props { display: grid; gap: 10px; }
.prop { border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; background: var(--surface); }
.prop.pending { border-color: var(--warn); } .prop.approved { border-color: var(--ok); } .prop.rejected { border-color: var(--bad); }
.pact { gap: 8px; margin-top: 4px; }

/* sistem */
.kills { list-style: none; margin: 0; padding: 0; }
.kill { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kill:last-child { border-bottom: 0; } .kill.on b { color: var(--bad); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }
input[type=range] { width: 100%; accent-color: var(--blue); }

/* destek, başvuru, yaptırım */
.thread { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; padding: 4px 2px; }
.msg { padding: 8px 12px; border-radius: 14px; background: var(--surface-2); max-width: 88%; }
.msg.agent { background: var(--accent-soft); justify-self: end; } .msg.system { justify-self: center; font-size: calc(13px * var(--fs, 1)); color: var(--mut); background: transparent; border: 1px dashed var(--line); }
.doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.doclist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; }
.doclist li span { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; } .doclist svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 2.2; }
.docview { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); text-align: center; } .docart { width: min(340px, 100%); height: auto; }
.slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; flex-wrap: wrap; }

/* denetim */
.vbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; padding: 12px 16px; }
.vbar .badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.chain { list-style: none; display: flex; gap: 0; padding: 4px 2px 10px; margin: 0; overflow-x: auto; }
.blk { flex: none; display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border: 2px solid var(--edge); border-radius: 12px; background: var(--surface); position: relative; margin-right: 22px; }
.blk:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 22px; height: 2px; background: var(--edge); }
.blk.bad { background: var(--bad-soft); border-color: var(--bad); }
.demo-tools { margin-top: 14px; } .demo-tools summary { cursor: pointer; font-weight: 700; }

/* mobil */
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; height: auto; transform: translateX(-105%); transition: transform 0.2s var(--ease); box-shadow: var(--shadow-soft); }
  .nav.open { transform: none; }
  .top { padding: 8px 14px; } .top .menu { display: grid; }
  main { padding: 16px 14px 40px; } .alarm { padding: 10px 14px; }
  .g2, .g2eq { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: minmax(0, 1fr); padding: 14px; } .login-art { display: none; }
  .mapbox { height: 300px; }
}
@media (max-width: 720px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .top .who div .tiny, .top .lbl { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile .v { font-size: calc(24px * var(--fs, 1)); }
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border: 2px solid var(--line); border-radius: 14px; margin: 8px 0; padding: 6px 10px; }
  .table.stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 5px 2px; text-align: right; min-width: 0; }
  .table.stack td::before { content: attr(data-label); font-weight: 700; color: var(--mut); font-size: calc(11px * var(--fs, 1)); text-transform: uppercase; text-align: left; flex: none; }
  .table.stack td[data-label=""] { justify-content: flex-end; } .table.stack td[data-label=""]::before { content: none; }
  .hash { white-space: normal; text-align: right; }
  .dlg-h, .dlg-b, .dlg-f { padding-left: 14px; padding-right: 14px; }
  .tabpanel { padding: 8px; } .msg { max-width: 100%; }
}

/* ---- geliştirmeler: yardım satırı, arama, ana sayfa kartları, harita görünümü, etki satırı ---- */
.helpline { margin: -8px 0 16px; font-size: calc(14px * var(--fs, 1)); color: var(--mut); }
.helpline summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--mut); }
.helpline p { margin: 0 0 4px; max-width: 70ch; color: var(--fg); }
.gsearch { display: flex; align-items: center; gap: 6px; flex: 1 1 220px; max-width: 420px; min-width: 0; }
.gsearch .sbox { max-width: none; min-width: 0; }
.gsearch .input, .gsearch .btn { min-height: 44px; }
a.homecard { display: block; text-decoration: none; color: inherit; min-height: 44px; }
a.homecard:hover { border-color: var(--blue); }
.sr-list { list-style: none; margin: 0; padding: 0; }
.sr-row + .sr-row { border-top: 1px solid var(--line); }
.sr-link { display: flex; align-items: center; gap: 10px; padding: 10px 4px; min-height: 44px; text-decoration: none; color: inherit; }
.sr-link:hover { background: var(--accent-soft); }
.fx { margin-top: 4px; }
.fx b { font-weight: 800; }
.viewseg { margin-bottom: 12px; }
.mapbox.big { height: 62vh; min-height: 360px; }
.tplrow .tx { max-width: 60ch; white-space: normal; }
.docreq { border-left: 4px solid var(--warn); padding: 6px 10px; margin: 10px 0; background: var(--bad-soft); color: var(--fg); border-radius: 8px; }
@media (max-width: 720px) { .gsearch { flex-basis: 100%; max-width: none; order: 5; } .mapbox.big { height: 55vh; } }
.nav button.item.on { color: var(--deep); }
.avatar { background: var(--blue); color: #fff; }
.badge.ok { color: #0e6a36; }
:root[data-theme="dark"] .badge.ok { color: var(--ok); }
:root[data-theme="dark"] .feed .au span { color: var(--digital); }
:root:not([data-theme="dark"]) .badge.bad { color: #a3221d; }
:root:not([data-theme="dark"]) .badge.warn { color: #7a4f06; }

/* Komut paleti, bugün ne değişti, rol önizleme */
dialog.dlg.pal { width: min(620px, calc(100vw - 20px)); margin-top: 10vh; }
.pal-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.pal-h .input { flex: 1; min-width: 0; min-height: 44px; }
.pal-i svg { width: 20px; height: 20px; stroke: var(--mut); fill: none; stroke-width: 2.2; }
.pal-list { list-style: none; margin: 0; padding: 4px 10px; overflow-y: auto; max-height: min(50vh, 380px); }
.pal-o { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.pal-o[aria-selected="true"] { background: var(--accent-soft); outline: 2px solid var(--digital); outline-offset: -2px; }
.pal-none { padding: 14px 10px; }
.pal-f { padding: 6px 16px 14px; margin: 0; }
.feed { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.pv-menu, .pv-caps { margin: 0; padding-left: 20px; display: grid; gap: 3px; font-size: calc(14px * var(--fs, 1)); }
.pv-no summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.pv-matrix th, .pv-matrix td { padding: 6px 8px; font-size: calc(13px * var(--fs, 1)); text-align: center; }
.pv-matrix th[scope="row"] { text-align: left; min-width: 200px; }
.pv-matrix .pv-cur { background: var(--accent-soft); }
#palbtn, .pal-h .iconbtn, dialog.dlg [data-x] { width: 44px; height: 44px; }
dialog.dlg:has(#pv-role) #pv-role, dialog.dlg:has(#pv-role) .dlg-f .btn { min-height: 44px; }
#home-pv { min-height: 44px; }

/* Sistem sağlığı kartı (ana sayfa) */
#home-health { margin-top: 16px; }
.hl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hl-head h2 { margin: 0; }
.hl-list, .hl-kills { list-style: none; margin: 8px 0; padding: 0; }
.hl-row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 6px 0; min-height: 44px; border-top: 1px solid var(--line); }
.hl-lab { flex: 0 0 150px; font-weight: 700; font-size: calc(14px * var(--fs, 1)); }
.hl-kills { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.hl-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit; text-decoration: none; }
.hl-link:hover { text-decoration: underline; }
.hl-st { display: inline-flex; align-items: center; gap: 6px; font-size: calc(14px * var(--fs, 1)); }
.hl-st svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.4; }
.hl-st.ok svg { color: var(--ok); } .hl-st.warn svg { color: var(--warn); }
.hl-st.act { color: var(--bad); font-weight: 700; }
:root:not([data-theme="dark"]) .hl-st.act { color: #a3221d; }
:root:not([data-theme="dark"]) .hl-st.ok svg { color: #0e6a36; }
:root:not([data-theme="dark"]) .hl-st.warn svg { color: #7a4f06; }
.hl-inl, .hl-sim { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hl-inl .btn { min-height: 44px; }
.hl-n b { font-size: calc(18px * var(--fs, 1)); }
@media (max-width: 720px) { .hl-lab { flex-basis: 100%; } }

/* ---- Kurumsal cila: lacivert yan menü, aksan çubuklu etkin öğe, gradyan başlık şeridi, renk kodlu KPI kartları, okunaklı tablolar ---- */
.shell { background: linear-gradient(180deg, transparent, rgba(8, 120, 184, 0.04)); }
.nav { background: linear-gradient(180deg, #0a2f50 0%, #072741 100%); border-right: 0; box-shadow: 4px 0 24px -12px rgba(7, 39, 65, 0.6); padding: 20px 14px; }
.nav .brand { height: 30px; padding: 6px 10px; border-radius: 12px; background: #fff; box-sizing: content-box; margin-bottom: 10px; }
.nav > .tiny { color: #8fb5d3; letter-spacing: 0.12em; padding-left: 4px; }
.nav button.item { position: relative; color: #b9d3e6; padding: 11px 14px; border-radius: 12px; transition: background 0.18s, color 0.18s, transform 0.15s var(--ease); }
.nav button.item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; transform: translateX(2px); }
.nav button.item.on { background: linear-gradient(90deg, rgba(45, 156, 219, 0.35), rgba(45, 156, 219, 0.08)); color: #fff; box-shadow: inset 0 0 0 1px rgba(143, 208, 245, 0.25); }
.nav button.item.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 5px; border-radius: 0 6px 6px 0; background: #5ec2ff; box-shadow: 0 0 12px #5ec2ff; }
.nav button.item.on svg { stroke: #8fd0f5; }
:root[data-theme="light"] .nav button.item.on, :root[data-theme="dark"] .nav button.item.on { color: #fff; }
.nav .badge { background: #ffd54a; color: #3b2f00; border-color: transparent; }
.nav .btn, .nav .linkbtn { color: #cfe6f5; }
.top { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(7, 59, 99, 0.6); position: sticky; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, #0878b8, #2d9cdb 50%, #5ec2ff); opacity: 0.9; }
.top .who .avatar, .top .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--blue); }
.sess { padding: 4px 12px; border-radius: 99px; background: var(--surface-2); border: 1.5px solid var(--line); font-variant-numeric: tabular-nums; }
.ph { position: relative; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); }
.ph::after { content: ""; position: absolute; left: 0; bottom: -1.5px; width: 72px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--digital)); }
.ph h1 { letter-spacing: 0.01em; }
.tiles { gap: 14px; }
.tile { position: relative; overflow: hidden; padding: 16px 18px 14px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 var(--line); transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s; text-decoration: none; color: inherit; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--blue), var(--digital)); }
.tile::after { content: ""; position: absolute; right: -22px; top: -22px; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 156, 219, 0.18), transparent 70%); }
a.tile:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 7px 0 var(--line), 0 16px 26px -18px rgba(7, 59, 99, 0.6); }
.tile .tiny { letter-spacing: 0.12em; }
.tile .v { font-size: calc(36px * var(--fs, 1)); font-weight: 800; line-height: 1.1; margin: 4px 0 2px; color: var(--fg); }
.tile .tiny.mut { font-weight: 800; color: var(--blue); }
.tile.warn { border-color: #d98b0f; background: linear-gradient(135deg, var(--surface), #fff6e2); }
.tile.warn::before { background: linear-gradient(180deg, #f2a900, #d98b0f); } .tile.warn::after { background: radial-gradient(circle, rgba(242, 169, 0, 0.22), transparent 70%); }
.tile.bad { border-color: var(--bad); background: linear-gradient(135deg, var(--surface), #fdeceb); }
.tile.bad::before { background: linear-gradient(180deg, #e5483f, #b3201b); } .tile.bad::after { background: radial-gradient(circle, rgba(229, 72, 63, 0.2), transparent 70%); }
.card { border-radius: 20px; }
.table { border-collapse: separate; border-spacing: 0; }
.table th { position: sticky; top: 0; background: var(--surface-2); padding: 11px 14px; border-bottom: 2px solid var(--line); color: var(--deep); font-weight: 800; }
.table th:first-child { border-top-left-radius: 12px; } .table th:last-child { border-top-right-radius: 12px; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table tbody tr:hover { background: var(--accent-soft); }
.table td { padding: 12px 14px; }
.badge { font-weight: 800; letter-spacing: 0.02em; }
.btn.primary { background: linear-gradient(135deg, #0a86cc, #0668a8); }
.seg button.on { background: linear-gradient(135deg, #0a86cc, #0668a8); }
.live { box-shadow: 0 0 0 0 rgba(26, 143, 76, 0.5); }
#home-health { border-radius: 22px; box-shadow: 0 3px 0 var(--line); }
:root[data-theme="dark"] .nav { background: linear-gradient(180deg, #06182a, #040f1b); }
:root[data-theme="dark"] .tile.warn { background: linear-gradient(135deg, var(--surface), #2c2208); }
:root[data-theme="dark"] .tile.bad { background: linear-gradient(135deg, var(--surface), #2e1412); }
:root[data-theme="dark"] .tile .tiny.mut { color: var(--digital); }
@media (max-width: 980px) { .nav button.item.on::before { left: -14px; } }
@media (prefers-reduced-motion: reduce) { .tile, .nav button.item { transition: none; } a.tile:hover, .nav button.item:hover { transform: none; } }

/* ---- Giriş ekranı: rol karoları, lacivert tanıtım paneli ---- */
.login { max-width: 1320px; gap: 28px; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); }
.login-card { padding: 26px; border-radius: 28px; box-shadow: 0 6px 0 var(--edge), 0 30px 50px -30px rgba(7, 59, 99, 0.55); }
.login-card h1 { letter-spacing: 0.01em; }
.roles { gap: 10px; }
.rolecard { position: relative; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; border: 2px solid var(--line); box-shadow: 0 2px 0 var(--line); transition: transform 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.rolecard:hover { border-color: var(--blue); transform: translateY(-2px); }
.rolecard input { position: absolute; opacity: 0; pointer-events: none; }
.rolecard .rc-ico { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--deep); transition: background 0.2s, color 0.2s; }
.rolecard .rc-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rolecard .rc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rolecard code { align-self: flex-start; font-size: calc(10.5px * var(--fs, 1)); letter-spacing: 0.06em; color: var(--blue); background: var(--surface-2); }
.rolecard.on { border-color: var(--edge); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 90%); box-shadow: 0 3px 0 var(--edge); }
.rolecard.on .rc-ico { background: linear-gradient(135deg, #0a86cc, #073b63); color: #fff; }
.rolecard.on::after { content: "\2713"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.keyinfo { border-radius: 18px; border: 1.5px dashed var(--line); background: var(--surface-2); }
.login-art { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 32px; border-radius: 32px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(90% 70% at 80% 0%, rgba(94, 194, 255, 0.35), transparent 60%), linear-gradient(160deg, #0a2f50, #06182a); box-shadow: 0 6px 0 var(--edge); }
.login-art::before, .login-art::after { content: ""; position: absolute; border-radius: 50%; border: 28px solid rgba(255, 255, 255, 0.05); }
.login-art::before { width: 320px; height: 320px; left: -110px; bottom: -120px; } .login-art::after { width: 220px; height: 220px; right: -70px; top: -70px; }
.login-art img { position: relative; width: min(300px, 70%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); animation: decofloat 4s ease-in-out infinite; }
.login-art h2 { position: relative; color: #fff; font-size: calc(24px * var(--fs, 1)); max-width: 460px; }
.login-art p { position: relative; color: #b9d3e6; max-width: 420px; }
@keyframes decofloat { 50% { transform: translateY(-8px); } }

/* ---- Tüm sayfalar: iletişim kutusu, bekleyen kayıtlar, kill-switch, listeler, sohbet, zincir ---- */
dialog.dlg { border-radius: 26px; box-shadow: 0 6px 0 var(--edge), 0 40px 80px -20px rgba(7, 39, 65, 0.6); }
.dlg-h { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1.5px solid var(--line); padding-bottom: 12px; }
.dlg-f { background: var(--surface-2); }
.prop { position: relative; border-radius: 20px; padding: 14px 16px 14px 20px; box-shadow: 0 2px 0 var(--line); overflow: hidden; }
.prop::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--line); }
.prop.pending::before { background: linear-gradient(180deg, #f2a900, #d98b0f); } .prop.approved::before { background: linear-gradient(180deg, #2ecc71, #1a8f4c); } .prop.rejected::before { background: linear-gradient(180deg, #e5483f, #b3201b); }
.kill { padding: 14px 6px; border-radius: 14px; transition: background 0.15s; } .kill:hover { background: var(--surface-2); }
.kill.on { background: linear-gradient(90deg, var(--bad-soft), transparent 70%); }
.slist li, .doclist li { border-radius: 16px; box-shadow: 0 2px 0 var(--line); background: var(--surface); transition: border-color 0.15s, transform 0.15s var(--ease); }
.slist li:hover, .doclist li:hover { border-color: var(--blue); transform: translateX(2px); }
.msg { border-radius: 18px 18px 18px 6px; } .msg.agent { border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, #0a86cc, #0668a8); color: #fff; }
.chain .blk { border-radius: 14px; box-shadow: 0 2px 0 var(--edge); }
.vbar { border-radius: 20px; border-left: 6px solid var(--ok); }
.hl-row { padding: 8px 10px; border-radius: 12px; transition: background 0.12s; } .hl-row:hover { background: var(--surface-2); }
.feed { border-radius: 16px; scrollbar-width: thin; }
.input { border-radius: 14px; transition: border-color 0.15s, box-shadow 0.15s; } .input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 120, 184, 0.18); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface-2); border: 1.5px solid var(--line); }
.tabs button, .tabs [role=tab] { border: 0; border-radius: 99px; padding: 8px 16px; font-weight: 700; background: transparent; cursor: pointer; }
.tabs [aria-selected=true], .tabs .on { background: linear-gradient(135deg, #0a86cc, #0668a8); color: #fff; box-shadow: 0 2px 0 var(--edge); }
.tabpanel, .card.tabpanel { border-radius: 22px; }
.mapbox { border-radius: 24px; box-shadow: 0 4px 0 var(--edge); }
.toast2 { border-radius: 16px; border-left-width: 6px; }
:root[data-theme="dark"] .rolecard .rc-ico { color: var(--digital); }
@media (prefers-reduced-motion: reduce) { .login-art img { animation: none; } .rolecard, .slist li, .doclist li { transition: none; } }
/* Giriş: dar ekranda tek sütun, süs paneli yok (yukarıdaki sonradan gelen kurallar 960px kuralını eziyordu). */
@media (max-width: 960px) { .login { grid-template-columns: minmax(0, 1fr); } .login-art { display: none; } }
:root[data-theme="dark"] .table th { color: var(--fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .table th { color: var(--fg); } }
.tabs { max-width: 100%; overflow-x: auto; }
[hidden] { display: none !important; }

.quickopen { margin: 12px 0; }
.qo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qo-btn { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; text-align: left; }
.qo-btn .rc-ico { width: 24px; height: 24px; flex: none; }
@media (max-width: 960px) { .qo-grid { grid-template-columns: minmax(0, 1fr); } }

/* Başvuru: araç fotoğrafları (altı yuva) ve açılan belge dosyası */
.photogrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.photogrid li { display: grid; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); justify-items: start; }
.photogrid img { width: 100%; height: 76px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.photogrid .ph-none { width: 100%; min-height: 76px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); text-align: center; }
.photogrid li.miss { border-style: dashed; }
.docfile { max-width: min(340px, 100%); height: auto; border-radius: 12px; border: 2px solid var(--line); }
.demo-tag { margin-left: 6px; }
/* Koyu temada kırmızı düğme: açık tonlu --bad zemin üstünde koyu yazı (WCAG AA) */
:root[data-theme="dark"] .btn.bad { color: #17212B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.bad { color: #17212B; } }
