/* Umut Telekom APK Paneli — Aşama 1 görsel prototip */

:root {
  --petrol-950: #041F25;
  --petrol-900: #062B33;
  --petrol-800: #0A3A44;
  --petrol-700: #0E4A57;
  --petrol-600: #135E6E;
  --petrol-500: #1B7486;
  --petrol-200: #BCD8DE;
  --petrol-100: #DCEBEE;
  --petrol-50: #EEF5F6;

  --bg: #F2F5F5;
  --surface: #FFFFFF;
  --surface-2: #F7F9F9;
  --border: #D3DDDF;
  --border-strong: #AFBEC2;
  --text: #13252A;
  --text-2: #3F5257;
  --text-3: #56696E;
  --brand: var(--petrol-700);
  --brand-hover: var(--petrol-800);
  --on-brand: #FFFFFF;
  --link: #0D5B6C;

  --ok: #1B6B43;      --ok-bg: #E2F1E8;
  --warn: #855200;    --warn-bg: #FBEFD6;
  --err: #AE251A;     --err-bg: #FBE5E2;
  --info: #1A5889;    --info-bg: #E1ECF6;
  --neutral: #4B5D62; --neutral-bg: #EAEFF0;
  --muted: #5E6E72;   --muted-bg: #F0F2F2;
  --debug: #A8380A;   --debug-bg: #FDE9DA;

  --focus: #B35C00;
  --focus-on-dark: #FFC857;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(6, 43, 51, .06), 0 6px 20px rgba(6, 43, 51, .07);
  --shadow-lg: 0 12px 48px rgba(4, 31, 37, .28);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --sidebar-w: 248px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1618;
    --surface: #102024;
    --surface-2: #13272B;
    --border: #25403F;
    --border-strong: #3B5A5E;
    --text: #E3ECEE;
    --text-2: #B7C8CB;
    --text-3: #9DB1B5;
    --brand: #2B8FA3;
    --brand-hover: #3AA2B6;
    --on-brand: #04181C;
    --link: #7FCCDC;
    --ok: #7FD6A6;      --ok-bg: #133526;
    --warn: #F2C572;    --warn-bg: #3A2A0B;
    --err: #FF9C90;     --err-bg: #43191A;
    --info: #92C3F0;    --info-bg: #15304A;
    --neutral: #B4C3C6; --neutral-bg: #1D3034;
    --muted: #97A8AB;   --muted-bg: #172A2E;
    --debug: #FFB185;   --debug-bg: #3F2211;
    --focus: #FFC857;
    --petrol-50: #122A2F;
    --petrol-100: #173A41;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; color: var(--text); }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
a { color: var(--link); text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .88em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sidebar :focus-visible, .proto-band :focus-visible { outline-color: var(--focus-on-dark); }

.sr-only {
  position: absolute !important; 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: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Prototip bandı ---------- */
.proto-band {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 16px;
  background: repeating-linear-gradient(135deg, #2A2F31 0 14px, #33393B 14px 28px);
  color: #FFF4D6; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}
.proto-band strong { color: #FFC857; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 16px 0 12px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--petrol-700); color: #fff; font-weight: 800; font-family: var(--font-display); letter-spacing: -.03em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-family: var(--font-display); font-size: .98rem; white-space: nowrap; }
.brand-text span { font-size: .75rem; color: var(--text-3); white-space: nowrap; }
.top-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.top-search input {
  width: 100%; height: 38px; padding: 0 12px 0 34px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
}
.top-search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--text-3); }
.top-tools { display: flex; align-items: center; gap: 10px; }
.role-pick { display: flex; flex-direction: column; font-size: .7rem; color: var(--text-3); }
.role-pick select { height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 8px; font-size: .85rem; max-width: 230px; }
.menu-btn { display: none; }

.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 999px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol-100); color: var(--petrol-800); font-weight: 700; font-size: .8rem; }
.user-menu .menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 260px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
}
.user-menu .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.user-menu .menu button:hover { background: var(--surface-2); }
.user-menu .menu .menu-meta { padding: 8px 10px; font-size: .8rem; color: var(--text-3); border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* ---------- Yerleşim ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - 92px); }
.sidebar {
  background: var(--petrol-900); color: #D6E7EA;
  padding: 16px 10px; position: sticky; top: var(--band-h, 32px); height: calc(100vh - var(--band-h, 32px)); overflow-y: auto;
}
.nav-group { margin-bottom: 18px; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: #8FB4BB; padding: 0 12px 6px; font-weight: 700; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: #D6E7EA; text-decoration: none; font-weight: 550; font-size: .93rem;
}
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a[aria-current="page"] { background: var(--petrol-600); color: #fff; box-shadow: inset 3px 0 0 #FFC857; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .count { margin-left: auto; font-size: .72rem; background: rgba(255, 255, 255, .14); padding: 1px 7px; border-radius: 999px; }
.sidebar-foot { margin-top: 20px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: .78rem; color: #A9C6CC; }
.sidebar-foot b { color: #fff; }

main { padding: 24px 28px 64px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol-600); margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .page-head .eyebrow { color: var(--link); } }
.page-head p.lead { color: var(--text-2); margin: 6px 0 0; max-width: 70ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: .85rem; margin-bottom: 8px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }

/* ---------- Bileşenler ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head p { margin: 2px 0 0; color: var(--text-3); font-size: .85rem; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--text-3); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-danger { color: var(--err); border-color: currentColor; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: .84rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary[aria-disabled="true"] { background: var(--neutral-bg); border-color: var(--border-strong); color: var(--text-2); opacity: 1; }
.why { display: block; font-size: .78rem; color: var(--text-3); margin-top: 4px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.btn-row .btn-wrap { display: flex; flex-direction: column; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px; font-size: .76rem; font-weight: 650; line-height: 1.5;
  border: 1px solid transparent; white-space: nowrap;
}
.tone-ok { color: var(--ok); background: var(--ok-bg); }
.tone-warn { color: var(--warn); background: var(--warn-bg); }
.tone-err { color: var(--err); background: var(--err-bg); }
.tone-info { color: var(--info); background: var(--info-bg); }
.tone-neutral { color: var(--neutral); background: var(--neutral-bg); }
.tone-muted { color: var(--muted); background: var(--muted-bg); }
.tone-debug { color: var(--debug); background: repeating-linear-gradient(135deg, var(--debug-bg) 0 6px, transparent 6px 12px), var(--debug-bg); }
.badge-sample { color: var(--text-2); background: transparent; border: 1px dashed var(--border-strong); font-weight: 600; }
.badge-unlinked { color: var(--text-2); background: transparent; border: 1.5px dashed var(--border-strong); }
.badge-lock { color: var(--petrol-700); background: var(--petrol-50); }
@media (prefers-color-scheme: dark) { .badge-lock { color: var(--link); } }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: .9rem; margin-bottom: 16px;
}
.notice .ico { font-weight: 800; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.notice.tone-info { border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.notice.tone-warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice.tone-err { border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.notice.tone-neutral { border-color: var(--border); border-style: dashed; }
.notice p { margin: 0; }
.notice b { display: block; margin-bottom: 2px; }

/* Yol şeridi */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; min-width: 360px; }
.strip li { padding: 5px 8px; border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.strip li:first-child { border-radius: 8px 3px 3px 8px; }
.strip li:last-child { border-radius: 3px 8px 8px 3px; }
.strip .k { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; opacity: .85; }
.strip .v { font-size: .8rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip.lg { gap: 4px; }
.strip.lg li { padding: 10px 12px; }
.strip.lg .v { font-size: .92rem; white-space: normal; }
.strip.lg .sub { font-size: .76rem; font-weight: 500; opacity: .95; margin-top: 2px; }
.strip-whole { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: .84rem; font-weight: 650; min-width: 360px; }
.strip-whole .sub { font-weight: 500; opacity: .9; }

/* Tablolar */
.table-wrap { overflow-x: auto; }
table.rtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rtable th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3);
  font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
.rtable td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rtable tr:last-child td { border-bottom: 0; }
.rtable tbody tr:hover td { background: color-mix(in srgb, var(--petrol-50) 60%, transparent); }
.rtable .firm-cell { display: flex; flex-direction: column; gap: 2px; }
.rtable .firm-cell a, .linklike { font-weight: 650; color: var(--text); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.rtable .firm-cell a:hover, .linklike:hover { text-decoration: underline; color: var(--link); }
.rtable .firm-cell small { color: var(--text-3); font-size: .78rem; }
.rtable tr.row-dim td { color: var(--text-3); }
.num { text-align: right; }

/* Filtre çipleri */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--text-2);
}
.chip[aria-pressed="true"] { background: var(--petrol-700); border-color: var(--petrol-700); color: #fff; }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } }
.chip .n { font-size: .74rem; padding: 0 6px; border-radius: 999px; background: rgba(127, 127, 127, .18); }
.filters .search { height: 34px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 12px; background: var(--surface); min-width: 200px; }

/* Sekmeler */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.tabs [role="tab"] {
  border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--brand); }
.tabs [role="tab"]:hover { color: var(--text); }

/* Tanım listeleri */
dl.kv { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
dl.kv dt { color: var(--text-3); font-size: .86rem; }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hash { font-family: var(--mono); font-size: .82rem; overflow-wrap: anywhere; word-break: break-all; }
.copy { margin-left: 6px; }

/* Genel bakış */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px 16px; }
.kpi .v { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi .l { color: var(--text-3); font-size: .84rem; }
.attn { list-style: none; margin: 0; padding: 0; }
.attn li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.attn li:last-child { border-bottom: 0; }
.attn .t { font-weight: 650; }
.attn .d { font-size: .84rem; color: var(--text-3); }
.dist { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--neutral-bg); margin: 10px 0 8px; }
.dist span { display: block; height: 100%; }
.dist .c-teslim { background: var(--ok); }
.dist .c-bekleyen { background: var(--info); }
.dist .c-dikkat { background: var(--warn); }
.dist .c-hata { background: var(--err); }
.dist .c-bos { background: var(--border-strong); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; font-size: .82rem; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.integ { display: flex; flex-wrap: wrap; gap: 8px; }

/* Firma profili: form + telefon */
.brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.form-grid { display: grid; gap: 14px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.field .hint { font-size: .8rem; color: var(--text-3); margin-top: 4px; }
.field .err { font-size: .82rem; color: var(--err); margin-top: 4px; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field input[type="date"], .field input[type="datetime-local"], .field select, .field textarea {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
}
.field textarea { min-height: 72px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.field.dirty label::after { content: " • değişti"; color: var(--warn); font-weight: 600; font-size: .78rem; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type="color"] { width: 46px; height: 40px; padding: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); flex: none; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
legend { font-weight: 650; padding: 0 6px; font-size: .9rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .9rem; cursor: pointer; }
.check-row { display: flex; align-items: flex-start; gap: 8px; }
.check-row input { margin-top: 4px; }

.dirty-bar {
  position: sticky; bottom: 0; z-index: 5; margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius); background: var(--petrol-900); color: #fff; box-shadow: var(--shadow-lg);
}
.dirty-bar .btn { border-color: rgba(255, 255, 255, .4); background: transparent; color: #fff; }
.dirty-bar .btn-primary { background: #FFC857; border-color: #FFC857; color: #1F1A0A; }
.dirty-bar :focus-visible { outline-color: #FFC857; }

.phone-wrap { position: sticky; top: calc(var(--band-h, 32px) + 16px); }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.btn-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; }
.preview-band { font-size: .78rem; font-weight: 650; padding: 8px 10px; border-radius: var(--radius-sm); margin-bottom: 10px; text-align: center; }
.phone {
  width: 280px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 18.5;
  border-radius: 38px; padding: 10px; background: #0E1416; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A3336;
}
.screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #F4F6F7; color: #1A2226; display: flex; flex-direction: column; font-family: var(--font); }
.screen .status { height: 26px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; font-size: .68rem; font-weight: 700; }
.screen .appbar { padding: 12px 16px 16px; color: #fff; display: flex; align-items: center; gap: 10px; }
.screen .logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: none; }
.screen .appname { font-weight: 700; font-size: 1rem; line-height: 1.1; }
.screen .appsub { font-size: .7rem; opacity: .85; }
.screen .dial { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.screen .sipline { font-size: .7rem; display: flex; align-items: center; gap: 6px; color: #3C4B50; }
.screen .sipline i { width: 8px; height: 8px; border-radius: 50%; background: #9AA7AB; display: inline-block; }
.screen .numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.screen .numpad span { height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-weight: 650; font-size: .9rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.screen .callbtn { margin: 6px auto 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
.screen .tabbar { display: flex; justify-content: space-around; padding: 8px 6px 12px; background: #fff; font-size: .64rem; color: #56666B; border-top: 1px solid #E3E8EA; }
.screen .tabbar b { display: block; text-align: center; }
.icon-preview { display: flex; align-items: center; gap: 12px; margin-top: 14px; justify-content: center; }
.icon-preview .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow); }
.icon-preview .ic.missing { border: 2px dashed var(--err); background: var(--err-bg) !important; color: var(--err) !important; font-size: .64rem; text-align: center; line-height: 1.1; padding: 4px; }
.contrast { font-size: .82rem; margin-top: 6px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .78rem; }
.checklist .lbl { font-weight: 600; font-size: .9rem; }
.checklist .det { font-size: .82rem; color: var(--text-3); overflow-wrap: anywhere; }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--border); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.timeline li.tone-dot-ok::before { background: var(--ok); border-color: var(--ok); }
.timeline li.tone-dot-info::before { background: var(--info); border-color: var(--info); }
.timeline li.tone-dot-warn::before { background: var(--warn); border-color: var(--warn); }
.timeline li.tone-dot-err::before { background: var(--err); border-color: var(--err); }
.timeline li.voided .t { text-decoration: line-through; }
.timeline .t { font-weight: 650; font-size: .9rem; }
.timeline .d { font-size: .82rem; color: var(--text-3); }
.timeline li { background: none !important; }

/* Test formu maddeleri */
.titem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.titem:last-of-type { border-bottom: 0; }
.titem .note-field { grid-column: 1 / -1; }
.seg-radio { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.seg-radio label { position: relative; padding: 6px 10px; font-size: .84rem; font-weight: 600; cursor: pointer; border-left: 1px solid var(--border-strong); }
.seg-radio label:first-child { border-left: 0; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-radio label:has(input:checked).v-gecti { background: var(--ok-bg); color: var(--ok); }
.seg-radio label:has(input:checked).v-kaldi { background: var(--err-bg); color: var(--err); }
.seg-radio label:has(input:checked).v-denenmedi { background: var(--neutral-bg); color: var(--neutral); }
.seg-radio label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.err-summary { border: 2px solid var(--err); background: var(--err-bg); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.err-summary h3 { color: var(--err); margin-bottom: 6px; }
.err-summary ul { margin: 0; padding-left: 18px; }
.err-summary a { color: var(--err); font-weight: 600; }

/* APK kartları */
.apk-card { padding: 16px 18px; display: grid; gap: 12px; }
.apk-card .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.apk-card h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cond-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.cond-list li { display: flex; gap: 6px; align-items: flex-start; }

/* Diyalog ve çekmece */
dialog { border: 0; padding: 0; color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(4, 25, 30, .55); }
dialog.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-radius: 14px; }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(620px, 100vw); border-radius: 14px 0 0 14px; }
.dlg { display: flex; flex-direction: column; max-height: inherit; height: 100%; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.dlg-head p { margin: 4px 0 0; color: var(--text-3); font-size: .86rem; }
.dlg-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.dlg-body section + section { margin-top: 22px; }
.dlg-body h3 { margin-bottom: 10px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.close-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; color: var(--text-2); }
.close-x:hover { background: var(--surface-2); }

.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; font-size: .82rem; font-weight: 650; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-bg); font-size: .75rem; }
.steps li[aria-current="step"] { color: var(--text); }
.steps li[aria-current="step"]::before { background: var(--brand); color: var(--on-brand); }
.steps li + li::after { content: none; }
.scope-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); max-height: 340px; overflow-y: auto; }
.scope-list li { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.scope-list li:last-child { border-bottom: 0; }
.scope-list li.off { background: var(--surface-2); }

/* Bildirim */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--petrol-950); color: #EAF4F6; padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .88rem; border-left: 4px solid #FFC857; }
.toast b { color: #FFC857; }

/* Giriş */
body.auth .topbar, body.auth .layout > .sidebar { display: none; }
body.auth .layout { grid-template-columns: 1fr; }
.auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: min(440px, 100%); padding: 28px; }
.auth-card .brand { margin-bottom: 18px; }
.auth-foot { font-size: .8rem; color: var(--text-3); margin-top: 14px; }

/* Denetim kaydı */
.log-list { list-style: none; margin: 0; padding: 0; }
.log-list > li { border-bottom: 1px solid var(--border); }
.log-list > li:last-child { border-bottom: 0; }
.log-list details > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px;
}
.log-list details > summary::-webkit-details-marker { display: none; }
.log-list details > summary::after { content: "▸"; color: var(--text-3); }
.log-list details[open] > summary::after { content: "▾"; }
.log-list .body { padding: 0 18px 14px 18px; }
.diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.diff div { padding: 8px 10px; border-radius: 6px; font-size: .85rem; }

.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }

/* Mobil ve dar ekran */
@media (max-width: 1180px) {
  .brand-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .phone-wrap { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: min(300px, 86vw); z-index: 60;
    transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(4, 25, 30, .5); z-index: 55; }
  .menu-btn { display: inline-flex; }
  .brand-text span { display: none; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  main { padding: 18px 16px 56px; }
}
@media (max-width: 760px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .proto-band { position: static; }
  .top-search { order: 3; max-width: none; flex-basis: 100%; }
  .role-pick span { display: none; }
  .role-pick select { max-width: 150px; }
  .sidebar { top: 0; }
  h1 { font-size: 1.4rem; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  dl.kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  dl.kv dd { margin-bottom: 8px; }
  .strip, .strip-whole { min-width: 0; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li { border-radius: 4px !important; }
  .strip .v { white-space: normal; }
  .table-wrap { overflow: visible; }
  table.rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .rtable td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: start; }
  .rtable td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding-top: 3px; }
  .rtable td[data-label=""]::before { content: none; }
  .rtable td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .rtable td.num { text-align: left; }
  .matrix td { text-align: left; }
  .attn li { grid-template-columns: auto minmax(0, 1fr); }
  .attn li .btn { grid-column: 2; justify-self: start; }
  .log-list details > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .log-list details > summary .c-when, .log-list details > summary .c-who { grid-column: 1; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .titem { grid-template-columns: minmax(0, 1fr); }
  dialog.drawer { width: 100vw; border-radius: 0; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: 16px; padding-right: 16px; }
  .filters .search { min-width: 0; flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .brand-text b { font-size: .88rem; }
  .user-menu .who { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .strip li, .badge, .chip, .notice { border: 1px solid CanvasText; }
}

/* ---------- Gerçek panel eklemeleri ---------- */
:root { --band-h: 0px; }
.env-band { background: var(--petrol-950); color: #CFE3E7; font-size: .78rem; padding: 4px 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.env-band b { color: #FFC857; }
.messages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.messages li { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.messages li.success { color: var(--ok); background: var(--ok-bg); }
.messages li.error { color: var(--err); background: var(--err-bg); }
.messages li.info { color: var(--info); background: var(--info-bg); }
.nav .soon { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #7FA3AA; font-size: .9rem; }
.nav .soon small { margin-left: auto; font-size: .68rem; border: 1px dashed #5F858C; border-radius: 999px; padding: 0 6px; }
.field .helptext { display: block; font-size: .8rem; color: var(--text-3); margin: 0 0 4px; }
.field ul.errorlist { list-style: none; margin: 0 0 4px; padding: 0; color: var(--err); font-weight: 600; font-size: .84rem; }
ul.errorlist.nonfield { border: 2px solid var(--err); background: var(--err-bg); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; list-style: none; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), .field select, .field textarea {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
}
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.inline-form { display: inline; margin: 0; }
.tabs a[role="tab"], .tabs a.tab { text-decoration: none; padding: 10px 14px; font-weight: 600; color: var(--text-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand); }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.w-100 { width: 100%; }
.center-card { max-width: 440px; margin: 40px auto; }
.phone .screen .appbar, .phone .screen .status { background: #8A9A9E; color: #fff; }
.logout-btn { background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer; font-weight: 600; }
.json { font-family: var(--mono); font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.split-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 1180px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Özelleştirme akışı ---------- */
.flow { margin-bottom: 14px; }
.flow-steps { gap: 18px; }
.flow-steps a { color: inherit; text-decoration: none; }
.flow-steps a:hover { text-decoration: underline; }
.presets { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.preset { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: .86rem; }
.preset[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); background: var(--neutral-bg); }
.sw + .sw { margin-left: -10px; }
.thumb { width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: repeating-conic-gradient(#e6ebec 0 25%, #fff 0 50%) 50% / 12px 12px; vertical-align: middle; margin-right: 8px; }
.current-asset { display: flex; align-items: center; margin-top: 6px; }
.phone .logo { overflow: hidden; }
.phone .logo img, .icon-preview .ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.icon-preview .ic { overflow: hidden; background: #fff; }
.icon-preview .ic .ic-missing { font-size: .64rem; color: var(--err); text-align: center; line-height: 1.1; padding: 4px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.apk-section { border-left: 4px solid var(--warn); }
.field input[type="file"] { width: 100%; padding: 8px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
