/* Goredirect yönetim paneli */
:root {
  --bg: #F2F3F7;
  --surface: #FFFFFF;
  --surface-2: #F7F8FB;
  --ink: #14182B;
  --mut: #5E6478;
  --faint: #8A90A3;
  --line: #E1E4EC;
  --acc: #2D44F5;
  --acc-hover: #1F33D6;
  --acc-ink: #FFFFFF;
  --acc-soft: #E8EBFF;
  --sun: #F5A524;
  --ok: #12A150;
  --ok-soft: #E2F6EA;
  --bad: #E5484D;
  --bad-soft: #FDECEC;
  --warn-soft: #FFF4DB;
  --r-lg: 16px;
  --r: 10px;
  --r-sm: 7px;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --rail: 236px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1220; --surface: #171B2C; --surface-2: #1D2236; --ink: #E9EBF5; --mut: #9BA1B8; --faint: #6E7590;
    --line: #2A3049; --acc: #7D8CFF; --acc-hover: #9AA6FF; --acc-ink: #0F1220; --acc-soft: #232B5C; --sun: #F7B84B;
    --ok: #3DD68C; --ok-soft: #12301F; --bad: #FF6B70; --bad-soft: #3A1A1D; --warn-soft: #3A2E12; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1220; --surface: #171B2C; --surface-2: #1D2236; --ink: #E9EBF5; --mut: #9BA1B8; --faint: #6E7590;
  --line: #2A3049; --acc: #7D8CFF; --acc-hover: #9AA6FF; --acc-ink: #0F1220; --acc-soft: #232B5C; --sun: #F7B84B;
  --ok: #3DD68C; --ok-soft: #12301F; --bad: #FF6B70; --bad-soft: #3A1A1D; --warn-soft: #3A2E12; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--body); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: 1.75rem; line-height: 1.15; }
h2 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.mut { color: var(--mut); }
.faint { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 22px 14px; border-right: 1px solid var(--line); background: var(--bg);
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 26px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--acc); display: grid; place-items: center; color: var(--acc-ink); }
.logo-mark svg { width: 17px; height: 17px; stroke-width: 2.4; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--mut); font-weight: 500;
}
.nav a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--acc); }
.nav a[aria-current="page"] svg { color: var(--acc); }
.nav-sep { margin: 16px 12px 6px; font-size: 0.78rem; font-weight: 600; color: var(--faint); min-height: 1px; }
.nav-sep:empty { margin: 10px 12px; border-top: 1px solid var(--line); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-size: 0.74rem; font-weight: 700; display: grid; place-items: center; }
.rail-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.86rem; }
.rail-foot .who { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; padding: 28px clamp(16px, 3.2vw, 44px) 64px; max-width: 1320px; width: 100%; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar p { margin-top: 6px; color: var(--mut); }
.mobile-bar { display: none; }

/* ---------- Bileşenler ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.panel-b { padding: 18px 20px 20px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.92rem/1 var(--body); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--faint); text-decoration: none; }
.btn-p { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn-p:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.btn-d { color: var(--bad); }
.btn-d:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn-s { height: 32px; padding: 0 11px; font-size: 0.85rem; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--mut); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn-icon { width: 32px; height: 32px; padding: 0; }
.btn[disabled] { opacity: .55; cursor: progress; }

label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.hint { font-size: 0.83rem; color: var(--mut); margin-top: 6px; font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 0.95rem var(--body);
}
textarea.input { height: auto; padding: 10px 12px; min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.field + .field { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-f > * { flex: 1 1 180px; }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.prefixed:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.prefixed span { display: block; align-self: center; flex: 0 1 auto; padding: 0 2px 0 12px; color: var(--faint); font-family: var(--mono); font-size: 0.88rem; white-space: nowrap; max-width: 62%; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.prefixed span bdi { direction: ltr; unicode-bidi: isolate; }
.prefixed .input { flex: 1 1 90px; min-width: 70px; }
.prefixed .input { border: 0; box-shadow: none; padding-left: 2px; font-family: var(--mono); font-size: 0.9rem; }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 500; margin: 0; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 1px 0 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--acc); }
.switch input:checked::after { transform: translateX(16px); }
.switch small { display: block; color: var(--mut); font-weight: 400; font-size: 0.83rem; margin-top: 2px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 0.76rem; font-weight: 600; background: var(--surface-2); color: var(--mut); white-space: nowrap; }
.badge svg.i { width: 12px; height: 12px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: var(--bad-soft); color: var(--bad); }
.badge.acc { background: var(--acc-soft); color: var(--acc); }
.badge.warn { background: var(--warn-soft); color: #9A6400; }
:root[data-theme="dark"] .badge.warn { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.warn { color: var(--sun); } }

.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--mut); font: 600 0.82rem var(--body); padding: 6px 11px; border-radius: 6px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,24,43,.08); }

.alert { padding: 12px 14px; border-radius: var(--r); font-size: 0.92rem; background: var(--surface-2); border: 1px solid var(--line); }
.alert.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.alert.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.alert.warn { background: var(--warn-soft); border-color: transparent; }

/* ---------- Kısaltma çubuğu (panelin imza öğesi) ---------- */
.shorten {
  background: var(--acc); color: var(--acc-ink); border-radius: 20px; padding: 26px clamp(18px, 3vw, 32px) 24px;
  margin-bottom: 22px; position: relative; overflow: hidden;
}
.shorten::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 38px solid rgba(255,255,255,.07); pointer-events: none;
}
.shorten h2 { font-size: 1.35rem; color: var(--acc-ink); }
.shorten p.sub { opacity: .78; margin: 4px 0 18px; font-size: 0.93rem; }
.shorten form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 10px; position: relative; z-index: 1; }
.shorten .input, .shorten .prefixed { height: 50px; border: 0; background: var(--surface); }
.shorten .prefixed .input { height: 48px; }
.shorten .input:focus, .shorten .prefixed:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.shorten .btn { height: 50px; padding: 0 26px; background: var(--ink); color: var(--surface); border: 0; font-size: 1rem; }
.shorten .btn:hover { background: #000; }
:root[data-theme="dark"] .shorten .btn:hover { background: #fff; }
.shorten-result {
  margin-top: 14px; display: none; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1;
  background: rgba(255,255,255,.14); border-radius: 12px; padding: 10px 10px 10px 16px;
}
.shorten-result.show { display: flex; animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
.shorten-result a { color: var(--acc-ink); font-family: var(--mono); font-weight: 600; font-size: 1.02rem; word-break: break-all; }
.shorten-result .btn { height: 34px; padding: 0 12px; font-size: 0.85rem; background: var(--surface); color: var(--ink); }
.shorten-err { margin-top: 12px; display: none; background: rgba(0,0,0,.18); border-radius: 10px; padding: 9px 14px; font-size: 0.9rem; position: relative; z-index: 1; }
.shorten-err.show { display: block; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- KPI şeridi ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 18px 22px 20px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .lbl { color: var(--mut); font-size: 0.86rem; font-weight: 500; }
.kpi .val { font-family: var(--display); font-weight: 700; font-size: 2.1rem; letter-spacing: -0.035em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 0.8rem; font-weight: 600; margin-top: 4px; color: var(--faint); }
.kpi .delta.up { color: var(--ok); }
.kpi .delta.down { color: var(--bad); }

.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 210px; }
.legend { display: flex; gap: 16px; font-size: 0.83rem; color: var(--mut); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Bar listeleri (kaynak, ülke vb.) */
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; font-size: 0.9rem; border-radius: 6px; z-index: 0; }
.bars li + li { margin-top: 3px; }
.bars li::before { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--acc-soft); border-radius: 6px; z-index: -1; transition: width .5s ease; }
.bars .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bars .n { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }
.bars .n small { color: var(--faint); font-weight: 500; margin-left: 6px; }
.empty { padding: 26px 8px; text-align: center; color: var(--faint); font-size: 0.9rem; }

/* ---------- Tablo ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1 1 240px; position: relative; }
.toolbar .search svg { position: absolute; left: 11px; top: 11px; color: var(--faint); }
.toolbar .search .input { padding-left: 36px; height: 40px; }
.toolbar select.input { width: auto; height: 40px; }
.bulk { display: none; align-items: center; gap: 8px; padding: 10px 18px; background: var(--acc-soft); border-bottom: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--acc); }
.bulk.show { display: flex; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--mut); font-size: 0.8rem; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .chk { width: 40px; }
.tbl input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--acc); cursor: pointer; }
.slug { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 0.88rem; word-break: break-all; }
.slug:hover { color: var(--acc); }
.slug-pre { color: var(--faint); font-weight: 400; }
.target { color: var(--mut); max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-size: 0.86rem; }
.ttl { font-weight: 500; font-size: 0.86rem; margin-bottom: 2px; }
.acts { display: flex; gap: 2px; justify-content: flex-end; }
.clicks-cell b { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.02em; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--mut); gap: 12px; flex-wrap: wrap; }
.pager .row { gap: 6px; }

/* ---------- Modal ---------- */
dialog { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(10,12,30,.35); }
dialog::backdrop { background: rgba(15,18,32,.5); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .25s ease-out; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 4px; }
.dlg-h h2 { font-size: 1.25rem; }
.dlg-b { padding: 16px 22px; max-height: calc(100vh - 200px); overflow-y: auto; }
.dlg-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
details.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--mut); list-style: none; display: flex; align-items: center; gap: 6px; }
details.more summary::before { content: "+"; font-family: var(--mono); width: 14px; }
details.more[open] summary::before { content: "−"; }
details.more > div { padding-top: 14px; }

/* ---------- Bildirim ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: 10px; font-weight: 500; font-size: 0.92rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: pop .3s ease-out; }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- Link detay ---------- */
.link-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px; }
.link-head .big { font-family: var(--mono); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 600; word-break: break-all; color: var(--ink); }
.link-head .to { display: flex; gap: 8px; align-items: center; color: var(--mut); margin-top: 8px; font-size: 0.92rem; min-width: 0; }
.link-head .to a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.qr { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }

/* ---------- İçe/Dışa aktarma ---------- */
.drop { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; display: block; font-weight: 400; margin: 0; }
.drop:hover, .drop.over { border-color: var(--acc); background: var(--acc-soft); }
.drop strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.drop input { display: none; }
.fmt-list { display: grid; gap: 10px; }
.fmt { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.fmt b { display: block; }
.fmt span { font-size: 0.85rem; color: var(--mut); }
.result-list { font-size: 0.86rem; max-height: 220px; overflow: auto; margin-top: 10px; }
.result-list div { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---------- Giriş / kurulum ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { background: var(--acc); color: var(--acc-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art .logo { color: var(--acc-ink); padding: 0; }
.auth-art .logo-mark { background: var(--acc-ink); color: var(--acc); }
.auth-art blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; max-width: 14ch; position: relative; z-index: 1; }
.auth-art .path { font-family: var(--mono); font-size: 0.95rem; opacity: .75; margin-top: 18px; position: relative; z-index: 1; }
.auth-art .path b { color: var(--acc-ink); opacity: 1; }
.auth-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-form form, .auth-form .box { width: 100%; max-width: 380px; }
.auth-form h1 { margin-bottom: 6px; }
.auth-form .lead { color: var(--mut); margin-bottom: 26px; }
.install .auth-form form { max-width: 520px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; padding: 0; }

/* ---------- Sayfa düzenleyici ---------- */
.input-lg { height: 50px; font-size: 1.15rem; font-weight: 600; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ed-side { position: sticky; top: 20px; }
.ed-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; z-index: 2; }
.ed-toolbar select.input { width: auto; height: 34px; font-size: 0.86rem; padding: 0 8px; }
.ed-btn { min-width: 34px; height: 34px; padding: 0 8px; border: 0; background: transparent; color: var(--mut); border-radius: 6px; cursor: pointer; font: 600 0.92rem var(--body); display: inline-grid; place-items: center; }
.ed-btn:hover { background: var(--surface-2); color: var(--ink); }
.ed-btn[aria-pressed="true"], .ed-btn.on { background: var(--acc-soft); color: var(--acc); }
.ed-btn svg.i { width: 17px; height: 17px; }
.ed-src { margin-left: auto; font-family: var(--mono); font-size: 0.78rem; }
.ed-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.ed-area { min-height: 460px; padding: 24px 28px 40px; outline: none; }
.ed-area:empty::before { color: var(--faint); }
.ed-code { display: block; width: 100%; min-height: 460px; border: 0; padding: 20px 24px; font: 0.85rem/1.6 var(--mono); background: var(--surface-2); color: var(--ink); resize: vertical; outline: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.prose-admin { font-size: 1rem; line-height: 1.7; max-width: 74ch; }
.prose-admin > * { margin: 0 0 0.9em; }
.prose-admin h2 { font-size: 1.45rem; margin-top: 1.4em; }
.prose-admin h3 { font-size: 1.2rem; margin-top: 1.2em; }
.prose-admin h4 { font-size: 1.02rem; margin-top: 1em; }
.prose-admin ul, .prose-admin ol { padding-left: 1.4em; }
.prose-admin blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--acc); color: var(--mut); }
.prose-admin img { max-width: 100%; height: auto; border-radius: 8px; }
.prose-admin a { text-decoration: underline; }
.prose-admin hr { border: 0; border-top: 1px solid var(--line); }
.grip { color: var(--faint); cursor: grab; display: inline-flex; }
tr.dragging td { opacity: .45; }
tr.drop-before td { box-shadow: inset 0 2px 0 var(--acc); }

/* ---------- Ana sayfa formu ---------- */
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 400; margin: 0; }
.choice:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.choice input { margin: 3px 0 0; accent-color: var(--acc); width: 16px; height: 16px; flex: none; }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: var(--mut); font-size: 0.84rem; margin-top: 2px; }
.color-field { display: flex; gap: 6px; }
.color-field input[type="color"] { width: 42px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; flex: none; }
.logo-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-prev { height: 56px; min-width: 56px; max-width: 220px; padding: 8px; border: 1px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; background: var(--surface-2); }
.logo-prev img { max-height: 40px; max-width: 200px; display: block; }
.logo-prev span { width: 38px; height: 38px; border-radius: 10px; background: var(--brand, var(--acc)); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.repeat { display: grid; gap: 8px; }
.rep-row > * { flex: 1 1 140px; }
.rep-block { display: grid; gap: 6px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.rep-block label { margin: 0; }
.soc-row { margin-top: 8px; }
.soc-row label { font-weight: 500; color: var(--mut); }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: 22px -4px 0; padding: 14px 4px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
[data-show-if][hidden] { display: none; }

/* ---------- Mesajlar ---------- */
.seg-a { display: inline-block; padding: 6px 12px; border-radius: 6px; font: 600 0.82rem var(--body); color: var(--mut); text-decoration: none; }
.seg-a:hover { text-decoration: none; color: var(--ink); }
.seg-a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,24,43,.08); }
.msgs { list-style: none; margin: 0; padding: 0; }
.msg { border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg-head { width: 100%; display: grid; grid-template-columns: 12px minmax(160px, 240px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; background: transparent; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.msg-head:hover { background: var(--surface-2); }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; }
.msg.unread .msg-dot { background: var(--acc); }
.msg-from { display: flex; flex-direction: column; min-width: 0; }
.msg-from b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.unread .msg-from b, .msg.unread .msg-sub { font-weight: 700; }
.msg-from .mut { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); }
.msg.unread .msg-sub { color: var(--ink); }
.msg-time { font-size: 0.82rem; color: var(--faint); white-space: nowrap; }
.msg-body { padding: 4px 18px 22px 44px; }
.msg-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; margin: 0 0 16px; font-size: 0.88rem; }
.msg-meta dt { color: var(--faint); font-size: 0.78rem; }
.msg-meta dd { margin: 0; }
.msg-text { max-width: 72ch; line-height: 1.65; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r); white-space: normal; overflow-wrap: anywhere; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .g-main, .g-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .editor-grid { grid-template-columns: 1fr; }
  .ed-side { position: static; }
}
@media (max-width: 860px) {
  .msg-head { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .msg-sub { grid-column: 2 / -1; }
  .msg-body { padding-left: 18px; }
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; background: var(--surface); box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.nav-open .rail { transform: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 40; }
  .mobile-bar .logo { padding: 0; font-size: 1.05rem; }
  .main { padding-top: 20px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shorten form { grid-template-columns: 1fr; }
  .g-2, .g-3, .g-main { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 20px; min-height: 220px; }
  .link-head { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .kpi { padding: 14px 16px; }
  .kpi .val { font-size: 1.6rem; }
  h1 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.ed-code[hidden], .ed-area[hidden] { display: none; }
[hidden] { display: none !important; }
.row + .field, .field + .row, .row + .row { margin-top: 16px; }
.repeat .row + .row { margin-top: 0; }
.lang-btn { font-family: var(--mono); font-size: 0.78rem; padding: 0 8px; }
/* Dil sekmeleri */
.lang-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -6px 0 18px; }
.lang-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--mut); font-weight: 600; font-size: .9rem; }
.lang-tabs a:hover { text-decoration: none; color: var(--ink); border-color: var(--faint); }
.lang-tabs a[aria-current="page"] { border-color: var(--acc); color: var(--ink); box-shadow: 0 0 0 3px var(--acc-soft); }
.lt-code, .lt-mark { font-family: var(--mono); font-size: .72rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--mut); }
.lang-tabs a[aria-current="page"] .lt-code { background: var(--acc); color: var(--acc-ink); }
.lt-mark { background: var(--acc-soft); color: var(--acc); margin-left: 4px; vertical-align: 1px; }
.lt-hint { margin: 0 0 0 8px; flex: 1 1 260px; }
.tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.ed-area:empty::before { content: attr(data-placeholder); }
