:root {
  --green: #16a34a;
  --green-deep: #15803d;
  --ink: #1b1636;
  --muted: #4e4b63;
  --line: #e7e2f4;
  --glass: #ffffff;
  --glass-2: #f4f1fb;
  --danger: #e11d48;
  --warn: #d97706;
  --info: #2563eb;
  --violet: #6d5efc;
  --coral: #ff6b4a;
  --mint: #2dd4bf;
  --sand: #f3e4d0;
  --activity: #d7f4f1;
  --perf: #14141f;
  --radius: 22px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: 0;
  font-optical-sizing: auto;
  background:
    radial-gradient(1100px 620px at 8% -12%, #edd9ff 0%, transparent 55%),
    radial-gradient(900px 520px at 100% 0%, #c7e0ff 0%, transparent 48%),
    linear-gradient(180deg, #efe7ff 0%, #e7f3ff 48%, #def8ef 100%);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
code { font-size: 0.92em; }

.stage { padding: 18px; min-height: 100vh; }
.board, .shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: calc(100vh - 36px);
  background: #f6f4fb;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(70, 40, 130, 0.16);
  overflow: hidden;
}

.side {
  position: sticky;
  top: 0;
  height: calc(100vh - 36px);
  padding: 22px 16px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #d9d3ea transparent;
}
.side .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  padding: 2px 8px 18px;
  font-size: 20px;
  letter-spacing: 0;
}
.who {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #f6f4fb;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(160deg, #6d5efc, #34d399);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.who strong { display: block; font-size: 13px; }
.who-plan { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.nav-group { margin: 0 0 12px; }
.nav-group h3, .nav-more summary {
  margin: 0 8px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.nav-more { margin-top: 6px; }
.nav-more summary { cursor: pointer; list-style: none; padding: 8px; border-radius: 12px; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover { background: #f6f4fb; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #3f3b55;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease;
}
.nav a .ico { width: 18px; height: 18px; flex-shrink: 0; }
.nav a:hover { background: #f6f4fb; }
.nav a.active {
  background: #efeaff;
  color: var(--violet);
  font-weight: 700;
}
.nav a.is-dim { opacity: 0.28; }
.logout {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.workspace {
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: transparent;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 251, 0.88);
  backdrop-filter: blur(16px);
}
.top-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 22px 8px;
  flex-wrap: wrap;
}
.site-switch input { max-width: 220px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(160deg, #6d5efc, #22c55e);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  flex: 0 1 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  height: 42px;
  box-shadow: 0 8px 20px rgba(80, 50, 140, 0.04);
}
.search svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search input { border: 0; background: transparent; width: 100%; outline: none; }
.site-switch { display: flex; gap: 8px; flex: 1; min-width: 0; }
.site-switch input, .site-switch select,
.row-form input, .row-form select, textarea,
.form-grid input, .form-grid select,
.gate-card input {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
}
.site-switch select, .site-switch input { height: 42px; border-radius: 14px; }
.site-switch input { flex: 1; }
.site-switch #siteDelete { flex: 0 0 auto; height: 42px; }
.alt-input { width: 100%; min-width: 140px; }
.opt-table td { vertical-align: top; }
.opt-table input[type="checkbox"] { width: 18px; height: 18px; }
.xml-preview { max-height: 280px; overflow: auto; font-size: 12px; white-space: pre-wrap; }
.btn {
  background: var(--violet);
  color: #fff;
  border: 0;
  padding: 9px 16px;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 150ms ease, filter 150ms ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.orange, .btn.coral {
  background: var(--coral);
  color: #fff;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wrap { padding: 12px 26px 64px; }
.notice {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 2px 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}

.hero, .dash-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
  background: transparent;
  border: 0;
  padding: 4px 2px 8px;
  color: var(--ink);
}
.hero h1, .dash-head h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: 0; line-height: 1.25; font-weight: 700; }
.hero p, .dash-head p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero-actions a { text-decoration: none; }

.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.metric, .card, .pie-card, .score-card, .kpi, .perf-card, .activity-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid transparent;
  box-shadow: 0 12px 32px rgba(70, 40, 130, 0.06);
}
.card, .pie-card, .score-card, .perf-card, .activity-card, .engage {
  margin-bottom: 22px;
}
.dash-main > *, .kpi-row > *, .dash-charts > *, .metrics > *, .engage-cards article {
  margin-bottom: 0;
}
.kpi {
  min-height: 132px;
  display: grid;
  grid-template-columns: auto 1fr 128px;
  grid-template-areas:
    "ico label label"
    "n n spark"
    "hint hint hint";
  gap: 4px 12px;
  align-items: center;
}
.kpi-ico {
  grid-area: ico;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #efeaff;
  color: var(--violet);
}
.kpi-ico svg { width: 18px; height: 18px; }
.kpi .l { grid-area: label; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .n { grid-area: n; font-size: 32px; font-weight: 700; letter-spacing: 0; line-height: 1.15; }
.kpi .hint { grid-area: hint; font-size: 12px; font-weight: 600; }
.kpi .hint.up { color: #16a34a; }
.kpi .hint.down { color: var(--coral); }
.spark {
  grid-area: spark;
  width: 128px;
  height: 48px;
  align-self: center;
  overflow: hidden;
}

.metric .n { font-size: 26px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.metric .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.metric .hint { margin-top: 8px; font-size: 12px; font-weight: 700; }
.metric .hint.up { color: #16a34a; }
.metric .hint.down { color: var(--coral); }
.live-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.live-kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.live-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.live-split.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-chart { overflow: hidden; }
.col-chart-wrap { overflow-x: auto; }
.col-legend { display: flex; gap: 16px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.col-legend .dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; margin-right: 6px; }
.col-legend .dot.a { background: #6d5efc; }
.col-legend .dot.b { background: #2dd4bf; }
.col-chart { display: flex; align-items: flex-end; gap: 3px; min-height: 168px; }
.col { flex: 1 1 0; min-width: 14px; display: grid; justify-items: center; gap: 6px; }
.col-pair { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 140px; width: 100%; }
.col-pair i, .col-pair b {
  display: block;
  width: 7px;
  min-height: 2px;
  border-radius: 4px 4px 1px 1px;
  align-self: flex-end;
}
.col-pair i { background: #6d5efc; }
.col-pair b { background: #2dd4bf; }
.col em { font-size: 9px; font-style: normal; color: var(--muted); font-weight: 600; }
.share-row {
  display: grid;
  grid-template-columns: minmax(88px, 150px) 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.share-row:last-child { border-bottom: 0; }
.share-bar { height: 8px; background: #ece8f6; border-radius: 99px; overflow: hidden; }
.share-bar span { display: block; height: 100%; background: linear-gradient(90deg, #6d5efc, #8b7cff); border-radius: 99px; }
.share-row b { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.page-hit { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.page-hit:last-child { border-bottom: 0; }
.page-hit span { color: var(--muted); font-size: 12px; }
.page-url { word-break: break-all; font-size: 13px; color: var(--ink); text-decoration: none; font-weight: 600; }
.page-url:hover { color: var(--violet); }
.live-table-wrap { overflow-x: auto; }
.engage-lite {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.engage-lite strong { font-size: 18px; }
.engage-lite span { color: var(--muted); font-size: 13px; }
.metric.warn { box-shadow: 0 12px 32px rgba(217, 119, 6, 0.12); }
.metric.bad { box-shadow: 0 12px 32px rgba(225, 29, 72, 0.1); }
.metric.ok { box-shadow: 0 12px 32px rgba(22, 163, 74, 0.1); }
.metric.blue .n { color: #2563eb; }
.metric.orange .n { color: #ea580c; }
.metric.red .n { color: #e11d48; }
.metric.teal .n { color: #0f766e; }
.metric.green .n { color: #16a34a; }

.card h2, .pie-card h2, .score-card h2, .activity-card h2, .perf-card h2, .engage h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
.card > .muted, .card-lead {
  display: block;
  margin: 0 0 16px;
  line-height: 1.6;
  max-width: 70ch;
}
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.dash-charts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.dash-main {
  display: grid;
  grid-template-columns: 0.92fr 1.4fr;
  gap: 20px;
  margin-bottom: 22px;
}
.perf-card {
  background: var(--perf);
  color: #f4f1ff;
  min-height: 280px;
}
.perf-card h2 { color: #fff; }
.perf-stats { display: flex; gap: 22px; margin: 8px 0 18px; }
.perf-stats b { display: block; font-size: 30px; letter-spacing: 0; line-height: 1.2; }
.perf-stats span { color: #a9a6c3; font-size: 13px; }
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #d6d3ea; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: #2dd4bf; }
.dot.off { background: #ff6b4a; }

.activity-card {
  background: var(--activity);
  min-height: 280px;
  position: relative;
}
.activity-card h2 { position: relative; z-index: 1; }
.activity-card .chart { width: 100%; height: 210px; display: block; }
.chart-float {
  position: absolute;
  top: 56px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 10px 24px rgba(20, 20, 31, 0.12);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
}
.chart-float i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
}

.engage {
  background: var(--sand);
  border-radius: 28px;
  padding: 24px 22px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}
.engage p { margin: 6px 0 0; color: #7a6756; font-size: 13px; }
.engage-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.engage-cards article {
  background: #fff;
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 0 10px 22px rgba(90, 50, 20, 0.08);
}
.engage-cards .n { font-size: 24px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.engage-cards .l { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.mini-pie {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-top: 8px;
}

.score-card { text-align: center; padding: 18px 14px 14px; }
.score-card .donut { margin: 0 auto 8px; }
.score-card .muted { margin: 8px 0 0; font-size: 13px; }
.donut {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto;
}
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: #ece8f6; stroke-width: 14; }
.donut-val { fill: none; stroke-width: 14; stroke-linecap: round; }
.donut-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-label b { font-size: 30px; letter-spacing: 0; line-height: 1.15; }
.donut-label span { color: var(--muted); font-size: 12px; font-weight: 600; }

.pie-card { display: flex; flex-direction: column; gap: 12px; }
.pie {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  margin: 4px auto 0;
}
.pie::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: #fff;
}
.pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.pie-legend li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.pie-legend li span { display: flex; align-items: center; }
.pie-legend li b { color: var(--ink); font-weight: 700; }
.swatch {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
th { color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
textarea { width: 100%; min-height: 160px; }
.list { margin: 0; padding-left: 18px; }
.err { color: var(--danger); }
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eafaf1;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
}
.pill.off { background: #ffe4e6; color: #be123c; }
.pill.krit { background: #ffe4e6; color: #be123c; }
.pill.yuk { background: #fef3c7; color: #b45309; }
.pill.bilgi { background: #eef2ff; color: #3730a3; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.connect-card { margin-bottom: 12px; }
.google-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}
.google-status .pills { margin: 0; }
.google-status a { font-size: 13px; font-weight: 600; }
.panel-tabs, .google-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin: 0 0 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(70, 40, 130, 0.06);
  overflow-x: auto;
}
.panel-tabs a, .google-tabs a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 650;
  color: var(--muted);
}
.panel-tabs a.active, .google-tabs a.active {
  background: #efeaff;
  color: var(--violet);
}
.queue-lead { margin: 0 0 16px; color: var(--muted); }
.how { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.queue { display: grid; gap: 16px; }
.queue .item, .task {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(70, 40, 130, 0.05);
}
.task { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.task .bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 99px;
  background: #ece8f6;
  overflow: hidden;
}
.task .bar span { display: block; height: 100%; background: var(--violet); border-radius: 99px; }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.empty-card {
  text-align: center;
  background: #fff;
  border-radius: 28px;
  padding: 48px 24px;
  box-shadow: 0 12px 32px rgba(70, 40, 130, 0.06);
}
.empty-art {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: linear-gradient(160deg, #6d5efc, #2dd4bf);
}
.empty-card h2 { margin: 0 0 8px; }
.snap {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px 14px;
  margin: 0;
}
.snap dt { color: var(--muted); font-size: 12px; font-weight: 600; margin: 0; }
.snap dd { margin: 0; font-weight: 600; word-break: break-all; }

body.gated .stage { display: none; }
body.gated .gate { display: grid; }
.gate {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
}
.gate-card {
  width: min(420px, 100%);
  background: #fff;
  border: 0;
  border-radius: 28px;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 70px rgba(70, 40, 130, 0.16);
}
.gate-card h1 { margin: 16px 0 6px; font-size: 26px; }
.gate-card form { display: grid; gap: 12px; margin-top: 16px; }
.gate-card label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.gate-card label.is-hidden { display: none !important; }
.gate-card .btn { width: 100%; padding: 11px 14px; justify-content: center; }
.gate-switch { margin: 16px 0 0; text-align: center; }
button.link {
  background: none;
  border: 0;
  color: var(--violet);
  font-weight: 600;
  padding: 0;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.user-chip span { font-size: 13px; font-weight: 600; color: var(--muted); }

.buckets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.bucket {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(70, 40, 130, 0.05);
}
.bucket b { display: block; font-size: 26px; letter-spacing: 0; line-height: 1.2; }
.bucket span { color: var(--muted); font-size: 13px; font-weight: 600; }
.bucket.blue { border-color: #93c5fd; color: #1d4ed8; }
.bucket.green { border-color: #86efac; color: #15803d; }
.bucket.amber { border-color: #fcd34d; color: #b45309; }
.bucket.red { border-color: #fda4af; color: #be123c; }
.filters {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.filters label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.filters input, .filters select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 10px;
}
.page-table a,
.page-table button.link {
  color: var(--violet);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.issue {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 14px;
  margin: 0;
  background: #fff;
  display: grid;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(70, 40, 130, 0.04);
  border-left: 3px solid #c4b5fd;
}
.issue.orta { border-left-color: #d97706; }
.issue.yuk { border-left-color: #ea580c; }
.issue.krit { border-left-color: #e11d48; }
.issue.bilgi { border-left-color: #2563eb; }
.issue header {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}
.issue header strong {
  flex: 1 1 160px;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
}
.issue p {
  margin: 0;
  color: #2f2c42;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}
.issue .k {
  display: none;
}
.issue .why { color: var(--muted); }
.issue .do {
  color: var(--ink);
  font-weight: 600;
  background: #f6f4fb;
  border-radius: 12px;
  padding: 10px 12px;
}
.issue .rank { color: #5b4a9a; font-size: 13px; }
.issue .where-note { color: #5b5670; }
.where-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #efe9ff;
  color: #4c3d8a;
  flex-shrink: 0;
}
.issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}
.issue-actions .btn { padding: 7px 12px; border-radius: 12px; font-size: 13px; }
.bind-steps {
  margin: 0 0 16px;
  padding-left: 22px;
  display: grid;
  gap: 14px;
  line-height: 1.65;
}
.bind-steps li { padding: 0; }
.bind-steps strong { display: block; margin-bottom: 4px; }
.bind-steps .pill { margin-top: 8px; }
.plan {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 18px;
}
.plan li { padding: 0 0 4px; line-height: 1.6; }
.plan li strong { display: block; margin-bottom: 6px; font-size: 16px; line-height: 1.4; letter-spacing: 0; }
.plan .muted, .plan .do, .plan .why { margin: 0 0 8px; line-height: 1.6; }
.plan .do { margin-top: 0; font-weight: 600; }
.page-layout {
  display: grid;
  grid-template-columns: 292px 1fr;
  gap: 18px;
  align-items: start;
}
.score-side, .page-main { display: grid; gap: 14px; }
.score-side { position: relative; }
.score-hero { text-align: center; padding-bottom: 16px; }
.score-hero .donut { margin-bottom: 8px; }
.score-hero .type-pill {
  background: #efe9ff;
  color: #4c3d8a;
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}
.mini-stats > div { padding: 12px 8px 0; text-align: left; }
.mini-stats > div:first-child { padding-left: 0; }
.mini-stats dt { color: var(--muted); font-size: 11px; font-weight: 600; }
.mini-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; line-height: 1.2; }
.rum-stats { grid-template-columns: 1fr 1fr; }
.rum-stats > div { padding: 10px 8px 0; }
.scan-meta {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.geo-line {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}
.geo-line span { font-size: 13px; font-weight: 700; }
.geo-bar {
  height: 8px;
  border-radius: 99px;
  background: #ece8f6;
  overflow: hidden;
}
.geo-bar span { display: block; height: 100%; background: #16a34a; }
.sig-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sig-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f6f4fb;
}
.sig-list li i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.sig-list li.ok i { background: #16a34a; }
.sig-list li.off { color: var(--muted); font-weight: 500; }
.sig-list li.off i { background: #e11d48; }
#issue-content, #issue-schema, #issue-geo { scroll-margin-top: 76px; }
.page-url { margin-top: 4px !important; }
.page-url a {
  color: var(--violet);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  word-break: break-all;
}
.page-url a:hover { text-decoration: underline; }
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.card-head h2 { margin-bottom: 4px; }
.card-head .card-lead { margin-bottom: 0; }
h2 .count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: #efe9ff;
  color: #4c3d8a;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  vertical-align: 1px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lane-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.lane-card, .lane-mini {
  display: grid;
  gap: 8px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(70, 40, 130, 0.05);
  text-decoration: none;
  min-height: 0;
}
.lane-card header, .lane-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lane-card p, .lane-mini span { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lane-card strong, .lane-mini strong { font-size: 15px; }
.lane-mini { flex-direction: column; align-items: flex-start; }
.lane-card .issue-actions { margin-top: 4px; }
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 0;
}
.tool-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: #fff;
  color: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.tool-card:hover {
  border-color: #cfc6ea;
  box-shadow: 0 10px 24px rgba(70, 40, 130, 0.08);
  transform: translateY(-1px);
}
.tool-ico {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #efe9ff;
  color: var(--violet);
  display: grid;
  place-items: center;
}
.tool-ico svg { width: 20px; height: 20px; }
.tool-card strong { font-size: 14px; line-height: 1.3; padding-top: 2px; }
.tool-card span:last-child { color: var(--muted); font-size: 12.5px; line-height: 1.45; grid-column: 2; }
.file-btn { cursor: pointer; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.btn.wide { width: 100%; justify-content: center; padding: 12px; }
.page-fields { display: grid; gap: 12px; }
.page-fields label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
.page-fields .char { font-weight: 600; color: var(--muted); float: right; }
.page-fields input, .page-fields textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.page-fields textarea { min-height: 88px; }
.page-fields textarea.blog-body { min-height: 280px; line-height: 1.55; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.kw-chips button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}
.kw-chips button:hover { border-color: var(--navy, #1e3a5f); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (max-width: 1180px) {
  .dash-main, .engage, .filters, .buckets, .lane-board, .field-row { grid-template-columns: 1fr; }
  .engage-cards { grid-template-columns: repeat(3, 1fr); }
  .kpi-row { grid-template-columns: 1fr; }
  .dash-charts { grid-template-columns: 1fr 1fr; }
  .metrics, .live-kpis, .live-kpis.six { grid-template-columns: repeat(3, 1fr); }
  .live-split, .live-split.three { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .page-layout { grid-template-columns: 1fr; }
  .score-side { position: static; }
  .tool-grid { grid-template-columns: 1fr; }
  .score-hero {
    display: grid;
    grid-template-columns: 132px 1fr;
    text-align: left;
    align-items: center;
    column-gap: 16px;
  }
  .score-hero .donut {
    width: 124px;
    height: 124px;
    margin: 0;
    grid-row: 1 / span 4;
  }
  .stage { padding: 0; }
  .board, .shell {
    grid-template-columns: 1fr;
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }
  .side {
    position: relative;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }
  .side .brand { padding: 4px 8px; }
  .logout { margin-top: 8px; width: auto; }
  .nav-group { margin: 0; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .top-inner { flex-wrap: wrap; }
  .search { min-width: 0; flex: 1 1 100%; }
}
.snippet {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #14141f;
  color: #e8fff7;
  font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 640px) {
  .metrics, .dash-charts, .engage-cards { grid-template-columns: 1fr; }
  .hero, .dash-head { flex-direction: column; align-items: flex-start; }
}

.work {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 14, 48, 0.55);
  backdrop-filter: blur(10px);
}
.work[hidden] { display: none !important; }
.work-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 28px 26px 22px;
  box-shadow: 0 30px 80px rgba(40, 20, 90, 0.28);
  text-align: center;
}
.work-spin {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid #ece8f6;
  border-top-color: var(--coral);
  animation: work-spin 0.8s linear infinite;
}
.work.ok .work-spin,
.work.fail .work-spin { animation: none; border-top-color: #ece8f6; }
.work.ok .work-spin { border-color: #bbf7d0; background: #16a34a; }
.work.fail .work-spin { border-color: #fecdd3; background: var(--danger); }
.work-card h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: 0; line-height: 1.3; }
.work-now { margin: 10px 0 0; font-weight: 700; color: var(--violet); min-height: 1.2em; }
.work-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 7px;
  max-height: 42vh;
  overflow: auto;
}
.work-steps li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.work-steps li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d3ea;
  flex-shrink: 0;
}
.work-steps li.run { color: var(--ink); font-weight: 700; }
.work-steps li.run::before { background: var(--coral); box-shadow: 0 0 0 4px #ffd8ce; }
.work-steps li.ok { color: var(--green-deep); }
.work-steps li.ok::before { background: var(--green); }
.work-steps li.err { color: var(--danger); }
.work-steps li.err::before { background: var(--danger); }
.work-card .btn { margin-top: 16px; }
@keyframes work-spin { to { transform: rotate(360deg); } }
