:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --line: #e3e6eb;
  --line-2: #eef0f3;
  --text: #1b1f24;
  --muted: #667085;
  --faint: #98a2b3;
  --accent: #2563eb;
  --brand: #132742;
  --accent-soft: #e8efff;
  --accent-text: #1d4ed8;
  --ok: #12a150;
  --ok-soft: #e3f6ea;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --danger: #d92d20;
  --danger-soft: #fdecea;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --panel: #171b21;
    --panel-2: #1c2128;
    --line: #2a3038;
    --line-2: #222831;
    --text: #e6e9ee;
    --muted: #9aa4b2;
    --faint: #6b7584;
    --accent: #4d8dff;
    --brand: #f2f4f7;
    --accent-soft: #1b2a45;
    --accent-text: #8db4ff;
    --ok: #34c472;
    --ok-soft: #13301f;
    --warn: #f0a63a;
    --warn-soft: #33260f;
    --danger: #ff6b5e;
    --danger-soft: #3a1916;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
svg.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- üst çubuk */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  height: 54px; padding: 0 20px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--text); }
.brand:hover { text-decoration: none; }
.tim-logo { display: block; color: var(--brand); }
.brand .tim-logo { height: 28px; width: auto; }
.brand-name { padding-left: 10px; border-left: 1px solid var(--line); line-height: 20px; letter-spacing: .02em; }
.nav { display: flex; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 8px; color: var(--muted); font-weight: 550;
}
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent-text); }
.conn { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.main { max-width: 1440px; margin: 0 auto; padding: 22px 20px 90px; }

/* ---------------------------------------------------------------- düğmeler, girişler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--panel-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 13px; border-radius: 7px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
input[type=text], input[type=password], input[type=search], select, textarea {
  height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.search { position: relative; }
.search input { padding-left: 32px; width: 260px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); }
label.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.seg button {
  height: 32px; padding: 0 12px; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-weight: 550; cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent-soft); color: var(--accent-text); }

/* ---------------------------------------------------------------- kart, tablo */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-b { padding: 16px; }
.page-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-h .sub { color: var(--muted); }

table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
.t th {
  position: sticky; top: 54px; z-index: 5;
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em;
  padding: 9px 10px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--panel-2); }
.t tr.sel td { background: var(--accent-soft) !important; }
.t tr.click { cursor: pointer; }
.t .w1 { width: 1%; white-space: nowrap; }
.t td.num, .t th.num { text-align: right; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }

/* ---------------------------------------------------------------- rozet, nokta */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 7px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.badge.blue { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge.green { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.amber { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.red { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; }
.spin {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- uygulama satırı */
.appico { width: 34px; height: 34px; border-radius: 8px; display: block; object-fit: contain; }
.avatar {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 15px;
}
.app-name { font-weight: 600; }
.app-pkg { font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; }
tr.dim .app-name, tr.dim .appico, tr.dim .avatar { opacity: .5; }

/* ---------------------------------------------------------------- cihaz başlığı */
.dev-head { display: flex; gap: 18px; align-items: flex-start; padding: 18px; flex-wrap: wrap; }
.dev-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.dev-ico svg { width: 28px; height: 28px; }
.dev-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dev-title h1 { font-size: 21px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.stat { display: flex; flex-direction: column; gap: 1px; min-width: 70px; }
.stat .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.stat .v { font-weight: 600; white-space: nowrap; }
.batt { display: inline-flex; align-items: center; gap: 6px; }
.batt .bar { width: 30px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; opacity: .8; }
.batt .bar i { position: absolute; left: 1px; top: 1px; bottom: 1px; border-radius: 1px; background: currentColor; }
.batt.low { color: var(--danger); }
.batt.mid { color: var(--warn); }
.batt.ok { color: var(--ok); }
.dev-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; }
.tabs button {
  display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--accent-text); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--text); }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 9px; margin-bottom: 14px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--accent-soft); color: var(--accent-text); }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.banner b { color: inherit; }
.banner code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; color: var(--text); }

/* ---------------------------------------------------------------- toplu işlem çubuğu */
.bulk {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  padding: 8px 10px 8px 16px; border-radius: 12px;
  background: #1b1f24; color: #fff; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px);
}
.bulk .n { font-weight: 650; margin-right: 6px; }
.bulk .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.bulk .btn:hover { background: rgba(255,255,255,.16); }
.bulk .btn.danger { color: #ff8a80; }

/* ---------------------------------------------------------------- menü */
.menu {
  position: fixed; z-index: 60; min-width: 220px; padding: 5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
}
.menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.menu button:hover { background: var(--panel-2); }
.menu button.danger { color: var(--danger); }
.menu button:disabled { opacity: .45; cursor: default; background: none; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu .mh { padding: 6px 10px 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.menu-bg { position: fixed; inset: 0; z-index: 59; background: rgba(15, 18, 22, .45); animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(28px); opacity: 0; } }

/* ---------------------------------------------------------------- modal */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(15, 18, 22, .45); display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 760px; }
.modal-h { padding: 18px 20px 6px; }
.modal-b { padding: 8px 20px 16px; overflow: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal p { margin: 6px 0; }
.pick { border: 1px solid var(--line); border-radius: 9px; max-height: 300px; overflow: auto; }
.pick label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.pick label:last-child { border-bottom: 0; }
.pick label:hover { background: var(--panel-2); }
.opts { display: grid; gap: 10px; margin-top: 14px; }
.opts .hint { margin-left: 24px; font-size: 12.5px; color: var(--muted); margin-top: -6px; }

/* ---------------------------------------------------------------- bırakma alanı */
.drop {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-direction: column;
  padding: 28px; border: 2px dashed var(--line); border-radius: 12px; background: var(--panel);
  color: var(--muted); text-align: center; cursor: pointer; transition: .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.drop svg { width: 30px; height: 30px; }
.drop-page {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  background: rgba(37, 99, 235, .12); border: 3px dashed var(--accent); pointer-events: none;
}
.drop-page div { background: var(--panel); padding: 18px 26px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 650; font-size: 16px; color: var(--accent-text); }
.uploads { display: grid; gap: 8px; margin-top: 12px; }
.up { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.prog { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; flex: 1; }
.prog i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* ---------------------------------------------------------------- politika satırı */
.pol { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.pol:last-child { border-bottom: 0; }
.pol .d { font-size: 12.5px; color: var(--muted); }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 11px; background: var(--line); cursor: pointer; transition: .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:disabled + span { opacity: .5; cursor: default; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 180px 1fr; }
.kv div { padding: 8px 16px; border-bottom: 1px solid var(--line-2); }
.kv div:nth-child(odd) { color: var(--muted); }
.kv div:nth-child(even) { font-weight: 550; word-break: break-all; }

/* ---------------------------------------------------------------- uzaktan ekran */
.scr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; padding: 16px; align-items: start; }
.scr-stage { position: relative; justify-self: center; outline: none; max-width: 100%; }
.scr-phone { position: relative; padding: 10px; border-radius: 22px; background: #0b0d10; box-shadow: var(--shadow-lg); border: 1px solid #2a3038; transition: box-shadow .15s; }
.scr-stage:focus .scr-phone { box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg); }
#scr { display: block; height: min(calc(100vh - 230px), 900px); min-height: 360px; max-width: 100%; aspect-ratio: 9 / 10; object-fit: contain;
  border-radius: 12px; background: #10141a; cursor: pointer; user-select: none; -webkit-user-drag: none; touch-action: none;
  -webkit-touch-callout: none; -webkit-user-select: none; }
.scr-ov { position: absolute; inset: 10px; display: grid; place-content: center; gap: 4px; padding: 24px; border-radius: 12px;
  background: rgba(16, 20, 26, .82); color: #e7edf5; text-align: center; font-weight: 600; pointer-events: none; }
.scr-ov .btn { pointer-events: auto; }
.scr-side { display: grid; gap: 16px; }
.scr-kv { grid-template-columns: 100px 1fr; }
.scr-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.scr-keys .btn { flex-direction: column; height: auto; padding: 8px 2px; gap: 4px; font-size: 11.5px; font-weight: 600; }
.scr-help b { color: var(--text); font-weight: 600; }
.scr-tap { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none;
  background: rgba(77, 141, 255, .45); border: 2px solid #8db4ff; animation: tap .45s ease-out forwards; }
@keyframes tap { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
/* Dar ekranda kutu genişliği sabit: görüntü gelmeden (çevrimdışı, bağlanıyor) içerik boyutu yok, kutu çökmesin. */
@media (max-width: 1000px) {
  .scr-wrap { grid-template-columns: 1fr; }
  .scr-stage { width: min(100%, 560px); }
  #scr { height: auto; width: 100%; min-height: 0; }
}

/* ---------------------------------------------------------------- adımlar */
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; }
.cmd {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px;
  padding: 10px 12px; border-radius: 9px; background: #12161c; color: #e7edf5;
  font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.cmd span { flex: 1; }
.cmd button { flex: none; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 6px; height: 26px; padding: 0 9px; cursor: pointer; font: inherit; font-size: 12px; }
.secret { font-family: var(--mono); font-size: 18px; font-weight: 650; letter-spacing: .06em; padding: 8px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }

/* ---------------------------------------------------------------- giriş */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 360px; padding: 28px; }
.login-logo .tim-logo { width: 140px; height: auto; margin-bottom: 22px; }
.login h1 { margin: 14px 0 4px; }
.login form { display: grid; gap: 12px; margin-top: 18px; }
.login input { height: 40px; }
.login .btn { height: 40px; }
.login .btn.google { width: 100%; margin: 20px 0 8px; text-decoration: none; background: #fff; color: #1f1f1f; border-color: #dadce0; gap: 10px; }
.login .btn.google:hover { background: #f8f9fa; }
.login .center { text-align: center; }
.login .or { text-align: center; margin-top: 18px; }
.login .err { margin-top: 12px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }

/* ---------------------------------------------------------------- bildirimler */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: grid; gap: 8px; width: 360px; max-width: calc(100vw - 36px); }
.toast {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); animation: tin .18s ease-out;
}
.toast .ti { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--accent); }
.toast.ok .ti { background: var(--ok); }
.toast.err .ti { background: var(--danger); }
.toast .ti svg { width: 13px; height: 13px; }
.toast b { display: block; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* yalnız telefonda / yalnız dokunmatik ya da fareli cihazda görünenler */
.only-sm, .touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .touch-only { display: inline; }
  .pc-only { display: none; }
}

@media (max-width: 860px) {
  .top { gap: 8px; padding: 0 12px; overflow-x: auto; }
  .nav a span { display: none; }
  .main { padding: 14px 10px 90px; }
  .search input { width: 100%; }
  .hide-sm { display: none; }
  .kv { grid-template-columns: 120px 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- telefon */
@media (max-width: 760px) {
  :root { --navh: 58px; }
  .main { padding: 12px 10px calc(var(--navh) + 96px + env(safe-area-inset-bottom)); }
  .top { gap: 10px; overflow: visible; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }

  /* gezinme: alt sekme çubuğu */
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    height: calc(var(--navh) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--panel); border-top: 1px solid var(--line);
  }
  .nav a { flex-direction: column; justify-content: center; gap: 3px; padding: 0; border-radius: 0; font-size: 11px; font-weight: 600; }
  .nav a span { display: block; }
  .nav a svg.i { width: 21px; height: 21px; }
  .nav a.on, .nav a:hover { background: none; }
  .nav a.on { color: var(--accent-text); }

  /* dokunmaya uygun boyutlar; 16 px yazı iOS'ta odaklanınca yakınlaştırmayı önler */
  .btn { height: 38px; }
  .btn.sm { height: 32px; }
  .btn.icon { width: 38px; }
  .btn.sm.icon { width: 32px; }
  input[type=text], input[type=password], input[type=search], select, textarea { height: 40px; font-size: 16px; }
  input[type=checkbox] { width: 20px; height: 20px; }
  .seg button { height: 36px; }
  span.only-sm { display: inline; }
  .btn.only-sm { display: inline-flex; }

  .page-h { gap: 10px; margin-bottom: 12px; }
  .page-h .grow { flex-basis: 100%; height: 0; }
  .page-h .search { flex: 1 1 160px; }
  .toolbar { padding: 10px 12px; gap: 8px 10px; }
  .toolbar .search { flex: 1 1 100%; }
  .card-h { padding: 12px 14px; }
  .card-b { padding: 14px; }
  .grid2 { gap: 12px; }
  .drop { padding: 20px 16px; }
  .cmd { flex-direction: column-reverse; gap: 6px; font-size: 12px; }
  .cmd button { align-self: flex-end; }
  #pol-wrap { padding: 10px !important; }

  /* tablolar → kart listesi (aynı işaretleme; hücreler grid alanlarına yerleşir) */
  table.t.cards, .t.cards tbody { display: block; }
  .t.cards thead { display: none; }
  .t.devs thead, .t.apps thead { display: block; }
  .t.cards thead tr { display: flex; }
  .t.cards thead th { display: none; }
  .t.cards thead th.c-sel { display: block; flex: 1; position: static; padding: 10px 14px;
    text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 550; }
  .t.cards tbody tr { display: grid; gap: 4px 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .t.cards tbody tr:last-child { border-bottom: 0; }
  .t.cards td { display: block; padding: 0; border: 0; min-width: 0; }
  .t.cards td.hide-sm { display: none; }
  .t.cards tr.sel { background: var(--accent-soft); }
  .t.cards tbody tr:hover td, .t.cards tr.sel td { background: none !important; }
  .t.cards .c-sel { grid-area: sel; align-self: start; padding-top: 1px; }
  .t.cards .c-ico { grid-area: ico; align-self: start; }
  .t.cards .c-name { grid-area: name; }
  .t.cards .c-act { grid-area: act; }

  .t.devs tbody tr { grid-template-columns: 22px auto auto minmax(0, 1fr) auto;
    grid-template-areas: "sel name name name seen" "sel ip bat flags flags"; }
  .t.devs .c-seen { grid-area: seen; align-self: start; font-size: 12.5px; text-align: right; }
  .t.devs .c-ip { grid-area: ip; font-size: 12px; }
  .t.devs .c-bat { grid-area: bat; }
  .t.devs .c-flags { grid-area: flags; }
  .t.devs .c-flags .badges { justify-content: flex-end; }

  .t.apps tbody tr { grid-template-columns: 22px 34px minmax(0, 1fr) auto;
    grid-template-areas: "sel ico name act" "sel ico badges act"; }
  .t.apps .c-badges { grid-area: badges; }

  .t.cmds tbody tr { grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "cmd state" "target target" "msg msg" "time cancel"; }
  .t.cmds .c-cmd { grid-area: cmd; font-weight: 600; white-space: normal; }
  .t.cmds .c-state { grid-area: state; }
  .t.cmds .c-target { grid-area: target; }
  .t.cmds .c-msg { grid-area: msg; }
  .t.cmds .c-msg .faint { display: none; } /* bitiş zamanı: komutlar çoğunlukla aynı dakikada biter */
  .t.cmds .c-time { grid-area: time; color: var(--muted); }
  .t.cmds .c-cancel { grid-area: cancel; }

  .t.apks tbody tr { grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas: "ico name ver" "ico act act"; }
  .t.apks .c-ver { grid-area: ver; align-self: start; text-align: right; }

  /* cihaz başlığı */
  .dev-head { padding: 14px; gap: 12px; }
  .dev-ico { display: none; }
  .dev-head > .grow { min-width: 0 !important; flex: 1 1 100%; }
  .dev-title h1 { font-size: 18px; }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .stat .v { white-space: normal; }
  .dev-actions { margin-left: 0; width: 100%; flex-wrap: nowrap; }
  .dev-actions .btn:not(.icon) { flex: 1; }

  /* sekmeler yalnız yatay kayar ve kaydırırken üst çubuğun altında kalır. overflow-x: auto tek başına
     overflow-y'yi de auto yapar; alt çizginin -1px payı 1px dikey taşma yaratıp çubuğu her yöne oynatıyordu. */
  .tabs { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0 4px;
    position: sticky; top: 54px; z-index: 6; background: var(--panel); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 0 10px; white-space: nowrap; margin-bottom: 0; }

  /* toplu işlem: "N seçili · İşlemler" (düğmeler alttan açılan panelde) */
  .bulk { left: 8px; right: 8px; bottom: calc(var(--navh) + 8px + env(safe-area-inset-bottom)); transform: none;
    max-width: none; flex-wrap: nowrap; justify-content: flex-start; padding: 8px 8px 8px 14px; }
  .bulk .n { flex: 1; margin: 0; }
  .bulk .btn { display: none; }
  .bulk .btn.keep { display: inline-flex; }

  /* menüler ve pencereler alttan açılır */
  .menu.sheet { left: 0; right: 0; top: auto; bottom: 0; min-width: 0; max-height: 80vh; overflow-y: auto;
    border-radius: 16px 16px 0 0; border-width: 1px 0 0; padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
    animation: sheet .18s ease-out; }
  .menu.sheet button { padding: 12px; font-size: 15px; }
  .menu.sheet .mh { padding: 8px 12px 6px; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal, .modal.wide { max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; animation: sheet .18s ease-out; }
  .modal-h { padding: 16px 16px 4px; }
  .modal-b { padding: 8px 16px 14px; }
  .modal-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-f .btn { flex: 1; height: 42px; }
  #toasts { top: 62px; bottom: auto; left: 8px; right: 8px; width: auto; max-width: none; }

  /* uzaktan ekran */
  .scr-wrap { padding: 10px; gap: 14px; }
  .scr-phone { padding: 6px; border-radius: 16px; }
  .scr-ov { inset: 6px; }
  #scr { max-height: calc(100svh - 170px); }
  .scr-keys .btn { padding: 10px 2px; }
}

/* çok dar telefonlar (320–360 px): cihaz düğmeleri tek satıra sığsın */
@media (max-width: 360px) {
  .dev-actions { gap: 6px; }
  .dev-actions .btn.icon { width: 36px; }
  .dev-actions [data-type="inventory"] { flex: none; width: 36px; padding: 0; }
  .dev-actions [data-type="inventory"] span { display: none; }
}
