/* GOMI SEO Command Center — lacivert/mavi tasarım sistemi (v0.5.0) */
:root {
  --bg: #071526;
  --bg-2: #0a1c33;
  --panel: #0f2645;
  --panel-2: #0c2140;
  --panel-hover: #133056;
  --line: #1f4470;
  --line-soft: #183a62;
  --ink: #f2f7ff;
  --ink-2: #c5d8ee;
  --muted: #8fb0d2;
  --accent: #4f9cf0;
  --accent-2: #2f7fd8;
  --accent-ink: #04111f;
  --good: #3ccf7f;
  --good-bg: #0f3a27;
  --warn: #f6bd3b;
  --warn-bg: #3e300d;
  --bad: #f47272;
  --bad-bg: #431a1f;
  --info-bg: #12345c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14.5px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: #7cc0ff; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #06111f 0%, #071629 100%); border-right: 1px solid var(--line-soft);
  padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800;
  color: var(--accent-ink); background: linear-gradient(135deg, #8fd0ff, var(--accent-2)); }
.brand-name { font-weight: 750; letter-spacing: .01em; line-height: 1.2; }
.brand-sub { font-size: 11.5px; color: var(--muted); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f92b8; padding: 6px 10px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink-2); }
.nav-link:hover { background: var(--panel-2); color: var(--ink); text-decoration: none; }
.nav-link.active { background: var(--info-bg); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.nav-link.soon { color: #7d97b4; }
.nav-ico { width: 18px; text-align: center; opacity: .9; }
.soon-tag { margin-left: auto; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; border: 1px dashed #47698f; color: #9bb6d4; }
.sidebar-foot { margin-top: auto; font-size: 11.5px; color: #6f92b8; padding: 0 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 28px; border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 10px; }
.project-switch { display: flex; align-items: center; gap: 8px; }
.project-switch label { color: var(--muted); font-size: 12.5px; }
select, input, textarea { font: inherit; color: var(--ink); background: #0a1d36; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 11px; }
select:hover, input:hover { border-color: #2c5b90; }
.topbar-spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--info-bg); color: var(--ink); font-weight: 700; font-size: 12.5px; }
.content { padding: 26px 28px 60px; max-width: 1360px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* ---------- components ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-size: 13.5px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); font-weight: 600; }
.btn.small { padding: 5px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; }
.card h2, .card h3 { margin: 0 0 10px; font-size: 16px; }
.card .sub { color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.grid.kpis { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.kpi { position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi .value { font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; margin-top: 4px; letter-spacing: -.01em; }
.kpi .hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kpi.soon { background: repeating-linear-gradient(135deg, var(--panel-2), var(--panel-2) 10px, #0d2443 10px, #0d2443 20px); border-style: dashed; border-color: #2a4f7c; }
.kpi.soon .value { font-size: 15px; color: #a9c2dd; font-weight: 600; margin-top: 10px; }
.section { margin-top: 26px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.section-title h2 { margin: 0; font-size: 17px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--info-bg); color: #cfe3fb; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.good { background: var(--good-bg); color: #9df0c2; }
.badge.warn { background: var(--warn-bg); color: #ffd98a; }
.badge.bad { background: var(--bad-bg); color: #ffc0c0; }
.badge.muted { background: #1a2f4b; color: #a8bfd8; }
.badge.plain::before { display: none; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 7px; font-size: 12px; background: #13335a; color: #d2e5fb; border: 1px solid #22497a; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
table.data tr:hover td { background: #0d2443; }
.table-wrap { overflow-x: auto; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.alert { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; border: 1px solid; margin-bottom: 16px; }
.alert.error { background: var(--bad-bg); border-color: #7a2a35; color: #ffd0d0; }
.alert.ok { background: var(--good-bg); border-color: #1f6b47; color: #c6f6dc; }
.alert.info { background: var(--info-bg); border-color: #2a5a90; color: #d7e9ff; }
.alert.warn { background: var(--warn-bg); border-color: #7a5d16; color: #ffe2a3; }
.kv { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.status-row:last-child { border-bottom: 0; }
.status-row .what { font-weight: 600; }
.status-row .detail { color: var(--muted); font-size: 12.5px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 136px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); margin: 4px 0 20px; }
.tab { padding: 9px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; font-size: 13.5px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab.soon { color: #7d97b4; }
.tab.soon::after { content: "Yakında"; font-size: 10px; margin-left: 6px; padding: 0 6px; border: 1px dashed #47698f; border-radius: 999px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; max-width: 640px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > .field { flex: 1 1 180px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); }
.stepper { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 6px; }
.stepper li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink-2); }
.stepper li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: #15365e; color: #cfe3fb; }
.stepper li.now { background: var(--info-bg); color: var(--ink); }
.stepper li.now::before { background: var(--accent); color: var(--accent-ink); }
.stepper li.later { color: #7d97b4; }

/* ---------- auth pages ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1100px 600px at 12% -10%, #16406e 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #123a63 0%, transparent 55%), var(--bg); }
.auth-card { width: 100%; max-width: 430px; background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px 26px; box-shadow: var(--shadow); }
.auth-card .brand { padding: 0 0 18px; }
.auth-card .form { max-width: none; }
.auth-foot { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.6; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .2s ease; z-index: 50; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-block; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 10px 16px; }
  .project-switch label { display: none; }
  .user-chip .name { display: none; }
  .kv { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi .value { font-size: 24px; }
  .card { padding: 15px 16px; }
}
[hidden] { display: none !important; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- v0.5.3 İçerik Stüdyosu ---------- */
.h-sub { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.studio-head { align-items: center; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.req { color: var(--bad); }
.disclaimer { font-size: 12px; margin: 8px 2px 0; }
.form.wide { max-width: none; }
.kpi.link { color: var(--ink); }
.kpi.link:hover { text-decoration: none; background: var(--panel-hover); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.studio-project { color: var(--ink); display: block; }
.studio-project:hover { text-decoration: none; background: var(--panel-hover); }
.mini-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; font-size: 13px; color: var(--ink-2); }
.mini-stats strong { font-size: 18px; color: var(--ink); margin-right: 3px; }
.content-card { display: flex; flex-direction: column; gap: 8px; }
.content-card h3 { margin: 0; font-size: 15.5px; line-height: 1.35; }
.content-card h3 a { color: var(--ink); }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-meta { display: grid; grid-template-columns: 96px 1fr; gap: 3px 10px; margin: 0; font-size: 12.5px; }
.cc-meta dt { color: var(--muted); }
.cc-meta dd { margin: 0; overflow-wrap: anywhere; }
.cc-flag, .warn-chip { color: #ffd98a; }
.cc-flag { font-size: 12px; margin: 0; }
.warn-chip { border-color: #7a5d16; background: var(--warn-bg); }
.cc-actions { display: flex; gap: 8px; margin-top: auto; }
.score-pill { min-width: 38px; text-align: center; padding: 2px 9px; border-radius: 999px; font-weight: 750; font-size: 13px; font-variant-numeric: tabular-nums; }
.score-pill.good, .score-ring.good { background: var(--good-bg); color: #9df0c2; }
.score-pill.warn, .score-ring.warn { background: var(--warn-bg); color: #ffd98a; }
.score-pill.bad, .score-ring.bad { background: var(--bad-bg); color: #ffc0c0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input { flex: 1 1 240px; }
.studio-new { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.rules .kv.one { grid-template-columns: 1fr; gap: 2px 0; }
.rules .kv.one dd { margin-bottom: 8px; }
.gen-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-box, .manual-box { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--panel-2); }
.ai-box.off { border-style: dashed; }
.ai-box p, .manual-box p { margin: 0; font-size: 13.5px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.editor-side { display: grid; gap: 14px; position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; padding-right: 2px; }
.side-card { padding: 15px 16px; }
.side-card h4 { margin: 12px 0 6px; font-size: 13px; color: var(--ink-2); }
.counter { float: right; font-weight: 600; font-size: 11.5px; padding: 0 7px; border-radius: 999px; }
.counter.ok { color: #9df0c2; background: var(--good-bg); }
.counter.off { color: #ffd98a; background: var(--warn-bg); }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.md-toolbar button { background: #0a1d36; color: var(--ink-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; font-size: 12.5px; cursor: pointer; }
.md-toolbar button:hover { background: var(--panel-hover); color: var(--ink); }
.md-area { width: 100%; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; resize: vertical; min-height: 360px; }
.editor-tabs { display: flex; gap: 2px; margin-bottom: 8px; }
.etab { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--ink-2); padding: 6px 12px; cursor: pointer; font: inherit; }
.etab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; margin-top: 8px; background: var(--panel); border-top: 1px solid var(--line-soft); }
.dirty-flag { color: #ffd98a; font-size: 12.5px; font-weight: 600; }
.img-list { display: grid; gap: 10px; }
.img-row { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; }
.img-row legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.img-row .sub { margin: 0 0 6px; font-size: 12px; }
.score-box { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.score-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; font-variant-numeric: tabular-nums; }
.checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.check-item { border: 1px solid var(--line-soft); border-left-width: 4px; border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.check-item.fail { border-left-color: var(--bad); }
.check-item.warn { border-left-color: var(--warn); }
.check-item p { margin: 5px 0 0; }
.check-item .fix { color: var(--ink-2); }
.ci-details { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.checks.passed li { font-size: 12.5px; }
details summary { cursor: pointer; color: var(--ink-2); margin-top: 10px; font-size: 13px; }
.linkish { background: none; border: 0; padding: 0; color: #7cc0ff; cursor: pointer; font: inherit; font-size: 12.5px; margin-top: 6px; }
.linkish:hover { text-decoration: underline; }
form.inline { display: inline; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13px; }
code.url { overflow-wrap: anywhere; color: var(--ink-2); }
.wf-form { display: grid; gap: 6px; margin-top: 10px; }
.timeline.compact li { grid-template-columns: 110px 1fr; font-size: 12.5px; }
.article-preview { max-width: 860px; }
.article-body { font-size: 16px; line-height: 1.75; color: var(--ink); }
.article-body h1 { font-size: 26px; line-height: 1.3; }
.article-body h2 { font-size: 20px; margin-top: 1.6em; }
.article-body h3 { font-size: 17px; margin-top: 1.3em; }
.article-body blockquote { border-left: 3px solid var(--accent); margin: 1em 0; padding: 2px 14px; color: var(--ink-2); }
.serp-preview { background: #fff; color: #202124; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-family: Arial, sans-serif; max-width: 640px; }
.serp-url { font-size: 12.5px; color: #4d5156; }
.serp-title { font-size: 19px; color: #1a0dab; margin: 3px 0; line-height: 1.3; }
.serp-desc { font-size: 13.5px; color: #4d5156; line-height: 1.5; }
@media (max-width: 1100px) {
  .editor-layout, .studio-new { grid-template-columns: 1fr; }
  .editor-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .gen-actions { grid-template-columns: 1fr; }
  .cc-meta { grid-template-columns: 84px 1fr; }
  .save-bar { position: static; }
}

/* ---------- v0.5.3-dev2: clearer clickable content, failed generations ---------- */
.content-card { transition: border-color .15s ease, background-color .15s ease; }
.content-card:hover, .content-card:focus-within { border-color: var(--accent); background: var(--panel-hover); }
.content-card h3 a.cc-title, a.cc-title { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.content-card h3 a.cc-title:hover, a.cc-title:hover, a.cc-title:focus-visible { color: #7cc0ff; border-bottom-color: currentColor; }
a.cc-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.continue-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-bottom: 14px; }
.continue-bar .cc-title { font-weight: 650; margin: 0 4px; }
.failed-gen .inline-actions { display: inline-flex; margin-left: 8px; vertical-align: middle; }
.gen-table td { vertical-align: top; }
.gen-actions-cell { justify-content: flex-end; white-space: nowrap; }
.action-block { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; background: var(--panel-2); }
.action-block p { margin: 0 0 8px; font-size: 13.5px; }
.warn-text { color: #ffd98a; }
@media (max-width: 640px) {
  .gen-actions-cell { white-space: normal; }
  .continue-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- v0.5.4: Görsel Stüdyosu, WordPress aktarımı, proje kontrol paneli ---------- */
.item-sections { margin: 4px 0 14px; }
.thumb { width: 96px; height: auto; border-radius: 6px; display: block; }
.side-thumb { width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 8px; }
.checklist { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; font-size: 13.5px; }
.checklist li::before { display: inline-block; width: 1.4em; font-weight: 700; }
.checklist li.ok::before { content: "✓"; color: #9df0c2; }
.checklist li.no::before { content: "✗"; color: #ffc0c0; }
.ok-text { color: #9df0c2; }
.check.danger { color: #ffc0c0; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.panel-grid > div { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 4px; background: var(--panel-2); }
.panel-grid .label { font-size: 12px; color: var(--ink-2); }
.panel-grid strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.panel-grid strong.small { font-size: 14px; }
.article-body figure { margin: 1.2em 0; }
.article-body figure img { max-width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 760px) {
  .item-sections { overflow-x: auto; white-space: nowrap; }
}

/* ---------- v0.5.4-dev2: Görsel Stüdyosu düzeni (responsive, taşmasız) ----------
   Only the on-screen size is limited; the stored image file and its resolution never change. */
img, video, svg { max-width: 100%; }
img { height: auto; }
.card, .editor-main, .editor-side, .field, .form { min-width: 0; }
.editor-layout > * { min-width: 0; max-width: 100%; }
.studio-images-layout { grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 390px); }
.studio-images-layout .editor-main { display: grid; gap: 16px; align-content: start; }
.studio-images-layout .editor-main > .card { margin: 0; overflow: hidden; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; min-width: 0; }
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; max-width: 100%; margin: 0; }
.mc-preview { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 300px; background: #081a30;
  border-bottom: 1px solid var(--line-soft); cursor: zoom-in; overflow: hidden; }
.mc-preview img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.mc-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mc-zoom { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; padding: 3px 8px; border-radius: 999px;
  background: rgba(7, 21, 38, .82); color: var(--ink); border: 1px solid var(--line); opacity: .85; pointer-events: none; }
.mc-preview:hover .mc-zoom, .mc-preview:focus-visible .mc-zoom { opacity: 1; }
.media-card .mc-body { padding: 12px 14px 14px; display: grid; gap: 8px; min-width: 0; }
.media-card .mc-body p { margin: 0; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-file code, .mc-meta, .media-card .sub, .side-card .sub, .side-card dd, .link-list li { overflow-wrap: anywhere; word-break: break-word; }
.mc-file code { display: inline-block; max-width: 100%; white-space: normal; }
.media-card .form { gap: 8px; max-width: none; }
.media-card .form input, .media-card .form textarea, .side-card .form input, .side-card .form textarea, .side-card select { width: 100%; max-width: 100%; box-sizing: border-box; }
.media-card .form textarea { resize: vertical; min-height: 2.6em; }
.side-card .kv.one { grid-template-columns: minmax(64px, 84px) minmax(0, 1fr); column-gap: 10px; }
.side-card .kv.one dd { margin: 0; }
.side-card code { overflow-wrap: anywhere; white-space: normal; }
.table-wrap { max-width: 100%; overflow-x: auto; }
/* large preview (native <dialog>, opened by app.js; without JS the link opens the original in a new tab) */
.lightbox { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--ink);
  max-width: min(96vw, 1600px); max-height: 94vh; width: auto; overflow: hidden; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(3, 10, 20, .82); }
.lightbox .lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.lightbox .lb-caption { flex: 1 1 200px; min-width: 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.lightbox img { display: block; max-width: min(96vw, 1600px); max-height: calc(94vh - 60px); width: auto; height: auto; object-fit: contain; margin: 0 auto; background: #081a30; }
@media (max-width: 1100px) {
  .studio-images-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mc-preview { max-height: 240px; }
  .media-card .mc-body { padding: 10px 12px 12px; }
  .mc-actions .btn { flex: 1 1 auto; }
}
.data code { overflow-wrap: anywhere; }
.studio-images-layout .table-wrap table { min-width: 560px; }

/* ---------- v0.5.5-dev1: aktarım öncesi kontrol, kategori/etiket, envanter, benzer içerik ---------- */
.precheck-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.precheck-head h3 { margin: 0; }
.precheck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.precheck-grid > div { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 8px 10px; min-width: 0; display: grid; gap: 2px; }
.precheck-grid strong { font-size: 14px; overflow-wrap: anywhere; }
.precheck-why { margin: 10px 0 0; }
.compact-kv { grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); }
.compact-kv dd { margin: 0; overflow-wrap: anywhere; }
.cat-list, .tag-list, .similar-list, .wp-inline { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.cat-list .why { margin: 4px 0 0 2px; padding-left: 16px; color: var(--ink-2); font-size: 12.5px; }
.cat-list .why li { overflow-wrap: anywhere; }
.similar-list { margin-top: 8px; }
.similar-list li, .tag-list li { overflow-wrap: anywhere; }
.chip.new-tag { border-style: dashed; }
details.change { margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
details.change > summary { cursor: pointer; color: var(--accent); font-size: 13.5px; }
details.change .form { margin-top: 10px; }
.cat-tree, .tag-pick { display: grid; gap: 4px; max-height: 280px; overflow-y: auto; padding: 6px 8px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-2); }
.tag-pick { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.cat-tree .depth-1 { padding-left: 18px; } .cat-tree .depth-2 { padding-left: 36px; } .cat-tree .depth-3 { padding-left: 54px; }
.cat-tree label, .tag-pick label { min-width: 0; overflow-wrap: anywhere; }
.wp-cover { margin: 0 0 10px; display: grid; gap: 6px; }
.wp-thumb { display: block; background: #081a30; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 3 / 2; max-height: 220px; max-width: 100%; }
.wp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wp-thumb.small { width: 96px; flex: 0 0 96px; max-height: 64px; }
.wp-inline li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.wp-inline li > span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.filter-bar input { flex: 1 1 220px; min-width: 0; }
.filter-bar select { min-width: 0; max-width: 100%; }
code { overflow-wrap: anywhere; word-break: break-word; }
.inv-table { min-width: 640px; }
.inv-table td { vertical-align: top; }
.row-missing td { opacity: .72; }
.similar-box { margin-top: 4px; }
@media (max-width: 640px) {
  .compact-kv { grid-template-columns: minmax(0, 1fr); }
  .precheck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- v0.5.6-dev1: SEO Intelligence ---------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.subtab { padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--ink-2);
  font-size: 13px; background: var(--bg-2); white-space: nowrap; }
.subtab:hover { color: var(--ink); border-color: var(--line); }
.subtab.active { color: var(--ink); border-color: var(--accent); background: rgba(80, 160, 255, .12); }
.opp-list, .plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.opp, .plan-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px;
  background: var(--bg-2); min-width: 0; }
.opp h4, .plan-item h4 { margin: 6px 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.opp-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opp-title { margin: 8px 0; overflow-wrap: anywhere; }
.opp-improve { border-left: 3px solid #d9a441; }
.opp-dismissed { opacity: .6; }
.opp .why, .card .why { margin: 6px 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.opp .why li, .card .why li { overflow-wrap: anywhere; }
.opp-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.headings { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; }
.cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.cluster { margin: 0; min-width: 0; }
.plan-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.plan-item.removed { opacity: .6; }
.plan-date { font-variant-numeric: tabular-nums; }
.plan-body { min-width: 0; }
.plan-edit .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kw-table { min-width: 860px; }
.kw-table td { vertical-align: top; }
@media (max-width: 640px) {
  .plan-item { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v0.5.6-dev2: publication readiness, link messages ---------- */
.readiness h3 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.readiness .badge, .seo-not-ready, .content-card .cc-head .badge { white-space: normal; max-width: 100%; }
.readiness-note { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: rgba(245, 180, 60, .12); }
.readiness-incomplete { border-left: 3px solid var(--bad, #e5534b); }
.readiness-needs_edit { border-left: 3px solid var(--warn, #d29922); }
.readiness-ready { border-left: 3px solid var(--good, #3fb950); }
.content-card .cc-head { flex-wrap: wrap; gap: 6px; min-width: 0; }
#analysis, #analysis .card, #analysis li, .link-msg { min-width: 0; overflow-wrap: anywhere; }

/* ---------- v0.5.6-dev3: editorial quality, sources, editorial helper ---------- */
.editorial h3 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.editorial .badge { white-space: normal; }
.ed-list { padding-left: 18px; margin: 6px 0; }
.ed-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.ed-list li.ed-warn::marker { color: var(--warn, #d29922); }
.source-list, .claim-list { list-style: none; padding: 0; margin: 8px 0; }
.source-list li, .claim-list li { margin-bottom: 8px; overflow-wrap: anywhere; min-width: 0; }
.source-list .badge { white-space: normal; }
.src-text { overflow-wrap: anywhere; }
.editorial-helper { margin-top: 16px; border-style: dashed; }
.editorial-helper h3 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.table-wrap { overflow-x: auto; max-width: 100%; }

/* v0.5.6-dev6: visual identity */
.swatches { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.swatch svg { flex: 0 0 auto; }
.brief-box { border: 1px solid #22497a; border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #0f2747; min-width: 0; }
.brief-box h4 { margin: 0 0 6px; }
.brief-box dd { overflow-wrap: anywhere; }
.brief-tabs { margin-top: 10px; }
.ref-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.ref-list img { width: 100%; height: auto; border-radius: 8px; display: block; }
.brief-checks summary { cursor: pointer; }
.compact-grid { gap: 12px 14px; }
details.field > summary { cursor: pointer; color: var(--muted); }

/* v0.5.7: automation page */
.btn.danger { background: #8a2433; border-color: #b33a4b; color: #fff; }
.btn.danger:hover { background: #a02a3b; }
.inline-check { display: inline-flex; margin-right: 12px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; padding: 0; }

/* v0.5.8 automation: today board */
ul.plain { list-style: none; margin: 6px 0 0; padding: 0; }
ul.plain li { padding: 4px 0; border-bottom: 1px solid rgba(127,127,127,.15); overflow-wrap: anywhere; }
