:root {
  --bg: #f4f6f9; --surface: #fff; --surface-2: #f8fafc; --border: #e2e8f0; --border-strong: #cbd5e1;
  --text: #0f172a; --muted: #64748b; --faint: #94a3b8;
  --brand: #0b5fa5; --brand-600: #0a4f8a; --brand-50: #e8f1fa; --brand-ink: #fff;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --danger: #b91c1c; --danger-bg: #fee2e2; --info-bg: #e0f2fe;
  --risk: #be123c; --risk-bg: #fff1f2;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.05); --shadow-lg: 0 10px 40px rgba(15,23,42,.18);
  --radius: 12px; --radius-sm: 8px; --sidebar: 252px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #111a2c; --surface-2: #162036; --border: #223049; --border-strong: #31415f;
    --text: #e6edf7; --muted: #93a4bf; --faint: #66789a; --brand: #4aa3f0; --brand-600: #6bb4f4; --brand-50: #12304d; --brand-ink: #04121f;
    --ok: #4ade80; --ok-bg: #0f3321; --warn: #fbbf24; --warn-bg: #3a2a08; --danger: #f87171; --danger-bg: #3b1414; --info-bg: #0c2d44;
    --risk: #fda4af; --risk-bg: #3b1220;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 10px 40px rgba(0,0,0,.6); color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75em; } a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .85rem; } .strong { font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; } .col { display: flex; flex-direction: column; gap: 14px; }
.gap-s { gap: 6px; } .gap-l { gap: 22px; } .mt { margin-top: 16px; } .mt-l { margin-top: 28px; } .mb { margin-bottom: 16px; }
.center { text-align: center; } .hide { display: none !important; } .nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; } .right { text-align: right; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: .12s; text-decoration: none !important; color: var(--text); min-height: 42px; }
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:focus-visible, .input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .btn.primary:hover { background: var(--brand-600); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.danger:hover { filter: brightness(.92); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 5px 10px; min-height: 34px; font-size: .88rem; } .btn.lg { padding: 14px 22px; min-height: 54px; font-size: 1.05rem; }
.btn.icon { padding: 0; width: 38px; min-height: 38px; } .btn.block { width: 100%; } .btn:disabled { opacity: .5; cursor: not-allowed; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.field { display: flex; flex-direction: column; gap: 6px; } .field > label, .label { font-weight: 600; font-size: .88rem; } .hint { font-size: .82rem; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; font-size: 16px; }
textarea.input { min-height: 96px; resize: vertical; } .input::placeholder { color: var(--faint); }
.grid { display: grid; gap: 16px; } .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 26px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked { background: var(--brand); } .switch input:checked::after { left: 19px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; } .card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; } .badge.brand { background: var(--brand-50); color: var(--brand); border-color: transparent; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-bg); font-size: .92rem; } .alert.warn { background: var(--warn-bg); color: var(--warn); } .alert.danger { background: var(--danger-bg); color: var(--danger); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } } .loading { display: grid; place-items: center; padding: 60px; }

.table-wrap { overflow-x: auto; } table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 9px 12px; font-size: .92rem; border-bottom: 1px solid var(--border); vertical-align: middle; } .table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; } .table tbody tr.click:hover td { background: var(--surface-2); }

.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100%; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; text-decoration: none !important; }
.nav-link:hover { background: var(--surface-2); color: var(--text); } .nav-link.active { background: var(--brand-50); color: var(--brand); }
.nav-sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 16px 12px 6px; font-weight: 700; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.content { padding: 22px; width: 100%; max-width: 1480px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; } .page-head p { margin: 4px 0 0; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.menu-btn { display: none; } .scrim { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; border-radius: 6px; cursor: pointer; text-align: left; } .menu button:hover { background: var(--surface-2); }
.staff-shell { min-height: 100%; display: flex; flex-direction: column; }
.staff-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.staff-main { width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 16px calc(80px + env(safe-area-inset-bottom)); }

.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; } .kpi .v { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; } .kpi .l { color: var(--muted); font-size: .88rem; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; } .bars .bar { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; } .bars .bar:hover { opacity: 1; } .bars .bar.zero { background: var(--border-strong); opacity: .6; }
.hbar { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; padding: 5px 0; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; } .hbar .fill { height: 100%; background: var(--brand); border-radius: 999px; } .hbar.risk .fill { background: #e11d48; }

.modal-back { position: fixed; inset: 0; background: rgba(2,6,23,.55); display: grid; place-items: center; padding: 16px; z-index: 100; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .18s; }
.modal.lg { max-width: 760px; } .modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-body { padding: 22px; overflow-y: auto; } .modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toasts { position: fixed; right: 16px; top: 70px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 10px; background: #0f172a; color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .2s; } .toast.ok { background: #166534; } .toast.err { background: #991b1b; }

.login-wrap { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 40%, #000), var(--brand) 58%, color-mix(in srgb, var(--brand) 78%, #fff)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-hero .brand { color: #fff; } .login-hero h1 { font-size: 2.3rem; margin: 0 0 14px; } .login-hero p { opacity: .85; font-size: 1.05rem; max-width: 460px; }
.login-pane { display: grid; place-items: center; padding: 32px; } .login-card { width: 100%; max-width: 380px; }
.hero-points { display: grid; gap: 14px; } .hero-points div { display: flex; gap: 12px; align-items: center; opacity: .92; }
.hero-points .dot { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }

.form-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: .15s; text-decoration: none !important; color: var(--text); }
.form-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; } .progress > div { height: 100%; background: var(--brand); transition: width .25s; border-radius: 999px; }
.wizard-card { padding: 26px; } .q-num { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.q-text { font-size: 1.3rem; font-weight: 650; line-height: 1.35; margin: 8px 0 22px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .choices.stack { grid-template-columns: 1fr; }
.choice { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; border: 2px solid var(--border-strong); border-radius: 14px; background: var(--surface); font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: .12s; text-align: center; min-height: 66px; position: relative; user-select: none; }
.choices.stack .choice { justify-content: flex-start; text-align: left; font-weight: 600; padding: 14px 16px; min-height: 54px; }
.choice:hover { border-color: var(--brand); } .choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.sel-yes { border-color: #e11d48; background: var(--risk-bg); color: var(--risk); } .choice.sel-no { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); } .choice.sel { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); padding: 14px 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); margin-top: 18px; display: flex; gap: 10px; justify-content: space-between; }
.approval-box { border: 2px dashed var(--danger); border-radius: 12px; padding: 16px; margin-top: 18px; background: var(--danger-bg); display: flex; flex-direction: column; gap: 10px; }
.approval-box.done { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); flex-direction: row; align-items: center; }
.otp { letter-spacing: .5em; text-align: center; font-size: 1.4rem; font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo-slot { aspect-ratio: 1; border: 2px dashed var(--border-strong); border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--surface-2); cursor: pointer; color: var(--muted); font-size: .8rem; text-align: center; padding: 0; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .rm { position: absolute; top: 4px; right: 4px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sig-box { border: 2px solid var(--border-strong); border-radius: 12px; background: #fff; touch-action: none; width: 100%; height: 200px; display: block; }
.sub-item { padding: 14px 0; border-bottom: 1px solid var(--border); } .sub-item:last-child { border-bottom: 0; } .sub-item .t { font-weight: 650; } .sub-item .d { color: var(--muted); font-size: .92rem; margin: 4px 0 10px; }
.mini-choices { display: inline-flex; gap: 8px; } .mini-choices .choice { padding: 6px 20px; min-height: 42px; font-size: .95rem; border-radius: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .85rem; font-weight: 600; } .chip.done { background: var(--ok-bg); color: var(--ok); } .chip.todo { background: var(--warn-bg); color: var(--warn); }

.q-row { display: grid; grid-template-columns: auto 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.q-row:last-child { border-bottom: 0; } .q-row.dragging { opacity: .4; } .q-row.over { box-shadow: inset 0 3px 0 var(--brand); } .q-row.inactive { opacity: .55; }
.q-row .num { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--muted); }
.grip { cursor: grab; color: var(--faint); display: grid; place-items: center; padding: 4px; }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px; align-items: end; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.tab { padding: 7px 14px; border: 0; background: none; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; } .tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.doc { padding: 28px; } .doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--text); padding-bottom: 14px; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0; } .kv dt { color: var(--muted); font-weight: 600; font-size: .88rem; } .kv dd { margin: 0; }
.ans-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.ans-row .n { color: var(--faint); font-weight: 700; } .ans-note { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.sig-img { max-width: 300px; max-height: 140px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; } .thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 300; cursor: zoom-out; } .lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.sf-block { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; } .sf-block h4 { padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); } .sf-block .ans-row { padding: 10px 14px; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; } .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 272px; transform: translateX(-100%); transition: .2s; box-shadow: var(--shadow-lg); } .sidebar.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(2,6,23,.5); z-index: 50; }
  .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; } .filters { grid-template-columns: 1fr 1fr; } .filters .wide { grid-column: 1 / -1; }
  .login-wrap { grid-template-columns: 1fr; } .login-hero { display: none; } .content { padding: 16px; } .topbar { padding: 10px 14px; }
}
@media (max-width: 640px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } .wizard-card { padding: 20px; } .q-text { font-size: 1.15rem; }
  .q-row { grid-template-columns: 34px 1fr auto; } .q-row .grip { display: none; } .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 8px; } .hide-sm { display: none; } .doc { padding: 18px; }
}
@media print {
  body { background: #fff; color: #000; } .sidebar, .topbar, .staff-top, .no-print, .toasts, .scrim { display: none !important; }
  .shell { display: block; } .content, .staff-main { padding: 0; max-width: none; } .card { box-shadow: none; border: 0; } .doc { padding: 0; } .ans-row, .sf-block { break-inside: avoid; }
}

/* ---- Çerez bildirimi, KVKK, beyan ---- */
.ph { color: #dc2626; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand, #0b5fa5); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--surface); color: var(--text, #0f172a); border-top: 1px solid var(--border, #e2e8f0); box-shadow: 0 -8px 30px rgba(15, 23, 42, .15); max-height: 90vh; overflow: auto; }
.consent-in { display: flex; gap: 28px; align-items: flex-start; padding: 20px max(16px, calc((100% - 1200px) / 2)); }
.consent-text { flex: 1; min-width: 0; } .consent-text h3 { margin: 0 0 8px; font-size: 1.05rem; } .consent-text p { margin: 0 0 14px; line-height: 1.55; font-size: .94rem; }
.consent-toggles { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.consent-more { margin-top: 14px; font-size: .88rem; } .consent-more p { margin: 0 0 6px; }
.consent-actions { display: flex; flex-direction: column; gap: 10px; width: 240px; flex: none; } .consent-actions .btn { justify-content: center; }
.tg { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; } .tg.locked { cursor: default; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #475569; transition: background .15s; flex: none; }
.tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.tg input:checked + i { background: var(--brand, #0b5fa5); } .tg input:checked + i::after { transform: translateX(20px); }
.tg input:focus-visible + i { outline: 2px solid var(--brand, #0b5fa5); outline-offset: 2px; } .tg.locked i { opacity: .7; }
@media (max-width: 760px) { .consent-in { flex-direction: column; gap: 14px; padding: 16px; } .consent-actions { width: 100%; } }
.kvkk h4 { margin: 18px 0 6px; } .kvkk p, .kvkk li { line-height: 1.6; font-size: .93rem; } .kvkk ul { padding-left: 20px; margin: 6px 0 10px; }
.decl-box { padding: 14px 16px; border: 1px solid var(--border, #e2e8f0); border-radius: var(--radius-sm, 10px); background: var(--info-bg, #eff6ff); display: flex; flex-direction: column; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; background: #fef3c7; color: #92400e; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chip-link:hover { text-decoration: underline; filter: brightness(.97); }
.sf-block.flash { animation: sfflash 1.8s ease; } @keyframes sfflash { 0%,60% { box-shadow: 0 0 0 3px #f59e0b; } 100% { box-shadow: 0 0 0 0 transparent; } }

.brand-logo { max-height: 38px; max-width: 170px; width: auto; object-fit: contain; display: block; } .brand-logo.on-dark { background: #fff; padding: 7px 12px; border-radius: 10px; max-height: 52px; max-width: 220px; }
.sidebar .brand-logo { max-height: 42px; max-width: 190px; } .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-head .brand-logo { max-height: 54px; max-width: 220px; margin-bottom: 6px; }
.logo-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .logo-prev { min-width: 150px; height: 80px; border: 1px dashed var(--border-strong); border-radius: 12px; display: grid; place-items: center; padding: 8px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0/16px 16px; } .logo-prev img { max-width: 200px; max-height: 64px; }
.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .color-row input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; }
.tenant-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); } .tenant-card:last-child { border-bottom: 0; }
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: .85rem; } .stat-row b { color: var(--text); }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; } .gate .card { max-width: 420px; width: 100%; padding: 28px; }
.lang-sel { width: auto; padding: 4px 28px 4px 10px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--brand); color: #fff; font-weight: 600; }
.filterbar { gap: 10px; }
.filterbar select.input { width: auto; min-width: 130px; }
.searchbox { position: relative; min-width: 220px; }
.searchbox .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.searchbox .input { padding-left: 38px; width: 100%; }
mark.hit { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }

@media (min-width: 900px) { .input { font-size: 14px; min-height: 38px; padding: 7px 11px; } .btn { font-size: .92rem; } }
.table td .badge { font-size: .72rem; padding: 1px 8px; white-space: normal; }

.kpi { position: relative; }
.kpi .v { font-variant-numeric: tabular-nums; }
.kpi.flash { animation: kpiflash 1.6s ease-out; }
@keyframes kpiflash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); background: var(--brand-50); } 100% { box-shadow: 0 0 0 14px transparent; background: var(--surface); } }
.kpi .plus { position: absolute; right: 18px; bottom: 14px; font-weight: 800; font-size: 1.05rem; color: #16a34a; animation: kpiplus 2.2s ease-out forwards; pointer-events: none; }
@keyframes kpiplus { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: translateY(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #16a34a; background: #dcfce7; border-radius: 999px; padding: 3px 10px 3px 8px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .kpi.flash, .kpi .plus, .live-dot i { animation: none; } }
