:root { --bg: #f6f7f9; --fg: #1d2327; --muted: #646970; --card: #fff; --line: #dcdcde; --accent: #2271b1; --ok: #00a32a; --err: #d63638; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #16181b; --fg: #e8e8e8; --muted: #9aa0a6; --card: #1f2226; --line: #33373c; --accent: #4f94d4; } }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; padding: .6rem 1rem; background: #1d2327; }
nav a, nav .link { color: #f0f0f1; text-decoration: none; }
nav a:hover, nav .link:hover { color: #72aee6; }
nav form { margin-left: auto; }
main { max-width: 1000px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.6rem; margin: .5rem 0 1rem; }
a { color: var(--accent); }
.muted, small { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
.narrow { max-width: 420px; }
form.card, .editor-form { display: grid; gap: .8rem; }
label { display: grid; gap: .25rem; font-weight: 600; }
input, select, textarea { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--fg); width: 100%; }
button, .btn { font: inherit; cursor: pointer; background: var(--accent); color: #fff; border: 0; border-radius: 4px; padding: .5rem 1rem; display: inline-block; text-decoration: none; justify-self: start; }
button.link { background: none; color: var(--accent); padding: 0; }
.danger { color: var(--err) !important; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
th, td { text-align: left; padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { font-size: .8rem; padding: .1rem .5rem; border-radius: 99px; background: var(--line); }
.tag.ok { background: var(--ok); color: #fff; }
.flash { padding: .6rem 1rem; border-radius: 4px; border-left: 4px solid; background: var(--card); }
.flash.ok { border-color: var(--ok); } .flash.err { border-color: var(--err); }
.row { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.row label { width: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: .25rem; }
.toolbar button { background: var(--card); color: var(--fg); border: 1px solid var(--line); padding: .3rem .6rem; }
.toolbar button[aria-pressed=true] { background: var(--accent); color: #fff; }
.content { min-height: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1rem; outline-offset: 2px; }
.content img { max-width: 100%; height: auto; }
.source { min-height: 320px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.grid.themes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.themes h2 { font-size: 1.1rem; margin: 0; }
figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
figure img, .file { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: grid; place-items: center; background: var(--line); }
figcaption { padding: .5rem; display: grid; gap: .3rem; }
figcaption input { font-size: 12px; padding: .25rem; }
label.check { display: flex; gap: .5rem; align-items: center; }
label.check input { width: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpis strong { display: block; font-size: 1.8rem; }
.chart { width: 100%; height: 180px; display: block; fill: var(--accent); }
.chart rect:hover { opacity: .7; }
.chart-axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 1.5rem; }
fieldset.seo { display: grid; gap: .8rem; }
fieldset.seo legend { font-weight: 700; padding: 0 .3rem; }
.serp { font-family: Arial, sans-serif; padding: .8rem 1rem; border-radius: 8px; background: #fff; color: #202124; max-width: 600px; }
.serp small { color: #4d5156; display: block; font-size: 13px; overflow-wrap: anywhere; }
.serp span { color: #1a0dab; font-size: 20px; line-height: 1.3; display: block; }
.serp p { margin: .2rem 0 0; font-size: 14px; color: #4d5156; }
small.warn { color: var(--err); }
.checks { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.checks:empty { display: none; }
.sections-editor, form[data-options] { display: grid; gap: .8rem; }
.sections-editor legend { font-weight: 700; padding: 0 .3rem; }
details.section { border: 1px solid var(--line); border-radius: 6px; padding: .5rem .8rem; background: var(--bg); }
details.section > summary { cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.section-fields, .list-item { display: grid; gap: .7rem; margin-top: .7rem; }
.item-tools { margin-left: auto; display: inline-flex; gap: .25rem; }
.item-tools button { background: var(--card); color: var(--fg); border: 1px solid var(--line); padding: .15rem .55rem; }
.item-tools button.danger { color: var(--err); }
.item-tools button:disabled { opacity: .35; cursor: default; }
.list-item { border: 1px dashed var(--line); border-radius: 6px; padding: .5rem .8rem; }
.list-item legend { font-size: .85rem; color: var(--muted); }
.field { display: grid; gap: .3rem; }
.field-label { font-weight: 600; }
.image-field { display: grid; grid-template-columns: 120px 1fr; gap: .8rem; align-items: start; }
.image-field img, .image-field .file { width: 120px; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; background: var(--line); display: grid; place-items: center; font-size: .8rem; }
.image-field > div { display: grid; gap: .4rem; }
.badge { background: var(--err); color: #fff; border-radius: 99px; padding: 0 .45rem; font-size: .75rem; }
.message { display: grid; gap: .5rem; margin-bottom: 1rem; }
.message.unread { border-left: 4px solid var(--accent); }
.message header { justify-content: space-between; }
.message dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
.message dt { font-weight: 600; color: var(--muted); }
.message dd { margin: 0; overflow-wrap: anywhere; }
body > footer { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; font-size: .8rem; }
.picker { width: min(900px, 94vw); max-height: 85vh; border: 0; border-radius: 8px; padding: 1rem; background: var(--card); color: inherit; }
.picker::backdrop { background: rgb(0 0 0 / .5); }
.picker .row { align-items: center; margin-bottom: .8rem; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.picker-grid button { padding: 0; background: var(--line); border: 2px solid transparent; border-radius: 4px; aspect-ratio: 4/3; overflow: hidden; }
.picker-grid button:hover, .picker-grid button:focus-visible { border-color: var(--accent); }
.picker-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Ajans paneli */
.scroll { overflow-x: auto; }
td.warn { background: #fff4d6; color: #7a4b00; }
@media (prefers-color-scheme: dark) { td.warn { background: #4a3a10; color: #ffe2a0; } }
