:root {
  --bg: #f4f5f8; --card: #fff; --ink: #151a23; --muted: #667085; --line: #e3e6ec; --soft: #f7f8fa;
  --pri: #1c4fd8; --pri-ink: #fff; --pri-soft: #eef3ff; --ok: #12805c; --warn: #b54708; --danger: #c0362c;
  --r: 10px;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 76px; }  /* kaydırılan öğe yapışkan üst çubuğun altında kalmasın */
@media (max-width: 640px) { html { scroll-padding-top: 12px; } }
body { margin: 0; font-family: Inter, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 22px; } h2 { font-size: 16px; margin-bottom: 8px; } h3 { font-size: 14px; margin-bottom: 6px; }
a { color: var(--pri); }
.muted { color: var(--muted); } .small { font-size: 12px; }
.ok-text { color: var(--ok); } .error-text { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

input, select, textarea { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff; width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--pri); outline-offset: 1px; }
textarea { resize: vertical; field-sizing: content; min-height: 2.6em; max-height: 60vh; }
input:disabled, select:disabled, textarea:disabled { background: var(--soft); color: var(--muted); }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
label.check { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #b8c0cc; }
.btn.primary { background: var(--pri); color: var(--pri-ink); border-color: var(--pri); }
.btn.primary:hover { background: #1740b0; }
.btn.danger { color: var(--danger); border-color: #f2c4bf; }
.btn.danger:hover { background: #fdf0ee; }
.btn.ghost { background: transparent; }
.btn.big { padding: 12px 20px; font-size: 15px; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon { border: 1px solid transparent; background: none; cursor: pointer; width: 28px; height: 28px; border-radius: 6px; font-size: 14px; color: var(--muted); }
.icon:hover:not([disabled]) { background: var(--soft); border-color: var(--line); color: var(--ink); }
.icon.danger:hover { color: var(--danger); }
.icon[disabled] { opacity: .3; cursor: default; }
.spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge.st-taslak { background: #eef0f4; }
.badge.st-kontrolde { background: #fff4e5; color: var(--warn); }
.badge.st-onaylandi { background: #e3f6ee; color: var(--ok); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; }

/* giriş */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #0f172a, #1e293b); }
.auth-card { width: min(400px, 100%); background: #fff; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.brand { font-weight: 700; font-size: 16px; } .brand.big { font-size: 20px; } .logo { color: #f59e0b; }

/* üst çubuk */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 24px; background: #0f172a; color: #fff; }
.issue-picker { display: flex; align-items: center; gap: 8px; }
.issue-picker select { width: auto; min-width: 220px; color: var(--ink); }
.top-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.top .btn.ghost { color: #cbd5e1; border-color: #334155; }
.menu { position: relative; }
.menu-list { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); padding: 6px; z-index: 30; }
.menu-list.right { left: auto; right: 0; }
.menu-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; border: 0; background: none; font: inherit; font-weight: 500; cursor: pointer; color: inherit; text-decoration: none; }
.menu-item:hover { background: var(--soft); }
.menu-note { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }

main { max-width: 1320px; margin: 0 auto; padding: 24px; }
.empty { text-align: center; padding: 80px 20px; }
.issue-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.workflow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alert { background: #fff7ed; border: 1px solid #fed7aa; color: var(--warn); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--pri); border-color: var(--pri); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.card-lite { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; background: #fff; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-actions.end { justify-content: flex-end; margin-top: 12px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: end; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--pri-soft); color: var(--pri); }
.table-wrap { overflow-x: auto; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table th, .list-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list-table tr.backup td { color: var(--muted); }

/* içerik editörü */
.ed-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.editor { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.ed-nav { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.ed-nav button { display: flex; justify-content: space-between; gap: 8px; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; font: inherit; cursor: pointer; color: var(--ink); }
.ed-nav button:hover { background: var(--soft); }
.ed-nav button.on { background: var(--pri-soft); color: var(--pri); font-weight: 600; }
.ed-nav .c { color: var(--muted); font-size: 12px; }
.ed-pane { min-width: 0; }
.ed-pane > h2 { font-size: 18px; margin-bottom: 12px; }
.pane-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.news-item.is-lead { border-color: #f5b83d; box-shadow: 0 0 0 2px #fdecc8; }
.news-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.news-item-head .num { font-weight: 700; font-size: 16px; min-width: 24px; }
.news-item-head .mini { width: 44px; height: 30px; object-fit: cover; border-radius: 4px; }
.item-tools { margin-left: auto; display: flex; gap: 2px; }
.star { font-size: 16px; } .star.on { color: #e3a008; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair > div { display: flex; flex-direction: column; gap: 6px; position: relative; }
.lang-tag { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.title-in { font-weight: 600; }
.chars { position: absolute; right: 6px; bottom: 4px; font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 0 4px; border-radius: 4px; }
.rich-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 6px; }
.rich-row.t-Başlık textarea { font-weight: 700; font-size: 15px; }
.rich-row.t-Alt-Başlık textarea { font-weight: 600; color: var(--pri); }
.rich-row.t-Bant { background: #f1f5ff; }
.rich-row .item-tools { margin: 0; }
.edit-table { border-collapse: collapse; }
.edit-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 4px 6px; }
.edit-table td { padding: 3px 4px; vertical-align: top; }
.edit-table textarea { min-width: 260px; }
.edit-table input.num { text-align: center; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px #f5b83d; } 100% { box-shadow: none; } }

/* görseller */
.slot-group { margin-bottom: 28px; }
.slot-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bulk { border: 2px dashed var(--line); border-radius: 8px; padding: 8px 14px; color: var(--muted); font-size: 12px; cursor: pointer; font-weight: 500; flex-direction: row; }
.bulk.over, .slot.over { border-color: var(--pri); background: var(--pri-soft); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.slot { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; }
.slot .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #f7f8fa 0 8px, #eef0f4 8px 16px);
  color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }
.slot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.slot .cap { padding: 6px 8px; font-size: 12px; line-height: 1.3; height: 3.9em; overflow: hidden; }
.slot .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .75); color: #fff; cursor: pointer; }
.slot .focus-btn { position: absolute; top: 6px; left: 6px; border: 0; border-radius: 99px; background: rgba(15, 23, 42, .75); color: #fff; font-size: 11px; padding: 3px 8px; cursor: pointer; }
.slot.busy::after { content: "Yükleniyor…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .85); font-weight: 600; }
.focus-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.focus-pick { position: relative; cursor: crosshair; }
.focus-pick img { width: 100%; display: block; border-radius: 6px; }
.focus-pick .dot { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--pri), 0 2px 8px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%); pointer-events: none; }
.focus-previews { display: grid; gap: 10px; }
.fp { overflow: hidden; border-radius: 6px; border: 1px solid var(--line); }
.fp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp.sq { aspect-ratio: 1; width: 60%; } .fp.wide { aspect-ratio: 16 / 9; } .fp.tall { aspect-ratio: 3 / 4; width: 45%; }

/* tasarım */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.theme { border: 2px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; background: #fff; }
.theme:hover { border-color: #b8c0cc; }
.theme.selected { border-color: var(--pri); box-shadow: 0 0 0 3px #dbe5ff; }
.theme.draft { border-style: dashed; }
.theme .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.theme .thumbs img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; border: 1px solid var(--line); background: #f1f3f6; display: block; }
.theme .name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.theme .sw { display: inline-flex; gap: 3px; } .theme .sw i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0, 0, 0, .1); }
.theme .desc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.theme-actions { margin-top: 10px; }
.gen-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--soft); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--pri); }
.settings { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.settings h2 { width: 100%; }
.settings select { width: auto; }
.settings fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; }
.settings fieldset legend { font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.settings fieldset label { flex-direction: row; font-weight: 400; }

/* yapay zekâ */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ai-card { display: flex; flex-direction: column; margin-bottom: 16px; }
.ai-card .btn { align-self: flex-start; margin-top: auto; }
.sug { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; background: #fff; }
.sug-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sug-body.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sug-body .before { background: var(--soft); border-radius: 6px; padding: 8px; font-size: 13px; white-space: pre-wrap; }
.sug-body input { margin-bottom: 6px; font-weight: 600; }
.sug-list { margin: 0; padding-left: 20px; font-size: 13px; max-height: 320px; overflow: auto; }
.sug-list li { margin-bottom: 4px; }
#extractCard textarea { margin-bottom: 10px; }

/* denetim */
.check-sum { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-weight: 600; }
.lv.error { color: var(--danger); } .lv.warn { color: var(--warn); } .lv.info { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: grid; grid-template-columns: 24px 170px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.check-list li.lv-error { background: #fdf5f4; }
.check-list .area { font-weight: 600; font-size: 13px; }

/* önizleme */
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.preview-layout { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
.preview-wrap { background: #d9dce3; border-radius: var(--r); height: calc(100vh - 250px); min-height: 480px; overflow: hidden; }
#preview { width: 100%; height: 100%; border: 0; }
.pv-side { position: sticky; top: 70px; align-self: start; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.sel-label { font-weight: 600; margin: 0; }
.pv-side .seg { display: grid; grid-template-columns: 1fr 1fr; }
.pv-side .seg button + button { border-left: 0; }
.pv-side .seg button:nth-child(even) { border-left: 1px solid var(--line); }
.pv-side .seg button:nth-child(n+3) { border-top: 1px solid var(--line); }

/* yayın */
.link-row { display: flex; gap: 8px; margin: 8px 0; }
.link-row input { flex: 1; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.social-grid figure { margin: 0; }
.social-grid img { width: 100%; height: 160px; object-fit: contain; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; display: block; }
.social-grid figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 6px; }
.sep { width: 1px; height: 22px; background: var(--line); }
.wrap { flex-wrap: wrap; }

/* geçmiş */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline .note { margin-top: 4px; padding: 6px 10px; background: var(--soft); border-radius: 6px; font-style: italic; }

/* mizanpaj */
.section-seg { margin-bottom: 8px; }
.pattern-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--soft); border-radius: 8px; margin-bottom: 12px; }
.pattern-row .chip { margin-top: 6px; }
.chip.static { cursor: default; background: #fff; }
.plan-tools { margin-bottom: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.plan-page { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.plan-page.auto { border-style: dashed; }
.plan-page-head { display: flex; align-items: center; gap: 6px; }
.plan-page details summary { cursor: pointer; font-size: 12px; color: var(--pri); font-weight: 600; }
.slot-pick { font-weight: 500; font-size: 12px; }
.slot-pick span { color: var(--muted); }
.slot-pick select { font-size: 12px; padding: 4px 6px; }
.tpl-diagram { display: grid; gap: 3px; aspect-ratio: 8.5 / 9; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 4px; }
.tpl-diagram.small { aspect-ratio: 8.5 / 9; }
.tpl-diagram.large { aspect-ratio: 8.5 / 9; max-width: 360px; }
.tpl-cell { border-radius: 3px; padding: 3px 4px; font-size: 10px; line-height: 1.25; overflow: hidden; color: #1e293b; background: #e2e8f0; }
.tpl-diagram.small .tpl-cell { font-size: 8px; }
.tpl-cell span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-cell.r-solo, .tpl-cell.r-hero, .tpl-cell.r-hero-wide { background: #c7d7fe; }
.tpl-cell.r-feature, .tpl-cell.r-tall { background: #d7e3fc; }
.tpl-cell.r-brief { background: #f1f5f9; border: 1px dashed #cbd5e1; }
.tpl-cell.r-list { background: #e0f2fe; }
.tpl-cell.r-ad { background: repeating-linear-gradient(135deg, #fde68a 0 6px, #fef3c7 6px 12px); color: #92400e; font-weight: 600; }
.tpl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.tpl-gallery figure { margin: 0; }
.tpl-gallery figcaption { font-size: 11px; margin-top: 4px; display: flex; gap: 4px; align-items: center; }
.tpl-gallery figure.own .tpl-diagram { border-color: var(--pri); }
.tpl-gallery.pick figure { cursor: pointer; padding: 4px; border-radius: 6px; }
.tpl-gallery.pick figure:hover { background: var(--pri-soft); }
.pat-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--soft); border-radius: 8px; margin-bottom: 12px; min-height: 44px; align-items: center; }
.pat-list .chip { display: inline-flex; align-items: center; gap: 4px; cursor: default; }
.pat-list .icon { width: 20px; height: 20px; font-size: 11px; }
.ads-list { display: flex; flex-direction: column; gap: 10px; }
.ad-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.ad-item img, .ad-item .ph { width: 90px; height: 64px; object-fit: contain; background: var(--soft); border-radius: 4px; }
.tpl-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.summary-pre { white-space: pre-wrap; font: inherit; font-size: 13px; background: var(--soft); padding: 8px 10px; border-radius: 6px; margin: 6px 0; }

/* pencere ve bildirim */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal-card { background: #fff; border-radius: 12px; padding: 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-card.wide { width: min(980px, 100%); }
.modal-card h2 { margin-bottom: 10px; }
.modal-card label { margin: 10px 0; }
.confirm-text { white-space: pre-line; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff;
  padding: 10px 16px; border-radius: 8px; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0, 0, 0, .2); z-index: 50; }
#toast.err { background: var(--danger); }

@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; }
  .ed-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .preview-layout { grid-template-columns: 1fr; }
  .pv-side { position: static; }
  .focus-wrap, .gen-grid, .sug-body.two, .tpl-builder { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: 16px; }
  .top { padding: 10px 16px; position: static; }
  .issue-picker select { min-width: 0; }
  .themes { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .rich-row { grid-template-columns: 1fr; }
  .check-list li { grid-template-columns: 24px 1fr; }
  .check-list .msg { grid-column: 1 / -1; }
}

/* ---------- yorumlar ---------- */
.cmt-btn { position: relative; width: auto; min-width: 28px; padding: 0 4px; }
.cmt-btn.has { color: #b45309; background: #fff7e6; border-color: #fcd9a4; }
.cmt-n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 2px; border-radius: 99px; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700; }
.sec-cmt { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.cmt-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; margin-bottom: 8px; }
.cmt { border: 1px solid var(--line); border-left: 3px solid #f59e0b; border-radius: 8px; padding: 8px 10px; background: #fff; }
.cmt.note { border-left-color: #94a3b8; }
.cmt.resolved { border-left-color: var(--ok); opacity: .75; }
.cmt-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cmt-text { white-space: pre-wrap; margin: 4px 0 6px; }
.cmt-reply { margin: 4px 0 6px 12px; padding-left: 8px; border-left: 2px solid var(--line); font-size: 13px; }
.cmt-reply-form { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; }
.cmt-inline { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.cmt.mini { font-size: 12px; padding: 5px 8px; }
.src-row { flex-direction: row; align-items: center; gap: 8px; margin-top: 8px; font-weight: 500; font-size: 12px; }
.src-row span { color: var(--muted); white-space: nowrap; }
.src-row input { font-size: 12px; padding: 5px 8px; }

/* ---------- görseller: kütüphane ve optik odak ---------- */
.img-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.img-top p { margin: 0; flex: 1 1 420px; }
.slot-tools { display: flex; gap: 4px; padding: 0 6px 6px; flex-wrap: wrap; }
.slot-tools .btn { padding: 2px 7px; font-size: 11px; }
.focus-pick { overflow: hidden; border-radius: 6px; }
.focus-pick .subj { position: absolute; border: 2px solid #22c55e; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .25); pointer-events: none; border-radius: 3px; }
.focus-pick .face { position: absolute; border: 2px dashed #facc15; pointer-events: none; border-radius: 3px; }
.focus-previews { grid-template-columns: 1fr 1fr; align-items: start; }
.fp.sq { width: 100%; } .fp.tall { width: 75%; } .fp.strip { aspect-ratio: 2.4 / 1; } .fp.col { aspect-ratio: 1 / 2; width: 50%; }
.cutinfo { color: var(--warn); }
.lib-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 12px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; max-height: 58vh; overflow: auto; padding: 2px; }
.lib-item { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.lib-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; cursor: pointer; }
.lib-item figcaption { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.lib-item figcaption input { font-size: 12px; padding: 4px 6px; }
.lib-tagline { display: flex; gap: 3px; flex-wrap: wrap; }
.lib-tagline .chip { font-size: 10px; padding: 1px 6px; }
.lib-save { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: start; }
.lib-save img { width: 160px; border-radius: 6px; }

/* ---------- yayın öncesi kontrol merkezi ---------- */
.pf-checks { margin: 6px 0 10px; padding-left: 20px; line-height: 1.7; }
.pf-summary { border-width: 2px; }
.pf-summary.st-hazir { border-color: #9fdcc2; background: #f3fbf7; }
.pf-summary.st-dikkat { border-color: #fcd9a4; background: #fffaf2; }
.pf-summary.st-engel { border-color: #f2c4bf; background: #fdf6f5; }
.pf-status { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.pf-st-title { font-size: 20px; font-weight: 700; }
.st-hazir .pf-st-title { color: var(--ok); } .st-dikkat .pf-st-title { color: var(--warn); } .st-engel .pf-st-title { color: var(--danger); }
.warn-text { color: var(--warn); }
.pf-levels { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.pf-level { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
.pf-level b { font-size: 16px; margin-right: 4px; }
.pf-level.lv-error b { color: var(--danger); } .pf-level.lv-warn b { color: var(--warn); } .pf-level.lv-info b { color: var(--muted); }
.pf-level.on, .pf-cat.on { border-color: var(--pri); box-shadow: 0 0 0 2px #dbe5ff; }
.pf-cats { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pf-cat { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.pf-cnt { display: inline-flex; gap: 3px; }
.pf-cnt i { font-style: normal; font-weight: 700; min-width: 18px; text-align: center; border-radius: 99px; padding: 0 4px; background: var(--soft); }
.pf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-group { margin: 16px 0 8px; font-size: 14px; }
.pf-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.pf-item:not(:has(.pf-thumb)) { grid-template-columns: 1fr; }
.pf-item.lv-error { border-left-color: var(--danger); } .pf-item.lv-warn { border-left-color: #f59e0b; } .pf-item.lv-info { border-left-color: #94a3b8; }
.pf-thumb { position: relative; cursor: zoom-in; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #f1f3f6; }
.pf-thumb img { width: 100%; display: block; }
.pf-thumb.big { cursor: default; max-width: 560px; margin: 0 auto; }
.pf-mark { position: absolute; border: 2px solid var(--danger); background: rgba(192, 54, 44, .12); border-radius: 2px; box-shadow: 0 0 0 1px #fff; }
.pf-mark.lv-warn { border-color: #f59e0b; background: rgba(245, 158, 11, .15); } .pf-mark.lv-info { border-color: #64748b; background: rgba(100, 116, 139, .12); }
.pf-pno { position: absolute; left: 4px; bottom: 4px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 99px; }
.pf-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pf-msg { margin: 4px 0; }
.pf-why, .pf-fix { margin: 3px 0; font-size: 13px; color: #475467; }
.pf-body .row-actions { margin-top: 8px; }
.gate-list { padding-left: 18px; line-height: 1.5; }
.gate-list li { margin-bottom: 6px; }

/* ---------- mizanpaj: kilitli sayfa ---------- */
.plan-page.locked { border-color: #94a3b8; background: #f8fafc; box-shadow: inset 0 0 0 1px #cbd5e1; }
.badge.lock { background: #e2e8f0; color: #334155; }
.lock-btn.on { color: #334155; background: #e2e8f0; }
.lock-note { margin: 0; font-size: 12px; background: #f1f5f9; border-radius: 6px; padding: 6px 8px; }

/* ---------- yayın: e-posta ---------- */
.email-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 8px 0; }
.email-frame { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #eef0f3; }
.email-frame iframe { width: 100%; height: 720px; border: 0; display: block; }

/* ---------- tasarım: referans bilgisi ---------- */
.gen-grid .muted { font-weight: 400; }
.ref-info { margin-top: 6px; font-size: 12px; background: var(--soft); border-radius: 6px; padding: 6px 8px; }
.ref-sw { margin-left: 6px; vertical-align: middle; }
.ref-sw i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0, 0, 0, .1); margin-right: 2px; }

@media (max-width: 640px) {
  .pf-item { grid-template-columns: 1fr; }
  .lib-bar { grid-template-columns: 1fr; }
  .focus-previews { grid-template-columns: 1fr; }
}

/* İçerik → Kapaklar: dile özel ön/arka kapak görselleri */
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cover-card { display: flex; flex-direction: column; gap: 6px; }
.cover-card.busy { opacity: .5; pointer-events: none; }
.cover-thumb { aspect-ratio: 8.5 / 11; border: 1px dashed var(--line); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #f6f7f9; color: #8a93a3; font-size: 12px; }
.cover-card.has .cover-thumb { border-style: solid; }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-help li { margin-bottom: 6px; }
