/* Brand35 Paneli — arayüz. Renkler Brand35 logosundan; grafik renkleri dataviz referans paletinden (doğrulanmış). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* Brand35 Portal paleti (Murat, 11.11): #06141B #11212D #253745 #4A5C6A #9BA8AB #CCD0CF. Turuncu yalnızca logo işaretinde. */
  color-scheme: light;
  --p0: #06141B; --p1: #11212D; --p2: #253745; --p3: #4A5C6A; --p4: #9BA8AB; --p5: #CCD0CF;
  --logo: #E65238;
  --brand: #253745; --brand-deep: #11212D;
  --bg: #E9ECEB; --surface: #FFFFFF; --surface-2: #F3F5F4; --line: rgba(6,20,27,.09); --line-2: rgba(6,20,27,.17);
  --ink: #06141B; --ink-2: #253745; --muted: #4A5C6A;
  --good: #11744a; --bad: #b42318; --warn-bg: #FBF1DE; --warn-ink: #6b4a06; --info-bg: #E6ECF0; --info-ink: #253745;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --grid: #e4e7e6; --chart-surface: #FFFFFF;
  --side-bg: #06141B; --side-ink: #9BA8AB; --side-ink-strong: #E6E9E8; --side-active: #253745; --side-line: rgba(204,208,207,.10);
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(6,20,27,.05), 0 8px 24px rgba(6,20,27,.05);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #9BA8AB; --brand-deep: #4A5C6A;
    --bg: #06141B; --surface: #11212D; --surface-2: #182B39; --line: rgba(204,208,207,.09); --line-2: rgba(204,208,207,.18);
    --ink: #E6E9E8; --ink-2: #CCD0CF; --muted: #9BA8AB;
    --good: #4ac285; --bad: #f2867d; --warn-bg: #33290f; --warn-ink: #f0d08e; --info-bg: #1c3040; --info-ink: #CCD0CF;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --grid: #22333f; --chart-surface: #11212D;
    --side-bg: #040d12; --side-active: #253745;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.1rem; font-weight: 700; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* Yerleşim */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--logo); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.logo b { font-family: var(--font-head); font-size: 15px; letter-spacing: -0.01em; }
.logo small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 550; min-height: 40px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--ink); }
.nav a[aria-current="page"] svg { color: var(--brand); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.nav .soon { margin-left: auto; font-size: 11px; color: var(--muted); }
.side-foot { margin-top: auto; font-size: 13px; color: var(--muted); padding: 0 8px; }
.side-foot form { display: inline; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.top h1 { font-size: 1.35rem; margin-right: auto; }
.content { padding: 24px 28px 56px; max-width: 1320px; }
.top .menu-btn { display: none; }

/* Denetimler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: #a92f19; border-color: #a92f19; }
.btn-sm { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.btn-danger { color: var(--bad); }
select, input[type=text], input[type=email], input[type=password], input[type=number], input[type=month], textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; min-height: 42px; width: 100%; }
textarea { min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg a { padding: 5px 12px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 32px; display: inline-flex; align-items: center; }
.seg a[aria-current="true"] { background: var(--ink); color: var(--surface); }
.acc-switch select { min-height: 38px; padding: 6px 10px; width: auto; border-radius: 999px; font-weight: 600; }

/* Kartlar */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: 3fr 2fr; }
.g2e { grid-template-columns: 1fr 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.card h2 { margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.card-head { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }

.tile .label { color: var(--ink-2); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tile .value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.tile .value small { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.tile .delta { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 11px; color: var(--muted); cursor: help; background: none; padding: 0; font-weight: 700; }
.info .tip { display: none; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: 260px; background: var(--ink); color: var(--surface); font-size: 12.5px; font-weight: 500; line-height: 1.45; padding: 10px 12px; border-radius: 10px; z-index: 20; text-align: left; }
.info:hover .tip, .info:focus .tip { display: block; }

/* Bant ve uyarılar */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.banner.sample { background: var(--info-bg); color: var(--info-ink); }
.banner.warn { background: var(--warn-bg); color: var(--warn-ink); }
.banner.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--ink); }
.banner.err { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--ink); }
.banner b { font-weight: 700; }
.banner a { font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.ornek { background: var(--info-bg); color: var(--info-ink); border-color: transparent; }
.pill.ok::before, .pill.hata::before, .pill.yeni::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.ok::before { background: var(--good); }
.pill.hata::before { background: var(--bad); }

/* Tablolar */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: none; }
tbody tr:hover { background: var(--surface-2); }
tr.total td { font-weight: 700; border-top: 1px solid var(--line-2); border-bottom: none; }
td.neg { color: var(--ink-2); }

/* Şelale: net satıştan net kâra */
.fall { display: grid; grid-template-columns: minmax(130px, 1.2fr) 2fr auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.fall .bar { height: 14px; position: relative; }
.fall .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--series-1); }
.fall .bar i.minus { background: color-mix(in srgb, var(--ink-2) 35%, transparent); }
.fall .bar i.result { background: var(--series-1); }
.fall .name { color: var(--ink-2); }
.fall .name.strong, .fall .val.strong { color: var(--ink); font-weight: 700; }
.fall .val { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* Kanal çubukları */
.hbars { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: center; font-size: 14px; }
.hbars .track { height: 14px; background: var(--surface-2); border-radius: 4px; position: relative; }
.hbars .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--series-1); border-radius: 0 4px 4px 0; }

/* Grafik */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .s1 { stroke: var(--series-1); }
.chart .s2 { stroke: var(--series-2); }
.chart .area1 { fill: var(--series-1); opacity: .1; }
.chart .dot { stroke: var(--chart-surface); stroke-width: 2; }
.chart .endlabel { fill: var(--ink-2); font-size: 12px; font-weight: 650; font-family: var(--font); }
.chart .cross { stroke: var(--line-2); stroke-width: 1; }
.chart .tt { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, -110%); display: none; z-index: 10; }
.chart .tt i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--c); }
details.table-view { margin-top: 10px; font-size: 13px; }
details.table-view summary { cursor: pointer; color: var(--muted); font-weight: 600; }

/* Giriş */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 400px; padding: 28px; }
.auth h1 { font-size: 1.5rem; margin: 18px 0 4px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.platform-fields[hidden] { display: none; }
code { font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .g2e { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 30; transform: translateX(-102%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); height: 100%; }
  .side.open { transform: none; }
  .top .menu-btn { display: inline-flex; }
  .seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .seg a { white-space: nowrap; }
  .top { padding: 12px 16px; }
  .content { padding: 16px 16px 48px; }
  .fall { grid-template-columns: 1fr auto; }
  .fall .bar { display: none; }
}
@media (max-width: 480px) { .g4 { grid-template-columns: 1fr; } .tile .value { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Aylık rapor (ekranda A4 benzeri, yazdırınca tek renk dostu) */
body.report { background: var(--bg); }
.report-bar { position: sticky; top: 0; display: flex; gap: 10px; justify-content: center; padding: 10px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 5; }
.report-page { max-width: 900px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.report-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 18px; }
.report-head h1 { font-size: 1.6rem; margin: 4px 0; }
.report-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.report-tiles > div { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.report-tiles .label { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.report-tiles .value { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.report-tiles .delta { font-size: 11.5px; font-weight: 600; color: var(--muted); display: block; }
.report-tiles .delta.up { color: var(--good); } .report-tiles .delta.down { color: var(--bad); }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 22px; }
.report-page h2 { font-size: 1rem; margin-bottom: 8px; }
.report-page table { font-size: 13px; }
.report-page th, .report-page td { padding: 5px 6px; }
.report-notes { font-size: 13px; padding-left: 18px; color: var(--ink-2); }
.report-foot { border-top: 1px solid var(--line-2); padding-top: 12px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 700px) { .report-page { padding: 20px; margin: 0; border-radius: 0; } .report-tiles, .report-cols { grid-template-columns: 1fr 1fr; } .report-cols { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4; margin: 12mm; }
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --muted: #555; --line: #ddd; --line-2: #bbb; }
  .no-print, .side, .top { display: none !important; }
  body, body.report { background: #fff; }
  .report-page { border: 0; margin: 0; padding: 0; max-width: none; }
  .banner { border: 1px solid #999; }
  .logo-mark, .delta, .pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-cols, .report-tiles > div, tr { break-inside: avoid; }
}
td code { word-break: break-word; white-space: normal; }
.qr svg { width: 100%; height: auto; display: block; }
.kanal td:first-child { white-space: nowrap; }
@media (max-width: 440px) { .report-tiles { grid-template-columns: 1fr; } .report-head { flex-direction: column; } .report-page table { font-size: 12px; } }
/* Pazaryerleri ekranı */
.pz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.pz-card .pz-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.pz-card .pz-head b { font-size: 15px; }
.pz-card .label { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pz-card .pz-big { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 2px 0 10px; }
.pz-card .pz-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; font-size: 13px; }
.pz-card .pz-mini dt { color: var(--muted); font-weight: 600; }
.pz-card .pz-mini dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.pz-card.total { background: var(--surface-2); }
.pz-card.paused { opacity: .7; }
.pz-group { margin-top: 14px; }
.pz-group > summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); list-style-position: inside; }

.kanal .rate { font-size: 12px; margin-left: 6px; font-weight: 500; }
.kanal tr.muted td { color: var(--muted); }
/* Veri tazeliği: tek satır özet, tıklayınca bağlantı bağlantı ayrıntı */
.fresh { padding: 8px 28px 0; font-size: 12.5px; }
.fresh > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); padding: 2px 0; }
.fresh > summary::-webkit-details-marker { display: none; }
.fresh > summary::after { content: "ayrıntı"; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.fresh[open] > summary::after { content: "gizle"; }
.fresh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.fresh-dot.warn { background: #d9a400; }
.fresh-dot.bad { background: var(--bad); }
.fresh-list { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 6px 0 2px; }
.fresh-item { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.fresh-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.fresh-item.ok::before { background: var(--good); }
.fresh-item.warn::before { background: #d9a400; }
.fresh-item.bad::before { background: var(--bad); }
.fresh-item:hover b { text-decoration: underline; }
.kanal td a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
/* */
.kanal td:first-child { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) { .pz-group col:first-child { width: 52% !important; } .kanal .rate { display: block; margin: 0; } }

/* 0.16: düzen ve okunabilirlik */
.nav-cap { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; }
.nav-cap:first-child { padding-top: 2px; }
.banner.slim { padding: 7px 14px; font-size: 13px; margin-bottom: 12px; }
.banner.notes { padding: 10px 16px; }
.banner.notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.banner.notes li { padding-left: 14px; position: relative; }
.banner.notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.tile .extra { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.pill.dogrulanmadi { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.pz-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pz-card.total { background: var(--surface); border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--brand); }
.pz-card.ads .pz-big { color: var(--ink-2); }
.track { height: 12px; background: var(--surface-2); border-radius: 4px; position: relative; min-width: 60px; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--series-1); border-radius: 0 4px 4px 0; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary > span:first-child { margin-right: auto; }
details.fold[open] > summary { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
details.fold[open] .fold-btn { display: none; }
.meter { width: 140px; height: 8px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; border: 1px solid var(--line); }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--good); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.steps li > * { display: block; }
.steps .help { margin-top: 3px; }
.group-cap { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 0; padding-bottom: 6px; }
.conn { border-top: 1px solid var(--line); padding: 14px 0; }
.note-unverified { font-size: 13px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
input[type=file] { font: inherit; font-size: 13px; width: 100%; padding: 8px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); }
tr[hidden] { display: none; }
@media (max-width: 900px) { .fresh { padding: 8px 16px 0; } }
@media (max-width: 820px) { .meter { display: none; } table { font-size: 13px; } th, td { padding: 8px 8px; } }
.kanal th.num { white-space: normal; vertical-align: bottom; line-height: 1.25; }
.kanal.dense .rate { display: block; margin: 0; }
.conn-meta { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.conn-err { margin: 6px 0 0; font-size: 13px; color: var(--bad); overflow-wrap: anywhere; }
.conn .row { row-gap: 8px; }
#urun-tablo td:first-child { min-width: 150px; }

/* 0.17: içerik takvimi ve onay */
input[type=date], input[type=time] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; min-height: 42px; width: 100%; }
textarea.prose { font-family: var(--font); font-size: 14px; min-height: 96px; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.nav .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-deep); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
label.check { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--brand-deep); }
/* durum renkleri: tek başına renge güvenilmez, her yerde durum adı da yazılı */
.st-taslak { --st: var(--muted); }
.st-onay_bekliyor { --st: #c98a00; }
.st-revizyon { --st: var(--bad); }
.st-onaylandi { --st: var(--good); }
.st-yayinlandi { --st: var(--series-1); }
.pill[class*="st-"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st); }
.cal-card { padding: 12px; }
.cal { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.cal-head > div { background: var(--surface-2); font-size: 12px; font-weight: 650; color: var(--muted); padding: 6px 8px; }
.cal-day { background: var(--surface); min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.out { background: var(--surface-2); }
.cal-day.out .cal-num { opacity: .45; }
.cal-day.today .cal-num { background: var(--brand-deep); color: #fff; }
.cal-num { font-size: 12px; font-weight: 700; color: var(--ink-2); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cal-item { display: block; font-size: 12px; line-height: 1.3; padding: 4px 6px 4px 8px; border-radius: 6px; background: var(--surface-2); border-left: 3px solid var(--st); text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item:hover { background: color-mix(in srgb, var(--st) 14%, var(--surface)); }
.cal-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-legend { margin: 10px 4px 0; }
.cal-legend span::before { background: var(--st); height: 8px; width: 8px; border-radius: 50%; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.media figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.media img, .media video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #111; }
.media-doc { display: grid; place-items: center; min-height: 160px; font-weight: 700; text-align: center; padding: 16px; }
.media figcaption { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); padding: 8px 10px; }
.media figcaption span { margin-right: auto; overflow-wrap: anywhere; }
.media figcaption form { display: inline; }
.caption { font-size: 14.5px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.thread li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.thread li.agency { border-left: 3px solid var(--brand); }
.thread li.client { border-left: 3px solid var(--series-1); }
.thread li.ev { background: var(--surface-2); border-style: dashed; }
.thread-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.thread-body { overflow-wrap: anywhere; }
.thread li.ev .thread-body { margin-top: 6px; }
@media (max-width: 760px) {
  .cal-card { display: none; }
}

/* 0.18: dijital performans raporu */
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3 { grid-template-columns: 1fr; } }
.print-only { display: none; }
.chart-wrap { margin: 4px 0 14px; }
.report-notes-card { box-shadow: inset 3px 0 0 var(--brand); }
@media print {
  .print-only { display: flex; }
  .content { padding: 0; max-width: none; }
  .shell { display: block; }
  .card { break-inside: avoid; border-color: #ccc; }
  .info { display: none; }
  #notlar, .fresh { display: none !important; }
}

/* 0.19: Brand35 Portal görünümü (yeni palet) */
.side { background: var(--side-bg); border-right: 0; color: var(--side-ink); }
.side .logo b { color: var(--side-ink-strong); }
.side .logo small, .side-foot { color: var(--side-ink); }
.side-foot a, .side-foot button { color: var(--side-ink-strong) !important; }
.nav-cap { color: #6f8089; }
.nav a { color: var(--side-ink); }
.nav a:hover { background: rgba(204,208,207,.06); color: var(--side-ink-strong); }
.nav a[aria-current="page"] { background: var(--side-active); color: #fff; }
.nav a[aria-current="page"] svg { color: #CCD0CF; }
.nav .sep { background: var(--side-line); }
.nav .badge { background: var(--logo); }
.acc-switch select { background: var(--surface); }
.top { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); }
.card { box-shadow: var(--shadow); }
.btn-primary { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: var(--p0); border-color: var(--p0); }
@media (prefers-color-scheme: dark) { .btn-primary { background: #CCD0CF; border-color: #CCD0CF; color: #06141B; } .btn-primary:hover { background: #fff; border-color: #fff; } }
.seg a[aria-current="true"] { background: var(--p2); color: #fff; }
.cal-day.today .cal-num { background: var(--p2); }
.tile .value { color: var(--ink); }
.auth { background: radial-gradient(1200px 600px at 15% 0%, #4A5C6A 0%, #11212D 45%, #06141B 100%); }
.auth .card { box-shadow: 0 30px 80px rgba(0,0,0,.35); border: 0; }
@media (max-width: 820px) { .side { box-shadow: 0 0 60px rgba(0,0,0,.5); } }
.nav-sub { margin: 14px 10px 2px; padding-top: 12px; border-top: 1px solid var(--side-line); font-size: 11.5px; color: #6f8089; line-height: 1.35; }
.nav-sub b { color: var(--side-ink-strong); font-weight: 650; }
/* Ajans masası */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hello-title { font-size: 1.7rem; letter-spacing: -0.03em; }
.hello p { margin: 4px 0 0; }
.tile-alert { box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }
.neg-val { color: var(--bad); }
.late-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tasks li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.tasks li:last-child { border-bottom: 0; }
.tasks li.late .task-main b { color: var(--bad); }
.tasks form { display: inline; }
.check-btn { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--p4); background: transparent; cursor: pointer; margin-top: 1px; flex: none; position: relative; }
.check-btn:hover { border-color: var(--good); background: color-mix(in srgb, var(--good) 15%, transparent); }
.check-btn::after { content: ""; position: absolute; inset: -11px; }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.task-main .muted { font-size: 12.5px; }
.task-note { font-size: 13px; color: var(--ink-2); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list form { display: inline; }
.quick details { border-top: 1px solid var(--line); padding: 10px 0; }
.quick details:first-of-type { border-top: 0; }
.quick summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 4px 0; }
.quick details[open] summary { margin-bottom: 10px; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; font-size: 13.5px; margin: 0; min-height: 44px; cursor: pointer; }
.check-inline input { width: 17px; height: 17px; accent-color: var(--p2); }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.note-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; font-size: 13px; color: var(--ink-2); }
.note-card b { color: var(--ink); font-size: 14px; }
.note-card small { color: var(--muted); }
.note-card:hover { border-color: var(--line-2); }
.note-list { display: grid; gap: 10px; margin-top: 10px; }
.note-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.note-item.pinned { border-color: var(--p4); background: var(--surface-2); }
.note-item header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.note-item header .muted { font-size: 12.5px; margin-right: auto; }
.note-body { font-size: 14px; margin-top: 6px; overflow-wrap: anywhere; color: var(--ink-2); }
textarea.tall { min-height: 200px; }
.client-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.client-head .row { gap: 8px 14px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 14px; padding-bottom: 2px; border-bottom: 1px solid var(--line-2); }
.tabs a { white-space: nowrap; padding: 8px 12px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); border-radius: 8px 8px 0 0; }
.tabs a:hover { background: var(--surface); color: var(--ink); }
.subcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.subcard h3 { font-size: 14.5px; margin-bottom: 10px; }
.vault-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.vault-row form { display: inline; }
code.secret { display: inline-block; margin-top: 6px; font-size: 13px; padding: 4px 8px; user-select: all; }
details.mini > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
details.mini form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
details.mini input[type=date] { width: auto; min-height: 34px; padding: 4px 8px; }
.pill.cs-aktif::before, .pill.cs-beklemede::before, .pill.cs-ayrildi::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.pill.cs-aktif::before { background: var(--good); }
.pill.cs-beklemede::before { background: #c98a00; }
.pill.cs-ayrildi::before { background: var(--muted); }
tr.muted td { color: var(--muted); }
:target { scroll-margin-top: 90px; }
.side { overflow-y: auto; }
@media (max-width: 480px) { .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } .tile .value { font-size: 1.25rem; } .card.tile { padding: 14px; } .tile .extra { font-size: 11.5px; } .hello-title { font-size: 1.4rem; } }
/* Teklifler */
.pill.pr-taslak::before, .pill.pr-gonderildi::before, .pill.pr-kabul::before, .pill.pr-red::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.pill.pr-taslak::before { background: var(--muted); } .pill.pr-gonderildi::before { background: #c98a00; } .pill.pr-kabul::before { background: var(--good); } .pill.pr-red::before { background: var(--bad); }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.totals dl, .proposal-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0; font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.totals dt, .proposal-sum dt { color: var(--muted); }
.totals dd, .proposal-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .strong, .proposal-sum .strong { color: var(--ink); font-weight: 750; border-top: 1px solid var(--line-2); padding-top: 6px; }
body.proposal { background: linear-gradient(180deg, #11212D 0, #11212D 220px, var(--bg) 220px); }
.proposal .report-page { max-width: 820px; box-shadow: 0 20px 60px rgba(6,20,27,.12); }
.proposal-hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.proposal-title { margin: 22px 0 18px; }
.proposal-title h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.03em; margin-top: 4px; }
.proposal-intro { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 8px; }
.proposal-h { font-size: 1.05rem; margin: 26px 0 10px; }
.proposal-items { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 12px; }
.proposal-item { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.proposal-item p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.proposal-item .num { text-align: right; white-space: nowrap; font-size: 13.5px; }
.proposal-sum { max-width: 360px; margin-left: auto; }
.proposal-decide { margin: 28px 0 10px; padding: 20px; border: 2px solid var(--p2); border-radius: 16px; }
@media (max-width: 600px) { .proposal-item { flex-direction: column; gap: 6px; } .proposal-item .num { text-align: left; } .proposal-hero { flex-direction: column; } .proposal-hero .muted { text-align: left !important; } }
@media print { body.proposal { background: #fff; } .proposal .report-page { box-shadow: none; } }
