/* EAC Panel · renkler, tipografi ve ortak bileşenler */
:root {
  color-scheme: light;
  --z-sticky: 20;
  --z-drawer: 30;
  --z-savebar: 40;
  --z-modal: 50;
  --z-toast: 60;
  --mono: "Fira Code", ui-monospace, Consolas, monospace;
  --bg: #f3f5fa;
  --bg-1: #ffffff;
  --bg-2: #f7f8fc;
  --bg-3: #edf0f8;
  --bg-4: #e4e9f4;
  --line: #e0e5f0;
  --line-2: #d3daea;
  --line-3: #abb8d3;
  --text: #101a30;
  --text-2: #3e4b65;
  --text-3: #586782;
  --accent: #3548d4;
  --accent-hover: #2638bc;
  --accent-ink: #fff;
  --accent-dim: #eef0ff;
  --accent-line: #cdd3ff;
  --danger: #b63052;
  --danger-dim: #fff0f4;
  --warn: #8c510b;
  --warn-dim: #fff5e6;
  --ok: #0a7358;
  --ok-dim: #e5f7f0;
  --info: #2459a8;
  --info-dim: #ebf3ff;
  --guard: var(--danger);
  --mod: var(--warn);
  --viz-1: #4359eb;
  --viz-2: #d05e80;
  --r: 16px;
  --r-sm: 10px;
  --sans: "DM Sans", system-ui, "Segoe UI", sans-serif;
  --heading: "Manrope", var(--sans);
  --surface-shadow: 0 2px 5px #22355d05, 0 9px 28px #22355d08;
  --elevated-shadow: 0 15px 42px #22355d1c;
  --scrim-color: #0c183599;
  --banner-start: #151f49;
  --banner-end: #293bbb;
  --banner-text: #fff;
  --banner-muted: #dce4ff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1323;
  --bg-1: #141d31;
  --bg-2: #19243b;
  --bg-3: #212e48;
  --bg-4: #2a3854;
  --line: #25324e;
  --line-2: #344461;
  --line-3: #506285;
  --text: #f1f4ff;
  --text-2: #cbd5ec;
  --text-3: #a4b2ce;
  --accent: #aab6ff;
  --accent-hover: #c0c9ff;
  --accent-ink: #101839;
  --accent-dim: #232e62;
  --accent-line: #4655a6;
  --danger: #ffa3b6;
  --danger-dim: #422339;
  --warn: #ffd08c;
  --warn-dim: #3f332a;
  --ok: #80e7c6;
  --ok-dim: #183c3c;
  --info: #a9caff;
  --info-dim: #203958;
  --viz-1: #a4b2ff;
  --viz-2: #f59bb4;
  --surface-shadow: 0 3px 14px #03081630;
  --elevated-shadow: 0 16px 52px #03081666;
  --scrim-color: #020612bb;
  --banner-start: #1a2853;
  --banner-end: #283b9c;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 14.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
:where(svg) { width: 1.15em; height: 1.15em; flex: none; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: -.01em; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 8px; }
.label-mono { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Marka ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg.mark { width: 28px; height: 28px; }
.brand .word { font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.brand .sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; border-left: 1px solid var(--line-2); padding-left: 10px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--bg-3); border-color: var(--line-3); color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: #c4f56b; border-color: #c4f56b; color: var(--accent-ink); }
.btn.danger { background: var(--danger-dim); border-color: rgba(255, 90, 82, .35); color: #ff8a84; }
.btn.danger:hover { background: rgba(255, 90, 82, .18); color: #ffa5a0; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-3); color: var(--text); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; }
.link-arrow:hover { color: var(--accent); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Rozet, nokta, etiket ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font: 500 11.5px/1 var(--mono); letter-spacing: .02em; background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge.ok { background: var(--ok-dim); color: #6fe6a5; border-color: rgba(61, 220, 132, .3); }
.badge.warn { background: var(--warn-dim); color: #f7c56b; border-color: rgba(245, 181, 68, .3); }
.badge.danger { background: var(--danger-dim); color: #ff8a84; border-color: rgba(255, 90, 82, .3); }
.badge.info { background: var(--info-dim); color: #96bfff; border-color: rgba(106, 165, 255, .3); }
.badge.accent { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-line); }
.badge.guard { color: #ff8a84; border-color: rgba(255, 90, 82, .3); background: var(--danger-dim); }
.badge.moderation { color: #f7c56b; border-color: rgba(245, 181, 68, .3); background: var(--warn-dim); }
.badge.rnato { color: #9dbcff; border-color: rgba(91, 141, 239, .35); background: rgba(91, 141, 239, .1); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-dim); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-dim); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-dim); }
.dot.live { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(180, 240, 74, 0); } }
.kbd { font: 500 12px var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text-2); }

/* ---------- Kart ve yüzeyler ---------- */
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.card-head h2 svg { width: 17px; height: 17px; color: var(--text-3); }
.card-head p { color: var(--text-3); font-size: 13px; margin-top: 3px; }
.card-body { padding: 6px 22px 8px; }
.card-body.pad { padding: 18px 22px; }
.card-body.flush { padding: 0; }
fieldset.ro { border: 0; padding: 0; margin: 0; min-width: 0; }
.card-foot { padding: 12px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }

.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi .v { font: 600 28px/1.1 var(--mono); letter-spacing: -.03em; }
.kpi .s { color: var(--text-3); font-size: 12.5px; }

/* ---------- Uyarı kutuları ---------- */
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13.5px; color: var(--text-2); }
.alert > svg { width: 17px; height: 17px; margin-top: 2px; flex: none; }
.alert b { color: var(--text); font-weight: 600; }
.alert.danger { border-color: rgba(255, 90, 82, .35); background: var(--danger-dim); } .alert.danger > svg { color: var(--danger); }
.alert.warn { border-color: rgba(245, 181, 68, .35); background: var(--warn-dim); } .alert.warn > svg { color: var(--warn); }
.alert.ok { border-color: rgba(61, 220, 132, .3); background: var(--ok-dim); } .alert.ok > svg { color: var(--ok); }
.alert.info { border-color: rgba(106, 165, 255, .3); background: var(--info-dim); } .alert.info > svg { color: var(--info); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-weight: 500; font-size: 13.5px; }
.hint { color: var(--text-3); font-size: 12.5px; }
.input, .select {
  height: 38px; width: 100%; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.input.sm, .select.sm { height: 32px; font-size: 13px; }
.input.num { width: 84px; text-align: center; font-family: var(--mono); }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23727b89' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.select option { background: var(--bg-2); }
.row > .select, .control > .select { width: auto; min-width: 160px; max-width: 320px; }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.searchbox .input { padding-left: 36px; }
@media (max-width: 640px) { .input, .select, textarea.input { font-size: 16px; } }

/* Ayar satırı: solda açıklama, sağda denetim */
.setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.setting:first-child { border-top: 0; }
.setting .t { font-weight: 500; }
.setting .d { color: var(--text-3); font-size: 13px; margin-top: 2px; max-width: 560px; }
.setting .control { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.setting.col { grid-template-columns: 1fr; gap: 10px; }
.setting.col .control { justify-content: flex-start; }
@media (max-width: 640px) { .setting { grid-template-columns: 1fr; gap: 10px; } .setting .control { justify-content: flex-start; flex-wrap: wrap; } }
fieldset.locked { border: 0; padding: 0; margin: 0; min-width: 0; position: relative; }
fieldset.locked::after { content: "Sahip / tam yetkili"; position: absolute; top: 14px; right: 0; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* Anahtar */
.switch { position: relative; width: 44px; height: 24px; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch span {
  --switch-color: #b84359;
  position: absolute; inset: 0; border-radius: 999px; border: 1px solid var(--switch-color);
  background: var(--switch-color);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px #0d132336;
  transition: transform .2s cubic-bezier(.22, .61, .36, 1);
}
.switch input:checked + span { --switch-color: #16835b; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:enabled:hover + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--switch-color) 16%, transparent); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.switch input:disabled + span { opacity: .48; }
:root[data-theme="dark"] .switch span { --switch-color: #dc667b; }
:root[data-theme="dark"] .switch input:checked + span { --switch-color: #29ad79; }

/* Çoklu seçim */
.multi { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; min-height: 38px; width: 100%; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); align-items: center; }
.multi:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 9px; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--line-2); font-size: 13px; max-width: 280px; }
.chip .x { width: 18px; height: 18px; border-radius: 3px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-3); padding: 0; }
.chip .x:hover { background: var(--bg-4); color: var(--text); }
.chip .x svg { width: 12px; height: 12px; }
.chip .sw { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.multi .select { border: 0; height: 28px; width: auto; min-width: 150px; flex: 1; background-color: transparent; box-shadow: none; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-1); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.table td:first-child { color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover td { background: var(--bg-2); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--bg-3); }
.who .n { color: var(--text); }
.who .i { font: 12px var(--mono); color: var(--text-3); }
.empty { padding: 44px 20px; text-align: center; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 28px; height: 28px; opacity: .6; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--text-3); font: 12.5px var(--mono); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* Koruma tablosu */
.prot-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 92px 100px 170px 64px 64px; align-items: center; column-gap: 14px; }
.prot-head { padding: 10px 22px; border-bottom: 1px solid var(--line); }
.prot-head span { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.prot-row { padding: 13px 22px; border-bottom: 1px solid var(--line); transition: background-color .12s; }
.prot-row:last-child { border-bottom: 0; }
.prot-row:hover { background: var(--bg-2); }
.prot-row .nm { font-weight: 500; }
.prot-row .ds { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.prot-row.off .nm { color: var(--text-3); }
.prot-row.off .c { opacity: .35; pointer-events: none; }
.prot-row .c.na { color: var(--text-3); font: 12px var(--mono); text-align: center; }
.prot-row .lbl { display: none; }
@media (max-width: 980px) {
  .prot-grid { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .prot-head { display: none; }
  .prot-row > :first-child { grid-column: 1 / -1; }
  .prot-row .lbl { display: block; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 4px; }
}

/* ---------- Açık sayfalar (site) ---------- */
.site-nav { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(7, 8, 10, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-nav .in { max-width: 1560px; margin: 0 auto; height: 64px; padding: 0 clamp(16px, 4vw, 64px); display: flex; align-items: center; gap: 28px; }
.site-nav nav { display: flex; gap: 4px; }
.site-nav nav a { color: var(--text-2); padding: 8px 12px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.site-nav nav a:hover, .site-nav nav a.active { color: var(--text); background: var(--bg-2); }
.site-nav .spacer { flex: 1; }
.menu-btn { display: none; }
@media (max-width: 1100px) { .site-nav nav.links { display: none; } .menu-btn { display: inline-flex; } .site-nav.open nav.links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 16px; background: var(--bg-1); border-bottom: 1px solid var(--line); } }
.wrap { max-width: 1560px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.sec { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head .label-mono { color: var(--accent); }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 14px; letter-spacing: -.025em; }
.sec-head p { color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
@media (max-width: 640px) { .sec { padding: 64px 0; } }

.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 1000px) { .hero .wrap { grid-template-columns: 1fr; } }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-1); font: 500 12px var(--mono); color: var(--text-2); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 24px 0 20px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 26px; }
.hero .facts { display: flex; gap: 22px; flex-wrap: wrap; font: 12.5px var(--mono); color: var(--text-3); }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts svg { width: 14px; height: 14px; color: var(--accent); }

/* Konsol (olay akışı) */


.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); }
.stats-band > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats-band > div:first-child { border-left: 0; }
.stats-band .v { font: 600 30px/1.1 var(--mono); letter-spacing: -.03em; margin-top: 8px; }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-band > div:nth-child(3) { border-left: 0; } .stats-band > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); }
.steps > div { padding: 28px 26px; border-left: 1px solid var(--line); }
.steps > div:first-child { border-left: 0; }
.steps .n { font: 600 13px var(--mono); color: var(--accent); }
.steps h3 { font-size: 18px; margin: 16px 0 8px; }
.steps p { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps > div { border-left: 0; border-top: 1px solid var(--line); } .steps > div:first-child { border-top: 0; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.split.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .split, .split.rev { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text-2); }
.checks li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.checks li b { color: var(--text); font-weight: 500; }

.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-1); }
.matrix > div { padding: 14px 16px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.matrix > div:nth-child(2n+1) { border-left: 0; }
.matrix > div:nth-last-child(-n+2) { border-bottom: 0; }
.matrix .nm { font-weight: 500; font-size: 14px; }
@media (max-width: 560px) { .matrix { grid-template-columns: 1fr; } .matrix > div { border-left: 0; } .matrix > div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* Discord mesaj önizlemesi (V2 kart) */
.dc { background: #313338; border-radius: 10px; padding: 16px 16px 18px; font-family: var(--sans); color: #dbdee1; border: 1px solid #3f4147; }
.dc .meta { display: flex; gap: 12px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.dc .meta > .grow { min-width: 0; }
.dc .meta > .grow > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.dc .meta .tag, .dc .meta .tm { margin-left: 0; }
.dc .av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; border: 1px solid #3f4147; }
.dc .av svg { width: 24px; height: 24px; }
.dc .nm { font-weight: 600; color: #fff; }
.dc .tag { background: #5865f2; color: #fff; font: 600 10px var(--sans); padding: 1px 5px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; }
.dc .tm { color: #949ba4; font-size: 12px; margin-left: 6px; }
.dc .box { min-width: 0; margin-top: 8px; border-radius: 8px; background: #2b2d31; border: 1px solid #3f4147; border-left: 4px solid var(--danger); padding: 14px 16px; }
.dc .box h4 { font-size: 15.5px; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.dc .box .f { margin-top: 10px; font-size: 14px; }
.dc .box .f b { display: block; color: #fff; font-weight: 600; font-size: 13.5px; }
.dc .box .sep { height: 1px; background: #3f4147; margin: 12px 0 2px; }
.dc .box .ft { margin-top: 12px; font-size: 12px; color: #949ba4; }
.cmds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cmds code { font: 12.5px var(--mono); padding: 5px 9px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); overflow: hidden; }
.feat-grid > div { padding: 26px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.feat-grid > div:nth-child(3n+1) { border-left: 0; }
.feat-grid > div:nth-child(-n+3) { border-top: 0; }
.feat-grid .ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); background: var(--bg-2); }
.feat-grid .ic svg { width: 18px; height: 18px; }
.feat-grid h3 { font-size: 16px; margin: 18px 0 6px; }
.feat-grid p { color: var(--text-2); font-size: 14px; }
@media (max-width: 960px) { .feat-grid { grid-template-columns: 1fr 1fr; } .feat-grid > div { border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line) !important; } .feat-grid > div:nth-child(2n+1) { border-left: 0 !important; } .feat-grid > div:nth-child(-n+2) { border-top: 0 !important; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } .feat-grid > div { border-left: 0 !important; } .feat-grid > div:nth-child(2) { border-top: 1px solid var(--line) !important; } }

.perm-table td svg { width: 16px; height: 16px; }
.perm-table td.y svg { color: var(--accent); }
.perm-table td.n svg { color: var(--text-3); }
.perm-table td:not(:first-child), .perm-table th:not(:first-child) { text-align: center; }

.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 500; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); max-width: 820px; }

.cta-band { border: 1px solid var(--line-2); border-radius: 12px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; }
.cta-band p { color: var(--text-2); margin-top: 8px; }

.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-foot ul a { color: var(--text-2); font-size: 14px; }
.site-foot ul a:hover { color: var(--accent); }
.site-foot .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 12.5px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

.doc { max-width: 860px; margin: 0 auto; padding: 64px 0 96px; }
.doc h1 { font-size: 34px; letter-spacing: -.03em; margin: 12px 0 10px; }
.doc .upd { font: 12.5px var(--mono); color: var(--text-3); }
.doc h2 { font-size: 19px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); line-height: 1.75; }
.doc p + p { margin-top: 12px; }

/* ---------- Uygulama başlığı (sunucu seçimi) ---------- */
.app-top { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(7, 8, 10, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top .in { height: 60px; padding: 0 clamp(16px, 2.6vw, 44px); display: flex; align-items: center; gap: 20px; }
.app-top nav { display: flex; gap: 2px; }
.app-top nav a { color: var(--text-2); padding: 7px 12px; border-radius: 6px; font-size: 14px; }
.app-top nav a.active, .app-top nav a:hover { color: var(--text); background: var(--bg-2); }
.usr { display: flex; align-items: center; gap: 10px; }
.usr img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); }
.usr .n { font-weight: 500; font-size: 13.5px; max-width: 150px; }
.page { padding: 36px clamp(16px, 2.6vw, 44px) 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 26px; letter-spacing: -.025em; }
.page-head p { color: var(--text-3); margin-top: 6px; }

@media (min-width: 1500px) { .page .grid.g3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gcard { display: flex; flex-direction: column; transition: border-color .15s; }
.gcard:hover { border-color: var(--line-2); }
.gcard .top { display: flex; gap: 14px; align-items: center; padding: 18px 18px 14px; }
.gcard .nm { font-weight: 600; font-size: 15.5px; }
.gcard .bots { border-top: 1px solid var(--line); }
.gcard .bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.gcard .bot:last-child { border-bottom: 0; }
.gcard .bot .l { display: flex; align-items: center; gap: 10px; color: var(--text-2); flex: none; white-space: nowrap; min-width: 130px; }
.gcard .bot .perm { flex: 1; min-width: 0; text-align: center; font-size: 12px; line-height: 1.3; }
.gcard .bot .perm.ok { color: var(--ok); }
.gcard .bot .perm.no { color: var(--warn); }
.gcard .bot .r { flex: none; min-width: 76px; display: flex; justify-content: flex-end; } /* "Ekle" düğmesi kadar: ortadaki yazı hizalı kalsın */
.gcard .act { padding: 14px 18px; border-top: 1px solid var(--line); margin-top: auto; }
.gicon { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; background: var(--bg-3); border: 1px solid var(--line-2); }
.gicon.sm { width: 34px; height: 34px; border-radius: 8px; }
.gicon.ph { display: grid; place-items: center; color: var(--text-2); font: 600 13px var(--mono); }

/* ---------- Kabuk (yan menü) ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-1); display: flex; flex-direction: column; }
.side .brandrow { height: 60px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); }
.switcher { margin: 14px 12px 6px; display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--text); transition: border-color .15s; }
.switcher:hover { border-color: var(--line-3); color: var(--text); }
.switcher .nm { font-weight: 600; font-size: 14px; }
.switcher .lv { font: 11px var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.switcher > svg { width: 16px; height: 16px; color: var(--text-3); }
.side nav { padding: 6px 10px 16px; display: flex; flex-direction: column; gap: 1px; }
.side .grp { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); padding: 16px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 6px; color: var(--text-2); font-size: 14px; position: relative; }
.side nav a svg { width: 16px; height: 16px; color: var(--text-3); }
.side nav a:hover { background: var(--bg-2); color: var(--text); }
.side nav a.active { background: var(--bg-3); color: var(--text); }
.side nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); border-radius: 2px; }
.side nav a.active svg { color: var(--accent); }
.side nav a .badge { margin-left: auto; height: 19px; padding: 0 6px; }
.side .foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.main { min-width: 0; }
.main-top { position: sticky; top: 0; z-index: var(--z-sticky); height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(7, 8, 10, .9); backdrop-filter: blur(10px); }
.crumbs { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; min-width: 0; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs .cur { color: var(--text); }
.main-top .spacer { flex: 1; }
.botstat { display: flex; gap: 14px; font: 12px var(--mono); color: var(--text-2); }
.botstat span { display: inline-flex; align-items: center; gap: 7px; }
.content { padding: 30px clamp(20px, 2.6vw, 44px) 140px; }
.content > * + * { margin-top: 16px; }
.content > .content-head + * { margin-top: 0; }
.content-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.content-head h1 { font-size: 25px; letter-spacing: -.025em; }
.content-head p { color: var(--text-3); margin-top: 6px; max-width: 680px; }
.side-toggle { display: none; }
.scrim { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: var(--z-drawer); left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease-out; }
  .shell.open .side { transform: none; }
  .shell.open .scrim { display: block; position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(0, 0, 0, .6); }
  .side-toggle { display: inline-flex; }
  .botstat { display: none; }
  .crumbs > :not(:last-child) { display: none; }
  .content { padding: 22px 16px 140px; }
  .main-top { padding: 0 16px; }
}

/* Sağlık listesi */
.health { list-style: none; margin: 0; padding: 4px 0; }
.health li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.health li:first-child { border-top: 0; }
.health li svg { width: 17px; height: 17px; margin-top: 2px; }
.health li.ok svg { color: var(--ok); } .health li.bad svg { color: var(--danger); } .health li.warn svg { color: var(--warn); }
.health li .h { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }

/* Modül kartları */
.mod { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.mod .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mod .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); }
.mod .ic svg { width: 17px; height: 17px; }
.mod h3 { font-size: 15px; }
.mod p { color: var(--text-3); font-size: 13px; }
.mod a { font-size: 13px; }

/* Etkinlik akışı */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.feed li:first-child { border-top: 0; }
.feed .what { color: var(--text-2); }
.feed .what b { color: var(--text); font-weight: 500; }
.feed time { font: 12px var(--mono); color: var(--text-3); white-space: nowrap; }

/* Grafik */
.chart { padding: 14px 20px 18px; }
.chart-plot { width: 100%; min-height: 200px; }
.chart svg { display: block; overflow: visible; }
.chart .legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.chart .legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart .legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart .tick { font: 11px var(--mono); fill: var(--text-3); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover, .chart .hit.on { fill: rgba(255, 255, 255, .035); }
.tip { position: fixed; z-index: var(--z-toast); pointer-events: none; background: var(--bg-3); border: 1px solid var(--line-3); border-radius: 6px; padding: 8px 11px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); min-width: 150px; }
.tip .d { font: 11.5px var(--mono); color: var(--text-3); margin-bottom: 4px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; }
.tip .r i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
details.tbl summary { cursor: pointer; font: 12px var(--mono); color: var(--text-3); margin-top: 8px; }

/* ---------- Kaydet çubuğu ---------- */
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 160%); z-index: var(--z-savebar); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; width: min(640px, calc(100vw - 32px)); background: var(--bg-2); border: 1px solid var(--line-3); border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.savebar.show { transform: translate(-50%, 0); }
.savebar .msg { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 10px; }
@media (min-width: 961px) { .shell ~ .savebar { left: calc(50% + 132px); } }

/* ---------- Bildirim ve pencere ---------- */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line-3); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 13.5px; animation: tin .2s ease-out; }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--ok); } .toast.err svg { color: var(--danger); }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }
.modal-bg { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(3, 4, 6, .72); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(500px, 100%); max-height: calc(100dvh - 32px); min-height: 0; display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--line-3); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.modal .mh { flex: none; padding: 20px 22px 0; }
.modal h3 { font-size: 17px; }
.modal .mh p { color: var(--text-2); margin-top: 8px; }
.modal .mb { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 22px 0; }
.modal .actions { flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 18px 22px; margin-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Sohbet görüntüleyici ---------- */
.chat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .chat-layout { grid-template-columns: 1fr; } }
.chat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); max-height: 68vh; overflow-y: auto; }
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 9px 16px; }
.msg:hover { background: var(--bg-1); }
.msg img.av { width: 38px; height: 38px; border-radius: 50%; }
.msg .meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.msg .author { font-weight: 600; color: var(--text); }
.msg .time { font: 11px var(--mono); color: var(--text-3); }
.msg .mtext { white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
.msg .att { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; padding: 6px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; }
.msg .att img { max-width: 260px; max-height: 180px; border-radius: 4px; display: block; }
.msg .embed { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--line-3); background: var(--bg-1); border-radius: 4px; font-size: 13px; }
.chlist { display: flex; flex-direction: column; gap: 1px; max-height: 68vh; overflow-y: auto; padding: 8px; }
.chlist .cat { font: 500 10.5px var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; padding: 12px 8px 4px; }
.chlist button { all: unset; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 5px; color: var(--text-2); cursor: pointer; font-size: 13.5px; }
.chlist button:hover { background: var(--bg-2); color: var(--text); }
.chlist button.active { background: var(--bg-3); color: var(--text); }
.chlist button svg { width: 15px; height: 15px; color: var(--text-3); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { all: unset; padding: 10px 14px; color: var(--text-3); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }

/* Yükleniyor */
.skeleton { background: linear-gradient(90deg, var(--bg-1) 25%, var(--bg-2) 37%, var(--bg-1) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--r); border: 1px solid var(--line); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: currentColor; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-state { min-height: 60vh; display: grid; place-items: center; text-align: center; color: var(--text-3); padding: 24px; }
.center-state svg { width: 34px; height: 34px; }
.center-state h2 { color: var(--text); margin: 14px 0 6px; font-size: 20px; }
.center-state p { max-width: 460px; margin: 0 auto 18px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* ---------- Ticketlar ---------- */
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-dim); color: var(--accent); font: 500 12px var(--mono); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-1); }
.seg button { border: 0; background: transparent; color: var(--text-2); height: 30px; padding: 0 14px; border-radius: 5px; font-weight: 500; font-size: 13.5px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.ticket-chat { min-height: 420px; max-height: 62vh; padding: 6px 0; }
.msg.deleted .mtext { text-decoration: line-through; opacity: .55; }
.chat .archived-message { border-inline-start: 3px solid var(--danger); background: var(--danger-dim); }
.chat .archived-message .badge.danger { color: var(--danger); }
.chat-mention-options:not([hidden]) {
  display: grid; max-height: 13rem; overflow: auto; gap: 4px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2);
}
.chat-mention-options .btn { justify-content: space-between; white-space: normal; text-align: left; }
.msg .meta .badge { height: 18px; padding: 0 5px; font-size: 10px; }
.composer { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); }
.composer textarea.input { min-height: 76px; }
.qa p { margin: 4px 0 0; white-space: pre-wrap; color: var(--text-2); }
.qa { padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--bg-2); border-radius: 4px; }
.cat-edit { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); }
.cat-edit .btn.icon svg { transform: none; }
.cat-edit .row .btn[title="Yukarı taşı"] svg { transform: rotate(90deg); }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.q-row label.row { gap: 6px; color: var(--text-2); }
@media (max-width: 760px) { .q-row { grid-template-columns: 1fr 1fr; } .cat-edit .grid { grid-template-columns: 1fr !important; } }
.sticky-col { position: sticky; top: 76px; align-self: start; }
@media (max-width: 1100px) { .sticky-col { position: static; } }
.dc .av svg { color: var(--accent); }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dc-btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 14px; border-radius: 4px; background: #4e5058; color: #fff; font: 500 14px var(--sans); }
.dc-btn.p { background: #5865f2; }

/* ---------- Canlı durum kartı ---------- */
.botlive { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.botlive .bl-item { padding: 16px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.botlive .bl-item:first-child { border-left: 0; }
.botlive .bl-item .row { gap: 8px; font-size: 13px; color: var(--text-2); }
.botlive .bl-item .row svg { width: 15px; height: 15px; color: var(--text-3); }
.botlive .bl-v { font: 600 20px/1.2 var(--mono); letter-spacing: -.02em; }
.botlive .bl-s { color: var(--text-3); font-size: 12.5px; }
.botlive .bl-s a { color: var(--accent); }
@media (max-width: 1100px) {
  .botlive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .botlive .bl-item:nth-child(3) { border-left: 0; }
  .botlive .bl-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .botlive { grid-template-columns: minmax(0, 1fr); }
  .botlive .bl-item { border-left: 0; border-top: 1px solid var(--line); }
  .botlive .bl-item:first-child { border-top: 0; }
}

/* ---------- Yedek önizleme ---------- */
.backup-preview { align-items: start; }
.tree { list-style: none; margin: 10px 0 0; padding: 0; max-height: 52vh; overflow: auto; font-size: 13.5px; }
.tree ul { list-style: none; margin: 2px 0 6px; padding: 0 0 0 18px; }
.tree li { display: flex; align-items: center; gap: 8px; padding: 4px 0; min-width: 0; }
.tree li.cat { display: block; }
.tree li svg { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.tree li .muted { margin-left: auto; }
.tree .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- Kara listedeki sunucu kartı ---------- */
.gcard.banned { border-color: rgba(255, 90, 82, .28); }
.gcard.banned .top { opacity: .75; }
.gcard .ban-note { display: flex; gap: 12px; padding: 14px 18px 16px; border-top: 1px solid var(--line); margin-top: auto; background: var(--danger-dim); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.gcard .ban-note > svg { width: 17px; height: 17px; color: var(--danger); flex: none; margin-top: 2px; }
.gcard .ban-note b { display: block; margin-bottom: 3px; color: #ff8a84; }
.gcard .ban-note a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent); }
.gcard .ban-note a svg { width: 13px; height: 13px; }

/* ---------- Yetki denetimi / rol sistemi ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 460px; }
.chip.ro { padding-right: 9px; height: 24px; font-size: 12.5px; }
.q-row.role-row { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) auto; }
.send-row { gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px dashed var(--line-2); }
.send-row .select { max-width: 320px; }
@media (max-width: 720px) { .q-row.role-row { grid-template-columns: 72px minmax(0, 1fr) auto; } .q-row.role-row input:nth-of-type(2) { grid-column: 1 / -1; } }

/* ---------- Mesajlar: Discord önizlemesi ---------- */
.dc .mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-pings { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; font-size: 15px; }
.dc .box.v2 { font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.dc .v2-head { display: flex; gap: 14px; align-items: flex-start; }
.dc .v2-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.dc .v2-img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; margin-top: 12px; }
.dc img.broken { display: none; }
.dc .md-h1 { font-size: 22px; font-weight: 700; color: #fff; margin: 4px 0; }
.dc .md-h2 { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.dc .md-h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 2px 0 4px; }
.dc .md-sub { font-size: 12px; color: #949ba4; }
.dc .md-quote { border-left: 4px solid #4e5058; padding-left: 10px; }
.dc .md-gap { height: 8px; }
.dc code { background: #1e1f22; border-radius: 4px; padding: 1px 4px; font: 13px var(--mono); }
.dc .dc-btn svg { width: 12px; height: 12px; }
.input.color { padding: 4px; height: 38px; cursor: pointer; }
.q-row.btn-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; margin-bottom: 0; }
.msg-grid { align-items: start; }
.sched-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sched-bar .select { width: auto; min-width: 190px; }
@media (max-width: 1100px) { .msg-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Yasak formları ---------- */
.ban-form { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
@media (max-width: 760px) { .ban-form { grid-template-columns: minmax(0, 1fr); } }
.tam-ban-form { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: end; }
.tam-ban-form > .btn { justify-self: end; }
.tam-ban-field { display: grid; gap: 7px; min-width: 0; font-size: 13.5px; font-weight: 500; }
.tam-ban-field > .input { width: 100%; min-width: 0; }
.tam-ban-evidence { grid-column: 1 / -1; }
.tam-ban-form > .btn { grid-column: 1 / -1; }
.tam-ban-delegate-label, .tam-ban-delegate-form { margin-inline: 20px; }
.tam-ban-delegate-label { margin-block: 4px 0; font-size: 14px; }
.tam-ban-delegates { padding-block: 10px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .tam-ban-form { grid-template-columns: minmax(0, 1fr); }
  .tam-ban-form > .btn { justify-self: stretch; }
}


/* ---------- Canlı durum: bot sayısına göre esner ---------- */
.botlive { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
details > summary { cursor: pointer; margin-top: 4px; }

/* ---------- Roblox kullanım rehberi: yanıp sönen ünlemli açılır kart ---------- */
.guide { border: 1px solid rgba(245, 181, 68, .35); background: var(--warn-dim); border-radius: 12px; }
.guide > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary .grow { display: flex; flex-direction: column; gap: 2px; }
.guide > summary > svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s; flex: none; }
.guide[open] > summary > svg { transform: rotate(90deg); }
.guide > summary:focus-visible { outline: 2px solid var(--warn); outline-offset: 2px; border-radius: 12px; }
.guide-bang { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--warn); color: #1a1205; font-weight: 800; font-size: 20px; line-height: 1; animation: bang 1.2s ease-in-out infinite; }
@keyframes bang { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 181, 68, .6); } 50% { opacity: .35; box-shadow: 0 0 0 9px rgba(245, 181, 68, 0); } }
.guide-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 4px 22px 20px; border-top: 1px solid rgba(245, 181, 68, .2); }
.guide-body h4 { margin: 16px 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #f7c56b; }
.guide-body ol, .guide-body ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.guide-body li b { color: var(--text); }
.guide-body code { font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); white-space: nowrap; }
.guide-cmds { list-style: none; padding-left: 0 !important; }
.guide-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; }
.guide-note > svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--text-3); }
.guide-note.warn { border-color: rgba(245, 181, 68, .35); } .guide-note.warn > svg { color: var(--warn); }
@media (max-width: 900px) { .guide-body { grid-template-columns: minmax(0, 1fr); gap: 4px; } .guide-body code { white-space: normal; } }

/* ---------- Roblox: kurulum durumu, rütbe ↔ rol tablosu, branş panelleri, log önizlemesi ---------- */
.setup-card { padding: 18px 20px; }
.setup-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.setup-head h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0; }
.setup-head h2 svg { width: 18px; height: 18px; color: var(--accent); }
.setup-head p { margin: 4px 0 0; color: var(--text-3); font-size: 13.5px; }
.setup-bar { width: 220px; max-width: 100%; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.setup-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s; }
.setup-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.setup-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); min-width: 0; }
.setup-steps li.ok { border-color: var(--accent-line); }
.setup-steps .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--text-3); }
.setup-steps .ic svg { width: 13px; height: 13px; }
.setup-steps li.ok .ic { background: var(--accent-dim); color: var(--accent); }
.setup-steps li > div { min-width: 0; }
.setup-steps b { display: block; font-size: 13.5px; color: var(--text); font-weight: 500; }
.setup-steps li > div > span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; overflow-wrap: anywhere; }
.rank-map { display: grid; gap: 12px; }
.rank-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rank-count { color: var(--text-2); font-size: 13.5px; }
.rank-count b { color: var(--text); font-family: var(--mono); }
.rank-table td { padding: 8px 16px; }
.rank-no { display: inline-grid; place-items: center; min-width: 40px; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font: 12px var(--mono); color: var(--text-2); }
.rank-table tr.mapped .rank-no { border-color: var(--accent-line); color: var(--accent); }
.rank-name { color: var(--text); font-weight: 500; }
.rank-select { display: flex; align-items: center; gap: 8px; min-width: 230px; }
.rank-select .sw { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1px solid var(--line-2); }
.rank-select .select { width: 100%; max-width: 280px; }
.rank-empty { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 13.5px; padding: 8px 0; }
.rank-empty svg { width: 16px; height: 16px; flex: none; }
.branch { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); }
.branch + .branch { margin-top: 0; }
.branch > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0; flex-wrap: wrap; }
.branch > summary::-webkit-details-marker { display: none; }
.branch > summary > svg { width: 16px; height: 16px; color: var(--text-3); transition: transform .2s; flex: none; }
.branch[open] > summary > svg { transform: rotate(90deg); }
.branch > summary .grow { min-width: 140px; }
.branch-body { padding: 16px; border-top: 1px solid var(--line); }
.log-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.log-preview { padding: 16px 0; position: sticky; top: 80px; }
@media (max-width: 1100px) { .log-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } .log-preview { position: static; } }
/* "row wrap" satırları tanıtım sayfasının .wrap kapsayıcısından margin/padding almasın (kart içinde ortalanıyordu). */
.card .row.wrap { margin: 0; padding: 0; max-width: none; }
@media (max-width: 640px) { .setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .setup-bar { width: 100%; } }
/* Discord önizlemesi: başlığın üstündeki küçük gri satır (botların "-#" üst satırı) */
.dc .box .ov { font-size: 12px; color: #949ba4; letter-spacing: .02em; margin-bottom: 4px; }

/* ---------- EAC Family: seviye, sıralama, çekiliş ---------- */
.badge.family { color: #f9a8d4; border-color: rgba(244, 114, 182, .35); background: rgba(244, 114, 182, .1); }
.lvl { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.lvl b { font: 600 14px var(--mono); min-width: 26px; }
.lvl-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-4); overflow: hidden; max-width: 110px; }
.lvl-bar i { display: block; height: 100%; background: #f472b6; border-radius: 3px; }
.rank-n { color: var(--text-2); }
.rank-n.top { color: #f9a8d4; font-weight: 600; }
.curve { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.curve > div { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.curve .mono { font-size: 14px; color: var(--text); }
.curve .s { color: var(--text-3); font-size: 12px; }
.chip.rr { border-style: dashed; }
.dc .dc-emoji { width: 1.15em; height: 1.15em; vertical-align: -0.2em; object-fit: contain; }
.dc .box .gw-l { margin-top: 6px; font-size: 14px; }
.dc .box .gw-l b { color: #fff; font-weight: 600; margin-right: 8px; }
.dc .box .mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }

/* Herkese açık sıralama sayfası */
.lb { max-width: 1120px; padding-top: 56px; padding-bottom: 72px; }
.lb-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.lb-head .gicon.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 20px; }
.lb-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 4px; letter-spacing: -.02em; }
.lb-head .grow { flex: 1 1 220px; min-width: 0; }
@media (max-width: 640px) { .lb-head { align-items: flex-start; } .lb-head .gicon.lg { width: 48px; height: 48px; border-radius: 12px; } }
.lb-stats { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-3); font: 12.5px var(--mono); }
.lb-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-1); }
.lb-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(140px, 200px) 110px; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); }
.lb-row:first-child { border-top: 0; }
.lb-row .pos { font: 600 15px var(--mono); color: var(--text-3); text-align: center; }
.lb-row.top1 .pos { color: #f5c542; }
.lb-row.top2 .pos { color: #c3cad6; }
.lb-row.top3 .pos { color: #d9925a; }
.lb-row.top1, .lb-row.top2, .lb-row.top3 { background: linear-gradient(90deg, rgba(244, 114, 182, .05), transparent 60%); }
.lb-row .who img { width: 40px; height: 40px; }
.lb-row .lv { display: flex; flex-direction: column; gap: 6px; }
.lb-row .lv .t { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.lb-row .lv .lvl-bar { flex: none; max-width: none; }
.lb-row .xp { text-align: right; font: 600 14px var(--mono); color: var(--text); }
.lb-row .xp small { display: block; color: var(--text-3); font-weight: 400; font-size: 11.5px; }
.lb-more { display: flex; justify-content: center; margin-top: 16px; }
@media (max-width: 640px) {
  .lb-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .lb-row .lv { display: none; }
}

/* Sıralamalar: dönem sekmeleri ve sunucular dizini */
.lb-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13.5px; margin-bottom: 18px; }
.lb-back:hover { color: var(--text); }
.lb-back svg { width: 15px; height: 15px; }
.lb-tabs { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 640px) { .lb-tabs { align-items: flex-start; width: 100%; } }
.lb-title { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 12px; letter-spacing: -.025em; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lb-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); color: inherit; transition: border-color .15s, background .15s; }
.lb-card:hover { border-color: rgba(244, 114, 182, .45); background: var(--bg-2); }
.lb-card .top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-card .top > svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.lb-card .gicon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.lb-card .nm { font-weight: 600; font-size: 15.5px; }
.lb-card .rank { font: 600 13px var(--mono); color: var(--text-3); min-width: 28px; }
.lb-card .rank.top1 { color: #f5c542; } .lb-card .rank.top2 { color: #c3cad6; } .lb-card .rank.top3 { color: #d9925a; }
.lb-card .wk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lb-card .wk > div { padding: 10px 12px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.lb-card .wk b { font: 600 18px var(--mono); color: #f9a8d4; }
.lb-card .wk span { font-size: 12px; color: var(--text-3); }
.podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.podium li { display: grid; grid-template-columns: 20px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.podium .pos { font: 600 12.5px var(--mono); color: var(--text-3); text-align: center; }
.podium li.top1 .pos { color: #f5c542; } .podium li.top2 .pos { color: #c3cad6; } .podium li.top3 .pos { color: #d9925a; }
.podium img { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-3); }
.podium .x { color: var(--text-2); font-size: 12.5px; }
/* ---------- EAC çalışma alanı ---------- */
body { font-size: 1rem; line-height: 1.55; }
h1, h2, h3, h4, .brand .word { font-family: var(--heading); font-weight: 800; letter-spacing: -.035em; }
.brand .word { font-size: 20px; }
.brand .sub { font: 650 11px var(--sans); letter-spacing: .02em; text-transform: none; }
.brand svg.mark { width: 32px; height: 32px; }
.brand .mark path:first-child { fill: var(--accent-dim); stroke: var(--accent); }
.brand .mark path:last-child { stroke: var(--accent); }
.btn, .input, .select { min-height: 40px; }
.btn { background: var(--bg-1); font-weight: 650; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger, .btn.danger:hover, .badge.danger, .badge.guard, .gcard .ban-note b { color: var(--danger); }
.badge.ok { color: var(--ok); }
.badge.warn, .badge.moderation { color: var(--warn); }
.badge.info, .badge.rnato { color: var(--info); }
.badge.brand { color: var(--accent); background: var(--accent-dim); }
.badge { border-radius: 999px; font: 650 .75rem var(--sans); min-height: 23px; }
.badge svg { width: 13px; height: 13px; }
.card, .table-wrap { box-shadow: var(--surface-shadow); }
.card-head { padding: 19px 22px; }
.card-head h2 { font-size: 1.05rem; }
.card-head h2 svg { color: var(--accent); }
.card-head p { font-size: .875rem; margin-top: 5px; }
.card-body.pad { padding: 20px 22px; }
.card-foot { background: var(--bg-2); border-radius: 0 0 var(--r) var(--r); }
.input, .select { background: var(--bg-2); }
.input::placeholder { color: var(--text-3); }
.field > label, .tam-ban-field { font-size: .9rem; font-weight: 650; }
.select:not([multiple]) {
  appearance: none;
  padding-inline-end: 36px;
  background-image: linear-gradient(45deg, transparent 48%, var(--text-3) 49% 67%, transparent 68%),
    linear-gradient(-45deg, transparent 48%, var(--text-3) 49% 67%, transparent 68%);
  background-position: right 15px center, right 9px center;
  background-size: 7px 7px;
  background-repeat: no-repeat;
}
.table th { background: var(--bg-2); font: 700 .78rem var(--sans); letter-spacing: .025em; }
.table td { font-size: .9rem; }
.table tbody tr:hover td { background: var(--accent-dim); }
.setting .t { font-weight: 700; }
.setting .d, .hint { font-size: .84rem; }
.modal, .savebar, .toast { box-shadow: var(--elevated-shadow); }
.shell.open .scrim, .modal-bg { background: var(--scrim-color); }
.site-nav, .app-top, .main-top { background: color-mix(in srgb, var(--bg-1) 94%, transparent); }
.site-nav .in, .app-top .in { height: 68px; }
.site-nav .in { gap: clamp(12px, 2vw, 26px); }
.site-nav nav a { padding-inline: 8px; }
.site-nav nav a:hover, .app-top nav a.active, .app-top nav a:hover { color: var(--accent); background: var(--accent-dim); }
.hero h1 { font-size: clamp(2.45rem, 5.2vw, 4.65rem); letter-spacing: -.065em; }
.hero .lead, .hero .facts { color: var(--text-2); }
.sec-head h2 { letter-spacing: -.045em; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  min-height: 38px; padding: 3px; border: 1px solid var(--line-2);
  border-radius: 100px; background: var(--bg-2); color: var(--text-3);
}
.theme-option { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; }
.theme-option svg { width: 16px; height: 16px; }
:root:not([data-theme="dark"]) .theme-option:first-child,
:root[data-theme="dark"] .theme-option:last-child { background: var(--accent-dim); color: var(--accent); }

.shell { grid-template-columns: 246px minmax(0, 1fr); }
.side { height: 100dvh; overflow: hidden; }
.side .brandrow { flex: 0 0 68px; border-bottom: 0; padding-inline: 18px; }
.switcher { flex: none; margin: 6px 14px 10px; background: var(--bg-2); }
.switcher .lv { font: 600 .75rem var(--sans); text-transform: none; letter-spacing: 0; }
.side-search {
  display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: center; gap: 8px;
  flex: none; min-height: 38px; margin: 0 14px 7px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text-3);
}
.side-search input { min-width: 0; border: 0; outline: none; padding: 7px 0; background: transparent; font-size: .86rem; }
.side-search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.side-search svg { width: 15px; height: 15px; }
.side nav { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 16px; scrollbar-width: thin; }
.side-group[hidden], .side nav a[hidden], .side-empty[hidden] { display: none; }
.side .grp { font: 750 .7rem var(--sans); letter-spacing: .08em; padding: 15px 10px 5px; }
.side nav a { min-height: 37px; padding: 7px 10px; font-size: .89rem; font-weight: 600; border-radius: 9px; }
.side nav a.active { background: var(--accent-dim); color: var(--accent); font-weight: 750; }
.side nav a.active::before { display: none; }
.side-empty { padding: 10px; font-size: .85rem; color: var(--text-3); }
.side .foot { flex: none; padding: 12px 14px; background: var(--bg-1); }
.side-account-caption { font-size: .75rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.main-top { height: 68px; padding-inline: clamp(16px, 2.9vw, 40px); }
.crumbs { min-width: 0; }
.content { max-width: 1660px; margin-inline: auto; padding: 26px clamp(16px, 2.9vw, 40px) 100px; }
.content-head { min-height: 84px; padding: 5px 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.content-head h1, .page-head h1 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.content-head p, .page-head p { font-size: .95rem; }
[data-layout="shell"] .stack { gap: 18px; }
[data-layout="shell"] .content .stack.tight { gap: 8px; }
.overview-banner {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between;
  min-height: 224px; gap: 20px; padding: clamp(22px, 3.5vw, 46px); margin-bottom: 22px;
  overflow: hidden; border-radius: 23px; background: linear-gradient(115deg, var(--banner-start), var(--banner-end));
  color: var(--banner-text); box-shadow: 0 14px 28px #111b4b24;
}
.overview-banner::before {
  content: ""; position: absolute; inset: 0 0 0 39%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, #dce4ff20 0 1px, transparent 1px 31px),
    repeating-linear-gradient(0deg, #dce4ff20 0 1px, transparent 1px 31px);
  mask-image: linear-gradient(90deg, transparent, #000 85%);
}
.overview-copy { min-width: 0; }
.overview-copy h1 { font-size: clamp(2rem, 4.3vw, 3.6rem); overflow-wrap: anywhere; letter-spacing: -.06em; }
.overview-copy p { margin-top: 10px; color: var(--banner-muted); max-width: 600px; }
.overview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.overview-actions .btn { background: #ffffff16; border-color: #ffffff45; color: #fff; }
.overview-actions .btn:hover { background: #ffffff2d; border-color: #ffffff80; }
.overview-symbol {
  display: grid; place-items: center; flex: 0 0 128px; aspect-ratio: 1; margin-right: 5%;
  border: 1px solid #ffffff60; border-radius: 28px; background: #b5c3ff30;
  box-shadow: 0 0 0 14px #b5c3ff13, 0 0 0 28px #b5c3ff0b; transform: rotate(-8deg);
}
.overview-symbol svg { width: 56px; height: 56px; color: #edf1ff; stroke-width: 1.4; transform: rotate(8deg); }
.metric-card { padding: 16px 18px; gap: 9px; min-width: 0; }
.metric-title { display: flex; gap: 9px; align-items: center; font-size: .86rem; font-weight: 700; color: var(--text-2); }
.metric-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: none; border-radius: 10px; color: var(--accent); background: var(--accent-dim); }
.metric-icon.rose { color: var(--danger); background: var(--danger-dim); }
.metric-icon.amber { color: var(--warn); background: var(--warn-dim); }
.metric-icon.mint { color: var(--ok); background: var(--ok-dim); }
.metric-card .v { font: 800 clamp(1.65rem, 3vw, 2.25rem)/1.06 var(--heading); letter-spacing: -.05em; }
.kpi .s { font-size: .82rem; }
.directory-page { max-width: 1500px; margin-inline: auto; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 26px 0 16px; }
.directory-title { display: flex; align-items: center; gap: 10px; }
.directory-title h2 { font-size: 1.28rem; }
.directory-count { padding: 3px 9px; color: var(--accent); background: var(--accent-dim); border-radius: 100px; font-size: .8rem; font-weight: 700; }
.guild-directory { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gcard { overflow: hidden; }
.gcard .top { padding: 19px; }
.gcard .nm { font: 800 1.05rem var(--heading); }
.gcard .bots { background: var(--bg-2); padding-block: 3px; }
.gcard .bot { font-size: .88rem; }
.gcard .bot .l { min-width: 0; flex: 1; white-space: normal; }
.gcard .bot .perm { min-width: 34px; flex: 0 1 auto; }
.gcard .act { display: flex; align-items: center; justify-content: flex-end; }
.chart .hit:hover, .chart .hit.on { fill: color-mix(in srgb, var(--accent) 8%, transparent); }
.health li { padding-block: 12px; }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .shell .side { width: min(280px, 88vw); visibility: hidden; }
  .shell.open .side { visibility: visible; }
  .botstat { display: none; }
  .main-top { gap: 10px; }
}
@media (max-width: 640px) {
  .overview-banner { min-height: 170px; border-radius: 16px; }
  .overview-symbol { display: none; }
  .overview-banner::before { inset-inline-start: 55%; }
  .overview-actions { margin-top: 16px; }
  .metric-card { padding: 13px; }
  .metric-title { gap: 6px; font-size: .8rem; }
  .metric-icon { width: 27px; height: 27px; }
  .content-head { min-height: 0; align-items: flex-start; }
  .app-top .in, .site-nav .in { height: 62px; gap: 9px; }
  .app-top .usr .n { display: none; }
  .app-top .brand .sub, .site-nav .brand .sub { display: none; }
  .app-top nav a { padding-inline: 5px; font-size: .8rem; }
  .theme-option { width: 27px; height: 27px; }
  .card-head, .card-body.pad { padding-inline: 15px; }
  .card-head { flex-wrap: wrap; }
}

.skip-link { position: fixed; z-index: var(--z-toast); top: 10px; left: 10px; transform: translateY(-150%); padding: 8px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; }
.skip-link:focus { transform: none; color: var(--accent-ink); }
#app:focus { outline: none; }
.content-heading { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.content-heading h1 { overflow-wrap: anywhere; }
.section-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--accent-dim); color: var(--accent); }
.section-mark svg { width: 22px; height: 22px; }
.content-actions { min-width: 0; }
.tam-ban-scope { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--accent-dim); color: var(--text); border: 1px solid var(--accent-line); }
.tam-ban-scope > svg { width: 21px; height: 21px; color: var(--accent); }
.tam-ban-scope p { margin-top: 3px; color: var(--text-2); font-size: .9rem; overflow-wrap: anywhere; }
.tam-ban-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.tam-ban-columns > :only-child { grid-column: 1 / -1; }
@media (max-width: 1150px) { .tam-ban-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .section-mark { width: 37px; height: 37px; border-radius: 10px; }
  .section-mark svg { width: 19px; height: 19px; }
  .tam-ban-scope { flex-wrap: wrap; }
}
.tam-ban-field input[type="file"] { padding: 6px; height: auto; }
.tam-ban-field input::file-selector-button {
  margin-inline-end: 10px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--bg-1); color: var(--text); font: 650 .82rem var(--sans); cursor: pointer;
}
.tam-ban-field input::file-selector-button:hover { background: var(--accent-dim); color: var(--accent); }

/* Kısa geçişler, kontrol geri bildirimi ve gezinme hareketi. */
@keyframes panel-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes theme-option-enter {
  from { transform: scale(.75); }
  to { transform: scale(1); }
}
[data-layout="shell"] .content > .content-head,
.overview-banner, .directory-toolbar { animation: panel-enter .24s ease-out; }
.metric-card, .guild-directory > .gcard { animation: panel-enter .32s cubic-bezier(.2, .65, .3, 1) backwards; }
.metric-card:nth-child(4n+2), .guild-directory > .gcard:nth-child(3n+2) { animation-delay: 45ms; }
.metric-card:nth-child(4n+3), .guild-directory > .gcard:nth-child(3n+3) { animation-delay: 90ms; }
.metric-card:nth-child(4n+4) { animation-delay: 135ms; }
.side nav a { transition: background-color .16s, color .16s; }
.btn { transition: background-color .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
:root:not([data-theme="dark"]) .theme-option:first-child,
:root[data-theme="dark"] .theme-option:last-child { animation: theme-option-enter .2s ease-out; }
@media (hover: hover) and (pointer: fine) {
  .metric-card, .gcard { transition: transform .2s, border-color .2s, box-shadow .2s; }
  .metric-card:hover, .gcard:hover { transform: translateY(-1px); border-color: var(--accent-line); box-shadow: var(--elevated-shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .metric-card:hover, .gcard:hover, .btn:active:not(:disabled) { transform: none; }
}

/* Açılış sayfası ve etkileşimli Discord sunucu demosu */
.landing-hero { padding-block: clamp(54px, 8vw, 105px) 48px; background: radial-gradient(ellipse at 79% 18%, var(--accent-dim), transparent 55%); }
.landing-hero .wrap { grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(24px, 4.4vw, 74px); }
.landing-copy { animation: panel-enter .65s cubic-bezier(.2,.7,.3,1) backwards; }
.landing-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-dim); color: var(--accent); font-size: .82rem; font-weight: 750; }
.landing-hero h1 { font-size: clamp(2.8rem, 4.85vw, 4.9rem); max-width: 640px; }
.landing-hero .lead { font-size: clamp(1rem, 1.5vw, 1.17rem); max-width: 480px; }
.landing-hero .facts { gap: 9px 17px; font: 650 .8rem var(--sans); }
.preview-stage { min-width: 0; padding: 16px 0; animation: panel-enter .65s .12s cubic-bezier(.2,.7,.3,1) backwards; }
.community-preview { min-width: 0; color: #f0f3ff; background: #131b2f; border: 1px solid #45547e; border-radius: 21px; overflow: hidden; box-shadow: 0 24px 60px #15275338, 0 0 0 7px color-mix(in srgb, var(--accent) 10%, transparent); }
.preview-titlebar { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid #2b3654; background: #19243c; }
.preview-brand, .preview-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #2e3a69; color: #becbff; }
.preview-caption { margin-left: auto; color: #bcc8eb; font-size: .75rem; }
.preview-workspace { display: grid; grid-template-columns: minmax(142px, .65fr) minmax(0, 1.35fr); min-height: 306px; }
.preview-sidebar { padding: 17px 9px; background: #182237; border-right: 1px solid #2b3654; }
.preview-nav-title { margin: 0 6px 10px; color: #bac6e7; font-size: .78rem; font-weight: 750; }
.preview-sidebar button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 38px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: #b5c0de; text-align: left; font-size: .8rem; transition: background-color .18s, color .18s; }
.preview-sidebar button[aria-pressed="true"], .preview-sidebar button:hover { background: #2c3962; color: #f3f5ff; }
.preview-sidebar button span { overflow-wrap: anywhere; }
.preview-main { min-width: 0; background: radial-gradient(ellipse at 80% 10%, #233155, #131b2f 77%); }
.preview-channel { display: flex; align-items: center; gap: 7px; padding: 13px 15px; border-bottom: 1px solid #2b3654; font-size: .89rem; overflow-wrap: anywhere; }
.preview-channel svg { color: #aebbe4; }
.preview-feed { padding: 16px; }
.preview-date { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: #b0bddf; font-size: .73rem; }
.preview-date::before, .preview-date::after { content: ""; height: 1px; background: #344064; flex: 1; }
.preview-event { --event-color: #92e9c9; animation: panel-enter .36s ease-out; }
.preview-event.lilac { --event-color: #bacaff; }
.preview-event.amber { --event-color: #ffd596; }
.preview-bot { display: flex; gap: 8px; align-items: center; margin-bottom: 9px; font-size: .88rem; }
.preview-bot strong { overflow-wrap: anywhere; }
.preview-avatar { width: 30px; height: 30px; color: var(--event-color); }
.preview-app { padding: 2px 5px; margin-left: 6px; border-radius: 5px; background: #394883; color: #e9edff; font-size: .68rem; font-weight: 700; }
.preview-message { padding: 13px; border: 1px solid #38466c; border-left: 3px solid var(--event-color); border-radius: 11px; background: #222d48; }
.preview-message h2 { font-size: .95rem; color: var(--event-color); }
.preview-message p { margin-top: 6px; color: #dce4fa; font-size: .83rem; }
.preview-event-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; border-top: 1px solid #3a476a; padding-top: 9px; margin-top: 10px; font-size: .74rem; color: #c1cdeb; }
.preview-event-meta span:last-child { display: inline-flex; align-items: center; gap: 4px; color: var(--event-color); }
.landing-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 32px; }
.landing-tool { display: flex; gap: 10px; align-items: center; text-align: left; min-width: 0; padding: 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg-1); box-shadow: var(--surface-shadow); transition: border-color .18s, transform .18s; }
.landing-tool:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.landing-tool-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-dim); color: var(--accent); }
.landing-tool strong, .landing-tool small { display: block; }
.landing-tool small { color: var(--text-3); font-size: .78rem; }
@media (max-width: 1000px) { .landing-hero .wrap { grid-template-columns: minmax(0, 1fr); } .preview-stage { width: min(100%, 680px); } }
@media (max-width: 700px) { .landing-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .landing-hero { padding-top: 44px; }
  .landing-hero h1 { font-size: clamp(2.55rem, 10vw, 3.45rem); }
  .preview-workspace { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .preview-sidebar { display: flex; flex-wrap: wrap; padding: 7px; gap: 3px; border-right: 0; border-bottom: 1px solid #2b3654; }
  .preview-sidebar .preview-nav-title { display: none; }
  .preview-sidebar button { width: auto; min-height: 33px; font-size: .73rem; }
  .preview-feed { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .landing-tool:hover { transform: none; } }
.landing-arrival { animation: panel-enter .4s cubic-bezier(.2,.7,.3,1) backwards; }
/* Index: ürün bölümleri, kurulum, güvenlik, komut dizini ve destek */
.landing-network { padding-bottom: clamp(38px, 6vw, 78px); }
.network-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: var(--surface-shadow); }
.network-item { display: flex; align-items: center; gap: 13px; min-width: 0; padding: clamp(13px, 2vw, 24px); background: var(--bg-1); }
.network-item > svg { width: 22px; height: 22px; color: var(--accent); }
.network-item strong { display: block; overflow-wrap: anywhere; font: 800 clamp(1.2rem, 2.3vw, 1.85rem)/1.16 var(--heading); letter-spacing: -.04em; }
.network-item span { display: block; margin-top: 3px; font-size: .83rem; color: var(--text-3); }
.site-section { padding-block: clamp(46px, 7.4vw, 100px); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.landing-tinted { background: var(--bg-2); }
.site-section-title { max-width: 740px; margin-bottom: clamp(23px, 4vw, 43px); }
.site-section-title h2, .security-summary h2, .landing-final-card h2 { font-size: clamp(1.85rem, 3.65vw, 3.25rem); line-height: 1.1; letter-spacing: -.05em; }
.site-section-title p { color: var(--text-2); margin-top: 11px; max-width: 640px; }
.landing-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module-showcase {
  --module-accent: var(--accent); --module-tint: var(--accent-dim); --module-glow: #96e7c6;
  display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: clamp(16px, 2.5vw, 31px);
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg-1); box-shadow: var(--surface-shadow);
  scroll-margin-top: 86px;
}
.module-showcase--guard { --module-accent: var(--ok); --module-tint: var(--ok-dim); --module-glow: #96e7c6; }
.module-showcase--moderation { --module-glow: #bdcaff; }
.module-showcase--rnato { --module-accent: var(--info); --module-tint: var(--info-dim); --module-glow: #9fd5ff; }
.module-showcase--family { --module-accent: var(--warn); --module-tint: var(--warn-dim); --module-glow: #ffda9e; }
.module-info { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.module-name { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--module-accent); font-size: .92rem; font-weight: 800; }
.module-name span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--module-tint); }
.module-info h3 { font-size: clamp(1.37rem, 2.2vw, 2.05rem); line-height: 1.12; }
.module-info > p { margin-top: 9px; color: var(--text-2); }
.module-feature-list { display: grid; gap: 6px; padding: 0; margin: 16px 0 17px; list-style: none; }
.module-feature-list li { display: flex; align-items: baseline; gap: 8px; color: var(--text-2); font-size: .88rem; }
.module-feature-list svg { align-self: center; color: var(--module-accent); width: 15px; height: 15px; }
.module-info > .row { margin-top: auto; }
.module-demo { min-width: 0; border: 1px solid #394865; border-radius: 14px; background: linear-gradient(160deg, #212e49, #141d31); color: #f3f6ff; overflow: hidden; }
.module-demo-head { display: flex; align-items: center; gap: 7px; padding: 11px 13px; border-bottom: 1px solid #384567; font-size: .87rem; }
.module-demo-head strong { min-width: 0; overflow-wrap: anywhere; }
.module-demo-head svg { color: var(--module-glow); }
.module-demo-head span { margin-left: auto; flex: none; font-size: .73rem; color: #b7c5e4; }
.module-demo-feed { list-style: none; margin: 0; padding: 4px 13px; }
.module-demo-feed li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #354363; }
.module-demo-feed li:last-child { border-bottom: 0; }
.module-demo-feed strong { display: block; font-size: .84rem; }
.module-demo-feed p { font-size: .75rem; color: #c3cee9; }
.module-demo-icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 8px; background: #354465; color: var(--module-glow); }
.module-demo-status { flex: none; padding: 3px 7px; border-radius: 99px; background: #2b3854; color: var(--module-glow); font-size: .68rem; }
.setup-grid, .command-directory { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.setup-step { padding: clamp(16px, 2.65vw, 28px); }
.setup-step-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--accent-dim); color: var(--accent); }
.setup-step-icon svg { width: 20px; height: 20px; }
.setup-step h3 { margin-top: 14px; font-size: 1.14rem; }
.setup-step p { margin-top: 6px; color: var(--text-2); font-size: .91rem; }
.security-section { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: 0; }
.security-summary { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-radius: 22px 0 0 22px; padding: clamp(22px, 4vw, 48px); background: linear-gradient(130deg, var(--banner-start), var(--banner-end)); color: var(--banner-text); }
.security-symbol { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid #ffffff50; border-radius: 13px; background: #ffffff22; margin-bottom: 14px; }
.security-symbol svg { width: 24px; height: 24px; }
.security-summary p, .landing-final-card p { margin-top: 11px; color: var(--banner-muted); }
.security-summary .btn { margin-top: 19px; background: #ffffff16; border-color: #ffffff65; color: #fff; }
.security-summary .btn:hover { background: #ffffff26; }
.security-rules { display: flex; flex-direction: column; justify-content: center; gap: 0; border: 1px solid var(--line); border-left: 0; border-radius: 0 22px 22px 0; padding: 12px clamp(16px, 3vw, 36px); background: var(--bg-1); }
.security-rules > div { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; }
.security-rules > div + div { border-top: 1px solid var(--line); }
.security-rules h3, .command-card h3, .faq-group h3 { font-size: 1.05rem; }
.security-rules p { margin-top: 4px; color: var(--text-2); font-size: .9rem; }
.command-card { padding: 18px; }
.command-card h3 { display: flex; align-items: center; gap: 8px; }
.command-card h3 svg { color: var(--accent); }
.command-card .cmds { margin-top: 12px; }
.landing-questions { display: grid; grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr); gap: clamp(20px, 5vw, 70px); align-items: start; }
.question-intro .site-section-title { margin-bottom: 17px; }
.faq-groups { display: grid; gap: 16px; }
.faq-group h3 { margin: 0 0 7px 3px; color: var(--text-2); }
.faq-group .faq { overflow: hidden; box-shadow: var(--surface-shadow); }
.faq-group summary { font-weight: 700; }
.faq-group summary:hover, .faq-group details[open] summary { background: var(--accent-dim); }
.faq-group details p { margin-top: 12px; }
.landing-final { background: var(--bg); }
.landing-final-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 17px; padding: clamp(22px, 4vw, 50px); border-radius: 22px; background: linear-gradient(115deg, var(--banner-start), var(--banner-end)); color: var(--banner-text); }
.landing-final-card .btn { color: #141d3b; background: #fff; border-color: #fff; }
.landing-final-card .btn:hover { background: #e1e9ff; }
.landing-footer { background: var(--bg-1); }
.landing-footer .cols { align-items: start; }
.footer-brand-block p { max-width: 32ch; margin: 10px 0 13px; color: var(--text-2); font-size: .88rem; }
.landing-footer h4 { font: 800 .86rem var(--heading); color: var(--text); text-transform: none; letter-spacing: 0; }
.landing-footer .legal { align-items: center; margin-top: 28px; }
@media (max-width: 860px) {
  .landing-modules, .landing-questions, .security-section { grid-template-columns: minmax(0,1fr); }
  .security-summary { border-radius: 18px 18px 0 0; }
  .security-rules { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; }
}
@media (max-width: 660px) {
  .network-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-grid, .command-directory { grid-template-columns: minmax(0, 1fr); }
  .faq-group summary { padding-inline: 14px; }
  .faq-group details p { padding-inline: 14px; }
}
@media (max-width: 390px) {
  .module-demo-status { max-width: 82px; white-space: normal; text-align: center; }
  .network-item { gap: 8px; }
}

.landing-hero::before { content: none; }
.hero-bubbles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .84; }
:root[data-theme="dark"] .hero-bubbles { opacity: .74; }
@media (prefers-reduced-motion: reduce) { .hero-bubbles { display: none; } }
.rnato-settings-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.rnato-settings-nav button { flex: 1 1 auto; min-height: 40px; padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-weight: 700; }
.rnato-settings-nav button:hover { background: var(--bg-2); color: var(--text); }
.rnato-settings-nav button.active { background: var(--accent-dim); color: var(--accent); }
/* Keep the section navigation reachable at the same scroll position when a tab is shorter. */
.rnato-settings-section { min-height: 100dvh; }
.rnato-install-steps { margin: 4px 0 8px; padding-inline-start: 24px; color: var(--text-2); }
.rnato-install-steps li + li { margin-top: 7px; }
.rnato-guide-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .17em; }
.rnato-guide-link svg { width: .82em; height: .82em; margin-inline-start: .22em; }

/* EAC public site and workspace */
:root {
  --r: 14px;
  --r-sm: 9px;
  --workspace-rail-width: 66px;
  --workspace-sidebar-width: 232px;
  --product-glow: #b8d8f5;
}
:root[data-theme="dark"] {
  --bg: #101116;
  --bg-1: #171920;
  --bg-2: #1d2029;
  --bg-3: #292d39;
  --bg-4: #333947;
  --line: #292d39;
  --line-2: #393f4d;
  --line-3: #606779;
  --text: #f5f6fb;
  --text-2: #c0c5d4;
  --text-3: #9ba4b8;
  --accent: #bbc9ff;
  --accent-hover: #d4deff;
  --accent-ink: #13192b;
  --accent-dim: #262f4a;
  --accent-line: #4a5d97;
  --ok: #79e5c1;
  --ok-dim: #183831;
  --product-glow: #8edcc7;
  --banner-start: #17212a;
  --banner-end: #24334b;
  --surface-shadow: 0 12px 35px #03050d25;
}
.site-nav .in, .app-top .in { max-width: 1320px; gap: 22px; }
.site-nav .in > .brand { margin-right: clamp(10px, 3vw, 44px); }
.site-nav .links a { padding: 8px 12px; }
.site-nav .links a[aria-current="page"] { background: var(--accent-dim); color: var(--accent); }
.site-support-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.account-menu { flex: none; position: relative; z-index: 2; }
.account-menu > summary { display: flex; align-items: center; gap: 7px; padding: 4px; cursor: pointer; border-radius: 10px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: var(--bg-3); }
.account-menu > summary > svg { color: var(--text-3); }
.account-menu img { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.account-sheet {
  position: absolute; top: calc(100% + 9px); right: 0; display: grid; width: min(258px, calc(100vw - 24px)); padding: 7px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-1); box-shadow: var(--elevated-shadow);
}
.account-intro { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; padding: 11px 9px; border-bottom: 1px solid var(--line); }
.account-intro .grow { min-width: 0; }
.account-intro strong, .account-intro small { display: block; }
.account-intro small { color: var(--text-3); }
.account-sheet > :is(a,button) {
  display: flex; gap: 10px; align-items: center; min-height: 39px; padding: 7px 10px;
  border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--text-2);
}
.account-sheet > :is(a,button):hover { background: var(--bg-3); color: var(--text); }
.account-sheet > button { color: var(--danger); }
.landing-hero {
  padding-block: clamp(62px, 8vw, 122px) clamp(42px, 6vw, 82px);
  background: radial-gradient(ellipse at 70% 22%, color-mix(in srgb, var(--product-glow) 15%, transparent), transparent 58%);
  border-bottom: 1px solid var(--line);
}
.landing-hero .wrap { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; }
.landing-hero h1 { max-width: 650px; margin: 0; font-size: clamp(3rem, 6vw, 6rem); font-weight: 820; line-height: .99; letter-spacing: -.075em; }
.landing-hero h1 em { display: block; color: var(--accent); font-style: normal; }
.landing-hero .lead { margin: 24px 0 0; max-width: 420px; line-height: 1.6; }
.landing-hero .cta { margin-top: 26px; }
.community-preview { background: #13171f; border-color: #394452; border-radius: 17px; box-shadow: 0 26px 65px #060c1670; }
.preview-titlebar { background: #1d242f; border-color: #303948; }
.preview-sidebar { background: #191f29; border-color: #303948; }
.preview-main { background: radial-gradient(ellipse at 90% 0%, #26283f, #151922 74%); }
.preview-message { background: #222833; border-top-color: #3c4759; border-right-color: #3c4759; border-bottom-color: #3c4759; }
.landing-network { padding-top: 25px; }
.site-section-title h2 { letter-spacing: -.04em; }
.module-showcase { box-shadow: none; }
.product-page { min-height: 58vh; padding-block: clamp(38px, 6vw, 90px) clamp(55px, 7vw, 95px); }
.product-heading { max-width: 650px; margin-bottom: 30px; }
.product-heading h1 { margin: 0; font-size: clamp(2.65rem, 6vw, 5.2rem); line-height: 1.03; letter-spacing: -.065em; }
.product-heading p { margin: 15px 0 0; color: var(--text-2); font-size: 1.06rem; }
.product-heading > a { display: inline-flex; margin-bottom: 15px; }
.product-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.product-tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--text-2); background: var(--bg-1); }
.product-tabs a[aria-current="page"] { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.resource-grid, .workspace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.resource-tile, .workspace-tile {
  position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1);
  transition: background-color .18s, border-color .18s, transform .18s;
}
.resource-tile:hover, .workspace-tile:hover { transform: translateY(-2px); border-color: var(--accent-line); background: var(--bg-2); color: var(--text); }
.resource-tile { display: block; padding: 22px; }
.resource-tile h2 { margin: 12px 0 0; font-size: 1.14rem; }
.resource-tile p, .workspace-tile p { margin: 4px 0 0; color: var(--text-3); }
.resource-tile > svg { position: absolute; right: 20px; top: 24px; color: var(--text-3); }
.product-icon { display: grid; place-items: center; width: 41px; height: 41px; flex: none; border-radius: 10px; background: var(--accent-dim); color: var(--accent); }
.resource-steps, .resource-command-list { margin: 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); }
.resource-steps { padding: 14px 32px 14px 45px; }
.resource-steps li { padding: 12px 0; }
.resource-command { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 19px; }
.resource-command + .resource-command { border-top: 1px solid var(--line); }
.resource-command code { color: var(--accent); }
.resource-command p { margin: 3px 0 0; color: var(--text-3); }
.workspace-rail { display: none; }
.workspace-access-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.workspace-access-head h2, .workspace-directory h2 { font-size: 1.18rem; letter-spacing: -.02em; }
.workspace-directory h2 { margin: 0 0 10px; }
.workspace-tile { display: grid; grid-template-columns: 41px minmax(0, 1fr) 16px; align-items: start; gap: 12px; padding: 15px; }
.workspace-tile > svg { margin-top: 8px; color: var(--text-3); }
.workspace-tile h3 { margin: 0; font-size: .98rem; }
.workspace-tile p { font-size: .83rem; line-height: 1.4; }
.workspace-search { width: min(100%, 390px); }
.shell .side .brandrow .brand { font-size: .87rem; }
.shell .content .card { box-shadow: none; }
.shell .content .card-head { padding-block: 16px; }
.shell .content .card-head h2 { letter-spacing: -.015em; }
.shell .content .card-body .setting { gap: 20px; }
.shell .content .overview-banner { min-height: 173px; }
.shell .main-top .account-menu { margin-left: 4px; }
@media (min-width: 961px) {
  .shell.has-rail { grid-template-columns: var(--workspace-rail-width) var(--workspace-sidebar-width) minmax(0, 1fr); }
  .workspace-rail {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; min-width: 0; align-items: center;
    gap: 14px; padding: 14px 8px; border-right: 1px solid var(--line); background: var(--bg);
  }
  .workspace-home, .workspace-server-list a { display: grid; place-items: center; border-radius: 13px; width: 47px; min-height: 46px; }
  .workspace-home .mark { width: 27px; height: 27px; }
  .workspace-home:hover, .workspace-server-list a:hover { background: var(--bg-3); }
  .workspace-server-list { display: grid; justify-items: center; gap: 4px; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; }
  .workspace-server-list a[aria-current] { background: var(--accent-dim); box-shadow: inset 2px 0 var(--accent); }
  .workspace-server-list .gicon { border-radius: 10px; }
  .shell.has-rail .side .brandrow { padding-inline: 16px; }
  body[data-layout="shell"]:has(.has-rail) .savebar { left: calc(50% + (var(--workspace-rail-width) + var(--workspace-sidebar-width)) / 2); }
}
@media (max-width: 1150px) {
  .workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .landing-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .landing-hero .lead { max-width: 550px; }
}
@media (max-width: 730px) {
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav .in, .app-top .in { gap: 9px; }
  .site-nav .in > .brand { margin-right: 0; }
  .site-support-link { display: none; }
}
@media (max-width: 540px) {
  .resource-grid, .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-hero h1 { font-size: clamp(2.85rem, 11.5vw, 4rem); }
  .shell .main-top .account-menu { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .resource-tile:hover, .workspace-tile:hover { transform: none; }
}

/* Public landing composition */
.studio-hero {
  isolation: isolate; min-height: clamp(415px, 42vw, 575px); display: grid; place-items: center;
  padding: clamp(54px, 8vw, 105px) 0; text-align: center;
  background:
    radial-gradient(ellipse at 50% 1%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 62%),
    linear-gradient(135deg, var(--bg-1), var(--bg));
}
.studio-hero .studio-hero-copy { display: block; position: relative; width: min(100%, 1050px); }
.studio-hero h1 { margin-inline: auto; font-size: clamp(3.1rem, 7vw, 6.6rem); letter-spacing: -.064em; line-height: 1.02; max-width: none; }
.studio-hero h1 em { color: var(--accent); margin-top: .06em; }
.studio-hero .lead { max-width: 510px; margin: 20px auto 0; }
.studio-hero .cta { justify-content: center; margin: 28px 0 0; }
.studio-capabilities { padding-block: clamp(37px, 5vw, 68px); }
.studio-section-header { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 9px 18px; margin-bottom: 19px; }
.studio-section-header h2, .studio-demo-copy h2 { margin: 0; font-size: clamp(1.65rem, 3.4vw, 2.9rem); line-height: 1.17; letter-spacing: -.04em; }
.studio-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.studio-product {
  --module-tint: var(--accent);
  min-width: 0; position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-1); transition: transform .18s ease, border-color .18s ease;
}
.studio-product:hover { transform: translateY(-3px); border-color: var(--accent-line); color: var(--text); }
.studio-product--guard { --module-tint: var(--ok); }
.studio-product--family { --module-tint: var(--warn); }
.studio-product--rnato { --module-tint: var(--info); }
.studio-product .product-icon { background: color-mix(in srgb, var(--module-tint) 14%, var(--bg-2)); color: var(--module-tint); }
.studio-product h3 { margin: 12px 0 3px; font-size: .98rem; }
.studio-product p { margin: 0; color: var(--text-3); font-size: .82rem; }
.studio-product > svg { position: absolute; top: 20px; right: 18px; color: var(--text-3); }
.studio-demo-zone { padding-block: clamp(38px, 6vw, 82px); border-block: 1px solid var(--line); background: var(--bg-1); }
.studio-demo-layout { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(20px, 6vw, 92px); }
.studio-demo-copy p { max-width: 380px; color: var(--text-2); }
.studio-activity { padding-block: 34px; }

/* Modular workspace */
.shell .content { max-width: 1390px; padding-top: 32px; }
.workspace-top-resource { display: inline-flex; align-items: center; color: var(--text-3); gap: 7px; }
.workspace-title {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-bottom: 23px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.workspace-identity, .workspace-title-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.workspace-identity h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.28rem); letter-spacing: -.04em; }
.workspace-identity p { margin: 0; color: var(--text-3); }
.workspace-title-actions .workspace-search { width: min(260px, 100%); }
.workspace-directory { gap: 32px !important; }
.workspace-directory section > h2 { margin: 0 0 11px; font-size: 1.06rem; font-weight: 750; }
.workspace-quick { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.workspace-tile {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 127px;
  gap: 9px 12px; padding: 15px;
}
.workspace-tile .product-icon { grid-row: 1; }
.workspace-tile h3 { margin-top: 1px; }
.workspace-tile-action { display: flex; align-items: center; justify-content: flex-end; gap: 6px; grid-column: 1 / -1; align-self: end; color: var(--accent); font-weight: 700; font-size: .83rem; }
.workspace-tile { position: relative; }
.workspace-tile-action:has(.switch) { justify-content: space-between; }
.workspace-tile-action a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.workspace-tile-action a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.workspace-tile-action .switch { position: relative; z-index: 1; }
.workspace-tile:hover .workspace-tile-action a { text-decoration: underline; }
.shell .content-head { min-height: 73px; margin-bottom: 20px; }
.shell .content-head h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.shell .content .card { border-radius: 12px; }

/* Message editor layout */
.welcome-workspace { display: grid; gap: 16px; }
.welcome-master {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1);
}
.welcome-master h2, .welcome-editor-card h2, .welcome-preview-card h2 { margin: 0; font-size: 1rem; }
.welcome-master p, .welcome-editor-card header p { margin: 3px 0 0; color: var(--text-3); }
.welcome-event-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; width: fit-content; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.welcome-event-tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-2); font-weight: 700;
}
.welcome-event-tabs button[aria-pressed="true"] { background: var(--accent-dim); color: var(--accent); }
.welcome-work-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 14px; align-items: start; }
.welcome-editor-card, .welcome-preview-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.welcome-editor-card header, .welcome-preview-card > h2 { padding: 15px 17px; border-bottom: 1px solid var(--line); }
.welcome-editor-card header h2 { display: flex; gap: 8px; align-items: center; }
.welcome-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 16px; }
.welcome-fields .select { width: 100%; min-width: 0; }
.welcome-message-field { grid-column: 1 / -1; }
.welcome-preview, .welcome-preview-card > .empty { padding: 14px; }
.welcome-preview :is(.msg-card,.dc-card) { max-width: 100%; }
@media (max-width: 1350px) { .workspace-top-resource { display: none; } }
@media (max-width: 850px) {
  .studio-demo-layout, .welcome-work-grid { grid-template-columns: 1fr; }
  .studio-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .studio-hero { min-height: 390px; }
  .studio-hero h1 { font-size: clamp(2.6rem, 10vw, 3.6rem); }
  .studio-product { padding: 13px; }
  .studio-product > svg { right: 12px; top: 14px; }
  .workspace-title-actions { width: 100%; }
  .workspace-title-actions .workspace-search { flex: 1 1 175px; }
  .welcome-fields { grid-template-columns: minmax(0, 1fr); }
}
.record-tabs { margin-bottom: 1rem; }
.record-tabs a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.record-search { flex-wrap: wrap; }
.record-search input { flex: 1 1 16rem; max-width: 34rem; min-width: 0; }
.record-dialog { width: min(38rem, calc(100% - 2rem)); max-height: 85vh; overflow: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--bg-1); color: var(--text); padding: 1.4rem; }
.record-dialog::backdrop { background: rgb(5 8 16 / .65); }
.record-dialog dl { display: grid; gap: .65rem; margin: 1rem 0; }
.record-dialog dl div { display: grid; grid-template-columns: minmax(7rem, 1fr) 2fr; gap: .65rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.record-dialog dt { font-weight: 600; }
.record-dialog dd { margin: 0; overflow-wrap: anywhere; }
.record-dialog ul { margin: 0; padding-inline-start: 1rem; }

.shell .content:has(table.table) { max-width: 1740px; }
.table-wrap { min-inline-size: 0; max-inline-size: 100%; }
.table th, .table td { padding-inline: clamp(8px, .8vw, 16px); overflow-wrap: anywhere; }
.table th { white-space: normal; }
.table td .row { flex-wrap: wrap; }
.table td .badge {
  max-inline-size: 100%; min-block-size: 23px; block-size: auto;
  padding-block: 3px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere;
}
.table td.incident-summary { max-inline-size: 38ch; }
.table-mobile-label { display: none; }
.table-mobile-rows { container-type: inline-size; }
@container (max-width: 760px) {
  .table-mobile-rows .table, .table-mobile-rows tbody { display: block; }
  .table-mobile-rows thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-mobile-rows tbody tr { display: block; padding: 10px 14px; }
  .table-mobile-rows tbody tr + tr { border-top: 1px solid var(--line); }
  .table-mobile-rows .table td {
    display: block; max-inline-size: none; padding: 5px 0;
    border: 0; white-space: normal;
  }
  .table-mobile-rows td:empty { display: none; }
  .table-mobile-rows .table-mobile-label {
    display: block; color: var(--text-3); font-size: .75rem; font-weight: 650;
  }
}
