/* TeamDesk V3 · ortak görünüm (app.css) — prototiplerden (scratchpad/proto/shared.css) alındı.
   TeamDesk V3 prototipleri · ortak tasarım dili (shared.css)
   Anıt ailesi: Anıt Lisans Portalı (app.css) iskeleti, petrol yerine TeamDesk mavisi.
   Yerleşim: prototip şeridi > katman üst barı > [gruplu sol menü | içerik (en çok 1180px)] > alt bilgi.
   Kural: bileşenler YALNIZ jeton kullanır; ham renk yalnız jeton bloklarındadır.
   Kırılımlar: 1080 / 900 / 640 / 480. Sayfalar <html data-theme="light"> ile açık başlar.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Aile sabitleri */
  --navy: #0B1437; --navy-2: #102445; --navy-bar: #0B1437;
  --on-navy: #FFFFFF; --on-navy-2: #C9D3EA; --on-navy-line: rgba(255, 255, 255, .28);
  --on-navy-fill: rgba(255, 255, 255, .10); --on-navy-hover: rgba(255, 255, 255, .16);
  /* TeamDesk marka katmanı (#00A0E3'ten AA güvenli türetildi) */
  --brand-logo: #00A0E3;       /* yalnız logo/işaret; beyaz yazının altında kullanılmaz */
  --on-logo: #FFFFFF;
  --brand: #006FA8; --brand-600: #005C8C; --brand-700: #004A72;
  --brand-ink: #FFFFFF; --brand-text: #006FA8;
  --brand-50: #E6F6FD; --brand-100: #BFE7F8;
  --on-brand-line: rgba(255, 255, 255, .5);
  --accent: #00A0E3;
  --hero-from: #0B1437; --hero-to: #0A4F7A; --hero-glow: rgba(0, 160, 227, .35);
  --hero-ink: #FFFFFF; --hero-ink-2: #C9E6F5; --hero-em: #7FD3F7;
  /* Nötrler (portal birebir) */
  --bg: #F4F6F9; --surface: #FFFFFF; --surface-2: #F8FAFC; --surface-3: #E9EDF3;
  --text: #111A33; --text-2: #3A4460; --muted: #5F6980;
  --border: #E1E5EC; --border-strong: #C9D0DB; --hover-border: #AEB6C4;
  --overlay: rgba(11, 20, 55, .48);
  --topbar-glass: rgba(255, 255, 255, .92);
  --knob: #FFFFFF; --mask-solid: #000000;
  /* Kâğıt: temadan bağımsız beyaz zemin (QR kod, A4 rapor önizlemesi, koyu temada firma logosu altlığı) */
  --paper: #FFFFFF; --on-paper: #111A33; --on-paper-2: #5F6980;
  /* Anlamsal (portal birebir) */
  --success: #067647; --success-50: #E8F6EE; --success-border: #A9E0C4;
  --warning: #8A4B08; --warning-50: #FFF5D6; --warning-border: #F0CF73; --warning-solid: #C2620A; --warning-solid-ink: #FFFFFF;
  --danger: #B42318; --danger-50: #FDEDEB; --danger-border: #F3B4AC;
  --info: #175CD3; --info-50: #EBF2FE; --info-border: #B3CCF9;
  --neutral: #4B5563; --neutral-50: #F0F2F5; --neutral-border: #D5DAE2;
  --danger-solid: #B42318; --danger-solid-600: #962017; --danger-solid-ink: #FFFFFF;
  --trial: #C8440E; --trial-600: #A8380B; --trial-ink: #FFFFFF;
  --live: #12B76A; --star: #B7791F;
  /* Odak */
  --focus-outline: #0B1437;
  --focus-ring: 0 0 0 3px rgba(0, 160, 227, .32);
  --focus-danger: 0 0 0 3px rgba(180, 35, 24, .18);
  /* Gölge (lacivert tonlu) */
  --shadow-sm: 0 1px 2px rgba(11, 20, 55, .06);
  --shadow: 0 1px 3px rgba(11, 20, 55, .08), 0 1px 2px rgba(11, 20, 55, .04);
  --shadow-md: 0 10px 28px -12px rgba(11, 20, 55, .28);
  --shadow-lg: 0 24px 48px -16px rgba(11, 20, 55, .35);
  --shadow-btn: 0 1px 2px rgba(11, 20, 55, .18);
  --shadow-up: 0 -8px 20px -14px rgba(11, 20, 55, .35);
  /* Prototip şeridi (ürün değil, iskele) */
  --proto-bg: #E9EDF3; --proto-stripe: rgba(11, 20, 55, .045); --proto-border: #C9D0DB;
  --proto-ink: #3A4460; --proto-tag-bg: #111A33; --proto-tag-ink: #FFFFFF;
  /* Uzak oturum yüzeyi + karşı bilgisayarın ekranı (temadan bağımsız "görüntü") */
  --session-canvas: #05080F; --session-bar: #0F1626; --session-bar-ink: #E6EAF2;
  --remote-wall-1: #123B63; --remote-wall-2: #2F7FA8; --remote-window: #F3F4F6;
  --remote-window-ink: #1B1F27; --remote-title: #DCE3EC; --remote-taskbar: rgba(16, 20, 30, .9);
  /* Köşe, boşluk, yazı, yerleşim */
  --radius-sm: 7px; --radius: 10px; --radius-lg: 14px; --radius-xl: 18px; --radius-pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px;
  --card-pad: 20px 22px; --card-head-pad: 16px 22px; --main-pad: 28px 32px 48px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 15px; --fs-md: 16px; --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 28px;
  --lh: 1.55; --lh-tight: 1.25;
  --topbar-h: 64px; --sidebar-w: 236px; --aside-w: 320px; --content-max: 1180px; --shell-max: 1440px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --z-session: 20; --z-topbar: 30; --z-menu: 40; --z-drawer: 60; --z-dialog: 70; --z-toast: 80;
  --ease: .15s ease;
}

/* Koyu değerler: sistem tercihi (açık seçilmediyse) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --navy-bar: #17224A;
    --brand: #00A0E3; --brand-600: #33B5EA; --brand-700: #66C8F0; --brand-ink: #0B1437; --brand-text: #5CC8F5;
    --brand-50: rgba(0, 160, 227, .14); --brand-100: rgba(0, 160, 227, .40); --on-brand-line: rgba(11, 20, 55, .35);
    --bg: #0B1020; --surface: #121A2E; --surface-2: #0F1626; --surface-3: #1A2440;
    --text: #E6EAF2; --text-2: #C3CAD9; --muted: #8B95AB; --border: #24304A; --border-strong: #3A4868; --hover-border: #4A5A80;
    --overlay: rgba(3, 6, 14, .66); --topbar-glass: rgba(18, 26, 46, .92);
    --success: #5BD69A; --success-50: #0F2A20; --success-border: #1F5A3F;
    --warning: #F5B94A; --warning-50: #2E2310; --warning-border: #5A4413; --warning-solid: #F5B94A; --warning-solid-ink: #1A1206;
    --danger: #FF8A80; --danger-50: #331617; --danger-border: #6B2B2B;
    --info: #8AB4FF; --info-50: #14213D; --info-border: #2C4A80;
    --neutral: #A3ADBF; --neutral-50: #1A2238; --neutral-border: #33415F;
    --danger-solid: #F87171; --danger-solid-600: #FCA5A5; --danger-solid-ink: #1A0B0B;
    --trial: #FF8A65; --trial-600: #FFA585; --trial-ink: #1A0B0B; --live: #4ADE80; --star: #F5B94A;
    --focus-outline: #7FD3F7; --focus-ring: 0 0 0 3px rgba(0, 160, 227, .45); --focus-danger: 0 0 0 3px rgba(255, 138, 128, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40); --shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .30);
    --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, .70); --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .75);
    --shadow-btn: 0 1px 2px rgba(0, 0, 0, .4); --shadow-up: 0 -8px 20px -14px rgba(0, 0, 0, .8);
    --proto-bg: #1A2440; --proto-stripe: rgba(255, 255, 255, .03); --proto-border: #3A4868;
    --proto-ink: #C3CAD9; --proto-tag-bg: #E6EAF2; --proto-tag-ink: #0B1020;
  }
}
/* Koyu değerler: açık seçim + bağlantı ekranı (oturum her zaman koyu) */
:root[data-theme="dark"], [data-surface="session"] {
  color-scheme: dark;
  --navy-bar: #17224A;
  --brand: #00A0E3; --brand-600: #33B5EA; --brand-700: #66C8F0; --brand-ink: #0B1437; --brand-text: #5CC8F5;
  --brand-50: rgba(0, 160, 227, .14); --brand-100: rgba(0, 160, 227, .40); --on-brand-line: rgba(11, 20, 55, .35);
  --bg: #0B1020; --surface: #121A2E; --surface-2: #0F1626; --surface-3: #1A2440;
  --text: #E6EAF2; --text-2: #C3CAD9; --muted: #8B95AB; --border: #24304A; --border-strong: #3A4868; --hover-border: #4A5A80;
  --overlay: rgba(3, 6, 14, .66); --topbar-glass: rgba(18, 26, 46, .92);
  --success: #5BD69A; --success-50: #0F2A20; --success-border: #1F5A3F;
  --warning: #F5B94A; --warning-50: #2E2310; --warning-border: #5A4413; --warning-solid: #F5B94A; --warning-solid-ink: #1A1206;
  --danger: #FF8A80; --danger-50: #331617; --danger-border: #6B2B2B;
  --info: #8AB4FF; --info-50: #14213D; --info-border: #2C4A80;
  --neutral: #A3ADBF; --neutral-50: #1A2238; --neutral-border: #33415F;
  --danger-solid: #F87171; --danger-solid-600: #FCA5A5; --danger-solid-ink: #1A0B0B;
  --trial: #FF8A65; --trial-600: #FFA585; --trial-ink: #1A0B0B; --live: #4ADE80; --star: #F5B94A;
  --focus-outline: #7FD3F7; --focus-ring: 0 0 0 3px rgba(0, 160, 227, .45); --focus-danger: 0 0 0 3px rgba(255, 138, 128, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40); --shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .30);
  --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, .70); --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .75);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, .4); --shadow-up: 0 -8px 20px -14px rgba(0, 0, 0, .8);
  --proto-bg: #1A2440; --proto-stripe: rgba(255, 255, 255, .03); --proto-border: #3A4868;
  --proto-ink: #C3CAD9; --proto-tag-bg: #E6EAF2; --proto-tag-ink: #0B1020;
}

/* ── 1. Temel ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
body {
  margin: 0; min-height: calc(100dvh - var(--safe-t) - var(--safe-b)); display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: var(--fs-base)/var(--lh) var(--font); -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus-outline); outline-offset: 2px; }
[hidden], [data-role-hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: var(--lh-tight); font-weight: 650; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-base); }
p { margin: 0 0 .85em; } p:last-child { margin-bottom: 0; }
hr, .divider { border: 0; border-top: 1px solid var(--border); margin: 0; }
code, .mono { font-family: var(--mono); font-size: .93em; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ico-sm { width: 16px; height: 16px; } .ico-lg { width: 24px; height: 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 12px; color: var(--brand-ink); }
/* yardımcılar */
.text-muted { color: var(--muted); } .text-2 { color: var(--text-2); } .text-success { color: var(--success); }
.text-warning { color: var(--warning); } .text-danger { color: var(--danger); } .text-brand { color: var(--brand-text); }
.small { font-size: var(--fs-sm); } .xsmall { font-size: var(--fs-xs); } .strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; } .nowrap { white-space: nowrap; } .break { overflow-wrap: anywhere; }
.text-right { text-align: right; } .text-center { text-align: center; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-aside { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) var(--aside-w); align-items: start; }
.span-2 { grid-column: span 2; }
.kbd { font-family: var(--mono); font-size: 12px; line-height: 1.4; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); }

/* ── 2. Prototip şeridi (ürünün parçası değil) ───────────────────────── */
.proto-bar {
  background-color: var(--proto-bg); color: var(--proto-ink); font-size: var(--fs-sm);
  background-image: repeating-linear-gradient(135deg, var(--proto-stripe) 0 8px, transparent 8px 16px);
  border-bottom: 1px dashed var(--proto-border);
}
.proto-inner { max-width: var(--shell-max); margin: 0 auto; padding: 4px 20px; min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.proto-tag { flex: none; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--proto-tag-bg); color: var(--proto-tag-ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.proto-layer { font-weight: 650; color: var(--text); }
.proto-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.proto-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--proto-ink); font-weight: 550; white-space: nowrap; }
.proto-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.proto-nav a[aria-current="page"] { background: var(--surface); color: var(--brand-text); font-weight: 650; box-shadow: var(--shadow-sm); }
.proto-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.proto-role { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--proto-border); border-radius: var(--radius); }
.proto-role-label { padding: 0 6px 0 5px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.proto-role button, .proto-theme { min-height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--proto-ink); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; white-space: nowrap; }
.proto-role button:hover { background: var(--surface-2); }
.proto-role button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.proto-theme { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--proto-border); background: var(--surface); min-height: 34px; }

/* ── 3. Üst bar ve katman imzaları ───────────────────────────────────── */
.topbar {
  --tb-bg: var(--topbar-glass); --tb-ink: var(--text); --tb-ink-2: var(--muted); --tb-border: var(--border); --tb-divider: var(--border);
  --tb-chip-bg: var(--brand-50); --tb-chip-ink: var(--brand-700); --tb-chip-border: var(--brand-100); --tb-hover: var(--brand-50);
  --tb-avatar-bg: var(--brand-50); --tb-avatar-ink: var(--brand-text); --tb-avatar-border: var(--brand-100); --tb-focus: var(--focus-outline);
  position: sticky; top: var(--safe-t); z-index: var(--z-topbar); height: var(--topbar-h);
  background: var(--tb-bg); color: var(--tb-ink); border-bottom: 1px solid var(--tb-border);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.topbar :focus-visible { outline-color: var(--tb-focus); }
.topbar--firm { /* varsayılan: portaldaki beyaz, buzlu bar */ }
.topbar--platform {
  --tb-bg: var(--navy-bar); --tb-ink: var(--on-navy); --tb-ink-2: var(--on-navy-2); --tb-border: transparent; --tb-divider: var(--on-navy-line);
  --tb-chip-bg: var(--on-navy-fill); --tb-chip-ink: var(--on-navy); --tb-chip-border: var(--on-navy-line); --tb-hover: var(--on-navy-hover);
  --tb-avatar-bg: var(--on-navy-fill); --tb-avatar-ink: var(--on-navy); --tb-avatar-border: var(--on-navy-line); --tb-focus: var(--on-navy);
}
.topbar--console { --tb-bg: var(--surface); --tb-chip-bg: var(--brand); --tb-chip-ink: var(--brand-ink); --tb-chip-border: var(--brand); }
.topbar.is-static { position: relative; top: auto; }
.topbar-inner { height: 100%; max-width: var(--shell-max); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--tb-ink); }
.brand:hover { color: var(--tb-ink); text-decoration: none; }
/* Remolta logosu (templates/_macros.html brandmark): R ve yazı üst barın yazı rengini alır, nokta + yaylar turuncu */
.brand-logo { height: 32px; width: auto; flex: none; display: block; }
.brand-accent { color: #D97706; }
:root[data-theme="dark"] .brand-accent, .topbar--platform .brand-accent { color: #F59E0B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-accent { color: #F59E0B; } }
.layer-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 260px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--tb-chip-bg); color: var(--tb-chip-ink); border: 1px solid var(--tb-chip-border);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--tb-ink-2); font-size: 14px; font-weight: 550; white-space: nowrap; }
.topnav-link:hover, .topnav-link[aria-current="page"] { background: var(--tb-hover); color: var(--tb-ink); text-decoration: none; }
.topbar-search { flex: 1 1 auto; max-width: 440px; min-width: 0; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--tb-ink-2, var(--text-2)); cursor: pointer; }
.icon-btn:hover { background: var(--tb-hover, var(--surface-2)); color: var(--tb-ink, var(--text)); }
.icon-btn-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger-solid); box-shadow: 0 0 0 2px var(--tb-bg, var(--surface)); }
.menu-btn { display: none; margin-left: -6px; }
.usermenu { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 8px 4px 4px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--tb-ink); cursor: pointer; text-align: left; }
.usermenu:hover { background: var(--tb-hover); }
.usermenu .avatar { background: var(--tb-avatar-bg); color: var(--tb-avatar-ink); border-color: var(--tb-avatar-border); }
.usermenu-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.usermenu-line1 { font-size: 14px; font-weight: 600; white-space: nowrap; }
.usermenu-line2 { font-size: 12px; color: var(--tb-ink-2); white-space: nowrap; }
.cobrand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.2; white-space: nowrap; }
.cobrand-mark { padding: 2px 6px; border: 1.5px solid currentColor; border-radius: 5px; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--text); }
.topbar .cobrand { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--tb-divider); color: var(--tb-ink-2); }
.topbar .cobrand-mark { color: var(--tb-ink); }
/* Konsol ⇄ Firma paneli geçişi: iki sayfada aynı, sağda (firma adına yer kalsın) */
.layer-switch { display: inline-flex; gap: 2px; padding: 3px; margin-left: 4px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.layer-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.layer-switch a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.layer-switch a[aria-current="page"] { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-sm); }
.layer-switch .ico { color: currentColor; }
@media (max-width: 900px) { .layer-switch { display: none; } }
/* Firma logosu (Firma ayarları'ndan yüklenir; yoksa gizli) */
.firm-logo { display: inline-flex; align-items: center; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--tb-divider); height: 40px; }
.firm-logo[hidden] { display: none; }
.firm-logo img { display: block; max-height: 40px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
/* Koyu tema: firma logoları açık zemine (rapor kâğıdına) göre hazırlanır → beyaz altlıkta kalır */
:root[data-theme="dark"] .firm-logo img { padding: 3px 6px; border-radius: var(--radius-sm); background: var(--paper); }
:root[data-theme="dark"] .logo-preview { background: var(--paper); --text: var(--on-paper); --muted: var(--on-paper-2); }
.ps-search { width: min(320px, 100%); margin-left: auto; }
@media (max-width: 640px) { .ps-search { width: 100%; margin-left: 0; } }
.logo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo-preview { display: grid; place-items: center; width: 220px; height: 84px; padding: 10px; border: 1px dashed var(--border-strong, var(--border)); border-radius: var(--radius); background: var(--surface-2); }
.logo-preview img { max-width: 100%; max-height: 64px; object-fit: contain; }

/* ── 4. Kabuk: gruplu sol menü, içerik, alt bilgi, alt sekme çubuğu ──── */
.shell { flex: 1; display: flex; width: 100%; max-width: var(--shell-max); margin: 0 auto; min-width: 0; }
.sidebar {
  flex: none; width: var(--sidebar-w); padding: 20px 12px 24px; border-right: 1px solid var(--border);
  position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); align-self: flex-start;
  max-height: calc(100dvh - var(--topbar-h) - var(--safe-t)); overflow-y: auto; display: flex; flex-direction: column;
}
.sidebar-head { display: none; }
.sidebar-label { padding: 0 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group { margin: 16px 10px 6px; font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; font-weight: 550; }
.side-link .ico { color: var(--muted); }
.side-link:hover { background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.side-link.is-active, .side-link[aria-current="page"] { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.side-link.is-active .ico, .side-link[aria-current="page"] .ico { color: var(--brand-ink); }
.side-count {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); display: inline-grid; place-items: center;
  background: var(--warning-50); color: var(--warning); border: 1px solid var(--warning-border); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.side-link.is-active .side-count, .side-link[aria-current="page"] .side-count { background: transparent; color: var(--brand-ink); border-color: var(--on-brand-line); }
.side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.side-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 13px; }
.side-box-title { font-size: 14px; font-weight: 650; line-height: 1.3; }
.scrim { position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: var(--overlay); }
.main { flex: 1; min-width: 0; padding: var(--main-pad); }
.main > * { max-width: var(--content-max); }
.main-center > * { margin-inline: auto; max-width: 1200px; }
.main:focus { outline: none; }
.screen { display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.page-head > :first-child { flex: 1 1 300px; min-width: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--brand-text); }
.page-title { margin: 0; font-size: var(--fs-2xl); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { margin: 6px 0 0; font-size: var(--fs-md); font-weight: 650; }
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: var(--shell-max); margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; } .footer-links a { color: var(--muted); }
.bottom-nav { display: none; }

/* ── 5. Düğmeler ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; text-decoration: none; user-select: none;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--brand-600); color: var(--brand-ink); }
.btn-primary:active { background: var(--brand-700); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.btn-ghost { color: var(--text-2); } .btn-ghost:hover { background: var(--neutral-50); color: var(--text); }
.btn-danger { background: var(--danger-solid); color: var(--danger-solid-ink); }
.btn-danger:hover { background: var(--danger-solid-600); color: var(--danger-solid-ink); }
.btn-danger-ghost { color: var(--danger); border-color: var(--danger-border); }
.btn-danger-ghost:hover { background: var(--danger-50); color: var(--danger); }
.btn-trial { background: var(--trial); color: var(--trial-ink); } .btn-trial:hover { background: var(--trial-600); color: var(--trial-ink); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 40px; padding: 0; } .btn-icon.btn-sm { width: 32px; }
.btn[disabled], .btn.is-disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn[disabled] { pointer-events: none; }
.btn.is-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: td-spin .7s linear infinite; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 6. Kart, KPI kutusu ─────────────────────────────────────────────── */
.card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: var(--card-head-pad); border-bottom: 1px solid var(--border); }
.card-head > :first-child { min-width: 0; }
.card-title { margin: 0; font-size: var(--fs-md); font-weight: 650; line-height: 1.35; }
.card-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.card-body { padding: var(--card-pad); }
.card-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card > .table-wrap:last-child, .card > .list:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
a.card { display: block; color: inherit; }
.card-hover, a.card { transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease); }
.card-hover:hover, a.card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.stat { display: block; min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--text); }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; color: var(--muted); }
.stat-value { margin-top: 4px; font-size: var(--fs-3xl); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-value small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.stat .meter { margin-top: 10px; }
.stat-accent { border-top: 3px solid var(--accent); }
.stat-link { cursor: pointer; transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.stat-link .stat-label::after { content: "›"; margin-left: auto; font-size: 18px; line-height: 1; color: var(--brand-text); }
.stat-link:hover { color: var(--text); text-decoration: none; border-color: var(--brand-100); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-warn { border-top: 3px solid var(--warning-border); } .stat-warn .stat-value { color: var(--warning); }
.stat-danger { border-top: 3px solid var(--danger-border); } .stat-danger .stat-value { color: var(--danger); }

/* ── 7. Uyarı bantları, şeritler ─────────────────────────────────────── */
.alert {
  --a-bg: var(--info-50); --a-border: var(--info-border); --a-ink: var(--info);
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid var(--a-border); border-radius: var(--radius);
  background: var(--a-bg); color: var(--text); font-size: 14px; line-height: 1.45;
}
.alert > .ico { margin-top: 1px; color: var(--a-ink); }
.alert-body { flex: 1; min-width: 0; }
.alert-title { font-weight: 650; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: center; }
.alert-close { margin: -6px -8px -6px 0; }
.alert-success { --a-bg: var(--success-50); --a-border: var(--success-border); --a-ink: var(--success); }
.alert-warning { --a-bg: var(--warning-50); --a-border: var(--warning-border); --a-ink: var(--warning); }
.alert-danger { --a-bg: var(--danger-50); --a-border: var(--danger-border); --a-ink: var(--danger); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.next-step { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--brand-100); border-radius: var(--radius); box-shadow: inset 4px 0 0 var(--brand); font-size: 14px; }
.next-step-label { flex: none; padding: 1px 8px; border: 1px solid currentColor; border-radius: var(--radius-pill); color: var(--brand-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.next-step-text { flex: 1 1 240px; min-width: 0; }
.env-strip { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px dashed var(--warning-border); border-radius: var(--radius); background: var(--warning-50); color: var(--warning); font-size: 13px; font-weight: 550; }
.secure-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--success-border); border-radius: var(--radius); background: var(--success-50); color: var(--text); font-size: 13px; line-height: 1.5; }
.secure-note > .ico { color: var(--success); margin-top: 1px; }
.handoff { display: grid; justify-items: center; gap: 8px; padding: 28px 20px; text-align: center; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); }
.handoff-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-text); }

/* ── 8. Rozet / çip / durum noktası ──────────────────────────────────── */
.badge, .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-pill);
  border: 1px solid var(--b-border, var(--neutral-border)); background: var(--b-bg, var(--neutral-50)); color: var(--b-ink, var(--neutral));
  font-size: 12px; font-weight: 650; line-height: 1.35; white-space: nowrap; vertical-align: middle;
}
.badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-plain::before, .pill::before { display: none; }
.badge-success, .pill-success { --b-bg: var(--success-50); --b-border: var(--success-border); --b-ink: var(--success); }
.badge-warning, .pill-warning { --b-bg: var(--warning-50); --b-border: var(--warning-border); --b-ink: var(--warning); }
.badge-danger, .pill-danger { --b-bg: var(--danger-50); --b-border: var(--danger-border); --b-ink: var(--danger); }
.badge-info, .pill-info { --b-bg: var(--info-50); --b-border: var(--info-border); --b-ink: var(--info); }
.badge-neutral, .pill-neutral { --b-bg: var(--neutral-50); --b-border: var(--neutral-border); --b-ink: var(--neutral); }
.badge-brand, .pill-brand { --b-bg: var(--brand-50); --b-border: var(--brand-100); --b-ink: var(--brand-700); }
.badge-live::before { background: var(--live); animation: td-pulse 1.6s ease-out infinite; }
.status-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-border); }
/* Tablo hücresinde e-posta: tek satır, sığmazsa "…"; yanında kopyala düğmesi */
.staff-mail { display: flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.staff-mail-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.staff-mail .btn-icon { flex: none; width: 28px; height: 28px; min-height: 28px; }
.staff-table td.cell-title { min-width: 220px; max-width: 360px; }
.role-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.icon-note { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--muted); }
/* Durum noktası + cihaz ID: tek parça, alt satıra kaymaz */
.id-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; vertical-align: middle; }
.status-dot.is-online { background: var(--live); box-shadow: 0 0 0 3px var(--success-50); }
.status-dot.is-busy { background: var(--brand-logo); box-shadow: 0 0 0 3px var(--brand-50); }
.status-dot.is-offline { background: transparent; border: 2px solid var(--border-strong); }

/* ── 9. Tablo (telefonda kart yığını) ─────────────────────────────────── */
.table-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card .table-wrap { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th { padding: 10px 14px; text-align: left; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: 6px; }
.table .actions > form { display: inline-block; vertical-align: middle; } /* formlu düğme de diğerleriyle yan yana (blok form alt satıra itiyordu) */
.table .actions > .btn { vertical-align: middle; } /* simgeli ve simgesiz düğme yan yana aynı hizada (inline-flex taban çizgisi farkı) */
.table .sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.table .sub.dev-name { color: var(--text-2); font-weight: 500; } /* rehber adı (yalnız kendi firmanın bağlantıları) */
.table .cell-title { font-weight: 600; }
.table .mono, .table .key { white-space: nowrap; }
.table tr.is-clickable { cursor: pointer; }
.table tr.row-warn td:first-child { box-shadow: inset 3px 0 0 var(--warning-border); }
.table tr.row-danger td:first-child { box-shadow: inset 3px 0 0 var(--danger-border); }
.table-compact th, .table-compact td { padding: 8px 12px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.toolbar > .grow { flex: 1 1 240px; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pagination-info { font-size: 13px; color: var(--muted); }
.pagination-pages { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── 10. Form ─────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-section { grid-column: 1 / -1; margin: 6px 0 -4px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label, .field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color .12s ease, box-shadow .12s ease;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .85; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--hover-border); }
/* Odak: 2 px marka kenarı (#006FA8, beyaza ~5,5:1) + yumuşak halka; --accent (2,9:1) odak göstergesi için yetersizdi */
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand), var(--focus-ring); }
.input[readonly], .textarea[readonly], .is-readonly { background: var(--neutral-50); color: var(--text-2); border-style: dashed; }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .6; cursor: not-allowed; }
.input-mono { font-family: var(--mono); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.hint { font-size: 12px; color: var(--muted); }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; font-weight: 550; color: var(--danger); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, [aria-invalid="true"] { border-color: var(--danger); }
.field.has-error .input:focus, [aria-invalid="true"]:focus { box-shadow: var(--focus-danger); }
.input-group { display: flex; align-items: stretch; gap: 6px; } .input-group > .input { flex: 1; min-width: 0; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: var(--radius-pill); background: var(--border-strong); cursor: pointer; transition: background-color var(--ease); }
.switch input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--knob); box-shadow: var(--shadow); transition: transform var(--ease); }
.switch input:checked { background: var(--brand); } .switch input:checked::before { transform: translateX(16px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.fieldset { margin: 0; padding: 14px 16px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }
.fieldset > legend { padding: 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search > .ico { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search > .input { padding-left: 38px; }
.search > .kbd { position: absolute; right: 10px; pointer-events: none; }
.search-lg > .input { min-height: 48px; font-size: 16px; border-radius: var(--radius); }
.topbar--platform .search > .input { background: var(--on-navy-fill); border-color: var(--on-navy-line); color: var(--on-navy); }
.topbar--platform .search > .input::placeholder, .topbar--platform .search > .ico { color: var(--on-navy-2); }
.code-input { max-width: 240px; font-family: var(--mono); font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.savebar { position: sticky; bottom: calc(12px + var(--safe-b)); z-index: 5; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px 18px; border: 1px solid var(--border); border-top: 2px solid var(--brand); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; }
form:not(.is-dirty) .savebar { display: none; }
details.disclosure { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
details.disclosure > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 650; list-style: none; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: ""; flex: none; border-left: 6px solid var(--muted); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; transition: transform var(--ease); }
details.disclosure[open] > summary::before { transform: rotate(90deg); }
details.disclosure > .disclosure-body { padding: 4px 14px 14px; }

/* ── 11. Süzgeç çipleri, sekmeler, bölümlü seçici ────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 28px 2px 2px; -webkit-mask-image: linear-gradient(90deg, var(--mask-solid) calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, var(--mask-solid) calc(100% - 28px), transparent); }
.chips-scroll::-webkit-scrollbar { display: none; }
/* kaydırılan kaplar konumlandırılmış olsun: içlerindeki .sr-only (absolute) kaptan taşıp sayfayı yana kaydırmasın */
.chips-scroll, .tabs, .seg { position: relative; }
.chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chip-filter:hover { border-color: var(--brand); color: var(--brand-text); }
.chip-filter[aria-pressed="true"], .chip-filter.is-active { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.chip-count { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-filter[aria-pressed="true"] .chip-count, .chip-filter.is-active .chip-count { color: var(--brand-700); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab:focus-visible { outline-offset: -2px; }
.tab[aria-selected="true"], .tab[aria-current="page"], .tab.is-active { color: var(--brand-text); box-shadow: inset 0 -2px 0 var(--brand); }
.tab-count { min-width: 20px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--neutral-50); color: var(--muted); font-size: 12px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .tab-count, .tab[aria-current="page"] .tab-count, .tab.is-active .tab-count { background: var(--brand-50); color: var(--brand-700); }
.seg { display: inline-flex; gap: 2px; max-width: 100%; padding: 4px; overflow-x: auto; background: var(--surface-3); border-radius: var(--radius); }
.seg-btn { flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.seg-btn:hover { background: var(--surface); }
.seg-btn[aria-pressed="true"], .seg-btn[aria-selected="true"], .seg-btn[aria-current="page"] { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-sm); }

/* ── 12. Adım çubuğu (sihirbaz) ve yardım kenarı ─────────────────────── */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.stepper > li { display: flex; min-width: 0; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 550; line-height: 1.25; text-align: left; }
button.step { cursor: pointer; } button.step:hover { border-color: var(--border-strong); }
.step-num { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step.is-current, .step[aria-current="step"] { border-color: var(--brand); background: var(--brand-50); color: var(--brand-text); font-weight: 650; }
.step.is-current .step-num, .step[aria-current="step"] .step-num { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.step.is-complete .step-num { font-size: 0; border-color: var(--success-border); background: var(--success-50); color: var(--success); }
.step.is-complete .step-num::after { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.wizard-count { font-size: 13px; color: var(--muted); }
.help-aside { position: sticky; top: calc(var(--topbar-h) + var(--safe-t) + 16px); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.how-steps > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.how-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand-text); font-size: 14px; font-weight: 750; }
.how-title { display: block; font-weight: 650; }
.how-text { display: block; font-size: 13px; color: var(--muted); }

/* ── 13. Paket kartı, fiyat, ödeme özeti ─────────────────────────────── */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color var(--ease), background-color var(--ease); }
.choice:hover { border-color: var(--brand); }
.choice > input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-50); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus-outline); outline-offset: 2px; }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
.choice-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.choice-title { font-size: var(--fs-md); font-weight: 700; }
.choice-flag { position: absolute; top: -11px; right: 14px; }
.price { font-size: 26px; font-weight: 750; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-unit { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.ticks > li { position: relative; padding-left: 22px; }
.ticks > li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 5px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.summary { overflow: hidden; }
.summary-head { padding: 14px 20px; background: var(--navy-bar); color: var(--on-navy); }
.summary-head .card-title { color: var(--on-navy); } .summary-head .card-sub { color: var(--on-navy-2); }
.sum { display: grid; gap: 8px; margin: 0; font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-row > dt { color: var(--muted); } .sum-row > dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sum-total { padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: 18px; font-weight: 750; }
.sum-total > dt { color: var(--text); }

/* ── 14. Açılır menü, pencere (modal), çekmece, bildirim ─────────────── */
.dropdown { position: relative; display: inline-flex; }
.menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: var(--z-menu); min-width: 240px; max-width: min(320px, calc(100vw - 32px)); padding: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.menu-start { right: auto; left: 0; }
.menu-head { display: grid; gap: 2px; margin-bottom: 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.menu-head strong { font-size: 14px; color: var(--text); }
.menu-label { padding: 8px 10px 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.menu-item .ico { color: var(--muted); }
.menu-item[aria-checked="true"], .menu-item[aria-current="page"] { color: var(--brand-text); font-weight: 600; }
.menu-item[aria-checked="true"] .ico { color: var(--brand-text); }
.menu-item-danger, .menu-item-danger .ico { color: var(--danger); }
.menu-sep { height: 1px; margin: 6px 0; background: var(--border); }
dialog.modal, dialog.drawer { padding: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop, dialog.drawer::backdrop { background: var(--overlay, rgba(11, 20, 55, .48)); }
.modal { width: min(480px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); overflow: auto; border-radius: var(--radius-lg); }
.modal[open] { animation: td-rise .18s ease; }
.modal-wide { width: min(640px, calc(100% - 32px)); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head > div { flex: 1; min-width: 0; }
.modal-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-text); }
.modal-danger .modal-icon { background: var(--danger-50); color: var(--danger); }
.modal-title, .drawer-title { margin: 0; font-size: 18px; font-weight: 650; }
.modal-sub, .drawer-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.modal-x { margin: -6px -10px 0 0; }
/* Sayfa içi önizleme (3.0.80, preview.js): İş sonu raporu (A4 iframe) ve rapor resimleri */
.td-pv { width: min(960px, calc(100% - 24px)); height: calc(100dvh - 32px); max-height: none; display: flex; flex-direction: column; overflow: hidden; }
.td-pv:not([open]) { display: none; }
.td-pv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.td-pv-t { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.td-pv-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.td-pv-x { font-size: 22px; line-height: 1; }
.td-pv-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--surface-2, #eef1f6); }
.td-pv-frame { width: 100%; height: 100%; border: 0; background: var(--paper); } /* A4 belge her temada açık */
.td-pv.is-img .td-pv-body { background: #0b1220; padding: 10px; }
.td-pv-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
@media (max-width: 560px) { .td-pv { width: 100%; height: 100dvh; max-width: 100%; border-radius: 0; } }
.modal-body { padding: 16px 22px 20px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.drawer { width: min(460px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-width: 0 0 0 1px; border-radius: 0; overflow: hidden; }
.drawer[open] { display: flex; flex-direction: column; animation: td-slide .2s ease; }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: calc(16px + var(--safe-t)) 20px 16px; border-bottom: 1px solid var(--border); }
.drawer-head > div { flex: 1; min-width: 0; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--border); background: var(--surface-2); }
dialog.is-fallback { position: fixed; inset: 0; z-index: var(--z-dialog); margin: auto; }
dialog.drawer.is-fallback { margin: 0 0 0 auto; }
.toast-region { position: fixed; right: 20px; bottom: calc(20px + var(--safe-b)); z-index: var(--z-toast); width: min(380px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { --t-ink: var(--info); pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 12px 16px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: inset 4px 0 0 var(--t-ink), var(--shadow-lg); animation: td-rise .18s ease; }
.toast > .ico { margin-top: 1px; color: var(--t-ink); }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 14px; font-weight: 650; }
.toast-text { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.toast-close { margin: -6px 0; }
.toast-success { --t-ink: var(--success); } .toast-warning { --t-ink: var(--warning); } .toast-danger { --t-ink: var(--danger); }

/* ── 15. Boş durum, liste satırları, zaman çizelgesi, ölçer, kv ─────── */
.empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-text); }
.empty-title { margin-bottom: 4px; font-size: var(--fs-md); font-weight: 650; }
.empty-text { max-width: 440px; margin: 0 auto 16px; font-size: 14px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-main { flex: 1 1 260px; min-width: 0; }
.list-title { font-size: 14px; font-weight: 600; } .list-sub { font-size: 13px; color: var(--muted); }
.list-item.is-warn { box-shadow: inset 3px 0 0 var(--warning-border); }
.list-item.is-danger { box-shadow: inset 3px 0 0 var(--danger-border); }
.list-item.is-info { box-shadow: inset 3px 0 0 var(--info-border); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.tl-item { --tl: var(--border-strong); position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--border); }
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--tl); }
.tl-success { --tl: var(--success); } .tl-warn { --tl: var(--warning); } .tl-danger { --tl: var(--danger); } .tl-info { --tl: var(--info); } .tl-brand { --tl: var(--brand); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tl-text { font-size: 14px; font-weight: 600; }
.tl-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-detail { margin-top: 2px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: var(--v, 0%); max-width: 100%; border-radius: inherit; background: var(--brand); transition: width .3s ease; }
.meter-warn .meter-fill { background: var(--warning-solid); } .meter-danger .meter-fill { background: var(--danger-solid); }
.meter-lg { height: 10px; }
.meter-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.meter-row .num { font-weight: 650; color: var(--text); }
.kv { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.kv > dt { color: var(--muted); font-weight: 550; } .kv > dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand-text); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.avatar-sm { width: 26px; height: 26px; font-size: 12px; } .avatar-lg { width: 44px; height: 44px; font-size: 16px; }
.avatar-navy { border-color: var(--navy); background: var(--navy); color: var(--on-navy); }
.key { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.key-lg { padding: 8px 12px; font-size: 20px; }
.copy-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.copy-btn:hover { background: var(--brand-50); color: var(--brand-text); }
.ring { --p: 0%; position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--brand) var(--p), var(--surface-3) 0); font-weight: 700; font-variant-numeric: tabular-nums; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.ring > span { position: relative; }

/* ── 16. Cihaz satırı (Konsol listesi) ───────────────────────────────── */
.device-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.device-row {
  display: grid; align-items: center; gap: 4px 16px; padding: 10px 16px 10px 6px; border-bottom: 1px solid var(--border);
  grid-template-columns: 44px minmax(0, 2.3fr) auto minmax(0, 1fr) minmax(0, 1.1fr) auto;
  grid-template-areas: "star main id group meta action";
}
.device-row:last-child { border-bottom: 0; }
.device-row:hover { background: var(--surface-2); }
.device-row.is-selected { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.device-star { grid-area: star; } .device-main { grid-area: main; min-width: 0; } .device-id { grid-area: id; }
.device-group { grid-area: group; min-width: 0; font-size: 13px; color: var(--text-2); }
.device-meta { grid-area: meta; min-width: 0; font-size: 13px; color: var(--muted); }
.device-action { grid-area: action; display: flex; justify-content: flex-end; gap: 6px; }
.device-name { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font-size: 15px; font-weight: 650; text-align: left; cursor: pointer; }
.device-name:hover { color: var(--brand-text); text-decoration: none; }
.device-name > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-note { display: block; margin: 2px 0 0 18px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 18px; }
.device-row.is-offline .device-name { color: var(--text-2); }
.star-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.star-btn:hover { background: var(--surface-3); }
.star-btn[aria-pressed="true"] { color: var(--star); } .star-btn[aria-pressed="true"] .ico { fill: currentColor; }

/* ── 17. Bağlantı ekranı (her zaman koyu: data-surface="session") ──── */
.session { position: relative; display: flex; flex-direction: column; min-height: 420px; overflow: hidden; background: var(--session-canvas); color: var(--text); }
.session-toolbar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 10px 6px 16px; background: var(--session-bar); color: var(--session-bar-ink); border-bottom: 1px solid var(--border); }
.session-info { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.session-device { min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-timer { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.session-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.tool-group { display: flex; gap: 2px; padding-left: 6px; border-left: 1px solid var(--border); }
.tool-group:first-child { padding-left: 0; border-left: 0; }
.tool { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 58px; min-height: 44px; padding: 4px 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--session-bar-ink); font-size: 12px; font-weight: 550; line-height: 1; cursor: pointer; }
.tool:hover { background: var(--surface-3); }
.tool[aria-pressed="true"], .tool[aria-expanded="true"], .tool.is-on { background: var(--brand-50); color: var(--brand-text); }
.tool-label { white-space: nowrap; }
.tool-count { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; line-height: 18px; }
.tool-danger { background: var(--danger-solid); color: var(--danger-solid-ink); }
.tool-danger:hover { background: var(--danger-solid-600); }
.signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.signal > i { width: 3px; border-radius: 1px; background: var(--border-strong); }
.signal > i:nth-child(1) { height: 30%; } .signal > i:nth-child(2) { height: 55%; } .signal > i:nth-child(3) { height: 80%; } .signal > i:nth-child(4) { height: 100%; }
.signal[data-level="1"] > i:nth-child(-n+1), .signal[data-level="2"] > i:nth-child(-n+2),
.signal[data-level="3"] > i:nth-child(-n+3), .signal[data-level="4"] > i { background: var(--success); }
.session-screen { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.session-panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: min(340px, 100%); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.session-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--border); font-weight: 650; }
.session-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.session-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: var(--overlay); }
.session-dock { display: none; }
.chat-msg { max-width: 85%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface-3); font-size: 14px; }
.chat-msg.is-me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--brand-50); }
.chat-meta { display: block; margin-bottom: 2px; font-size: 12px; color: var(--muted); }
.chat-event { align-self: center; max-width: 92%; font-size: 12px; color: var(--muted); text-align: center; }
/* karşı bilgisayarın ekranı (temsilî çizim) */
.remote { position: relative; width: 100%; max-width: 1280px; max-height: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: linear-gradient(140deg, var(--remote-wall-1), var(--remote-wall-2)); box-shadow: 0 0 0 1px var(--border); }
.remote-window { position: absolute; left: 12%; top: 10%; width: 58%; height: 62%; border-radius: 6px; background: var(--remote-window); color: var(--remote-window-ink); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 12px; }
.remote-title { padding: 6px 10px; background: var(--remote-title); font-weight: 600; }
.remote-window p { margin: 0; padding: 10px; }
.remote-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 7%; min-height: 16px; background: var(--remote-taskbar); }

/* ── 18. Duyarlı ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .session-tools .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .session-tools .tool { min-width: 44px; }
}
@media (max-width: 1080px) {
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-aside { grid-template-columns: minmax(0, 1fr); }
  .help-aside { position: static; }
  .usermenu-text { display: none; }
  .device-row { grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: "star main id action" "star group meta action"; }
  .device-meta { text-align: right; }
}
@media (max-width: 900px) {
  :root { --main-pad: 22px 18px 40px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-btn { display: inline-grid; }
  .topbar .cobrand, .topbar .firm-logo, .topbar-search, .topnav { display: none; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: var(--z-drawer); width: min(300px, 86vw); height: 100dvh; max-height: none;
    padding: calc(10px + var(--safe-t)) 12px calc(20px + var(--safe-b)); background: var(--surface); box-shadow: var(--shadow-lg);
    transform: translateX(-102%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s;
  }
  .sidebar.is-open { transform: none; visibility: visible; transition: transform .2s ease; }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding: 0 0 10px 10px; border-bottom: 1px solid var(--border); font-weight: 650; }
  .side-link { min-height: 44px; }
  .side-link:hover { box-shadow: none; background: var(--surface-2); }
}
@media (max-width: 640px) {
  :root { --main-pad: 18px 16px 36px; --card-pad: 16px; --card-head-pad: 12px 16px; --topbar-h: 56px; }
  .proto-inner { padding: 4px 16px 6px; gap: 2px 8px; }
  .proto-layer { display: none; }
  .proto-nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .proto-nav a, .proto-role button, .proto-theme { min-height: 44px; }
  .proto-theme-text { display: none; }
  .topbar-inner { padding: 0 12px 0 16px; gap: 8px; }
  .brand-logo { height: 29px; }
  .layer-chip { max-width: 150px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .page-title { font-size: 21px; }
  .page-actions { width: 100%; } .page-actions > .btn { flex: 1 1 auto; }
  .card-foot { padding: 12px 16px; }
  .stat { padding: 14px 16px; } .stat-value { font-size: 24px; }
  .list-item { padding: 12px 16px; }
  .btn, .btn-sm { min-height: 44px; } .btn-icon, .btn-icon.btn-sm, .icon-btn { width: 44px; height: 44px; }
  .chip-filter, .seg-btn, .menu-item { min-height: 44px; }
  .check, .switch { min-height: 44px; align-items: center; }
  .check input { margin-top: 0; }
  .copy-btn { width: 44px; height: 44px; margin: -12px -8px -12px -4px; }
  .input, .select, .textarea { font-size: 16px; }
  .form-actions > .btn, .wizard-actions > .btn-row { flex: 1 1 auto; } .wizard-actions .btn { flex: 1 1 auto; }
  .alert { flex-wrap: wrap; } .alert-actions { width: 100%; padding-left: 30px; }
  .key { white-space: normal; overflow-wrap: anywhere; }
  .stepper { display: flex; gap: 6px; }
  .stepper > li { flex: none; } .stepper > li:has(.is-current) { flex: 1 1 auto; }
  .step { justify-content: center; min-height: 44px; padding: 8px; }
  /* dokunma hedefleri ≥44 px: alt bilgi ve iz bağlantıları, sayfa numaraları, tamamlanan adım daireleri */
  .footer-links a, .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .pagination .btn { min-width: 44px; }
  .stepper .step { position: relative; min-width: 44px; }
  .step:not(.is-current) .step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* tablo: satırlar kart olur (td[data-label] etiketi solda, değer sağda) */
  .table-wrap:has(> .table--stack) { overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table--stack, .table--stack tbody { display: block; width: 100%; }
  .table--stack tr { display: grid; gap: 7px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .table--stack tr + tr { margin-top: 10px; }
  .table--stack td { display: flow-root; padding: 0; border: 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  .table--stack td[data-label]::before { content: attr(data-label); float: left; margin-right: 12px; font-size: 12px; font-weight: 650; color: var(--muted); text-align: left; }
  .table--stack td.cell-title { text-align: left; font-size: 15px; font-weight: 650; }
  .table--stack td.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
  .table--stack td.actions > * { flex: 1 1 auto; margin: 0 !important; }
  .table--stack tbody tr:hover td { background: transparent; }
  .table--stack tr.row-warn, .table--stack tr.row-danger { box-shadow: var(--shadow-sm); }
  .table--stack tr.row-warn td:first-child, .table--stack tr.row-danger td:first-child { box-shadow: none; }
  .table--stack tr.row-warn { border-left: 3px solid var(--warning-border); } .table--stack tr.row-danger { border-left: 3px solid var(--danger-border); }
  .card .table--stack tr { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
  .card .table--stack tr + tr { margin-top: 0; } .card .table--stack tr:last-child { border-bottom: 0; }
  .hide-sm { display: none !important; }
  /* cihaz satırı: kart */
  .device-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main star" "id group" "meta meta" "action action"; gap: 8px 10px; padding: 12px 8px 14px 16px; }
  .device-star { justify-self: end; } .device-group { text-align: right; padding-right: 8px; } .device-meta { text-align: left; }
  .device-note, .device-tags { margin-left: 18px; white-space: normal; }
  .device-action { padding-right: 8px; } .device-action > .btn { flex: 1 1 auto; }
  /* pencere: alttan açılan sayfa; çekmece: tam ekran */
  .modal, .modal-wide { width: 100%; max-height: 92dvh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
  .modal-foot { flex-direction: column-reverse; padding-bottom: calc(14px + var(--safe-b)); } .modal-foot > .btn { width: 100%; }
  .drawer { width: 100%; border-width: 0; }
  .toast-region { left: 16px; right: 16px; width: auto; bottom: calc(16px + var(--safe-b)); }
  .menu-item { min-height: 44px; }
  /* alt sekme çubuğu (Konsol vb.) */
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-topbar); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px 4px calc(4px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-up); }
  .bottom-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
  .bottom-nav-link:hover { color: var(--text); text-decoration: none; }
  .bottom-nav-link[aria-current="page"], .bottom-nav-link.is-active { color: var(--brand-text); background: var(--brand-50); }
  .has-bottom-nav .main { padding-bottom: calc(84px + var(--safe-b)); }
  .has-bottom-nav .footer { padding-bottom: calc(64px + var(--safe-b)); }
  .has-bottom-nav .toast-region { bottom: calc(80px + var(--safe-b)); }
  /* bağlantı ekranı: dikey telefon */
  .session-toolbar { min-height: 44px; padding: 4px 12px; }
  .session-tools { display: none; }
  .session-screen { padding: 0; }
  .session-panel { position: fixed; inset: 0; z-index: var(--z-drawer); width: 100%; padding-top: var(--safe-t); }
  .session-dock { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px 4px calc(4px + var(--safe-b)); background: var(--session-bar); border-top: 1px solid var(--border); }
  .session-dock .tool { min-width: 0; min-height: 52px; }
}
@media (max-width: 480px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv > dd { margin-bottom: 10px; }
  .stats { gap: 10px; } .stat { padding: 12px 14px; } .stat-value { font-size: 21px; }
  .proto-role-label { display: none; }
  .layer-chip { max-width: 140px; }
  .usermenu { padding: 4px; }
  .brand-logo { height: 27px; }
  .hide-xs { display: none !important; }
}
/* Bağlantı ekranı tam sayfa (router: screen[data-fullbleed]) */
body.is-fullbleed { height: calc(100dvh - var(--safe-t) - var(--safe-b)); overflow: hidden; }
body.is-fullbleed > .topbar, body.is-fullbleed > .footer, body.is-fullbleed .bottom-nav, body.is-fullbleed .sidebar { display: none; }
body.is-fullbleed .shell { flex: 1; min-height: 0; max-width: none; }
body.is-fullbleed .main { display: flex; flex-direction: column; padding: 0; }
body.is-fullbleed .main > * { max-width: none; }
body.is-fullbleed .screen:not([hidden]) { flex: 1; min-height: 0; gap: 0; }
body.is-fullbleed .session { flex: 1; min-height: 0; }

/* ── 19. Hareket ──────────────────────────────────────────────────────── */
@keyframes td-spin { to { transform: rotate(360deg); } }
@keyframes td-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes td-slide { from { opacity: .4; transform: translateX(32px); } }
@keyframes td-pulse { 0% { box-shadow: 0 0 0 0 var(--success-border); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
@media print {
  .proto-bar, .topbar, .sidebar, .footer, .bottom-nav, .toast-region { display: none !important; }
  body { background: var(--surface); } .main { padding: 0; }
}

/* Firma arama kutusu (combobox): liste akış içinde, pencere içinde kırpılmaz */
.combo-list { list-style: none; margin: 6px 0 0; padding: 4px; max-height: 232px; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.combo-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--brand-50); }
.combo-list .combo-main { min-width: 0; overflow-wrap: anywhere; }
.combo-list .combo-sub { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.combo-list .combo-empty { color: var(--muted); cursor: default; }
/* Önizleme penceresi: asıl resim silindi (3.0.89) — önizleme doğal boyutunda (büyütülmez) + not */
.td-pv-fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; max-width: 100%; max-height: 100%; min-height: 0; }
.td-pv-fig .td-pv-img { min-height: 0; }
.td-pv-img.is-small { width: auto; height: auto; flex: none; }
.td-pv-note { margin: 0; max-width: 560px; padding: 6px 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #e8eef6; font-size: 13px; line-height: 1.45; text-align: center; }
