/* =========================================================
   Tiger Ceiling Systems – yönetim paneli
   Marka rengi sitedeki theme-yellow.css'ten (#FFBB00). Grafik renkleri (--series-*, --heat-*)
   renk körlüğü için doğrulanmış paletten gelir; sırası değiştirilmemeli.
   ========================================================= */

:root {
    color-scheme: light;
    --brand: #FFBB00;
    --brand-dark: #C78F00;
    --brand-soft: #FFF4D6;

    --ink: #1D1B17;
    --text: #45423C;
    --muted: #6E6A62;
    --bg: #F5F4F1;
    --surface: #FFFFFF;
    --surface-2: #F8F7F4;
    --chip: #F1EFEA;
    --border: #E8E5DF;
    --control-border: #D6D2CA;
    --grid: #ECEAE5;

    --success-bg: #E3F4EA; --success-fg: #1E6B47;
    --warn-bg: #FFF0D9;    --warn-fg: #8A5A12;
    --danger: #C62F2F;     --danger-bg: #FCE8E8;

    --series-1: #2a78d6;
    --series-2: #eb6834;
    --series-3: #1baf7a;
    --heat-0: #F1EFEA;
    --heat-1: #cde2fb;
    --heat-2: #86b6ef;
    --heat-3: #3987e5;
    --heat-4: #1c5cab;
    --heat-5: #0d366b;

    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Bricolage Grotesque', 'DM Sans', sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --sidebar: 248px;
    --shadow: 0 1px 2px rgba(30, 25, 10, .04), 0 12px 32px -20px rgba(30, 25, 10, .25);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --brand-soft: #3A2F10;
        --ink: #F3F1EC;
        --text: #D6D2CA;
        --muted: #A29D93;
        --bg: #141311;
        --surface: #1D1C19;
        --surface-2: #24221F;
        --chip: #2C2A26;
        --border: #302E29;
        --control-border: #45423C;
        --grid: #2C2A26;
        --success-bg: #173526; --success-fg: #7FD3A6;
        --warn-bg: #3A2C12;    --warn-fg: #F2C477;
        --danger: #F07070;     --danger-bg: #3A1C1C;
        --series-1: #3987e5;
        --series-2: #d95926;
        --series-3: #199e70;
        --heat-0: #2C2A26;
        --heat-1: #0d366b;
        --heat-2: #184f95;
        --heat-3: #256abf;
        --heat-4: #3987e5;
        --heat-5: #86b6ef;
        --shadow: none;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 15px/1.5 var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Kabuk ---------- */

.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--sidebar);
    display: flex; flex-direction: column;
    padding: 20px 14px;
    background: var(--surface);
    border-right: 1px solid var(--border);
}
.sidebar__brand { display: flex; flex-direction: column; gap: 6px; padding: 6px 10px 22px; text-decoration: none; }
.sidebar__brand img { width: 150px; height: auto; }
.sidebar__brand span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-weight: 600; color: var(--text); text-decoration: none;
}
.sidebar__nav a:hover { background: var(--surface-2); color: var(--ink); }
.sidebar__nav a.is-active { background: var(--brand-soft); color: var(--ink); }
.sidebar__nav a.is-active svg { stroke: var(--brand-dark); }
.sidebar__nav svg, .icon-btn svg, .btn svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.sidebar__user {
    margin-top: auto;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 8px 0; border-top: 1px solid var(--border);
}
.sidebar__user > div { flex: 1; min-width: 0; line-height: 1.3; }
.sidebar__user strong { display: block; color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user a { font-size: 13px; color: var(--muted); }
.sidebar__user form { margin: 0; }
.avatar {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand); color: #1D1B17; font-weight: 700; text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sidebar__brand img { background: #fff; padding: 8px 10px; border-radius: 10px; width: 170px; }
}

.shell { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 22px 32px 6px;
}
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font: 800 28px/1.15 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.topbar__crumb { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.topbar__crumb::before { content: "‹ "; }
.topbar__crumb:hover { color: var(--ink); }
.topbar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-btn.topbar__menu { display: none; }
.content { padding: 18px 32px 48px; flex: 1; }

.sidebar-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .35); }

@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
    .sidebar.is-open { transform: none; }
    .shell { margin-left: 0; }
    .icon-btn.topbar__menu { display: inline-grid; }
    .topbar { padding: 14px 16px 4px; }
    .topbar__title h1 { font-size: 22px; }
    .topbar__actions { width: 100%; }
    .content { padding: 14px 16px 40px; }
}

/* ---------- Butonlar ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border: 1.5px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: 14px; line-height: 1.2;
    text-decoration: none; cursor: pointer; background: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--brand); color: #1D1B17; }
.btn--primary:hover { background: #F0AE00; }
.btn--outline { border-color: var(--control-border); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); }
.btn--text { color: var(--text); padding-inline: 10px; }
.btn--text:hover { color: var(--ink); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(.92); }
.btn--small { padding: 7px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.icon-btn {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border: 0; border-radius: 10px;
    background: none; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn--danger:hover { background: var(--danger-bg); color: var(--danger); }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.segmented a { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.segmented a:hover { color: var(--ink); }
.segmented a.is-active { background: var(--ink); color: var(--surface); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); font-weight: 600; font-size: 14px; text-decoration: none;
}
.tabs a span { font-size: 12px; color: var(--muted); }
.tabs a.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tabs a.is-active span { color: inherit; opacity: .7; }

/* ---------- Kart ve ızgara ---------- */

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.card--narrow { max-width: 560px; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card__head h2, .card__title { font-size: 16px; font-weight: 700; }
.card__title { margin-bottom: 4px; }
.link-arrow { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--ink); }

.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) {
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .grid--2-1, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}
.section-note { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }

/* ---------- Özet kutuları ---------- */

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
@media (max-width: 1080px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.kpi:first-child { background: var(--ink); border-color: var(--ink); }
.kpi:first-child .kpi__label, .kpi:first-child .kpi__note { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.kpi:first-child .kpi__value { color: var(--brand); }
.kpi p { margin: 0; }
.kpi__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi__value { font-size: 36px; font-weight: 700; line-height: 1.15; margin: 6px 0 4px !important; color: var(--ink); letter-spacing: -.02em; }
.kpi__note { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.delta svg { width: 10px; height: 10px; fill: currentColor; }
.delta--up { background: var(--success-bg); color: var(--success-fg); }
.delta--down { background: var(--danger-bg); color: var(--danger); }

/* ---------- Grafikler ---------- */

.chart { margin: 0; }
.chart__head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.chart__head h2 { font-size: 16px; font-weight: 700; }
.chart__sub { margin: 0; font-size: 13px; color: var(--muted); }
.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart__svg .baseline { stroke: var(--control-border); stroke-width: 1; }
.chart__svg .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__svg .label { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart__svg .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__svg .area { fill: var(--series-1); opacity: .1; }
.chart__svg .hit { fill: transparent; }
.chart__svg .crosshair { stroke: var(--control-border); stroke-width: 1; opacity: 0; }
.chart__svg .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; opacity: 0; }
.tip-target { cursor: default; outline: none; }
.tip-target.is-active .crosshair, .tip-target.is-active .dot { opacity: 1; }
.tip-target.is-active .hit { fill: var(--grid); opacity: .5; }
.tip-target--point.is-active .hit { fill: transparent; }
.chart__svg .tip-target:focus-visible .hit { stroke: var(--brand); stroke-width: 2; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend__key { width: 10px; height: 10px; border-radius: 3px; background: var(--key); flex-shrink: 0; }

.chart__table { margin-top: 8px; font-size: 13px; }
.chart__table summary { cursor: pointer; color: var(--muted); width: max-content; }
.chart__table summary:hover { color: var(--ink); }
.chart__table .table { margin-top: 8px; }

.donut { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.donut__svg { width: 180px; max-width: 100%; height: auto; }
.donut__track { fill: none; stroke: var(--chip); }
.donut__arc { fill: none; transition: stroke-width .15s; }
.donut__arc.is-active, .donut__arc:focus-visible { stroke-width: 28px; }
.donut__total { fill: var(--ink); font-size: 30px; font-weight: 700; }
.donut__caption { fill: var(--muted); font-size: 12px; }
.donut__legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; font-size: 14px; }
.donut__legend li { display: grid; grid-template-columns: 10px 1fr auto 44px; align-items: center; gap: 10px; }
.donut__name { color: var(--text); }
.donut__value { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.donut__pct { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.bars { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.bars__value { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bars__value small { font-weight: 500; color: var(--muted); }
.bars__track { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 4px; background: var(--chip); }
.bars__fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--series-1); }
.bars li.is-active .bars__label { color: var(--ink); }

.heatmap { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 11px; color: var(--muted); }
.heatmap__hour { text-align: left; font-variant-numeric: tabular-nums; }
.heatmap__day { align-self: center; }
.heatmap__cell { aspect-ratio: 1; border-radius: 3px; min-height: 10px; }
.heatmap__cell.is-active { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat-0 { background: var(--heat-0); }
.heat-1 { background: var(--heat-1); }
.heat-2 { background: var(--heat-2); }
.heat-3 { background: var(--heat-3); }
.heat-4 { background: var(--heat-4); }
.heat-5 { background: var(--heat-5); }
.heat-scale { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.heat-scale i { width: 12px; height: 12px; border-radius: 3px; }
.heat-scale span:first-child { margin-right: 4px; }
.heat-scale span:last-child { margin-left: 4px; }

.chart-tip {
    position: absolute; z-index: 60; pointer-events: none;
    display: flex; flex-direction: column; gap: 2px;
    max-width: 280px; padding: 8px 12px; border-radius: 10px;
    background: var(--ink); color: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    font-size: 12px; line-height: 1.35;
}
.chart-tip strong { font-size: 14px; }
.chart-tip span { opacity: .8; }

/* ---------- Tablolar ---------- */

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table thead th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table td a { text-decoration: none; color: var(--ink); }
.table td a:hover { text-decoration: underline; }
.table--compact th, .table--compact td { padding: 6px 8px; font-size: 13px; }
.table--compact tbody th { font-weight: 500; color: var(--text); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * { display: inline-flex; vertical-align: middle; margin: 0 0 0 4px; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.user-cell strong { color: var(--ink); }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.chip--1, .chip--2 { padding-left: 8px; }
.chip--1::before, .chip--2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.chip--1::before { background: var(--series-1); }
.chip--2::before { background: var(--series-2); }
.chip--small { margin-left: 8px; font-size: 11px; padding: 1px 8px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--success-bg); color: var(--success-fg); }
.status--warn { background: var(--warn-bg); color: var(--warn-fg); }
.status--draft, .status--off { background: var(--chip); color: var(--muted); }

.empty { color: var(--muted); padding: 18px 0; margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 16px; font-size: 14px; color: var(--muted); }
.pager a { font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); }
.pager a:hover { border-color: var(--ink); }

/* ---------- Formlar ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .fieldset legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--control-border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input.input-validation-error, .field select.input-validation-error, .field textarea.input-validation-error { border-color: var(--danger); }
.field input[type="file"] { font-size: 14px; max-width: 100%; }
.input--title { font-size: 18px !important; font-weight: 600; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--control-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.input-prefix:focus-within { border-color: var(--ink); }
.input-prefix span { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-size: 14px; }
.field .input-prefix input { border: 0 !important; border-radius: 0; padding-left: 4px; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px 18px; margin: 0; display: grid; gap: 14px; }
.fieldset legend { padding: 0 6px; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.check, .switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.switch input {
    appearance: none; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--control-border);
    position: relative; cursor: pointer; transition: background .15s;
}
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--success-fg); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert--success { background: var(--success-bg); color: var(--success-fg); }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert--error.validation-summary-valid { display: none; }
.form > .alert { margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; margin-bottom: 18px; }
.filters .field { flex: 1 1 140px; }
.filters .field--grow { flex: 2 1 220px; }
.filters__actions { display: flex; gap: 6px; }
.filters .field input, .filters .field select { padding: 8px 12px; font-size: 14px; }

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card__image { display: block; aspect-ratio: 1000 / 476; background: var(--chip); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.post-card h2 { font-size: 17px; line-height: 1.3; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__actions { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.editor > .alert { grid-column: 1 / -1; margin: 0; }
.editor__side { display: grid; gap: 18px; position: sticky; top: 16px; }
@media (max-width: 1080px) {
    .editor { grid-template-columns: minmax(0, 1fr); }
    .editor__side { position: static; }
}
.image-pick { display: grid; gap: 8px; }
.image-pick img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); aspect-ratio: 1000 / 476; object-fit: cover; background: var(--chip); }

.quill-host { min-height: 420px; }
.ql-toolbar.ql-snow { border: 1.5px solid var(--control-border); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface-2); font-family: var(--font-body); }
.ql-container.ql-snow { border: 1.5px solid var(--control-border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font: 16px/1.7 var(--font-body); color: var(--ink); background: var(--surface); }
.ql-editor { min-height: 420px; padding: 18px 20px; }
.ql-editor h2 { font-size: 22px; margin: 18px 0 8px; }
.ql-editor h3 { font-size: 18px; margin: 14px 0 6px; }
.ql-editor p { margin-bottom: 12px; }
.ql-snow .ql-stroke { stroke: var(--text); }
.ql-snow .ql-fill { fill: var(--text); }
.ql-snow .ql-picker { color: var(--text); }
.ql-snow .ql-picker-options { background: var(--surface); }

.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.danger-zone p { margin: 4px 0 0; font-size: 14px; }

/* ---------- Giriş ve hata sayfaları ---------- */

.admin--plain main { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth { width: 100%; display: grid; place-items: center; }
.auth__card {
    width: 100%; max-width: 420px; padding: 36px 32px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow);
}
.auth__logo { width: 180px; height: auto; margin-bottom: 26px; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .auth__logo { background: #fff; padding: 10px 12px; border-radius: 12px; width: 204px; }
}
.auth__card h1 { font: 800 28px/1.15 var(--font-display); }
.auth__card > p { margin: 6px 0 24px; }
.error-code { margin: 0 0 8px; font: 800 64px/1 var(--font-display); color: var(--brand); }
@media (max-width: 420px) { .auth__card { padding: 28px 20px; } }

/* Dar ekranda tablo satırları kart gibi alt alta dizilir. */
@media (max-width: 640px) {
    .table--stack thead { display: none; }
    .table--stack, .table--stack tbody { display: block; }
    .table--stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .table--stack tbody tr:last-child { border-bottom: 0; }
    .table--stack td { display: block; padding: 0; border: 0; }
    .table--stack td.cell-primary { order: -1; width: 100%; font-weight: 600; overflow-wrap: anywhere; }
    .table--stack td.actions { margin-left: auto; }
    .table--stack tbody tr:hover { background: none; }
}
