/* Oyun Evreni — yönetim paneli. Kurumsal koyu tema; grafik renkleri doğrulanmış paletten (koyu yüzey #161a33). */
:root {
  --plane: #0e1022; --surface: #161a33; --surface2: #1d2244; --surface3: #262c55;
  --line: rgba(255, 255, 255, 0.08); --line2: rgba(255, 255, 255, 0.14);
  --ink: #f2f3ff; --ink2: #c3c6e6; --muted: #8b8fb8;
  --accent: #8b74ff; --accent2: #6a52f0; --teal: #2ad4c5; --honey: #f5b743;
  --good: #0ca30c; --good-ink: #3ddc97; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b; --crit-ink: #ff8a8a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70;
  --grid: #2a2f52; --axis: #3a4068;
  --r: 14px; --r-sm: 9px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --side: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--plane); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #b9adff; text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.ok { color: var(--good-ink); }
.bad { color: var(--crit-ink); }

/* ---------- yerleşim ---------- */
.app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 12px; background: linear-gradient(180deg, #121530, #0e1022); border-inline-end: 1px solid var(--line); scrollbar-width: thin;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 750; font-size: 16px; }
.side-brand img { width: 30px; height: 30px; border-radius: 8px; }
.side-brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.nav-sec { margin: 12px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink2); font-weight: 600; text-decoration: none;
}
.nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(139, 116, 255, 0.26), rgba(139, 116, 255, 0.08)); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
[dir="rtl"] .nav a[aria-current="page"] { box-shadow: inset -2px 0 0 var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav .game-ic { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.nav .count { margin-inline-start: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 24px;
  background: rgba(14, 16, 34, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { color: var(--muted); font-weight: 600; font-size: 13px; }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.me { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #11122a; background: linear-gradient(135deg, var(--honey), #ff7aa8); flex: none; }
.me b { font-size: 13px; }
.me small { display: block; font-size: 11px; color: var(--muted); line-height: 1.1; }
.menu-btn { display: none; }
.content { padding: 24px; display: flex; flex-direction: column; gap: 18px; max-width: 1480px; width: 100%; }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 40; transform: translateX(-102%); transition: transform 0.22s ease; box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5); }
  [dir="rtl"] .side { inset: 0 0 0 auto; transform: translateX(102%); }
  .side.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 14px; }
  .content { padding: 16px 14px; }
  .me .me-tx { display: none; }
}
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(5, 6, 16, 0.55); }

/* ---------- bileşenler ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-21 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.card-head { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 750; }
.card-head .sub { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.card-head .end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.kpi .lbl { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .val { font-size: 27px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line2); background: var(--surface2); font-weight: 650; font-size: 13.5px; white-space: nowrap; text-decoration: none; color: var(--ink);
  transition: background 0.15s, border-color 0.15s, filter 0.15s;
}
.btn:hover:not([disabled]) { background: var(--surface3); text-decoration: none; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(180deg, #9a86ff, #6a52f0); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(106, 82, 240, 0.3); }
.btn-primary:hover:not([disabled]) { filter: brightness(1.08); background: linear-gradient(180deg, #9a86ff, #6a52f0); }
.btn-danger { background: rgba(208, 59, 59, 0.16); border-color: rgba(208, 59, 59, 0.5); color: #ffb3b3; }
.btn-danger:hover:not([disabled]) { background: rgba(208, 59, 59, 0.28); }
.btn-ghost { background: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.icon-btn { width: 36px; padding: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 750; white-space: nowrap; background: rgba(255, 255, 255, 0.07); color: var(--ink2); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.good { background: rgba(12, 163, 12, 0.16); color: var(--good-ink); }
.badge.warn { background: rgba(250, 178, 25, 0.16); color: #ffd27a; }
.badge.crit { background: rgba(208, 59, 59, 0.18); color: var(--crit-ink); }
.badge.accent { background: rgba(139, 116, 255, 0.18); color: #cdc3ff; }
.badge.teal { background: rgba(42, 212, 197, 0.14); color: #8ff0e5; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 650; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* tablo */
.table-wrap { overflow-x: auto; margin: 0 -18px -18px; scrollbar-width: thin; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: start; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(0, 0, 0, 0.12); }
.t td { padding: 10px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: rgba(255, 255, 255, 0.03); }
.t td.end, .t th.end { text-align: end; }
.t .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t .who .avatar { width: 28px; height: 28px; font-size: 12px; }
.t .who b { font-weight: 650; }
.t .ellipsis { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 26px; text-align: center; color: var(--muted); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; color: var(--muted); font-size: 12.5px; font-weight: 600; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .search { flex: 1; min-width: 200px; }

/* form */
.form { display: flex; flex-direction: column; gap: 16px; }
.fgroup { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.field .help { font-size: 12px; color: var(--muted); }
.in, select.in, textarea.in {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: #0f1229; font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.in { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 116, 255, 0.22); }
.in[aria-invalid="true"] { border-color: var(--crit); }
.in:disabled { opacity: 0.6; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; user-select: none; min-height: 38px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 40px; height: 23px; border-radius: 999px; background: #33385e; transition: background 0.15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(17px); }
[dir="rtl"] .switch input:checked + .track::after { transform: translateX(-17px); }
.switch input:focus-visible + .track { outline: 2px solid var(--teal); outline-offset: 2px; }
.form-actions { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 0 2px; background: linear-gradient(0deg, var(--surface) 70%, transparent); }
.form-actions .msg { margin-inline-end: auto; font-weight: 650; font-size: 13px; }
.sec-title { margin: 6px 0 -4px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.err-line { color: var(--crit-ink); font-weight: 650; font-size: 13px; min-height: 18px; }
.err-line:empty { display: none; }
.danger-zone { border-color: rgba(208, 59, 59, 0.4); }
.danger-zone h2 { color: #ffb3b3; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 650; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.code { font-family: var(--mono); font-size: 12.5px; padding: 12px 14px; border-radius: 10px; background: #0b0d1f; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-all; color: #d6d9ff; }
.steps { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink2); }
.steps code { font-family: var(--mono); font-size: 12.5px; background: #0b0d1f; padding: 1px 6px; border-radius: 5px; }

/* oyun kartları */
.games { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gcard { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.gcard:hover { border-color: var(--line2); transform: translateY(-1px); text-decoration: none; }
.gcard .top { display: flex; align-items: center; gap: 12px; }
.gcard .top img { width: 48px; height: 48px; border-radius: 12px; }
.gcard h3 { margin: 0; font-size: 16px; }
.gcard .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gcard .stats div { background: rgba(0, 0, 0, 0.18); border-radius: 10px; padding: 8px 10px; }
.gcard .stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.gcard .stats span { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.ghead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ghead img { width: 54px; height: 54px; border-radius: 14px; }
.ghead h2 { margin: 0; font-size: 20px; }
.ghead .end { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.switcher { position: relative; }
.switcher select { height: 34px; padding: 0 30px 0 10px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface2); font-weight: 650; }

/* çekmece ve pencere */
.drawer-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 16, 0.55); animation: fade 0.15s ease-out; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 51; width: min(560px, 100%); overflow-y: auto; padding: 22px;
  background: var(--surface); border-inline-start: 1px solid var(--line2); box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45); animation: slide 0.2s ease-out; scrollbar-width: thin;
}
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.drawer-head .avatar { width: 46px; height: 46px; font-size: 18px; }
.drawer-head h2 { margin: 0; font-size: 19px; }
.drawer-head .x { margin-inline-start: auto; }
.dsec { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.dsec h3 { margin: 0; font-size: 13.5px; font-weight: 750; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.modal-scrim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 16, 0.6); animation: fade 0.15s ease-out; }
.modal { width: min(480px, 100%); padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line2); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.modal h2 { margin: 0 0 8px; font-size: 17px; }
.modal p { margin: 0 0 14px; color: var(--ink2); }
.modal .row { justify-content: flex-end; margin-top: 16px; }
.toast { position: fixed; z-index: 70; inset-inline: 0; bottom: 22px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 10px; background: #232858; border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); font-weight: 650; }
.toast.bad { border-color: rgba(208, 59, 59, 0.6); }
.toast.good { border-color: rgba(12, 163, 12, 0.6); }

/* giriş/kurulum */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 50% at 30% 20%, rgba(124, 92, 255, 0.22), transparent 70%), radial-gradient(40% 40% at 80% 90%, rgba(42, 212, 197, 0.12), transparent 70%), var(--plane); }
.gate .card { width: min(420px, 100%); padding: 26px; }
.gate h1 { margin: 0 0 4px; font-size: 21px; }
.gate p { margin: 0 0 18px; color: var(--muted); }
.gate .logo { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px; }

/* grafikler */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 7px 10px; border-radius: 8px; background: #0b0d1f; border: 1px solid var(--line2);
  font-size: 12.5px; font-weight: 650; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); transform: translate(-50%, calc(-100% - 10px));
}
.chart .tip small { display: block; color: var(--muted); font-weight: 650; font-size: 11.5px; }
.chart .tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; vertical-align: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; font-weight: 650; color: var(--ink2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: 74px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13px; font-weight: 650; }
.hbar .bar { height: 10px; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.hbar .bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hbar .v { text-align: end; font-variant-numeric: tabular-nums; color: var(--ink); }
.map { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0d1f; border: 1px solid var(--line); }
.map canvas { width: 100%; height: 100%; display: block; }
.meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--s1); }
.list { display: flex; flex-direction: column; }
.list > div { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.list > div:last-child { border-bottom: 0; }
.list .when { color: var(--muted); font-size: 12px; white-space: nowrap; margin-inline-start: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- yapay zekâ, karakterler, kullanıcı ekleri (admin-ai.js) ---------- */
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.modal.wide { width: min(680px, 100%); max-height: 90vh; overflow: auto; }
.modal .code, .modal pre.code { max-height: 34vh; overflow: auto; margin: 6px 0 12px; }
.bulkbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(139, 116, 255, 0.12); border: 1px solid rgba(139, 116, 255, 0.35); }
.bulkbar[hidden] { display: none; }
td.selc { width: 34px; }
.cport { border-radius: 50%; object-fit: cover; background: var(--surface3); flex: none; display: block; }
.chead { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.chead .col { gap: 8px; align-items: flex-end; }
.cgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.ccard.off { opacity: 0.55; }
.cc-top { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.cc-top > div { min-width: 0; }
.cc-top b { font-size: 15px; }
.cc-top .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink2); }
.cc-stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.cc-stats b { color: var(--ink); }
.cc-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-foot .switch { min-height: 30px; font-size: 12.5px; margin-inline-end: auto; }
.cposts { display: flex; flex-direction: column; }
.cpost { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cpost:last-child { border-bottom: 0; }
.cpost.dim .cp-text { opacity: 0.7; }
.cp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cp-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; }
.cp-head .when { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.cp-text { font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cp-mood { font-size: 13px; color: var(--ink2); }
.cp-alt { font-size: 13px; color: var(--ink2); margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.cp-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-foot > .muted { margin-inline-end: auto; font-size: 12.5px; }
a.tag { color: #9fd2ff; font-weight: 650; text-decoration: none; }
a.tag:hover { text-decoration: underline; }
.chips { gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line2); font-size: 12.5px; }
.chip a { color: inherit; text-decoration: none; }
.chip button { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chip button:hover { color: var(--crit-ink); }
.moods { display: flex; flex-wrap: wrap; gap: 6px; }
.weights .field { flex-direction: row; align-items: center; flex-wrap: wrap; }
.weights .field > label { flex: 1 1 100%; }
.weights input[type=range] { flex: 1; accent-color: var(--accent); }
.weights .rv { width: 24px; text-align: end; font-variant-numeric: tabular-nums; }
.langed { display: flex; flex-direction: column; gap: 8px; }
.langrow { display: flex; gap: 8px; align-items: flex-start; }
.langrow .lg { width: 30px; flex: none; padding-top: 9px; font: 700 11px var(--mono); color: var(--muted); }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 150px; align-items: end; }
.hours > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.hours i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--s1); }
.hours span { font-size: 10.5px; color: var(--muted); height: 13px; }
@media (max-width: 720px) { .chead .col { align-items: flex-start; } }

/* ---------- oyunlar sayfası: süzgeçler, liste görünümü, hızlı geçiş ---------- */
.nav-jump { display: flex; align-items: center; gap: 10px; width: calc(100% - 4px); margin: 6px 2px 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.03); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: start; }
.nav-jump:hover { color: var(--ink); border-color: var(--accent); }
.nav-jump svg { width: 16px; height: 16px; flex: none; }
.nav-jump span { flex: 1; }
.nav-jump kbd, .jump-hint { font: 600 10.5px var(--mono); color: var(--muted); }
.nav-jump kbd { padding: 2px 5px; border-radius: 5px; border: 1px solid var(--line2); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink2); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.fchip b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 750; }
.fchip:hover { border-color: var(--accent); }
.fchip[aria-pressed="true"] { background: rgba(139, 116, 255, 0.2); border-color: var(--accent); color: #fff; }
.fchip[aria-pressed="true"] b { color: #cdc3ff; }
.seg { display: inline-flex; gap: 4px; }
.seg .btn.on { border-color: var(--accent); background: rgba(139, 116, 255, 0.2); color: #fff; }
.gcard { border-top: 3px solid color-mix(in srgb, var(--gc, #7c5cff) 70%, transparent); }
.gcard .stats.s4 { grid-template-columns: repeat(4, 1fr); }
.gcard .gtag { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink2); background: rgba(255, 255, 255, 0.06); padding: 2px 8px; border-radius: 6px; }
.gcard .gfoot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.gcard .gfoot .go { color: var(--accent); font-weight: 700; opacity: 0; transition: opacity 0.15s; }
.gcard:hover .gfoot .go, .gcard:focus-visible .gfoot .go { opacity: 1; }
.modal.jump { width: min(600px, 100%); padding: 14px; align-self: start; margin-top: 10vh; }
.jump-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: 60vh; overflow: auto; }
.jump-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.jump-row img, .jump-row svg { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.jump-row svg { padding: 6px; }
.jump-row b { font-size: 14px; }
.jump-row .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump-row .jend { margin-inline-start: auto; }
.jump-row.sel { background: rgba(139, 116, 255, 0.18); }
.jump-hint { margin-top: 10px; text-align: end; }
@media (max-width: 720px) { .gcard .stats.s4 { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================================================================
   Premium katman (v2): rafine renk sistemi, açık / koyu tema, vurgu rengi, yoğunluk, yeni üst çubuk ve bileşenler.
   html[data-theme="light|dark"], html[data-accent="violet|blue|teal|amber|rose|graphite"], html[data-density="compact"]
   ===================================================================================================================== */
:root {
  --plane: #0a0c13; --surface: #11141d; --surface2: #171b26; --surface3: #1f2431; --sunken: #0c0f17; --field: #0d1018;
  --line: rgba(255, 255, 255, 0.065); --line2: rgba(255, 255, 255, 0.11); --hover: rgba(255, 255, 255, 0.04);
  --ink: #eceef6; --ink2: #b3b8cb; --muted: #7c8299;
  --accent: #7c6cf0; --accent2: #6553e6; --accent-ink: #c9c1ff; --accent-soft: rgba(124, 108, 240, 0.16);
  --grid: #222738; --axis: #343a50;
  --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.18);
  --font: "Segoe UI Variable Text", "Segoe UI", "SF Pro Text", -apple-system, system-ui, Roboto, "Noto Sans", Arial, sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", -apple-system, system-ui, Roboto, Arial, sans-serif;
  --pad: 20px; --gap: 16px; --row: 11px; --side: 264px;
}
html[data-accent="blue"] { --accent: #3b82f6; --accent2: #2563eb; --accent-ink: #b5d1ff; --accent-soft: rgba(59, 130, 246, 0.16); }
html[data-accent="teal"] { --accent: #14b8a6; --accent2: #0d9488; --accent-ink: #9df0e4; --accent-soft: rgba(20, 184, 166, 0.16); }
html[data-accent="amber"] { --accent: #e0a32a; --accent2: #c98a12; --accent-ink: #ffe0a3; --accent-soft: rgba(224, 163, 42, 0.16); }
html[data-accent="rose"] { --accent: #e5527a; --accent2: #d13b64; --accent-ink: #ffc1d2; --accent-soft: rgba(229, 82, 122, 0.16); }
html[data-accent="graphite"] { --accent: #8a93a8; --accent2: #6f7890; --accent-ink: #dfe3ec; --accent-soft: rgba(138, 147, 168, 0.18); }
html[data-density="compact"] { --pad: 14px; --gap: 12px; --row: 7px; }
html[data-theme="light"] {
  color-scheme: light;
  --plane: #f4f5f8; --surface: #ffffff; --surface2: #f3f4f7; --surface3: #e9ebf0; --sunken: #f7f8fa; --field: #ffffff;
  --line: rgba(17, 24, 39, 0.08); --line2: rgba(17, 24, 39, 0.14); --hover: rgba(17, 24, 39, 0.035);
  --ink: #111522; --ink2: #3c4357; --muted: #6b7286;
  --accent-ink: var(--accent2); --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --good-ink: #0f7a3d; --crit-ink: #b42323;
  --grid: #e6e8ee; --axis: #c9cdd8;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 6px 18px rgba(17, 24, 39, 0.05);
}
html, body { background: var(--plane); color: var(--ink); font-size: 14px; letter-spacing: -0.003em; }
a { color: var(--accent-ink); }
h1, h2, h3, .kpi .val, .topbar h1 { font-family: var(--font-d); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); }

/* yan menü */
.side { background: var(--surface); border-inline-end: 1px solid var(--line); padding: 16px 12px; gap: 2px; }
html[data-theme="light"] .side { background: #fbfbfd; }
.side-brand { padding: 4px 8px 14px; font-family: var(--font-d); letter-spacing: -0.01em; }
.side-brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px var(--accent-soft); }
.nav-sec { margin: 16px 10px 6px; font-size: 10.5px; letter-spacing: 0.14em; font-weight: 750; color: var(--muted); opacity: 0.85; }
.nav a { padding: 7px 10px; border-radius: 8px; font-weight: 560; font-size: 13.5px; color: var(--ink2); position: relative; }
.nav a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); box-shadow: none; font-weight: 650; }
.nav a[aria-current="page"]::before { content: ''; position: absolute; inset-inline-start: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a[aria-current="page"] svg { color: var(--accent); opacity: 1; }
.nav svg { width: 17px; height: 17px; opacity: 0.75; }
.nav .count { font-weight: 650; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface3); color: var(--ink2); }
.side-foot { border-top: 1px solid var(--line); padding: 12px 8px 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.side-foot .env { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: var(--surface2); font-weight: 650; font-size: 11px; color: var(--ink2); }
.side-foot .env i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
html[data-side="mini"] { --side: 72px; }
html[data-side="mini"] .side .side-brand div, html[data-side="mini"] .nav a span, html[data-side="mini"] .nav .count, html[data-side="mini"] .nav-sec, html[data-side="mini"] .nav-jump span, html[data-side="mini"] .nav-jump kbd, html[data-side="mini"] .side-foot { display: none; }
html[data-side="mini"] .nav a, html[data-side="mini"] .nav-jump { justify-content: center; }

/* üst çubuk */
.topbar { min-height: 58px; padding: 8px 26px; background: color-mix(in srgb, var(--plane) 82%, transparent); border-bottom: 1px solid var(--line); gap: 14px; }
.topbar h1 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.crumb { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.top-end { gap: 6px; }
.tbtn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink2); }
.tbtn:hover { background: var(--hover); border-color: var(--line); color: var(--ink); }
.tbtn svg { width: 18px; height: 18px; }
.tbtn .dot { position: absolute; top: 4px; inset-inline-end: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--crit); color: #fff; font: 700 10px/16px var(--font); box-shadow: 0 0 0 2px var(--plane); }
.tbtn .dot.warn { background: #d99a16; } .tbtn .dot.info { background: var(--accent); }
.tsearch { display: inline-flex; align-items: center; gap: 10px; height: 36px; min-width: 240px; padding: 0 10px 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: var(--field); color: var(--muted); font-size: 13px; }
.tsearch:hover { border-color: var(--accent); color: var(--ink2); }
.tsearch svg { width: 16px; height: 16px; }
.tsearch kbd { margin-inline-start: auto; font: 600 10.5px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line2); color: var(--muted); }
@media (max-width: 1100px) { .tsearch { min-width: 0; width: 36px; padding: 0; justify-content: center; } .tsearch span, .tsearch kbd { display: none; } }
.me { background: transparent; border: 1px solid var(--line); padding: 3px 12px 3px 3px; }
.avatar { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #ff9ac1)); color: #fff; }
.content { padding: 26px; gap: var(--gap); max-width: 1560px; }

/* açılır paneller (bildirimler, görünüm) */
.pop { position: fixed; z-index: 55; top: 62px; inset-inline-end: 18px; width: min(400px, calc(100vw - 24px)); max-height: min(72vh, 660px); overflow: auto; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); animation: fade 0.12s ease-out; }
.pop-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.pop-head b { font-family: var(--font-d); font-size: 14.5px; }
.pop-head .end { margin-inline-start: auto; }
.alert { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.alert:hover { background: var(--hover); text-decoration: none; }
.alert:last-child { border-bottom: 0; }
.alert .lv { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--accent); }
.alert.crit .lv { background: var(--crit); box-shadow: 0 0 0 4px rgba(208, 59, 59, 0.15); }
.alert.warn .lv { background: #e0a32a; box-shadow: 0 0 0 4px rgba(224, 163, 42, 0.15); }
.alert b { display: block; font-size: 13.5px; font-weight: 650; }
.alert span { font-size: 12.5px; color: var(--muted); }
.prefs { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.prefs .grp > span { display: block; font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.segc { display: flex; padding: 3px; gap: 3px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); }
.segc button { flex: 1; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--ink2); font-weight: 600; font-size: 12.5px; }
.segc button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line2); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* kartlar, KPI */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); box-shadow: var(--shadow); }
.card-head h2 { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.card-head .sub { font-weight: 550; font-size: 12px; }
.kpis { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px 14px; box-shadow: var(--shadow); overflow: hidden; }
.kpi::after { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: 0.55; }
.kpi .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.kpi .val { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin-top: 6px; }
.kpi .hint { font-weight: 550; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--surface3); color: var(--ink2); }
.delta.up { background: rgba(34, 197, 94, 0.14); color: #4ade80; }
.delta.down { background: rgba(239, 68, 68, 0.14); color: #f87171; }
html[data-theme="light"] .delta.up { color: #15803d; }
html[data-theme="light"] .delta.down { color: #b91c1c; }

/* düğmeler, alanlar */
.btn { height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surface2); font-weight: 600; font-size: 13px; color: var(--ink); }
.btn:hover:not([disabled]) { background: var(--surface3); }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover:not([disabled]) { background: var(--accent2); filter: none; }
.btn-danger { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.38); color: var(--crit-ink); }
.btn-sm { height: 28px; font-size: 12.5px; }
.in, select.in, textarea.in { height: 36px; border-radius: 8px; border-color: var(--line2); background: var(--field); color: var(--ink); }
textarea.in { height: auto; }
.in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.switch .track { background: var(--surface3); box-shadow: inset 0 0 0 1px var(--line2); }
.switch input:checked + .track { background: var(--accent); box-shadow: none; }
.code, .steps code { background: var(--sunken); color: var(--ink); }
.badge { height: 21px; border-radius: 999px; padding: 0 9px; font-weight: 650; font-size: 11px; background: var(--surface3); color: var(--ink2); }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); }
html[data-theme="light"] .badge.good { color: #15803d; background: rgba(22, 163, 74, 0.12); }
html[data-theme="light"] .badge.warn { color: #a16207; background: rgba(234, 179, 8, 0.16); }
html[data-theme="light"] .badge.crit { color: #b91c1c; background: rgba(220, 38, 38, 0.1); }
html[data-theme="light"] .badge.teal { color: #0f766e; background: rgba(20, 184, 166, 0.12); }
.tabs a { font-weight: 600; font-size: 13.5px; }
.tabs a[aria-current="page"] { border-bottom-color: var(--accent); }

/* tablolar */
.t th { background: var(--sunken); font-size: 10.5px; font-weight: 750; letter-spacing: 0.09em; padding: 10px var(--pad); }
.t td { padding: var(--row) var(--pad); }
.table-wrap { margin: 0 calc(var(--pad) * -1) calc(var(--pad) * -1); }
.t tbody tr:hover td { background: var(--hover); }
.t tbody tr.click:hover td { background: var(--accent-soft); }

/* modal, çekmece, bildirim */
.modal, .drawer { background: var(--surface); border-color: var(--line2); }
.modal { border-radius: 14px; }
.drawer-scrim, .modal-scrim, .scrim { background: rgba(5, 7, 14, 0.55); backdrop-filter: blur(2px); }
.toast { background: var(--surface); border: 1px solid var(--line2); color: var(--ink); border-radius: 10px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3); }
.toast.good { border-inline-start: 3px solid #22c55e; }
.toast.bad { border-inline-start: 3px solid #ef4444; }
.gate { background: radial-gradient(50% 45% at 25% 15%, var(--accent-soft), transparent 70%), var(--plane); }

/* önceki eklerin tema uyumu */
.gcard .stats div { background: var(--sunken); }
.fchip { background: var(--surface); color: var(--ink2); }
.fchip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.fchip[aria-pressed="true"] b { color: var(--accent-ink); }
.seg .btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.ccard { background: var(--surface); box-shadow: var(--shadow); }
.chip { background: var(--surface2); }
.bulkbar { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.hbar .bar, .meter { background: var(--surface3); }
.jump-row.sel { background: var(--accent-soft); }
.nav-jump { background: var(--field); }
.chart .tip { background: var(--surface); color: var(--ink); }

/* canlı izleme, güvenlik, rapor, zamanlama */
.health { display: flex; align-items: center; gap: 18px; }
.ring { --v: 0; --c: #22c55e; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface3) 0); }
.ring b { font: 750 24px var(--font-d); }
.spark { display: block; width: 100%; height: 38px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 1.6s infinite; margin-inline-end: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.mrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mcell { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.mcell .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mcell .val { font: 700 22px var(--font-d); margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.timeline { display: flex; flex-direction: column; }
.titem { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; position: relative; }
.titem::before { content: ''; position: absolute; inset-inline-start: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line2); }
.titem:last-child::before { display: none; }
.titem .tdot { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; background: var(--surface3); box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1px var(--line2); }
.titem.active .tdot { background: #22c55e; }
.titem.planned .tdot { background: var(--accent); }
.titem.done .tdot { background: var(--muted); }
.titem .tbody { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.titem .tbody p { flex-basis: 100%; margin: 2px 0 0; color: var(--ink2); }
.kbd { font: 600 11px var(--mono); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line2); background: var(--sunken); }
.shortcuts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; align-items: center; font-size: 13px; }
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 16px; align-items: center; font-size: 13.5px; }
.cmp > .h { font-size: 10.5px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.cmp .n { text-align: end; font-variant-numeric: tabular-nums; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--sunken); color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: none; }
.quick a:hover { border-color: var(--accent); background: var(--accent-soft); }
.quick svg { width: 18px; height: 18px; color: var(--accent); }
@media print {
  .side, .topbar, .no-print, .toast, .pop { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  html, body { background: #fff; color: #111; }
  .card, .kpi, .mcell { box-shadow: none; border-color: #ddd; background: #fff; color: #111; break-inside: avoid; }
}
.segc button { white-space: nowrap; }
@media (max-width: 960px) { .side:not(.open) { box-shadow: none; } }
