:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --ink: #17202a;
  --muted: #6b7583;
  --rule: #e2e7ec;
  --rule-strong: #cfd6de;
  --mark: #e85d3f;
  --mark-soft: #fff0ec;
  --side: #111923;
  --side-2: #182330;
  --side-ink: #f4f7fa;
  --ok: #16825d;
  --ok-soft: #e8f7f1;
  --bad: #c2414f;
  --bad-soft: #fff0f2;
  --wait: #a16207;
  --wait-soft: #fff7df;
  --info: #2563eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: var(--bg); font-family: "DM Sans", sans-serif; font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--side), #0d141d); color: var(--side-ink); padding: 1.25rem .9rem; display: flex; flex-direction: column; gap: 1.75rem; z-index: 20; }
.brand { display: flex; gap: .75rem; align-items: center; padding: .15rem .55rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; }
.brand strong { font-family: "Manrope", sans-serif; font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.brand-text span { color: #8190a1; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: .3rem; }
.nav a { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .65rem .75rem; border-radius: 9px; color: #aeb9c6; text-decoration: none; font-weight: 600; transition: color .16s ease, background .16s ease; }
.nav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.active { color: #fff; background: var(--side-2); box-shadow: inset 3px 0 0 var(--mark); }
.logout { margin-top: auto; }
.logout .linkish { display: flex; align-items: center; gap: .55rem; width: 100%; border: 0; background: transparent; color: #8391a1; padding: .65rem .75rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #42d392; box-shadow: 0 0 0 4px rgba(66,211,146,.1); }

.main { min-width: 0; padding: clamp(1.25rem, 3vw, 2.4rem); }
.main > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.toprow { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1.4rem; }
.eyebrow { display: block; margin-bottom: .35rem; color: var(--mark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.055em; line-height: 1; margin: 0; }
.lede { color: var(--muted); margin: .55rem 0 0; max-width: 48rem; }
.flash { display: flex; align-items: center; gap: .6rem; background: var(--ok-soft); color: var(--ok); border: 1px solid #bce7d6; border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 600; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.1rem; }
.metric { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.05rem; box-shadow: 0 1px 2px rgba(15,23,42,.025); }
.metric span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; margin-top: .25rem; font-family: "Manrope", sans-serif; font-size: 1.65rem; letter-spacing: -.04em; }

.tabs { display: inline-flex; gap: .2rem; flex-wrap: wrap; padding: .25rem; margin: 0; background: #e9edf1; border-radius: 10px; }
.tabs a, .tabs button { min-height: 36px; padding: .45rem .75rem; border: 0; border-radius: 7px; background: transparent; color: var(--muted); text-decoration: none; font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.tabs a.active, .tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .58rem .9rem; border: 1px solid transparent; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; font-size: .9rem; transition: transform .14s ease, border-color .14s ease, background .14s ease; }
.btn { background: var(--side); color: #fff; }
.btn.mark { background: var(--mark); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--rule-strong); color: var(--ink); }
.btn:hover, .btn-ghost:hover { transform: translateY(-1px); }

.table-toolbar, .toolbar { display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.toolbar-group { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.toolbar input[type="search"], .field input, .field select, .field textarea, .picker-search input { width: 100%; min-height: 44px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: .65rem .75rem; }
.toolbar input[type="search"] { width: min(300px, 100%); }
.bulkbar { position: sticky; bottom: .75rem; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .75rem; padding: .75rem; background: rgba(17,25,35,.94); color: white; border-radius: 10px; box-shadow: 0 16px 40px rgba(15,23,42,.22); backdrop-filter: blur(12px); }

.sheet { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: .82rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #fafcfd; }
tr:last-child td { border-bottom: 0; }
.domain { color: #152334; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.domain:hover { color: var(--mark); }
.pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.pill { background: #eef2f5; color: #52606e; border-radius: 999px; padding: .2rem .5rem; font-size: .78rem; font-weight: 600; }
.phrase { color: #596676; font-size: .9rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.queued, .badge.running { color: var(--wait); background: var(--wait-soft); }
.badge.published { color: var(--ok); background: var(--ok-soft); }
.badge.failed { color: var(--bad); background: var(--bad-soft); }
.pager { display: flex; gap: .75rem; align-items: center; padding: .8rem .9rem; background: var(--surface-2); }
.pager a { color: var(--info); font-weight: 700; }
.muted { color: var(--muted); }
.error { color: var(--bad); font-size: .85rem; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

.grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr); gap: 1rem; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow); }
.card h2 { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; margin: 0 0 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.field > span { color: #4e5967; font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.field input:focus, .field select:focus, .field textarea:focus, .picker-search input:focus { border-color: var(--info); box-shadow: 0 0 0 3px rgba(37,99,235,.1); outline: 0; }
.check { display: flex; gap: .55rem; align-items: center; margin: .35rem 0 1rem; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.actionbar { display: flex; justify-content: space-between; gap: .75rem; align-items: center; margin-bottom: 1rem; padding: .7rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); }
.preview { width: 100%; min-height: 680px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: white; }
.timeline, .log { list-style: none; padding: 0; margin: 0; }
.timeline li, .log li { position: relative; padding: 0 0 1.1rem 1.45rem; border: 0; }
.timeline li::before, .log li::before { content: ""; position: absolute; left: 0; top: .28rem; width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); box-shadow: 0 0 0 4px var(--surface); }
.timeline li::after, .log li::after { content: ""; position: absolute; left: 4px; top: 1rem; bottom: 0; width: 1px; background: var(--rule); }
.timeline li:last-child::after, .log li:last-child::after { display: none; }
.log .ok { color: var(--ok); }
.log .bad { color: var(--bad); }
.editor { margin-top: 1rem; }
.html-source { width: 100%; min-height: 32rem; margin: .5rem 0 .8rem; padding: 1rem; border: 1px solid #273445; border-radius: var(--radius-sm); background: #111923; color: #dce7f3; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.55; resize: vertical; }
.setting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.setting-card { min-height: 100%; }
.form-footer { position: sticky; bottom: .75rem; z-index: 5; display: flex; justify-content: flex-end; margin-top: 1rem; padding: .65rem; background: rgba(255,255,255,.9); border: 1px solid var(--rule); border-radius: 10px; backdrop-filter: blur(12px); }
.test-result:not(:empty) { margin-top: .7rem; padding: .6rem .7rem; border-radius: 7px; background: var(--surface-2); }

.picker-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.15rem 0 .55rem; }
.picker-tools > div:first-child { display: flex; align-items: baseline; gap: .65rem; }
.selected-count { color: var(--mark); font-size: .82rem; font-weight: 700; }
.picker-actions { display: flex; gap: .25rem; }
.picker-actions .linkish { border: 0; background: transparent; color: var(--info); padding: .25rem .4rem; font-size: .84rem; font-weight: 700; }
.picker-search { display: block; margin-bottom: .55rem; }
.site-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; max-height: 27rem; overflow: auto; padding: .65rem; margin-bottom: .85rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface-2); }
.site-option { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: .65rem; min-width: 0; min-height: 54px; padding: .65rem .7rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.site-option:hover { border-color: #aab5c0; transform: translateY(-1px); }
.site-option[hidden] { display: none; }
.site-option input { position: absolute; opacity: 0; pointer-events: none; }
.check-mark { width: 22px; height: 22px; border: 1px solid #aab5c0; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.check-mark::after { content: ""; width: 9px; height: 5px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translate(1px,-1px); opacity: 0; }
.site-option:has(input:checked) { border-color: var(--mark); background: var(--mark-soft); box-shadow: inset 3px 0 0 var(--mark); }
.site-option input:checked + .check-mark { background: var(--mark); border-color: var(--mark); }
.site-option input:checked + .check-mark::after { opacity: 1; }
.site-name { min-width: 0; overflow-wrap: anywhere; font-weight: 700; font-size: .86rem; }
.site-name small { display: block; margin-top: .12rem; color: var(--wait); font-size: .67rem; font-weight: 700; }
.picker-submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .25rem; }
.redirect-card { margin-bottom: 1.2rem; }
.redirect-hint { margin: -.35rem 0 .8rem; font-size: .82rem; }
.redirect-active { margin-top: 1.25rem; }
.redirect-active .card-head h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.25rem; letter-spacing: -.035em; }
.redirect-target { color: var(--info); font-weight: 650; overflow-wrap: anywhere; }
.redirect-errors { margin-bottom: 1rem; border-color: #f2c3ca; background: var(--bad-soft); }
.redirect-errors .field-error { margin: .2rem 0; }
.network-link-list { display: grid; gap: .75rem; margin-top: 1rem; }
.network-link-card { padding: 1rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface-2); }
.network-link-card .card-head { margin-bottom: .75rem; }
.network-arrow { margin: 0 .45rem; color: var(--mark); }
.network-link-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--rule); }
.metric-input { width: 7.5rem; min-height: 38px; padding: .45rem .55rem; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--surface); }
.hit-list { margin-top: 1rem; }
.copy-row { display: flex; min-width: 20rem; }
.copy-row input { flex: 1; min-width: 0; border: 1px solid var(--rule); border-radius: 7px 0 0 7px; background: var(--surface-2); padding: .55rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-row button { flex: none; border-radius: 0 7px 7px 0; }
.bar { height: 8px; overflow: hidden; background: #e7ebef; border-radius: 99px; margin: .6rem 0 1rem; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--mark), #ff947c); transition: width .35s ease; }
.showcase-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.showcase-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.showcase-admin-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.showcase-admin-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e7ebef; }
.showcase-admin-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.showcase-admin-image .badge { position: absolute; top: .7rem; left: .7rem; }
.showcase-admin-copy { display: grid; gap: .8rem; padding: 1rem; }
.showcase-admin-copy h3 { margin: .2rem 0 0; font: 800 1.25rem/1.1 "Manrope", sans-serif; letter-spacing: -.03em; }
.showcase-admin-copy p { margin: 0; }
.showcase-gallery-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .7rem; }
.showcase-gallery-preview img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 6px; background: #e7ebef; }
.showcase-stat { display: flex; align-items: flex-end; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.showcase-stat span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.showcase-stat strong { font: 800 1.4rem/1 "Manrope", sans-serif; }
.showcase-heading { align-items: center; }
.showcase-heading-actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.showcase-summary { display: grid; grid-template-columns: repeat(3, minmax(110px, .55fr)) minmax(240px, 1.4fr); overflow: hidden; margin-bottom: 1rem; background: var(--side); color: white; border-radius: 14px; box-shadow: 0 18px 44px rgba(15,23,42,.12); }
.showcase-summary > div { min-width: 0; padding: 1rem 1.1rem; border-right: 1px solid rgba(255,255,255,.09); }
.showcase-summary > div:last-child { border: 0; }
.showcase-summary span { display: block; color: #94a3b4; font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.showcase-summary strong { display: block; margin-top: .18rem; font: 800 1.55rem/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.showcase-summary small { display: block; overflow: hidden; margin-top: .28rem; color: #aab5c2; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.showcase-publish-state strong { color: #6ee7b7; font-size: 1rem; letter-spacing: -.015em; }
.showcase-create { position: relative; z-index: 1; margin-bottom: 1rem; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); }
.showcase-create[open] { z-index: 2; }
.showcase-create summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; cursor: pointer; list-style: none; user-select: none; }
.showcase-create summary::-webkit-details-marker { display: none; }
.showcase-create summary > span:first-child { display: flex; align-items: center; gap: .75rem; }
.showcase-create summary b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--mark-soft); color: var(--mark); font-size: 1.2rem; }
.showcase-create summary strong, .showcase-create summary small { display: block; }
.showcase-create summary strong { font-family: "Manrope", sans-serif; font-size: .92rem; }
.showcase-create summary small { margin-top: .1rem; color: var(--muted); font-size: .75rem; }
.showcase-create-toggle { color: var(--info); font-size: .78rem; font-weight: 800; }
.showcase-create[open] .showcase-create-toggle { font-size: 0; }
.showcase-create[open] .showcase-create-toggle::after { content: "Formu kapat"; font-size: .78rem; }
.showcase-create-body { padding: 1.15rem; border-top: 1px solid var(--rule); background: var(--surface-2); }
.showcase-create-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1rem; }
.showcase-create-footer { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding-top: .2rem; }
.agency-admin-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.4fr); gap: 1rem; align-items: start; }
.agency-create-card { position: sticky; top: 1.25rem; }
.agency-create-card form { display: grid; gap: .8rem; }
.agency-admin-list { display: grid; gap: .7rem; }
.agency-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.agency-admin-row h2 { margin: 0; font: 800 1.05rem/1.2 "Manrope", sans-serif; }
.agency-admin-row p, .agency-admin-row small { display: block; margin: .2rem 0 0; color: var(--muted); }
.agency-empty { padding: 2rem; text-align: center; color: var(--muted); }
.agency-empty p { margin: .35rem 0 0; }
.agency-edit-form { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); gap: 1rem; align-items: start; }
.agency-edit-form > .card:first-child { display: grid; gap: .8rem; }
.agency-edit-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.agency-selection-count { padding: .3rem .55rem; background: var(--mark-soft); color: var(--mark); border-radius: 7px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.agency-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.agency-model-option { display: flex; align-items: center; gap: .7rem; min-height: 58px; padding: .65rem .75rem; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface-2); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.agency-model-option:hover { border-color: var(--rule-strong); transform: translateY(-1px); }
.agency-model-option:has(input:checked) { border-color: #f0ae9f; background: var(--mark-soft); }
.agency-model-option input { flex: none; }
.agency-model-option span, .agency-model-option strong, .agency-model-option small { display: block; }
.agency-model-option small { margin-top: .1rem; color: var(--muted); font-size: .75rem; }
.agency-model-option.is-unavailable { opacity: .55; cursor: not-allowed; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1rem; border-top: 1px solid #efcbd0; color: var(--bad); }
.danger-zone p { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.danger-zone button { min-height: 38px; padding: .45rem .7rem; border: 1px solid #e9b7be; border-radius: 7px; background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.agency-activity-filters { display: grid; grid-template-columns: minmax(180px, 280px) minmax(180px, 280px) auto; gap: .7rem; align-items: end; margin-bottom: 1rem; padding: .85rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.agency-activity-list { display: grid; gap: .75rem; }
.agency-activity-item header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.agency-activity-item h2 { margin: .35rem 0 0; font: 800 1.05rem/1.2 "Manrope", sans-serif; }
.agency-activity-item header p { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }
.agency-activity-item time { color: var(--muted); font: 700 .8rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; white-space: nowrap; }
.agency-event { display: inline-block; color: var(--ok); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.agency-event.is-edit { color: var(--mark); }
.agency-activity-model { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px solid var(--rule); color: var(--muted); }
.agency-change-list { display: grid; gap: .5rem; margin-top: .75rem; }
.agency-change-list details { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.agency-change-list summary { padding: .55rem .7rem; background: var(--surface-2); font-weight: 700; cursor: pointer; }
.agency-change-values { display: grid; grid-template-columns: 1fr 1fr; }
.agency-change-values > div { min-width: 0; padding: .7rem; }
.agency-change-values > div + div { border-left: 1px solid var(--rule); }
.agency-change-values span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.agency-change-values p { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.agency-activity-item footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: .75rem; color: var(--muted); font-size: .76rem; }
.agency-activity-item footer details { max-width: 70%; text-align: right; }
.agency-activity-item footer summary { cursor: pointer; font-weight: 700; }
.agency-activity-item footer p { margin: .3rem 0 0; overflow-wrap: anywhere; }
.agency-pagination { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.agency-pagination span { color: var(--muted); font-weight: 700; }
.agency-portal { display: grid; gap: .8rem; }
.agency-listing { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; gap: 1rem; align-items: center; }
.agency-listing img { width: 112px; height: 148px; object-fit: cover; border-radius: 10px; background: #e7ebef; }
.agency-listing h2 { margin: 0; font: 800 1.15rem/1.2 "Manrope", sans-serif; }
.agency-listing p { margin: .25rem 0 0; color: var(--muted); }
.agency-clicks { text-align: right; }
.agency-clicks span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.agency-clicks strong { font: 800 1.5rem/1 "Manrope", sans-serif; }
.agency-app { --agency-ink: #18372f; --agency-accent: #e85d3f; --agency-paper: #f2f0e9; --agency-line: #ddd9cd; background: var(--agency-paper); }
.agency-app .side { background: #15372f; }
.agency-app .nav a.active { background: rgba(255,255,255,.09); }
.agency-app .main > * { max-width: 1180px; }
.agency-app-page { padding-bottom: 5rem; }
.agency-home-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; min-height: 230px; padding: clamp(1.5rem,4vw,2.5rem); border-radius: 24px; background: var(--agency-ink); color: #fff; box-shadow: 0 24px 60px rgba(24,55,47,.17); }
.agency-home-hero::after { content: ""; position: absolute; width: 310px; height: 310px; right: -90px; top: -150px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.025),0 0 0 96px rgba(255,255,255,.018); }
.agency-home-hero > div { position: relative; z-index: 1; }
.agency-home-hero > div > span { color: #a7c4b9; font-size: .78rem; font-weight: 700; letter-spacing: .07em; }
.agency-home-hero h1 { margin-top: .8rem; font-size: clamp(2.8rem,7vw,5.4rem); line-height: .82; letter-spacing: -.075em; }
.agency-home-hero p { max-width: 34rem; margin: 1rem 0 0; color: #bfd1ca; }
.agency-home-hero > a { position: relative; z-index: 1; display: flex; align-items: center; gap: .65rem; min-height: 54px; padding: .7rem 1rem; border-radius: 14px; background: var(--agency-accent); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 14px 28px rgba(232,93,63,.22); transition: transform .2s ease; }
.agency-home-hero > a:hover { transform: translateY(-2px); }
.agency-home-hero > a b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.17); font-size: 1.25rem; }
.agency-kpi-strip { display: grid; grid-template-columns: repeat(3,1fr); width: min(660px,calc(100% - 2rem)); margin: -24px auto 1.2rem; position: relative; z-index: 2; border: 1px solid rgba(221,217,205,.9); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 15px 34px rgba(24,55,47,.09); backdrop-filter: blur(12px); }
.agency-kpi-strip > div { padding: .85rem 1rem; text-align: center; }
.agency-kpi-strip > div + div { border-left: 1px solid var(--agency-line); }
.agency-kpi-strip span { display: block; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agency-kpi-strip strong { display: block; margin-top: .2rem; color: var(--agency-ink); font: 800 1.45rem/1 "Manrope",sans-serif; }
.agency-save-state { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; min-height: 32px; margin-bottom: .7rem; color: var(--muted); font-size: .74rem; font-weight: 700; }
.agency-save-state i { width: 7px; height: 7px; border-radius: 50%; background: #9da8a3; }
.agency-save-state[data-state="moving"] i,.agency-save-state[data-state="saving"] i { background: #d79535; box-shadow: 0 0 0 4px rgba(215,149,53,.12); }
.agency-save-state[data-state="saved"] { color: var(--ok); }
.agency-save-state[data-state="saved"] i { background: var(--ok); box-shadow: 0 0 0 4px rgba(22,130,93,.1); }
.agency-save-state[data-state="error"] { color: var(--bad); }
.agency-save-state[data-state="error"] i { background: var(--bad); }
.agency-app-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.agency-app-board { min-width: 0; overflow: hidden; border: 1px solid var(--agency-line); border-radius: 18px; background: rgba(255,255,255,.72); }
.agency-app-board > header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--agency-line); }
.agency-app-board > header > div { display: flex; align-items: center; gap: .7rem; }
.agency-app-board > header i { width: 10px; height: 10px; border-radius: 50%; background: var(--agency-accent); box-shadow: 0 0 0 5px rgba(232,93,63,.11); }
.agency-app-board-normal > header i { background: #718079; box-shadow: 0 0 0 5px rgba(113,128,121,.11); }
.agency-app-board header span,.agency-app-board header b,.agency-app-board header small { display: block; }
.agency-app-board header b { color: var(--agency-ink); font: 800 .92rem/1.2 "Manrope",sans-serif; }
.agency-app-board header small { margin-top: .1rem; color: var(--muted); font-size: .7rem; }
.agency-app-board header > strong { display: grid; place-items: center; min-width: 31px; height: 31px; border-radius: 9px; background: #eeece5; color: var(--agency-ink); font-size: .78rem; }
.agency-app-dropzone { display: grid; gap: .65rem; min-height: 180px; padding: .75rem; transition: background .18s ease,box-shadow .18s ease; }
.agency-app-board-vip .agency-app-dropzone { grid-template-columns: repeat(2,minmax(0,1fr)); }
.agency-app-board-normal .agency-app-dropzone { grid-template-columns: repeat(3,minmax(0,1fr)); }
.agency-app-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e3dfd5; border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(24,55,47,.055); transition: transform .18s ease,opacity .18s ease,box-shadow .18s ease; }
.agency-app-card:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(24,55,47,.1); }
.agency-app-card.is-selected { border-color: var(--agency-accent); box-shadow: inset 0 0 0 2px var(--agency-accent),0 12px 28px rgba(24,55,47,.12); }
.agency-card-select { position: absolute; z-index: 4; top: .55rem; left: .55rem; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; background: rgba(255,255,255,.9); cursor: pointer; backdrop-filter: blur(8px); }
.agency-card-select input { position: absolute; opacity: 0; pointer-events: none; }
.agency-card-select span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #aeb9b4; border-radius: 7px; color: transparent; font-size: .75rem; font-weight: 900; }
.agency-card-select:has(input:checked) { background: var(--agency-accent); }
.agency-card-select input:checked + span { border-color: #fff; color: #fff; }
.agency-app-drag { position: absolute; z-index: 3; top: .55rem; right: .55rem; display: grid; grid-template-columns: repeat(2,3px); gap: 3px; place-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 10px; background: rgba(21,55,47,.82); backdrop-filter: blur(8px); touch-action: none; }
.agency-app-drag span { width: 3px; height: 3px; border-radius: 50%; background: white; }
.agency-app-card-image { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #dce3df; }
.agency-app-card-image::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent,rgba(15,35,29,.4)); }
.agency-app-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.agency-app-card-image > span { position: absolute; z-index: 1; left: .55rem; bottom: .55rem; padding: .2rem .42rem; border-radius: 6px; background: var(--bad); color: white; font-size: .64rem; font-weight: 800; }
.agency-app-card-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem; padding: .8rem; }
.agency-app-card-copy small { display: block; color: #8a938f; font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agency-app-card-copy h2 { margin: .14rem 0 0; overflow: hidden; font: 800 1.05rem/1.15 "Manrope",sans-serif; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.agency-app-card-copy h2 a { color: var(--agency-ink); text-decoration: none; }
.agency-app-category { align-self: start; padding: .18rem .42rem; border-radius: 6px; background: #fff0ec; color: var(--agency-accent); font-size: .63rem; font-weight: 800; }
.agency-app-board-normal .agency-app-category { background: #edf0ee; color: #66736d; }
.agency-app-card-copy p { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: .72rem; }
.agency-app-card-copy .agency-app-phone { color: var(--agency-ink); font: 700 .72rem/1.25 ui-monospace,SFMono-Regular,Menlo,monospace; }
.agency-app-card-copy .agency-app-owner { color: var(--agency-accent); font-weight: 800; }
.agency-app-edit { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; margin-top: .2rem; padding-top: .55rem; border-top: 1px solid #ece9e2; color: var(--agency-ink); font-size: .75rem; font-weight: 800; text-decoration: none; }
.agency-app-edit span { color: var(--agency-accent); font-size: 1rem; }
.agency-app-empty { display: grid; place-items: center; align-content: center; min-height: 145px; padding: 1rem; border: 1px dashed #c9c8c0; border-radius: 12px; color: var(--muted); text-align: center; }
.agency-app-empty b,.agency-app-empty span { display: block; }
.agency-app-empty b { color: var(--agency-ink); font-size: .84rem; }
.agency-app-empty span { margin-top: .2rem; font-size: .72rem; }
.agency-app-dropzone:has(.agency-app-card) .agency-app-empty { display: none; }
.agency-sortable-ghost { opacity: .2; }
.agency-sortable-chosen { box-shadow: inset 0 0 0 2px rgba(232,93,63,.55),0 12px 30px rgba(24,55,47,.14); }
.agency-app-card.agency-sortable-drag { z-index: 100; pointer-events: none; opacity: .96; transform: rotate(.5deg) scale(1.02); box-shadow: 0 24px 55px rgba(24,55,47,.28); transition: none; will-change: transform; }
.agency-is-sorting { user-select: none; overscroll-behavior: none; -webkit-touch-callout: none; }
.agency-is-sorting .agency-app-card:hover { transform: none; }
.agency-is-sorting .agency-app-dropzone { transition: none; }
.agency-first-listing { max-width: 520px; margin: 1.2rem auto 0; padding: 2rem; border-radius: 20px; background: #fff; text-align: center; }
.agency-first-listing > span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff0ec; color: var(--agency-accent); font-weight: 800; }
.agency-first-listing h2 { margin: .8rem 0 .3rem; font: 800 1.4rem/1.1 "Manrope",sans-serif; }
.agency-first-listing p { margin: 0; color: var(--muted); }
.agency-first-listing a { display: inline-flex; margin-top: 1rem; padding: .65rem 1rem; border-radius: 10px; background: var(--agency-ink); color: white; font-weight: 800; text-decoration: none; }
.agency-owner-filter { display: flex; gap: .45rem; margin: 0 0 1rem; padding: .3rem; overflow-x: auto; scrollbar-width: none; }
.agency-owner-filter::-webkit-scrollbar { display: none; }
.agency-owner-filter a { flex: 0 0 auto; padding: .55rem .8rem; border: 1px solid var(--agency-line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--agency-ink); font-size: .75rem; font-weight: 800; text-decoration: none; }
.agency-owner-filter a.active { border-color: var(--agency-ink); background: var(--agency-ink); color: #fff; }
.agency-bulk-tools { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .65rem; border: 1px solid var(--agency-line); border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 8px 24px rgba(24,55,47,.05); }
.agency-bulk-heading { display: flex; align-items: center; gap: .6rem; padding: 0 .25rem; white-space: nowrap; }
.agency-bulk-heading button { padding: .42rem .6rem; border: 1px solid #ccd4d0; border-radius: 8px; background: #fff; color: var(--agency-ink); font-size: .68rem; font-weight: 800; }
.agency-bulk-heading span { color: var(--muted); font-size: .68rem; }
.agency-bulk-heading b { color: var(--agency-accent); font-size: .85rem; }
.agency-bulk-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; }
.agency-bulk-actions form:first-child { display: grid; grid-template-columns: minmax(150px,1fr) auto; gap: .45rem; }
.agency-bulk-actions input { min-width: 0; height: 40px; padding: .55rem .65rem; border: 1px solid #d5d8d2; border-radius: 9px; background: #fff; color: var(--agency-ink); font-size: .75rem; }
.agency-bulk-actions button { height: 40px; padding: .55rem .7rem; border: 0; border-radius: 9px; background: var(--agency-ink); color: #fff; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.agency-bulk-actions [data-bulk-form="delete"] button { background: #fff0f1; color: var(--bad); }
.agency-bulk-actions button:disabled { opacity: .42; cursor: not-allowed; }
.agency-bulk-tools > .field-error { grid-column: 1/-1; margin: 0; font-size: .7rem; }
.agency-sub-hero { min-height: 190px; }
.agency-sub-layout { display: grid; grid-template-columns: minmax(280px,360px) minmax(0,1fr); gap: 1rem; align-items: start; margin-top: 1rem; }
.agency-sub-create,.agency-sub-list { padding: 1.25rem; border: 1px solid var(--agency-line); border-radius: 18px; background: rgba(255,255,255,.78); }
.agency-sub-create h2,.agency-sub-list h2 { margin: .25rem 0 1rem; color: var(--agency-ink); font: 800 1.35rem/1.1 "Manrope",sans-serif; }
.agency-section-kicker { color: var(--agency-accent); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.agency-sub-create form,.agency-sub-card form { display: grid; gap: .75rem; }
.agency-sub-create .field,.agency-sub-card .field { margin: 0; }
.agency-sub-create .btn { width: 100%; justify-content: center; margin-top: .25rem; }
.agency-sub-card { overflow: hidden; border: 1px solid var(--agency-line); border-radius: 14px; background: #fff; }
.agency-sub-card + .agency-sub-card { margin-top: .65rem; }
.agency-sub-card summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .85rem; cursor: pointer; list-style: none; }
.agency-sub-card summary::-webkit-details-marker { display: none; }
.agency-sub-card summary span:nth-child(2),.agency-sub-card summary b,.agency-sub-card summary small { display: block; min-width: 0; }
.agency-sub-card summary small { margin-top: .12rem; overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.agency-sub-card summary > i { color: var(--muted); font-style: normal; transition: transform .18s ease; }
.agency-sub-card[open] summary > i { transform: rotate(180deg); }
.agency-sub-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edf3f0; color: var(--agency-ink); font-weight: 900; }
.agency-sub-card > form { margin: 0 .85rem .85rem; padding-top: .85rem; border-top: 1px solid var(--agency-line); }
.agency-sub-card > form + form { display: block; padding-top: 0; border-top: 0; }
.agency-sub-delete { padding: 0; border: 0; background: none; color: var(--bad); font-size: .72rem; font-weight: 800; }
.agency-sub-empty { display: grid; place-items: center; min-height: 180px; color: var(--muted); text-align: center; }
.agency-sub-empty b,.agency-sub-empty span { display: block; }
.agency-sub-empty b { color: var(--agency-ink); }
.agency-sub-empty span { margin-top: .25rem; font-size: .78rem; }
.agency-editor-page { max-width: 1120px; margin: 0 auto; }
.agency-editor-hero { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.15rem 1.25rem; border: 1px solid rgba(221,217,205,.85); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 12px 34px rgba(24,55,47,.06); }
.agency-back { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 1px solid #d7d4ca; border-radius: 13px; background: #fff; color: var(--agency-ink); text-decoration: none; transition: transform .18s ease,border-color .18s ease; }
.agency-back:hover { border-color: #9fafaa; transform: translateX(-2px); }
.agency-back:active { transform: translateX(-2px) scale(.96); }
.agency-back svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.agency-editor-title > span { color: var(--agency-accent); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.agency-editor-title h1 { margin: .16rem 0 0; overflow: hidden; color: var(--agency-ink); font: 800 clamp(1.7rem,4vw,2.5rem)/1 "Manrope",sans-serif; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.agency-editor-title p { max-width: 58ch; margin: .45rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.agency-editor-progress { display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .5rem .7rem; border-radius: 10px; background: #ecebe5; color: #61706a; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.agency-editor-progress b { font: 800 1rem/1 "Manrope",sans-serif; }
.agency-editor-progress i { width: 8px; height: 8px; border-radius: 50%; background: #9da8a3; }
.agency-editor-progress.is-live { background: #e9f4ef; color: var(--ok); }
.agency-editor-progress.is-live i { background: var(--ok); box-shadow: 0 0 0 4px rgba(22,130,93,.1); }
.agency-editor-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(250px,.5fr); gap: 1rem; align-items: start; }
.agency-mobile-form { display: grid; gap: .8rem; min-width: 0; }
.agency-form-section { padding: clamp(1.1rem,3vw,1.6rem); border: 1px solid rgba(221,217,205,.9); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 12px 34px rgba(24,55,47,.045); }
.agency-form-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.35rem; }
.agency-form-heading > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #e8eeeb; color: var(--agency-ink); font: 800 .75rem/1 "Manrope",sans-serif; }
.agency-form-heading h2 { margin: 0; color: var(--agency-ink); font: 800 1.12rem/1.2 "Manrope",sans-serif; letter-spacing: -.035em; }
.agency-form-heading p { margin: .15rem 0 0; color: var(--muted); font-size: .72rem; }
.agency-segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem; }
.agency-segmented label { cursor: pointer; }
.agency-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.agency-segmented label > span { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; min-height: 78px; padding: .85rem; border: 1px solid #dcd9d0; border-radius: 13px; background: #f8f7f3; transition: border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
.agency-segmented label > span > i { grid-row: 1/3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #e8ebe8; color: #738079; font-style: normal; }
.agency-segmented input:checked + span { border-color: #eda28f; background: #fff4f0; box-shadow: inset 0 0 0 1px rgba(232,93,63,.12); transform: translateY(-1px); }
.agency-segmented input:checked + span > i { background: var(--agency-accent); color: #fff; }
.agency-segmented input:focus-visible + span { outline: 3px solid rgba(87,126,112,.16); }
.agency-segmented b,.agency-segmented small { display: block; }
.agency-segmented b { align-self: end; color: var(--agency-ink); font-size: .84rem; }
.agency-segmented small { align-self: start; margin-top: .1rem; color: var(--muted); font-size: .66rem; }
.agency-category-readonly { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .8rem; border: 1px solid #d9e2dd; border-radius: 13px; background: #f3f7f5; }
.agency-category-readonly > span { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--agency-ink); color: #fff; }
.agency-category-readonly b,.agency-category-readonly small { display: block; }
.agency-category-readonly b { color: var(--agency-ink); font-size: .82rem; }
.agency-category-readonly small { margin-top: .12rem; color: var(--muted); font-size: .66rem; }
.agency-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.agency-input { display: block; margin-bottom: .9rem; }
.agency-input > span { display: block; margin-bottom: .38rem; color: #4d5f58; font-size: .72rem; font-weight: 800; }
.agency-input .agency-input-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.agency-input-line b { font-size: inherit; }
.agency-input-line small { color: #929b97; font-size: .62rem; font-weight: 700; }
.agency-input-line em { font-style: normal; }
.agency-description-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .45rem; }
.agency-description-toolbar label { color: #4d5f58; font-size: .72rem; font-weight: 800; }
.agency-description-toolbar label small { margin-left: .25rem; color: #929b97; font-size: .62rem; }
.agency-description-toolbar label em { font-style: normal; }
.agency-description-toolbar button { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .4rem .6rem; border: 1px solid #d4ddd8; border-radius: 9px; background: #eef5f1; color: var(--agency-ink); font-size: .66rem; font-weight: 800; transition: transform .18s ease,background .18s ease; }
.agency-description-toolbar button:hover { background: #e3eee8; transform: translateY(-1px); }
.agency-description-toolbar button:active { transform: scale(.98); }
.agency-description-toolbar button:disabled { opacity: .6; cursor: wait; transform: none; }
.agency-description-toolbar button span { color: var(--agency-accent); font-size: .85rem; }
.agency-ai-status { min-height: 1rem; margin: .35rem 0 0; color: var(--muted); font-size: .65rem; }
.agency-ai-status[data-state="success"] { color: var(--ok); }
.agency-ai-status[data-state="error"] { color: var(--bad); }
.agency-input input,.agency-input textarea,.agency-input select { width: 100%; min-height: 52px; padding: .8rem .9rem; border: 1px solid #d7d4ca; border-radius: 11px; background: #fdfdfb; color: var(--agency-ink); font-size: .88rem; transition: border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.agency-input select { appearance: none; padding-right: 2.6rem; background-image: linear-gradient(45deg,transparent 50%,#61716a 50%),linear-gradient(135deg,#61716a 50%,transparent 50%); background-position: calc(100% - 18px) 22px,calc(100% - 12px) 22px; background-size: 6px 6px,6px 6px; background-repeat: no-repeat; }
.agency-input textarea { resize: vertical; line-height: 1.55; }
.agency-input input:hover,.agency-input textarea:hover,.agency-input select:hover { border-color: #b8c1bd; }
.agency-input input:focus,.agency-input textarea:focus,.agency-input select:focus { border-color: #78978b; outline: 0; background-color: #fff; box-shadow: 0 0 0 3px rgba(87,126,112,.12); }
.agency-owner-select { margin-bottom: 1rem; padding: .8rem; border: 1px solid #d9e2dd; border-radius: 13px; background: #f3f7f5; }
.agency-input .agency-input-hint { display: block; margin-top: .35rem; color: #7d8984; font-size: .64rem; line-height: 1.35; }
.agency-form-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: .3rem 0 .75rem; padding-top: 1rem; border-top: 1px solid #ebe9e2; }
.agency-form-subhead b { color: var(--agency-ink); font-size: .82rem; }
.agency-form-subhead span { color: var(--muted); font-size: .65rem; }
.agency-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin-bottom: 1rem; }
.agency-service-toggle { position: relative; display: grid; gap: .7rem; min-width: 0; padding: .75rem; border: 1px solid #dcd9d0; border-radius: 12px; background: #f8f7f3; cursor: pointer; transition: border-color .18s ease,background .18s ease; }
.agency-service-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.agency-service-toggle span,.agency-service-toggle b,.agency-service-toggle small { display: block; }
.agency-service-toggle b { color: var(--agency-ink); font-size: .75rem; }
.agency-service-toggle small { margin-top: .12rem; color: var(--muted); font-size: .61rem; line-height: 1.3; }
.agency-service-toggle em { justify-self: start; min-width: 42px; padding: .25rem .42rem; border-radius: 7px; background: #e6e8e5; color: #6d7772; font-size: .65rem; font-style: normal; font-weight: 800; text-align: center; }
.agency-service-toggle em::after { content: attr(data-off); }
.agency-service-toggle:has(input[type="checkbox"]:checked) { border-color: #9cc4b3; background: #eef6f2; }
.agency-service-toggle input[type="checkbox"]:checked ~ em { background: var(--ok); color: #fff; }
.agency-service-toggle input[type="checkbox"]:checked ~ em::after { content: attr(data-on); }
.agency-service-toggle:has(input:focus-visible) { outline: 3px solid rgba(87,126,112,.16); }
.agency-input-autocomplete { position: relative; }
.agency-input-autocomplete:focus-within { z-index: 30; }
.agency-autocomplete-options { position: absolute; z-index: 40; top: calc(100% - 1.15rem); right: 0; left: 0; max-height: 260px; overflow: auto; padding: .35rem; border: 1px solid #d7d4ca; border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(24,55,47,.18); overscroll-behavior: contain; }
.agency-autocomplete-options[hidden] { display: none; }
.agency-autocomplete-options button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; padding: .65rem .7rem; border: 0; border-radius: 8px; background: transparent; color: var(--agency-ink); text-align: left; }
.agency-autocomplete-options button:hover,.agency-autocomplete-options button.is-active { background: #eef3f0; }
.agency-autocomplete-options button span { font-weight: 800; }
.agency-autocomplete-options button small { color: #87918d; font-size: .64rem; }
.agency-autocomplete-empty { padding: .8rem; color: var(--muted); font-size: .75rem; text-align: center; }
.agency-publish-toggle { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid #d9ddd9; border-radius: 13px; background: #f1f5f2; cursor: pointer; }
.agency-publish-toggle input { position: absolute; opacity: 0; }
.agency-publish-toggle span,.agency-publish-toggle b,.agency-publish-toggle small { display: block; }
.agency-publish-toggle b { color: var(--agency-ink); font-size: .82rem; }
.agency-publish-toggle small { margin-top: .1rem; color: var(--muted); font-size: .69rem; }
.agency-publish-toggle i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #b7bfbb; transition: background .18s ease; }
.agency-publish-toggle i::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: transform .18s ease; }
.agency-publish-toggle input:checked ~ i { background: var(--ok); }
.agency-publish-toggle input:checked ~ i::after { transform: translateX(18px); }
.agency-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.agency-upload { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 88px; padding: .8rem; border: 1px dashed #aebbb5; border-radius: 14px; background: #f5f7f5; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.agency-upload:hover { border-color: #66897b; background: #edf3ef; transform: translateY(-1px); }
.agency-upload.is-dragover { border-color: var(--agency-accent); border-style: solid; background: #fff0ec; box-shadow: inset 0 0 0 2px rgba(232,93,63,.15); transform: scale(1.01); }
.agency-upload:active { transform: scale(.99); }
.agency-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.agency-upload-preview { position: relative; display: grid; place-items: center; width: 54px; height: 58px; flex: none; overflow: hidden; border-radius: 10px; background: var(--agency-ink); color: #fff; }
.agency-upload-preview i { font-style: normal; font-size: 1.35rem; }
.agency-upload-preview img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; object-fit: cover; }
.agency-upload b,.agency-upload small { display: block; }
.agency-upload b { color: var(--agency-ink); font-size: .84rem; }
.agency-upload small { max-width: 20ch; margin-top: .18rem; overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.agency-standard-cover { display: contents; }
.agency-vip-composer[hidden],.agency-standard-cover[hidden] { display: none; }
.agency-vip-composer { padding: .85rem; border: 1px solid #d7d4ca; border-radius: 16px; background: #f7f6f1; }
.agency-vip-intro { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.agency-vip-intro b,.agency-vip-intro span { display: block; }
.agency-vip-intro b { color: var(--agency-ink); font-size: .86rem; }
.agency-vip-intro span { margin-top: .12rem; color: var(--muted); font-size: .68rem; }
.agency-vip-intro em { flex: none; padding: .28rem .5rem; border-radius: 999px; background: #e5eee9; color: var(--agency-ink); font-size: .61rem; font-style: normal; font-weight: 800; }
.agency-vip-images { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; }
.agency-vip-image-slot { overflow: hidden; border: 1px solid #d9d6cd; border-radius: 12px; background: #fff; }
.agency-vip-image-slot > label { position: relative; display: block; aspect-ratio: 4/3; cursor: pointer; }
.agency-vip-image-slot > label.is-dragover { outline: 2px solid var(--agency-accent); outline-offset: -2px; }
.agency-vip-image-slot > label.is-dragover > span { background: #fff0ec; color: var(--agency-accent); }
.agency-vip-image-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.agency-vip-image-slot label > span { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: #e9efec; color: var(--agency-ink); }
.agency-vip-image-slot label i { font-size: 1.4rem; font-style: normal; }
.agency-vip-image-slot label img { width: 100%; height: 100%; object-fit: cover; }
.agency-vip-image-slot > div { display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding: .45rem; }
.agency-vip-image-slot > div b { color: var(--agency-ink); font-size: .65rem; }
.agency-vip-image-slot button { padding: .25rem .35rem; border: 0; border-radius: 6px; background: #edf0ee; color: #66736d; font-size: .57rem; font-weight: 800; touch-action: none; }
.agency-vip-layouts { margin-top: .8rem; }
.agency-vip-layouts > span { display: block; margin-bottom: .4rem; color: var(--agency-ink); font-size: .7rem; font-weight: 800; }
.agency-vip-layouts > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
.agency-vip-layouts label { position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: .5rem; padding: .45rem; border: 1px solid #d9d6cd; border-radius: 10px; background: #fff; cursor: pointer; }
.agency-vip-layouts input { position: absolute; opacity: 0; }
.agency-vip-layouts label:has(input:checked) { border-color: var(--agency-accent); box-shadow: inset 0 0 0 1px var(--agency-accent); }
.agency-vip-layouts label > b { font-size: .63rem; }
.agency-layout-preview { display: grid; width: 46px; height: 26px; gap: 2px; overflow: hidden; border-radius: 5px; background: #fff; }
.agency-layout-preview i { background: #6e8d81; }
.agency-layout-preview.columns { grid-template-columns: repeat(3,1fr); }
.agency-layout-preview.focus-left { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; }
.agency-layout-preview.focus-left i:first-child { grid-row: 1/3; }
.agency-layout-preview.focus-right { grid-template-columns: 2fr 3fr; grid-template-rows: 1fr 1fr; }
.agency-layout-preview.focus-right i:last-child { grid-column: 2; grid-row: 1/3; }
.agency-cover-text-editor { display: grid; gap: .75rem; margin-top: .9rem; padding: .8rem; border: 1px solid #d9d6cd; border-radius: 14px; background: #fff; }
.agency-cover-text-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.agency-cover-text-heading b,.agency-cover-text-heading span { display: block; }
.agency-cover-text-heading b { color: var(--agency-ink); font-size: .78rem; }
.agency-cover-text-heading span { margin-top: .12rem; color: var(--muted); font-size: .64rem; }
.agency-cover-text-heading button { flex: none; min-height: 34px; padding: .4rem .55rem; border: 1px solid #e5c7c3; border-radius: 8px; background: #fff8f6; color: #a94c3b; font-size: .64rem; font-weight: 800; }
.agency-cover-canvas-wrap { position: relative; overflow: hidden; border-radius: 11px; background: #e8efeb; box-shadow: inset 0 0 0 1px rgba(23,55,47,.1); }
.agency-cover-canvas-wrap canvas { width: 100%; height: auto; display: block; aspect-ratio: 16/9; cursor: grab; touch-action: none; }
.agency-cover-canvas-wrap canvas:active { cursor: grabbing; }
.agency-cover-canvas-wrap > span { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; color: #78877f; font-size: .7rem; font-weight: 800; text-align: center; pointer-events: none; }
.agency-cover-canvas-wrap > span[hidden] { display: none; }
.agency-cover-text-input span,.agency-cover-size > span,.agency-cover-colors label > span { display: block; margin-bottom: .35rem; color: var(--agency-ink); font-size: .64rem; font-weight: 800; }
.agency-cover-text-input input { width: 100%; min-height: 42px; padding: .65rem .75rem; border: 1px solid #ccd4d0; border-radius: 10px; background: #fafbf9; color: var(--agency-ink); font: 700 .8rem/1 "DM Sans",sans-serif; }
.agency-cover-size > div { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: .5rem; }
.agency-cover-size button { width: 42px; height: 42px; border: 1px solid #ccd4d0; border-radius: 10px; background: #f5f7f5; color: var(--agency-ink); font-size: 1.15rem; font-weight: 800; }
.agency-cover-size input,.agency-border-width input { width: 100%; accent-color: var(--agency-accent); }
.agency-cover-colors { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: .55rem; }
.agency-cover-colors label { min-width: 0; }
.agency-cover-colors input[type="color"] { width: 100%; height: 42px; padding: 3px; border: 1px solid #ccd4d0; border-radius: 10px; background: #f5f7f5; }
.agency-border-width { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0 .5rem; }
.agency-border-width span { grid-column: 1/-1; }
.agency-border-width b { min-width: 31px; color: var(--muted); font-size: .63rem; text-align: right; }
.agency-cover-text-editor > p { margin: -.15rem 0 0; color: var(--muted); font-size: .62rem; }
.agency-vip-note { margin: .65rem 0 0; color: var(--muted); font-size: .67rem; }
.pwa-banner { position: relative; z-index: 60; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: #1c140f; color: #f3eadf; border-bottom: 1px solid rgba(243,234,223,.14); }
.pwa-banner[hidden] { display: none; }
.pwa-banner.is-floating { position: fixed; inset: 0 0 auto 0; }
.pwa-banner img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.pwa-banner-text { min-width: 0; flex: 1; font-size: .78rem; line-height: 1.35; }
.pwa-banner-text strong { display: block; font-size: .86rem; }
.pwa-banner-text span { display: block; margin-top: .1rem; color: #c9bcae; }
.pwa-banner-text b { color: #fff; }
.pwa-banner-text i { font-style: normal; }
.pwa-banner[data-mode="android"] [data-pwa-text-ios], .pwa-banner[data-mode="ios"] [data-pwa-text-android] { display: none; }
.pwa-banner[data-mode="ios"] [data-pwa-install], .pwa-banner[data-mode="android"] [data-pwa-howto] { display: none; }
.pwa-banner-install { flex: none; min-height: 40px; padding: .5rem 1rem; border: 0; border-radius: 11px; background: #e85d3f; color: #fff; font-size: .8rem; font-weight: 800; cursor: pointer; transition: transform .16s ease; }
.pwa-banner-install:active { transform: scale(.96); }
.pwa-banner-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #f3eadf; font-size: 1.3rem; line-height: 1; cursor: pointer; }
@supports (padding-top: env(safe-area-inset-top)) { .pwa-banner { padding-top: calc(.7rem + env(safe-area-inset-top)); } }
@media (display-mode: standalone) { .pwa-banner { display: none; } }
.pwa-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.pwa-sheet[hidden] { display: none; }
.pwa-sheet-backdrop { position: absolute; inset: 0; background: rgba(12,8,5,.62); animation: pwa-fade .2s ease-out; }
.pwa-sheet-card { position: relative; width: min(520px,100%); max-height: 86dvh; overflow-y: auto; padding: 1.3rem 1.2rem calc(1.3rem + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; color: #1c140f; animation: pwa-rise .28s cubic-bezier(.2,.8,.2,1); }
.pwa-sheet-card .pwa-banner-close { position: absolute; top: .8rem; right: .8rem; background: #f1ece6; color: #1c140f; }
.pwa-sheet-card h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.pwa-sheet-lead { margin: .25rem 0 1rem; color: #6b5f55; font-size: .85rem; }
.pwa-steps { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.pwa-steps li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .8rem .85rem; border-radius: 14px; background: #f7f3ee; font-size: .88rem; line-height: 1.35; }
.pwa-steps small { display: block; margin-top: .2rem; color: #7a6d62; font-size: .72rem; }
.pwa-step-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1c140f; color: #fff; font-size: .8rem; font-weight: 800; }
.pwa-steps svg { width: 30px; height: 30px; fill: none; stroke: #e85d3f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pwa-steps svg circle { fill: #e85d3f; stroke: none; }
.pwa-sheet[data-device="phone"] [data-pwa-where-pad], .pwa-sheet[data-device="pad"] [data-pwa-where-phone] { display: none; }
.pwa-sheet-note { margin: .9rem 0 0; padding: .65rem .8rem; border-radius: 12px; background: #fff3e6; color: #7a4a14; font-size: .76rem; }
.pwa-arrow { position: fixed; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); z-index: 1001; width: 46px; height: 46px; margin-left: -23px; display: grid; place-items: center; border-radius: 50%; background: #e85d3f; box-shadow: 0 8px 22px rgba(232,93,63,.5); pointer-events: none; animation: pwa-bounce 1s ease-in-out infinite; }
.pwa-arrow[hidden] { display: none; }
.pwa-arrow svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pwa-sheet[data-device="pad"] .pwa-arrow { top: 8px; right: 70px; bottom: auto; left: auto; margin: 0; transform: rotate(180deg); animation-name: pwa-bounce-up; }
html.pwa-sheet-open { overflow: hidden; }
.pwa-sheet-card { margin-bottom: 64px; }
@keyframes pwa-fade { from { opacity: 0; } }
@keyframes pwa-rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes pwa-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes pwa-bounce-up { 0%,100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .pwa-arrow, .pwa-sheet-card, .pwa-sheet-backdrop { animation: none; } }
@media (display-mode: standalone) { .pwa-sheet { display: none; } }

.agency-announcement { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .9rem; width: min(660px,calc(100% - 2rem)); margin: 0 auto 1.2rem; padding: 1rem 1.1rem; border: 1px solid rgba(232,93,63,.28); border-radius: 16px; background: #fff7f4; }
.agency-announcement-badge { padding: .22rem .55rem; border-radius: 999px; background: var(--agency-accent); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.agency-announcement strong { display: block; color: var(--agency-ink); font-size: .92rem; }
.agency-announcement p { margin: .4rem 0 0; color: #4d5b56; font-size: .78rem; line-height: 1.5; }
.agency-announcement form { align-self: center; }
.agency-announcement button { min-height: 38px; padding: .45rem .9rem; border: 0; border-radius: 10px; background: var(--agency-ink); color: #fff; font-size: .74rem; font-weight: 700; cursor: pointer; transition: transform .16s ease; }
.agency-announcement button:active { transform: scale(.97); }
@media (max-width: 640px) { .agency-announcement { grid-template-columns: 1fr; } .agency-announcement form button { width: 100%; } }
.agency-video { display: grid; gap: .55rem; margin-top: .8rem; }
.agency-upload-video .agency-upload-preview i { font-size: 1.1rem; }
.agency-video-note { margin: 0; color: var(--muted); font-size: .67rem; }
.agency-video-player { width: 100%; max-height: 320px; border-radius: 12px; background: #000; }
.showcase-video-preview { width: 100%; margin-top: .8rem; border-radius: 10px; background: #000; max-height: 340px; }
.agency-clear-check { display: flex; gap: .5rem; align-items: center; margin-top: .8rem; color: var(--bad); font-size: .76rem; font-weight: 700; }
.agency-form-errors { margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid #f0c2ba; border-radius: 14px; background: #fff4f1; color: #9a3b2e; }
.agency-form-errors b { display: block; margin-bottom: .3rem; font-size: .86rem; }
.agency-form-errors p { margin: 0 0 .4rem; font-size: .76rem; }
.agency-form-errors ul { margin: 0; padding-left: 1.1rem; }
.agency-form-errors li { margin: .12rem 0; font-size: .78rem; }
.agency-form-errors[hidden] { display: none; }
.agency-save-dock { position: sticky; z-index: 20; bottom: 1rem; display: grid; gap: .55rem; padding: .75rem; border: 1px solid rgba(211,215,207,.9); border-radius: 15px; background: rgba(252,252,249,.92); box-shadow: 0 18px 45px rgba(24,55,47,.13); backdrop-filter: blur(16px); }
.agency-save-dock > .agency-form-errors { margin: 0; }
.agency-save-dock-main { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.agency-save-dock-main > span { min-width: 0; padding-left: .35rem; }
.agency-save-dock-main > span small,.agency-save-dock-main > span b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agency-save-dock-main > span small { color: var(--muted); font-size: .62rem; }
.agency-save-dock-main > span b { margin-top: .12rem; color: var(--agency-ink); font-size: .75rem; }
.agency-save-dock-main > div { display: flex; gap: .5rem; flex: none; }
.agency-save-dock a,.agency-save-dock button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border-radius: 11px; font-weight: 800; text-decoration: none; }
.agency-save-dock a { color: var(--muted); }
.agency-save-dock button { border: 0; background: var(--agency-accent); color: #fff; box-shadow: 0 10px 22px rgba(232,93,63,.18); transition: transform .18s ease,box-shadow .18s ease; }
.agency-save-dock button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(232,93,63,.24); }
.agency-save-dock button:active { transform: scale(.98); }
.agency-save-dock button:disabled { opacity: .65; cursor: wait; }
.agency-current-media,.agency-editor-guide { position: sticky; top: 1rem; overflow: hidden; border: 1px solid rgba(221,217,205,.9); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 12px 34px rgba(24,55,47,.055); }
.agency-current-heading { padding: 1rem; border-bottom: 1px solid var(--agency-line); }
.agency-current-heading span,.agency-current-heading b { display: block; }
.agency-current-heading span { color: var(--agency-accent); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agency-current-heading b { margin-top: .2rem; overflow: hidden; color: var(--agency-ink); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.agency-current-cover { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #dce3df; }
.agency-current-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.agency-current-cover > span { position: absolute; left: .75rem; bottom: .75rem; padding: .28rem .52rem; border-radius: 7px; background: rgba(21,55,47,.88); color: #fff; font-size: .68rem; font-weight: 800; backdrop-filter: blur(8px); }
.agency-current-stats { display: grid; grid-template-columns: 1fr 1fr; }
.agency-current-stats > div { padding: .9rem; text-align: center; }
.agency-current-stats > div + div { border-left: 1px solid var(--agency-line); }
.agency-current-stats strong,.agency-current-stats span { display: block; }
.agency-current-stats strong { color: var(--agency-ink); font: 800 1.25rem/1 "Manrope",sans-serif; }
.agency-current-stats span { margin-top: .2rem; color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.agency-current-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; padding: 3px; border-top: 1px solid var(--agency-line); }
.agency-current-gallery img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.agency-listing-danger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid #edc9ce; border-radius: 16px; background: #fff7f8; }
.agency-listing-danger b,.agency-listing-danger span { display: block; }
.agency-listing-danger b { color: var(--bad); font-size: .84rem; }
.agency-listing-danger span { margin-top: .18rem; color: var(--muted); font-size: .7rem; }
.agency-listing-danger button { min-height: 42px; padding: .6rem .85rem; border: 1px solid #e6aeb6; border-radius: 10px; background: #fff; color: var(--bad); font-weight: 800; white-space: nowrap; }
.agency-listing-danger button:hover { background: var(--bad); color: #fff; }
.agency-editor-guide { padding: 1.2rem; }
.agency-guide-heading span { color: var(--agency-accent); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agency-guide-heading h2 { margin: .25rem 0 0; color: var(--agency-ink); font: 800 1.15rem/1.1 "Manrope",sans-serif; letter-spacing: -.035em; }
.agency-editor-guide ol { display: grid; gap: .25rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: guide; }
.agency-editor-guide li { position: relative; padding: .75rem 0 .75rem 2.35rem; border-top: 1px solid #ebe9e2; counter-increment: guide; }
.agency-editor-guide li::before { content: counter(guide); position: absolute; top: .72rem; left: 0; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #e9eeeb; color: var(--agency-ink); font-size: .65rem; font-weight: 800; }
.agency-editor-guide li b,.agency-editor-guide li span { display: block; }
.agency-editor-guide li b { color: var(--agency-ink); font-size: .76rem; }
.agency-editor-guide li span { margin-top: .15rem; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.showcase-create-footer .field-error { margin: 0 auto 0 0; }
.showcase-organizer { padding: 1.15rem; background: #edf1f4; border: 1px solid #dbe2e8; border-radius: 14px; }
.showcase-organizer-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.showcase-organizer-head h2 { margin: 0; font: 800 1.45rem/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.showcase-organizer-head p { margin: .35rem 0 0; color: var(--muted); font-size: .86rem; }
.showcase-save-status { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; padding: .4rem .65rem; background: rgba(255,255,255,.72); border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--muted); font-size: .74rem; }
.showcase-save-status span { width: 7px; height: 7px; border-radius: 50%; background: #a8b2bd; }
.showcase-save-status[data-state="moving"] span, .showcase-save-status[data-state="saving"] span { background: #e5a225; box-shadow: 0 0 0 4px rgba(229,162,37,.12); }
.showcase-save-status[data-state="saved"] { color: var(--ok); }
.showcase-save-status[data-state="saved"] span { background: var(--ok); box-shadow: 0 0 0 4px rgba(22,130,93,.1); }
.showcase-save-status[data-state="error"] { color: var(--bad); }
.showcase-save-status[data-state="error"] span { background: var(--bad); }
.showcase-boards { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: start; }
.showcase-board { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.showcase-board > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--rule); }
.showcase-board > header > div { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.showcase-board-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 5px var(--mark-soft); }
.showcase-board-normal .showcase-board-dot { background: #64748b; box-shadow: 0 0 0 5px #eef2f6; }
.showcase-board h3 { margin: 0; font: 800 .92rem/1.2 "Manrope", sans-serif; }
.showcase-board header p { margin: .15rem 0 0; overflow: hidden; color: var(--muted); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.showcase-board header > strong { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .8rem; }
.showcase-board-tools { display: flex; align-items: center; gap: .45rem; }
.showcase-board-tools button { min-height: 30px; padding: .35rem .55rem; border: 1px solid var(--rule-strong); border-radius: 7px; background: var(--surface); color: var(--ink); font: 800 .68rem/1 "Manrope", sans-serif; }
.showcase-board-tools button:disabled { opacity: .45; }
.showcase-contact { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); }
.showcase-contact h2 { margin: .2rem 0 .35rem; font: 800 1.2rem/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.showcase-contact p { max-width: 62ch; margin: 0; color: var(--muted); font-size: .82rem; }
.showcase-contact form { display: flex; align-items: end; gap: .6rem; }
.showcase-contact .field { min-width: min(100%, 280px); margin: 0; }
.showcase-sort-card.is-ad .showcase-sort-image { background: #2a1020; }
.showcase-dropzone { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: .65rem; min-height: 160px; padding: .7rem; transition: background .18s ease, box-shadow .18s ease; }
.showcase-dropzone.is-over { background: #fff7f4; box-shadow: inset 0 0 0 2px rgba(232,93,63,.28); }
.showcase-drop-empty { display: grid; place-items: center; min-height: 130px; margin: 0; padding: 1rem; border: 1px dashed #c7d0d9; border-radius: 9px; color: var(--muted); font-size: .78rem; text-align: center; }
.showcase-dropzone:has(.showcase-sort-card) .showcase-drop-empty { display: none; }
.showcase-sort-card { position: relative; min-width: 0; overflow: hidden; background: white; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 2px 10px rgba(15,23,42,.04); cursor: grab; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.showcase-sort-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.1); }
.showcase-sort-card:active { cursor: grabbing; }
.showcase-sort-card.is-dragging { opacity: .35; transform: scale(.98); box-shadow: none; }
.showcase-drag-handle { position: absolute; top: .5rem; right: .5rem; z-index: 2; display: grid; grid-template-columns: repeat(2,3px); gap: 3px; width: 30px; height: 30px; place-content: center; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; background: rgba(17,25,35,.72); backdrop-filter: blur(8px); }
.showcase-drag-handle span { width: 3px; height: 3px; border-radius: 50%; background: white; }
.showcase-sort-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #e7ebef; }
.showcase-sort-image::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent,rgba(15,23,42,.3)); pointer-events: none; }
.showcase-sort-image img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.showcase-offline { position: absolute; left: .5rem; bottom: .5rem; z-index: 1; padding: .22rem .4rem; border-radius: 5px; background: var(--bad); color: white; font-size: .62rem; font-weight: 800; }
.showcase-sort-copy { display: grid; gap: .65rem; padding: .75rem; }
.showcase-sort-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.showcase-sort-title small { display: block; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.showcase-sort-title h4 { margin: .1rem 0 0; overflow: hidden; font: 800 1rem/1.15 "Manrope", sans-serif; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.showcase-category-chip { flex: none; padding: .18rem .4rem; border-radius: 5px; background: var(--mark-soft); color: var(--mark); font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.showcase-board-normal .showcase-category-chip { background: #eef2f6; color: #64748b; }
.showcase-sort-meta { display: flex; gap: .35rem; flex-wrap: wrap; color: var(--muted); font-size: .67rem; }
.showcase-sort-meta span { padding: .2rem .38rem; border-radius: 5px; background: var(--surface-2); }
.showcase-sort-actions { display: flex; align-items: center; gap: .4rem; padding-top: .55rem; border-top: 1px solid var(--rule); }
.showcase-sort-actions a, .showcase-sort-actions button { min-height: 28px; padding: .3rem .48rem; border: 0; background: transparent; color: var(--info); text-decoration: none; font-size: .7rem; font-weight: 800; }
.showcase-sort-actions form { margin-left: auto; }
.showcase-sort-actions button { color: var(--bad); }

.login-body { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(360px, 480px); padding: 0; background: var(--side); }
.login-body::before { content: "OTOMAT\\A CONTROL CENTER"; white-space: pre; display: grid; place-items: center; color: rgba(255,255,255,.08); font-family: "Manrope", sans-serif; font-size: clamp(3rem, 8vw, 8rem); font-weight: 800; line-height: .8; text-align: center; letter-spacing: -.07em; }
.login-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; width: 100%; background: var(--surface); padding: clamp(2rem, 6vw, 4rem); }
.login-card h1 { font-family: "Manrope", sans-serif; font-size: 2.5rem; font-weight: 800; letter-spacing: -.06em; }
.login-switch { margin-top: 1rem; color: var(--muted); font-size: .86rem; font-weight: 700; text-align: center; text-decoration: none; }
.login-switch:hover { color: var(--mark); }
.agency-login-body { background: #13211d; }
.agency-login-body::before { content: "AJANS\\A PANELİ"; color: rgba(225,245,237,.09); }
.field-error { color: var(--bad); margin: 0 0 .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .setting-grid { grid-template-columns: 1fr 1fr; }
  .setting-grid > :first-child { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .showcase-summary { grid-template-columns: repeat(3,minmax(90px,1fr)); }
  .showcase-publish-state { grid-column: 1 / -1; }
  .showcase-create-grid { grid-template-columns: 1fr 1fr; }
  .showcase-create-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; padding: .65rem .75rem; flex-direction: row; align-items: center; gap: .75rem; overflow-x: auto; }
  .brand { padding: 0; }
  .brand-text span, .logout { display: none; }
  .nav { flex-direction: row; margin-left: auto; }
  .nav a { min-width: 44px; justify-content: center; padding: .65rem; }
  .nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .nav a.active { box-shadow: inset 0 -3px 0 var(--mark); }
  .main { padding: 1rem; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .grid, .setting-grid { grid-template-columns: 1fr; }
  .setting-grid > :first-child { grid-column: auto; }
  .toprow, .actionbar { align-items: flex-start; flex-direction: column; }
  .showcase-heading-actions { width: 100%; }
  .showcase-boards { grid-template-columns: 1fr; }
  .showcase-organizer-head { align-items: flex-start; flex-direction: column; }
  .showcase-contact { align-items: stretch; flex-direction: column; }
  .showcase-contact form { align-items: stretch; flex-direction: column; }
  .agency-admin-layout, .agency-edit-form { grid-template-columns: 1fr; }
  .agency-create-card { position: static; }
  .agency-edit-actions { grid-column: auto; }
  .agency-app .shell { display: block; }
  .agency-app .side { position: fixed; z-index: 50; inset: auto .75rem .65rem; width: auto; height: 68px; display: flex; justify-content: center; padding: .35rem; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: 0 18px 44px rgba(15,35,29,.28); overflow: visible; }
  .agency-app .brand { display: none; }
  .agency-app .nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72px,1fr); gap: .25rem; width: min(330px,calc(100% - 58px)); margin: 0; }
  .agency-app .nav a { min-height: 58px; display: flex; flex-direction: column; gap: .2rem; padding: .4rem; border-radius: 13px; }
  .agency-app .nav a svg { width: 20px; height: 20px; }
  .agency-app .nav a span { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: inherit; font-size: .62rem; white-space: normal; }
  .agency-app .nav a.active { background: rgba(255,255,255,.1); box-shadow: none; }
  .agency-app .logout { display: block; margin: 0; }
  .agency-app .logout .linkish { width: 50px; height: 58px; display: grid; place-items: center; padding: .4rem; font-size: 0; }
  .agency-app .logout .linkish::after { content: "Çıkış"; color: #9fb6ad; font-size: .6rem; font-weight: 700; }
  .agency-app .status-dot { margin-bottom: -5px; }
  .agency-app .main { padding: .75rem .75rem 6rem; }
  .agency-app-page { padding-bottom: 1rem; }
  .agency-home-hero { min-height: 205px; align-items: flex-start; padding: 1.25rem; border-radius: 20px; }
  .agency-home-hero h1 { font-size: 3.2rem; }
  .agency-home-hero p { max-width: 15rem; font-size: .8rem; }
  .agency-home-hero > a { min-height: 46px; padding: .55rem; border-radius: 13px; }
  .agency-home-hero > a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .agency-kpi-strip { width: calc(100% - 1.25rem); margin-top: -21px; }
  .agency-kpi-strip > div { padding: .72rem .35rem; }
  .agency-kpi-strip strong { font-size: 1.2rem; }
  .agency-app-boards { grid-template-columns: 1fr; }
  .agency-app-dropzone { min-height: 120px; gap: .45rem; padding: .55rem; }
  .agency-app-board-vip .agency-app-dropzone { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .agency-app-board-normal .agency-app-dropzone { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .agency-app-card { display: block; min-height: 0; border-radius: 12px; }
  .agency-app-card-image { height: auto; aspect-ratio: 4/3; }
  .agency-app-card-copy { align-content: start; gap: .3rem; padding: .55rem; }
  .agency-app-drag { top: .35rem; right: .35rem; width: 34px; height: 34px; }
  .agency-app-card-copy h2 { padding-right: 0; font-size: .88rem; }
  .agency-app-card-copy p { font-size: .65rem; }
  .agency-app-card-copy .agency-app-phone { font-size: .66rem; letter-spacing: -.04em; }
  .agency-app-category { display: none; }
  .agency-app-edit { margin-top: .1rem; padding-top: .4rem; font-size: .68rem; }
  .agency-app-board-normal .agency-app-drag { width: 30px; height: 30px; border-radius: 9px; }
  .agency-app-board-normal .agency-app-card-copy { padding: .45rem; }
  .agency-app-board-normal .agency-app-card-copy small { font-size: .52rem; }
  .agency-app-board-normal .agency-app-card-copy h2 { font-size: .76rem; }
  .agency-app-board-normal .agency-app-meta { overflow: hidden; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
  .agency-app-board-normal .agency-app-card-copy .agency-app-phone { font-size: .55rem; }
  .agency-app-board-normal .agency-app-edit { font-size: .6rem; }
  .agency-app-empty { min-height: 95px; }
  .agency-owner-filter { margin-inline: -.3rem; }
  .agency-bulk-tools { grid-template-columns: 1fr; gap: .55rem; }
  .agency-bulk-actions { grid-template-columns: 1fr auto; }
  .agency-bulk-actions form:first-child { grid-template-columns: minmax(0,1fr) auto; }
  .agency-bulk-tools[data-active="true"] { position: fixed; z-index: 45; right: .75rem; bottom: 5.25rem; left: .75rem; margin: 0; border-color: #c4cec9; box-shadow: 0 18px 45px rgba(15,35,29,.24); }
  .agency-bulk-tools[data-active="true"] .agency-bulk-heading { justify-content: space-between; }
  .agency-card-select { top: .35rem; left: .35rem; }
  .agency-sub-layout { grid-template-columns: 1fr; }
  .agency-sub-create,.agency-sub-list { padding: 1rem; }
  .agency-editor-hero { grid-template-columns: auto minmax(0,1fr) auto; padding: .9rem; border-radius: 16px; }
  .agency-editor-title h1 { font-size: 1.65rem; }
  .agency-editor-title p { font-size: .7rem; }
  .agency-editor-layout { grid-template-columns: 1fr; }
  .agency-editor-guide { display: none; }
  .agency-current-media { position: static; order: -1; display: grid; grid-template-columns: 112px minmax(0,1fr); }
  .agency-current-heading { align-self: end; }
  .agency-current-cover { grid-row: 1/4; aspect-ratio: 3/4; }
  .agency-current-stats { align-self: start; }
  .agency-current-gallery { grid-column: 2; align-self: start; }
  .agency-listing-danger { align-items: stretch; flex-direction: column; }
  .agency-listing-danger button { width: 100%; }
  .agency-save-dock { position: sticky; z-index: 20; bottom: 5.25rem; }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: .8rem; }
  .metric strong { font-size: 1.35rem; }
  .tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .tabs a, .tabs button { text-align: center; }
  .table-toolbar, .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-group, .toolbar input[type="search"] { width: 100%; }
  .toolbar-group .btn, .toolbar-group .btn-ghost { flex: 1; }
  .sheet.responsive-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .responsive-table table, .responsive-table tbody { display: block; }
  .responsive-table thead { display: none; }
  .responsive-table tr { position: relative; display: grid; gap: .55rem; margin-bottom: .7rem; padding: .9rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
  .responsive-table td { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: .7rem; padding: 0; border: 0; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .responsive-table td:first-child:has(input[type="checkbox"]) { display: block; position: absolute; top: .9rem; right: .9rem; z-index: 2; }
  .responsive-table td:nth-child(2) { padding-right: 2rem; }
  .bulkbar { flex-direction: column; align-items: stretch; }
  .site-picker { grid-template-columns: 1fr; }
  .picker-tools, .picker-submit { align-items: flex-start; flex-direction: column; }
  .picker-actions { width: 100%; justify-content: space-between; }
  .copy-row { min-width: 15rem; }
  .agency-form-row { grid-template-columns: 1fr; gap: 0; }
  .agency-form-section { padding: 1rem; border-radius: 16px; }
  .agency-description-toolbar { align-items: stretch; flex-direction: column; gap: .4rem; }
  .agency-description-toolbar button { justify-content: center; min-height: 40px; }
  .agency-editor-hero { grid-template-columns: auto minmax(0,1fr); gap: .75rem; }
  .agency-editor-progress { grid-column: 2; justify-self: start; min-height: 30px; margin-top: -.25rem; padding: .35rem .55rem; }
  .agency-editor-title h1 { font-size: 1.5rem; }
  .agency-editor-title p { max-width: 34ch; }
  .agency-back { width: 42px; height: 42px; }
  .agency-segmented label > span { min-height: 84px; padding: .72rem; }
  .agency-upload-grid { grid-template-columns: 1fr; }
  .agency-upload { min-height: 78px; }
  .agency-vip-intro { align-items: flex-start; }
  .agency-vip-intro em { display: none; }
  .agency-vip-images { gap: .35rem; }
  .agency-vip-image-slot > div { display: grid; padding: .35rem; }
  .agency-vip-image-slot button { min-height: 28px; }
  .agency-vip-layouts label { grid-template-columns: 1fr; justify-items: center; padding: .4rem .2rem; text-align: center; }
  .agency-cover-text-editor { margin-inline: -.25rem; padding: .65rem; }
  .agency-cover-text-heading { align-items: flex-start; }
  .agency-cover-text-heading span { max-width: 24ch; }
  .agency-cover-canvas-wrap { margin-inline: -.15rem; border-radius: 9px; }
  .agency-cover-colors { grid-template-columns: 1fr 1fr; }
  .agency-border-width { grid-column: 1/-1; }
  .agency-cover-text-input input,.agency-cover-size button,.agency-cover-colors input[type="color"] { min-height: 46px; }
  .agency-bulk-actions { grid-template-columns: 1fr; }
  .agency-bulk-actions [data-bulk-form="delete"] button { width: 100%; }
  .agency-save-dock { padding: .6rem; }
  .agency-save-dock-main > span { display: none; }
  .agency-save-dock-main > div { width: 100%; }
  .agency-save-dock a { flex: .7; }
  .agency-save-dock button { flex: 1.6; }
  .showcase-form-row { grid-template-columns: 1fr; gap: 0; }
  .showcase-admin-grid { grid-template-columns: 1fr; }
  .showcase-summary { grid-template-columns: 1fr 1fr; }
  .showcase-summary > div { border-bottom: 1px solid rgba(255,255,255,.09); }
  .showcase-publish-state { grid-column: 1 / -1; }
  .showcase-create summary { align-items: flex-start; }
  .showcase-create-toggle { display: none; }
  .showcase-create-grid { grid-template-columns: 1fr; }
  .showcase-create-grid > :last-child { grid-column: auto; }
  .agency-listing { grid-template-columns: 88px minmax(0,1fr); }
  .agency-listing img { width: 88px; height: 116px; }
  .agency-clicks { grid-column: 2; text-align: left; }
  .agency-model-grid { grid-template-columns: 1fr; }
  .agency-admin-row, .danger-zone { align-items: stretch; flex-direction: column; }
  .agency-activity-filters { grid-template-columns: 1fr; }
  .agency-change-values { grid-template-columns: 1fr; }
  .agency-change-values > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .agency-activity-item header, .agency-activity-item footer { flex-direction: column; }
  .agency-activity-item footer details { max-width: 100%; text-align: left; }
  .showcase-organizer { padding: .75rem; }
  .showcase-dropzone { grid-template-columns: 1fr; }
  .showcase-sort-card { display: grid; grid-template-columns: 108px minmax(0,1fr); }
  .showcase-sort-image { height: 100%; min-height: 132px; aspect-ratio: auto; }
  .showcase-drag-handle { top: .4rem; left: .4rem; right: auto; }
  .preview { min-height: 520px; }
  .login-body { display: grid; grid-template-columns: 1fr; background: var(--surface); }
  .login-body::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ───────── İlan profil gücü ───────── */
.agency-ring { --c: #1f8f5f; position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e5e2d9 0); }
.agency-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.agency-ring b { position: relative; color: var(--agency-ink); font: 800 .6rem/1 "Manrope",sans-serif; }
.agency-ring.is-mid { --c: #d98a00; }
.agency-ring.is-low { --c: #d1432f; }
.agency-ring-lg { width: 64px; height: 64px; }
.agency-ring-lg::before { inset: 6px; }
.agency-ring-lg b { font-size: 1.15rem; }

.agency-quality-bar { display: flex; align-items: center; gap: .85rem; margin: 0 0 1rem; padding: .75rem .9rem; border: 1px solid rgba(221,217,205,.9); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 8px 22px rgba(24,55,47,.05); }
.agency-quality-bar .agency-ring { width: 42px; height: 42px; }
.agency-quality-bar .agency-ring b { font-size: .8rem; }
.agency-quality-bar > div { min-width: 0; flex: 1; }
.agency-quality-bar strong { display: block; color: var(--agency-ink); font: 800 .88rem/1.2 "Manrope",sans-serif; letter-spacing: -.02em; }
.agency-quality-bar > div > span { display: block; margin-top: .12rem; color: var(--muted); font-size: .72rem; }
.agency-quality-bar button { flex: none; padding: .55rem .8rem; border: 1px solid var(--agency-line); border-radius: 999px; background: #fff; color: var(--agency-ink); font-size: .72rem; font-weight: 800; cursor: pointer; }
.agency-quality-bar button[aria-pressed="true"] { border-color: var(--agency-accent); background: #fff4f0; color: var(--agency-accent); }
.is-quality-filtering .agency-app-card[data-warnings="0"] { display: none; }

.agency-score { grid-column: 1/-1; display: inline-flex; align-items: center; gap: .45rem; width: fit-content; max-width: 100%; padding: .2rem .55rem .2rem .25rem; border-radius: 999px; background: #f1f6f3; color: #2b6a50; font-size: .68rem; font-weight: 800; text-decoration: none; }
.agency-score.is-mid { background: #fff6e3; color: #9a6200; }
.agency-score.is-low { background: #fdeceb; color: #b3321f; }
.agency-score .agency-ring { width: 24px; height: 24px; }
.agency-score .agency-ring::before { inset: 2.5px; }
.agency-score .agency-ring b { font-size: .52rem; }

.agency-quality { margin: 0 0 1rem; padding: clamp(1rem,3vw,1.4rem); border: 1px solid rgba(221,217,205,.9); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 12px 34px rgba(24,55,47,.05); }
.agency-quality header { display: flex; align-items: center; gap: 1rem; }
.agency-quality header small { display: block; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agency-quality header h2 { margin: .1rem 0 0; color: var(--agency-ink); font: 800 1.2rem/1.15 "Manrope",sans-serif; letter-spacing: -.035em; }
.agency-quality header p { margin: .2rem 0 0; color: var(--muted); font-size: .75rem; }
.agency-quality ul { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.agency-quality li { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid #ece9e2; border-radius: 13px; background: #fbfaf7; }
.agency-quality li > i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #9aa5a0; }
.agency-quality li.is-critical { border-color: #f1c9c3; background: #fff6f5; }
.agency-quality li.is-critical > i { background: #d1432f; }
.agency-quality li.is-suggest > i { background: #d98a00; }
.agency-quality li > div { min-width: 0; flex: 1; }
.agency-quality li b { display: block; color: var(--agency-ink); font-size: .8rem; }
.agency-quality li b em { margin-left: .3rem; padding: .08rem .35rem; border-radius: 5px; background: #eceae3; color: #6b766f; font-size: .58rem; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.agency-quality li.is-critical b em { background: #fbdcd8; color: #b3321f; }
.agency-quality li.is-suggest b em { background: #fdebc8; color: #8a5800; }
.agency-quality li p { margin: .15rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.agency-quality li a { flex: none; padding: .45rem .75rem; border-radius: 9px; background: var(--agency-ink); color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }
@media (max-width: 560px) {
  .agency-quality-bar { flex-wrap: wrap; }
  .agency-quality-bar button { width: 100%; }
  .agency-quality li { align-items: flex-start; }
}

/* Yorum ve tepki yönetimi */
.comment-overview { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(220px, 2fr); gap: .75rem; margin-bottom: 1rem; }
.comment-stat span { display: block; color: var(--muted); font: 700 .72rem/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .06em; text-transform: uppercase; }
.comment-stat strong { display: block; margin-top: .35rem; font: 800 1.8rem/1 "Manrope", sans-serif; }
.comment-reactions p { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: .5rem 0 0; font-size: 1.05rem; }
.comment-reactions b { font-weight: 700; }
.comment-reactions em { color: var(--muted); font-size: .85rem; font-style: normal; }
.comment-settings { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.comment-toggle { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; }
.comment-toggle input { width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.comment-toggle small { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.comment-settings + .agency-activity-filters { grid-template-columns: minmax(160px, 240px) minmax(160px, 240px) auto auto; }
.comment-list { display: grid; gap: .75rem; }
.comment-item header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.comment-item h2 { margin: .35rem 0 0; font: 800 1.05rem/1.2 "Manrope", sans-serif; }
.comment-item header p { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }
.comment-item time { color: var(--muted); font: 700 .8rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; white-space: nowrap; }
.comment-state { display: inline-block; padding: .2rem .5rem; border-radius: 999px; background: #e6f4ea; color: #1b6b3a; font: 800 .68rem/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; text-transform: uppercase; }
.comment-item.is-pending { border-color: #f1d9a6; background: #fffaf0; }
.comment-item.is-pending .comment-state { background: #fdecc8; color: #8a5a00; }
.comment-item.is-hidden { opacity: .72; }
.comment-item.is-hidden .comment-state { background: #ececec; color: #555; }
.comment-body { margin: .75rem 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
.comment-item footer { display: flex; flex-wrap: wrap; gap: .5rem; }
.comment-delete { color: var(--bad); border-color: #e9b7be; }
@media (max-width: 760px) {
  .comment-overview { grid-template-columns: 1fr 1fr; }
  .comment-reactions { grid-column: 1 / -1; }
  .comment-settings { flex-direction: column; align-items: stretch; }
  .comment-settings + .agency-activity-filters { grid-template-columns: 1fr; }
}

/* Ajans güvenlik / PIN */
.agency-login-note { margin: .1rem 0 1rem; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.agency-security-flash { margin: 1rem 0 0; padding: .75rem 1rem; border: 1px solid #b9dccb; border-radius: 12px; background: #eaf6ef; color: #1e6a47; font-size: .85rem; font-weight: 700; }
.agency-security-lead { margin: -.4rem 0 1rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.agency-security-lead small { display: block; margin-top: .3rem; font-size: .72rem; }
.agency-security-pin form { display: grid; gap: .75rem; }
.agency-security-remove { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--agency-line); }
.agency-security-remove summary { color: var(--bad); font-size: .78rem; font-weight: 800; cursor: pointer; }
.agency-security-remove form { margin-top: .75rem; }
.agency-sub-list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.agency-sub-list-heading form { margin: 0; }
.agency-sub-list-heading .btn { padding: .5rem .8rem; font-size: .75rem; white-space: nowrap; }
.agency-session-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.agency-session { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .85rem; border: 1px solid var(--agency-line); border-radius: 14px; background: #fff; }
.agency-session.is-current { border-color: #b9dccb; background: #f4fbf7; }
.agency-session-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edf3f0; color: var(--agency-ink); }
.agency-session-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agency-session-body { min-width: 0; }
.agency-session-body b, .agency-session-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agency-session-body small { margin-top: .15rem; color: var(--muted); font-size: .72rem; }
.agency-session-body small em { color: #1e6a47; font-style: normal; font-weight: 800; }
.agency-session form { margin: 0; }
.agency-security-note { margin: 1rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.agency-pin-input { letter-spacing: .5em; font-size: 1.6rem; font-weight: 800; text-align: center; }
.agency-pin-logout { align-self: center; border: 0; background: none; cursor: pointer; font-family: inherit; }
@media (max-width: 900px) { .agency-security-layout { grid-template-columns: 1fr; } }

/* ===== Ajans yönetimi: dizin, detay, hareket akışı ===== */
.ag-tabs { display: inline-flex; padding: .22rem; gap: .15rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.ag-tabs a { padding: .5rem .95rem; border-radius: 8px; color: var(--muted); font-size: .84rem; font-weight: 800; text-decoration: none; transition: background .15s, color .15s; }
.ag-tabs a:hover { color: var(--ink); }
.ag-tabs a.is-active { background: var(--side); color: #fff; }

.ag-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.ag-metrics-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ag-metric { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.05rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,.025); }
.ag-metric > span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ag-metric strong { font: 800 1.9rem/1.1 "Manrope", sans-serif; letter-spacing: -.045em; }
.ag-metric strong em { color: var(--rule-strong); font-style: normal; font-size: 1.2rem; letter-spacing: 0; }
.ag-metric strong.is-ok { color: var(--ok); }
.ag-metric strong.ag-small { font-size: 1.2rem; letter-spacing: -.02em; padding: .35rem 0; }
.ag-metric small { color: var(--muted); font-size: .76rem; }
.ag-bar { height: 6px; margin: .45rem 0 .25rem; border-radius: 999px; background: #edf0f3; overflow: hidden; }
.ag-bar i { display: block; height: 100%; border-radius: inherit; background: var(--mark); }
.ag-bar.is-info i { background: var(--info); }

.ag-filters { display: grid; grid-template-columns: repeat(3, minmax(160px, 260px)); gap: .7rem; align-items: end; margin-bottom: .6rem; padding: .85rem .85rem .25rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.ag-filters .field { margin-bottom: .6rem; }
.ag-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 1rem; }
.ag-cats a { padding: .42rem .8rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: #46525f; font-size: .8rem; font-weight: 700; text-decoration: none; }
.ag-cats a:hover { border-color: var(--ink); }
.ag-cats a.is-active { border-color: var(--mark); background: var(--mark); color: #fff; }
.ag-scope { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .75rem 1rem; border: 1px solid #f3cfc6; border-radius: var(--radius); background: var(--mark-soft); font-size: .88rem; }
.ag-scope strong { font-family: "Manrope", sans-serif; }
.ag-scope span { color: var(--muted); }

.ag-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.ag-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px; background: #eef2f5; color: #52606e; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.ag-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.ag-chip.is-ok { background: var(--ok-soft); color: var(--ok); }
.ag-chip.is-info { background: #e8f0ff; color: var(--info); }
.ag-chip.is-bad { background: var(--bad-soft); color: var(--bad); }
.ag-chip.is-pwa { background: #fff0ec; color: #c8452b; }
.ag-chip.is-muted { background: #f1f4f6; color: #7a8693; }

.ag-day { margin-bottom: 1.4rem; }
.ag-day-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: .6rem; padding: .55rem 0; background: linear-gradient(var(--bg) 78%, transparent); }
.ag-day-head h3 { margin: 0; font: 800 1.05rem/1 "Manrope", sans-serif; letter-spacing: -.02em; }
.ag-day-head span { color: var(--muted); font-size: .8rem; }
.ag-day-head b { margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ag-feed { position: relative; display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ag-feed::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 19px; width: 2px; background: var(--rule); }
.ag-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .85rem; align-items: start; padding: .15rem 0; }
.ag-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--bg); border-radius: 50%; background: var(--tone-soft, #eef2f5); color: var(--tone, #6b7583); }
.ag-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ag-item.tone-ok { --tone: var(--ok); --tone-soft: var(--ok-soft); }
.ag-item.tone-mark { --tone: var(--mark); --tone-soft: var(--mark-soft); }
.ag-item.tone-bad { --tone: var(--bad); --tone-soft: var(--bad-soft); }
.ag-item.tone-wait { --tone: var(--wait); --tone-soft: var(--wait-soft); }
.ag-item.tone-info { --tone: var(--info); --tone-soft: #e8f0ff; }
.ag-body { min-width: 0; padding: .7rem .9rem; border: 1px solid var(--rule); border-left: 3px solid var(--tone, var(--rule-strong)); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.ag-line { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.ag-who { font: 800 .95rem/1.2 "Manrope", sans-serif; text-decoration: none; }
a.ag-who:hover { color: var(--mark); }
.ag-tag { padding: .12rem .45rem; border-radius: 6px; background: #f1f4f6; color: #5d6a77; font-size: .68rem; font-weight: 800; }
.ag-what { color: var(--tone, var(--ink)); font-weight: 700; font-size: .9rem; }
.ag-model { padding: .1rem .5rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--rule); font-size: .84rem; }
.ag-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin-top: .45rem; color: var(--muted); font-size: .76rem; }
.ag-meta time { font: 700 .76rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #44505d; }
.ag-ip { font: 600 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #8a95a1; }
.ag-detail { margin: .5rem 0 0; padding: .45rem .6rem; border-radius: 8px; background: var(--surface-2); color: #46525f; font-size: .82rem; }
.ag-body .agency-change-list { margin-top: .6rem; }

.ag-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ag-hero-main { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.ag-hero-sub { margin: .55rem 0 0; color: var(--muted); font-size: .84rem; }
.ag-hero-sub strong { color: var(--ink); }
.ag-avatar { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--side); color: #fff; font: 800 1.35rem/1 "Manrope", sans-serif; }
.ag-avatar.is-sm { width: 36px; height: 36px; border-radius: 10px; background: #e9eef1; color: var(--ink); font-size: .95rem; }
.ag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; align-items: start; }
.ag-wide { grid-column: 1 / -1; }
.ag-panel .card-head { margin-bottom: .6rem; }
.ag-panel h2 { margin: 0; }
.ag-facts { display: grid; margin: 0; }
.ag-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: .75rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--rule); font-size: .88rem; }
.ag-facts dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ag-facts dd { margin: 0; }
.ag-sessions { display: grid; gap: .35rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.ag-sessions li { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem .7rem; border-radius: 8px; background: var(--surface-2); font-size: .82rem; }
.ag-sessions span { color: var(--muted); }
.ag-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.ag-actions form { margin: 0; }
.ag-actions .danger { border-color: #e9b7be; color: var(--bad); }
.ag-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .4rem; align-items: end; height: 170px; padding-top: 1rem; }
.ag-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: .3rem; }
.ag-col b { color: var(--muted); font-size: .7rem; min-height: 1em; }
.ag-col i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: #e3e8ed; }
.ag-col.is-today i { background: var(--mark); }
.ag-col:hover i { background: var(--side-2); }
.ag-col span { color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: capitalize; }
.ag-team { margin-bottom: 1rem; }
.ag-team-list, .ag-subs { display: grid; gap: .5rem; }
.ag-team-row, .ag-sub { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; padding: .65rem .75rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.ag-team-row:hover, .ag-sub:hover { border-color: var(--mark); transform: translateY(-1px); }
.ag-team-name, .ag-sub-name { display: block; min-width: 0; }
.ag-team-row .ag-chips, .ag-sub .ag-chips { grid-column: 1 / -1; padding-left: calc(36px + .8rem); }
.ag-directory > *, .ag-account, .ag-account-info { min-width: 0; }
.ag-team-name b, .ag-sub-name b { display: block; }
.ag-team-name small, .ag-sub-name small { display: block; color: var(--muted); font-size: .76rem; }
.ag-recent { margin-top: 1.4rem; }

.ag-directory { display: grid; gap: .85rem; }
.ag-account { padding: 1rem; }
.ag-account-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; }
.ag-account-info h2 { margin: 0; font: 800 1.1rem/1.2 "Manrope", sans-serif; }
.ag-account-info h2 a { text-decoration: none; }
.ag-account-info h2 a:hover { color: var(--mark); }
.ag-account-info p { margin: .15rem 0 0; color: var(--muted); font-size: .84rem; }
.ag-account-info small { display: block; margin: .3rem 0 .6rem; color: var(--muted); font-size: .78rem; }
.ag-account-actions { display: flex; gap: .45rem; }
.ag-subs { margin-top: .9rem; padding: .85rem 0 0 1.1rem; border-top: 1px dashed var(--rule-strong); border-left: 3px solid #f3cfc6; margin-left: .35rem; }
.ag-subs-title { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

@media (max-width: 1100px) {
  .ag-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-metrics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ag-metrics, .ag-metrics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-filters { grid-template-columns: 1fr; }
  .ag-hero, .ag-scope { flex-direction: column; align-items: stretch; }
  .ag-account-main { grid-template-columns: auto minmax(0, 1fr); }
  .ag-account-actions { grid-column: 1 / -1; }
  .ag-account-actions .btn-ghost { flex: 1; }
  .ag-team-row .ag-chips, .ag-sub .ag-chips { padding-left: 0; }
  .ag-facts > div { grid-template-columns: 1fr; gap: .2rem; }
  .ag-item { grid-template-columns: 32px minmax(0, 1fr); gap: .6rem; }
  .ag-icon { width: 32px; height: 32px; }
  .ag-feed::before { left: 15px; }
}

/* ===== Düello yarışması (yönetim) ===== */
.duel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; align-items: start; }
.duel-board, .duel-last, .duel-excluded { min-width: 0; }
.duel-empty { margin: 0; color: var(--muted); font-size: .88rem; }
.duel-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.duel-table th { padding: .45rem .4rem; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.duel-table td { padding: .6rem .4rem; border-top: 1px solid var(--rule); vertical-align: middle; }
.duel-table td b { display: block; }
.duel-table td small { display: block; color: var(--muted); font-size: .72rem; }
.duel-table tr.is-weak { opacity: .6; }
.duel-rank { color: var(--mark); font: 800 1rem/1 "Manrope", sans-serif; }
.duel-table form { margin: 0; }
.duel-link { padding: 0; border: 0; background: none; color: var(--bad); font-size: .74rem; font-weight: 800; }
.duel-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.duel-podium li { display: grid; gap: .1rem; padding: .75rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface-2); }
.duel-podium li span { color: var(--mark); font: 800 1.3rem/1 "Manrope", sans-serif; }
.duel-podium li small { color: var(--muted); }
.duel-last, .duel-excluded { margin-bottom: 1rem; }
.duel-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.duel-chips form { margin: 0; }
.duel-chips .ag-chip { border: 0; cursor: pointer; }
@media (max-width: 1280px) { .duel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .duel-grid { grid-template-columns: 1fr; } }
