/* Aura Booth — kullanım ve performans özeti (admin + müşteri portalı).
   Ekran: Hub'ın koyu paleti. Sunum ve PDF: A4 yatay beyaz kâğıt sayfaları
   (.ar-sheet); ekrandaki sunum önizlemesi basılanla aynıdır. Seri renkleri
   dataviz doğrulayıcısından geçti (koyu ve açık için ayrı adımlar). Yazı
   tipleri Hub'dan sunulur; harici kaynak yüklenmez. */
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-400-latin-ext.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02FF, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-500-latin-ext.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02FF, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-600-latin.woff2') format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-600-latin-ext.woff2') format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; unicode-range: U+0100-02FF, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-200_800-normal.woff2') format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-200_800-normal-ext.woff2') format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; unicode-range: U+0100-02FF, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.ar {
  --ar-display: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  --ar-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ar-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ar-accent: #00D4FF;
  --ar-ink: #f4f6fb; --ar-ink-2: #c3c8d4; --ar-muted: #98a2b3;
  --ar-panel: rgba(255,255,255,0.05); --ar-panel-2: rgba(255,255,255,0.08); --ar-border: rgba(255,255,255,0.12);
  --ar-grid: rgba(255,255,255,0.07); --ar-axis: rgba(255,255,255,0.22);
  --ar-surface: #131725; --ar-track: rgba(255,255,255,0.07); --ar-field: rgba(0,0,0,0.25);
  --ar-s1: #3987e5; --ar-s2: #d95926; --ar-s3: #199e70; --ar-s4: #c98500;
  --ar-s5: #d55181; --ar-s6: #008300; --ar-s7: #9085e9; --ar-other: #6b7280;
  --ar-bar: #3987e5; --ar-warn: #f59e0b; --ar-warn-bg: rgba(245,158,11,0.1);
  --ar-info-bg: rgba(57,135,229,0.1); --ar-provisional: rgba(57,135,229,0.08);
  --ar-tip-bg: rgba(10,13,22,0.97);
  color: var(--ar-ink); font-family: var(--ar-body); display: flex; flex-direction: column; gap: 18px; min-width: 0;
  transition: opacity 0.3s var(--ar-ease);
}
/* Kâğıt: açık yüzey, açık seri adımları */
.ar-sheet {
  --ar-ink: #0b0b0b; --ar-ink-2: #3f3e3b; --ar-muted: #5f5e5a;
  --ar-panel: #fff; --ar-panel-2: #f6f6f3; --ar-border: #e1e0d9; --ar-grid: #ecebe6; --ar-axis: #c3c2b7;
  --ar-surface: #fff; --ar-track: #efeee9;
  --ar-s1: #2a78d6; --ar-s2: #eb6834; --ar-s3: #1baf7a; --ar-s4: #eda100;
  --ar-s5: #e87ba4; --ar-s6: #008300; --ar-s7: #6250d6; --ar-other: #898781;
  --ar-bar: #2a78d6; --ar-warn: #9a6408; --ar-warn-bg: #fdf3dc; --ar-info-bg: #eaf2fc; --ar-provisional: #eef4fc;
  --ar-tip-bg: #fff;
}
.ar--loading { opacity: 0.55; pointer-events: none; }
.ar *, .ar *::before, .ar *::after { box-sizing: border-box; }
.ar h2, .ar h3, .ar p, .ar ul, .ar dl, .ar dd { margin: 0; padding: 0; }
.ar ul { list-style: none; }
.ar-num { font-variant-numeric: tabular-nums; }
.ar :focus-visible { outline: 2px solid var(--ar-accent); outline-offset: 3px; border-radius: 6px; }

/* Başlık ve eylemler */
.ar-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ar-head-text { min-width: 0; }
.ar-kicker { color: var(--ar-muted); font-size: 0.8rem; font-weight: 500; }
.ar-title { font-family: var(--ar-display); font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: 6px; outline: none; }
.ar-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--ar-ink-2); font-size: 0.86rem; }
.ar-facts li { display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.ar-facts li + li::before { content: ''; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--ar-axis); margin-right: 14px; }
.ar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--ar-border); background: var(--ar-panel-2); color: var(--ar-ink);
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: transform 0.2s var(--ar-ease), border-color 0.3s var(--ar-ease), background 0.3s var(--ar-ease), opacity 0.2s var(--ar-ease);
}
.ar-btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.11); }
.ar-btn:active { transform: scale(0.96); }
.ar-btn--primary { background: linear-gradient(135deg, #00D4FF, #0066FF); border-color: transparent; color: #fff; }
.ar-btn--primary:hover { background: linear-gradient(135deg, #00D4FF, #0066FF); border-color: transparent; opacity: 0.9; }

/* Kapsam notları */
.ar-flags { display: flex; flex-direction: column; gap: 8px; }
.ar-flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; font-size: 0.84rem; background: var(--ar-info-bg); color: var(--ar-ink); }
.ar-flag--warn { background: var(--ar-warn-bg); }
.ar-flag-icon { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; color: #0b0b0b; background: var(--ar-s1); }
.ar-flag--warn .ar-flag-icon { background: var(--ar-warn); }

.ar-analysis { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ar-insights { margin-top: 18px; }
.ar-insights[hidden], .ar-insights [hidden] { display: none; }
.ar-insights h2 { font-family: var(--ar-display); font-size: 1.85rem; }
.ar-insights-note { color: var(--ar-ink-2); font-size: 0.86rem; }
.ar-insights-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.ar-insights-metrics dd { color: var(--ar-ink); text-align: right; }

/* Ana göstergeler: dört sonuç tek şerit, altında dört küçük gösterge */
.ar-heroes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 22px; border: 1px solid var(--ar-border); background: var(--ar-panel); overflow: hidden; }
.ar-hero { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ar-hero + .ar-hero { border-left: 1px solid var(--ar-border); }
.ar-hero-label { color: var(--ar-ink-2); font-size: 0.86rem; font-weight: 500; }
.ar-hero-value { font-family: var(--ar-display); font-weight: 700; font-size: clamp(2.3rem, 1.6rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ar-hero-value--text { font-family: var(--ar-body); font-size: 1.1rem; font-weight: 600; color: var(--ar-ink-2); letter-spacing: 0; padding-block: 14px 8px; }
.ar-hero-def { color: var(--ar-muted); font-size: 0.76rem; line-height: 1.45; }
.ar-spark { display: block; width: 100%; height: 40px; margin-top: 6px; overflow: visible; }
.ar-spark path { fill: none; stroke: var(--ar-muted); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0.8; }
.ar-spark circle { fill: var(--ar-s1); stroke: var(--ar-surface); stroke-width: 2; }
.ar-badge { align-self: flex-start; font-size: 0.72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--ar-warn-bg); color: var(--ar-ink); }
.ar-minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ar-mini { padding: 14px 18px; border-radius: 16px; border: 1px solid var(--ar-border); background: var(--ar-panel); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.ar-mini-label { color: var(--ar-ink-2); font-size: 0.82rem; }
.ar-mini-value { font-family: var(--ar-display); font-weight: 650; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-mini-value .ar-v--missing, .ar-mini-value .ar-v--zero_denominator, .ar-mini-value .ar-v--not_started { font-family: var(--ar-body); font-size: 1rem; letter-spacing: 0; }

/* Panel ızgarası */
.ar-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.ar-span-12 { grid-column: span 12; } .ar-span-7 { grid-column: span 7; } .ar-span-5 { grid-column: span 5; } .ar-span-6 { grid-column: span 6; }
.ar-panel { min-width: 0; padding: 22px; border-radius: 18px; border: 1px solid var(--ar-border); background: var(--ar-panel); display: flex; flex-direction: column; gap: 14px; }
.ar-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ar-panel h3 { font-family: var(--ar-display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.ar-sub { color: var(--ar-muted); font-size: 0.8rem; margin-top: 4px; max-width: 62ch; }
.ar-note { color: var(--ar-muted); font-size: 0.78rem; line-height: 1.5; }
.ar-empty { padding: 28px 0; text-align: center; color: var(--ar-muted); font-size: 0.86rem; }

/* Lejant ve seçim düğmeleri */
.ar-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--ar-border); background: var(--ar-field); color: var(--ar-ink-2); font: inherit; font-size: 0.8rem; cursor: pointer;
  transition: border-color 0.3s var(--ar-ease), background 0.3s var(--ar-ease), color 0.3s var(--ar-ease), transform 0.2s var(--ar-ease);
}
.ar-chip:hover { border-color: rgba(255,255,255,0.3); color: var(--ar-ink); }
.ar-chip:active { transform: scale(0.96); }
.ar-chip[aria-pressed="true"] { color: var(--ar-ink); border-color: rgba(255,255,255,0.32); background: var(--ar-panel-2); font-weight: 600; }
.ar-chip[aria-pressed="false"] .ar-key { opacity: 0.3; }
.ar-key { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.ar-key--line { width: 18px; height: 3px; border-radius: 2px; }

/* Çizgi grafik */
.ar-plot { position: relative; min-width: 0; }
.ar-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.ar-gridline { stroke: var(--ar-grid); stroke-width: 1; }
.ar-baseline { stroke: var(--ar-axis); stroke-width: 1; }
.ar-axis-text { fill: var(--ar-muted); font-size: 11px; font-family: var(--ar-body); }
.ar-axis-text--weekend { fill: var(--ar-ink-2); font-weight: 600; }
.ar-end-text { fill: var(--ar-ink); font-size: 12px; font-weight: 600; font-family: var(--ar-body); }
.ar-end-sub { fill: var(--ar-muted); font-size: 11px; font-family: var(--ar-body); }
.ar-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ar-line--lead { stroke-width: 2.5; }
.ar-dot { fill: var(--c); stroke: var(--ar-surface); stroke-width: 2; }
.ar-dot--partial { fill: var(--ar-surface); stroke: var(--c); stroke-width: 2; }
.ar-cross { stroke: var(--ar-axis); stroke-width: 1; stroke-dasharray: 3 3; }
.ar-provisional { fill: var(--ar-provisional); }
.ar-tip { position: absolute; top: 4px; z-index: 5; min-width: 180px; max-width: 260px; pointer-events: none; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--ar-border); background: var(--ar-tip-bg); font-size: 0.78rem; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.ar-tip-head { font-weight: 600; }
.ar-tip-state { color: var(--ar-muted); margin-bottom: 6px; }
.ar-tip-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; }
.ar-tip-row b { font-variant-numeric: tabular-nums; }
.ar-tip-row span { color: var(--ar-ink-2); }

/* Yatay çubuklar */
.ar-bars { display: flex; flex-direction: column; gap: 4px; }
.ar-bar-row { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr) 76px; align-items: center; gap: 12px; min-height: 30px; padding: 0 6px; margin: 0 -6px; border-radius: 10px; font-size: 0.84rem; transition: background 0.3s var(--ar-ease); }
.ar-bar-row:hover { background: var(--ar-panel-2); }
.ar-bar-row--muted .ar-bar-label { color: var(--ar-muted); }
.ar-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ar-ink-2); }
.ar-bar-track { height: 16px; display: block; }
.ar-bar-fill { display: block; height: 100%; width: 0; border-radius: 0 4px 4px 0; background: var(--ar-bar); transform-origin: left; }
.ar-bar-fill--partial { opacity: 0.55; }
.ar-bar-value { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.ar-bar-extra { display: block; color: var(--ar-muted); font-weight: 400; font-size: 0.74rem; }

/* Efekt payları: tek parça yığılmış çubuk */
.ar-stack { display: flex; gap: 2px; height: 40px; min-width: 0; border-radius: 10px; overflow: hidden; }
.ar-stack-part { flex: 1 1 0; min-width: 3px; background: var(--c); display: flex; align-items: center; padding: 0 8px; transition: filter 0.3s var(--ar-ease); }
.ar-stack-part:hover { filter: brightness(1.15); }
.ar-stack-label { font-size: 0.76rem; font-weight: 700; color: #fff; white-space: nowrap; }
.ar-stack-part[data-slot="4"] .ar-stack-label { color: #0b0b0b; }
.ar-share-list { display: flex; flex-direction: column; gap: 2px; font-size: 0.84rem; }
.ar-share-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 30px; }
.ar-share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ar-ink-2); }
.ar-share-count { color: var(--ar-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-share-pct { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }

/* Kullanımdan çıktıya */
.ar-flow { display: flex; flex-direction: column; gap: 14px; }
.ar-flow-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; }
.ar-flow-name { color: var(--ar-ink-2); font-size: 0.86rem; }
.ar-flow-value { font-family: var(--ar-display); font-weight: 650; font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ar-flow-bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--ar-track); overflow: hidden; }
.ar-flow-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ar-bar); transform-origin: left; }
.ar-flow-rate { grid-column: 1 / -1; color: var(--ar-muted); font-size: 0.76rem; }

/* QR kampanyası */
.ar-camp { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ar-camp-status { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--ar-ink-2); }
.ar-camp-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--ar-s3); }
.ar-camp-dot--off { background: var(--ar-warn); }
.ar-camp-sub { margin: 22px 0 10px; font-size: 0.9rem; font-weight: 600; color: var(--ar-ink); }
.ar-camp-item { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--ar-border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ar-camp-label { color: var(--ar-ink-2); font-size: 0.82rem; }
.ar-camp-value { font-family: var(--ar-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ar-camp-value .ar-v--missing, .ar-camp-value .ar-v--zero_denominator, .ar-camp-value .ar-v--not_started { font-family: var(--ar-body); font-size: 1rem; letter-spacing: 0; }

/* Tablolar */
.ar-scroll { overflow-x: auto; min-width: 0; }
.ar-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.ar-table th, .ar-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ar-border); vertical-align: middle; }
.ar-table thead th { color: var(--ar-muted); font-weight: 500; font-size: 0.76rem; line-height: 1.3; }
.ar-table tbody th { font-weight: 500; }
.ar-table tbody tr { transition: background 0.3s var(--ar-ease); }
.ar-table tbody tr:hover { background: var(--ar-panel-2); }
.ar-table .ar-num { text-align: right; white-space: nowrap; }
.ar-table thead .ar-num { white-space: normal; }
.ar-table .ar-def { color: var(--ar-muted); font-size: 0.78rem; min-width: 220px; }
.ar-row--muted th, .ar-row--muted td { color: var(--ar-muted); }
.ar-code { display: block; color: var(--ar-muted); font-size: 0.72rem; }
.ar-v--missing, .ar-v--not_started, .ar-v--zero_denominator, .ar-v--inconsistent, .ar-v--na, .ar-v--suppressed { color: var(--ar-muted); font-weight: 400; }
.ar-mark { margin-left: 4px; color: var(--ar-warn); font-size: 0.82em; }
.ar-sort-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; display: inline; text-align: inherit; }
.ar-sort-btn:hover { color: var(--ar-ink); }
.ar-sort { font-size: 0.62rem; margin-left: 3px; }
.ar-search { width: min(100%, 300px); min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ar-border); background: var(--ar-field); color: var(--ar-ink); font: inherit; font-size: 0.86rem; }
.ar-search::placeholder { color: var(--ar-muted); }
.ar-meter { display: block; height: 4px; border-radius: 999px; background: var(--ar-track); overflow: hidden; margin-top: 5px; min-width: 44px; }
.ar-meter i { display: block; height: 100%; background: var(--ar-bar); border-radius: 999px; }
.ar-diagnostics { display: flex; flex-direction: column; gap: 6px; }
.ar-diagnostics li { padding: 8px 12px; border-radius: 10px; background: var(--ar-warn-bg); font-size: 0.82rem; }
.ar-diagnostics li::before { content: '! '; font-weight: 800; color: var(--ar-warn); }
.ar-group { border-top: 1px solid var(--ar-border); }
.ar-group > summary, .ar-defs > summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ar-group > summary::-webkit-details-marker, .ar-defs > summary::-webkit-details-marker { display: none; }
.ar-group > summary::after, .ar-defs > summary::after { content: '+'; font-size: 1.2rem; color: var(--ar-muted); transition: transform 0.3s var(--ar-ease); }
.ar-group[open] > summary::after, .ar-defs[open] > summary::after { transform: rotate(45deg); }
.ar-defs { padding: 0 22px; border-radius: 18px; border: 1px solid var(--ar-border); background: var(--ar-panel); }
.ar-dl { display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr); gap: 8px 22px; font-size: 0.82rem; padding-bottom: 16px; }
.ar-dl dt { font-weight: 600; }
.ar-dl dd { color: var(--ar-ink-2); }
.ar-defs > .ar-note { padding-bottom: 14px; }

/* Mesaj: boş rapor kartı bırakılmaz */
.ar-message { padding: 26px; border-radius: 18px; border: 1px solid var(--ar-border); background: var(--ar-panel); text-align: center; display: flex; flex-direction: column; gap: 6px; color: var(--ar-ink-2); font-size: 0.9rem; }
.ar-message-title { color: var(--ar-ink); font-weight: 700; font-size: 1.05rem; }

/* Giriş hareketi: yalnız analiz ekranında ve ilk çizimde; reduced-motion ve baskıda kapalı */
@media (prefers-reduced-motion: no-preference) {
  .ar-plot.ar-animate > svg { animation: ar-reveal 1.2s var(--ar-ease) both; }
  .ar-analysis .ar-animate .ar-bar-fill, .ar-analysis .ar-animate .ar-flow-bar i { animation: ar-grow 0.8s var(--ar-ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
}
@keyframes ar-reveal { from { clip-path: inset(-20px 100% -20px 0); } to { clip-path: inset(-20px -200px -20px 0); } }
@keyframes ar-grow { from { transform: scaleX(0); } }

/* ── Sunum: A4 yatay kâğıtlar ───────────────────────────────────────────── */
.ar-sheets { display: none; flex-direction: column; align-items: center; gap: 28px; padding-block: 8px 24px; }
.ar--present .ar-analysis { display: none; }
.ar--present .ar-sheets { display: flex; }
.ar-sheet-wrap { zoom: var(--ar-zoom, 1); }
.ar-sheet {
  position: relative; width: 297mm; height: 210mm; overflow: hidden; background: #fff; color: var(--ar-ink);
  padding: 15mm 16mm 13mm; display: flex; flex-direction: column; gap: 6mm; text-align: left;
  border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  font-family: var(--ar-body); font-size: 13px; line-height: 1.5;
}
.ar-sheet-head, .ar-sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10.5px; color: var(--ar-muted); flex: none; }
.ar-sheet-head { border-bottom: 1px solid var(--ar-border); padding-bottom: 3mm; }
.ar-sheet-head b { font-family: var(--ar-display); font-weight: 700; font-size: 12px; color: var(--ar-ink); letter-spacing: -0.01em; }
.ar-sheet-foot { margin-top: auto; border-top: 1px solid var(--ar-border); padding-top: 3mm; }
.ar-sheet-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6mm; }
.ar-sheet h2 { font-family: var(--ar-display); font-weight: 700; font-size: 26px; line-height: 1.08; letter-spacing: -0.03em; }
.ar-sheet h3 { font-family: var(--ar-display); font-weight: 650; font-size: 17px; letter-spacing: -0.015em; }
.ar-sheet .ar-panel { padding: 0; border: 0; border-radius: 0; background: none; gap: 3.5mm; }
.ar-sheet .ar-sub, .ar-sheet .ar-note { font-size: 10.5px; }
.ar-sheet .ar-axis-text, .ar-sheet .ar-end-sub { font-size: 12.5px; }
.ar-sheet .ar-end-text { font-size: 13.5px; }
.ar-sheet .ar-bar-row { min-height: 24px; font-size: 12px; margin: 0; padding: 0; }
.ar-sheet .ar-bar-row:hover, .ar-sheet .ar-table tbody tr:hover { background: none; }
.ar-sheet .ar-bar-track { height: 13px; }
.ar-sheet .ar-stack { height: 34px; }
.ar-sheet .ar-table { font-size: 11.5px; }
.ar-sheet .ar-table th, .ar-sheet .ar-table td { padding: 6px 7px; }
.ar-sheet .ar-table thead th { font-size: 10px; }
.ar-sheet .ar-flow { gap: 3mm; }
.ar-sheet .ar-flow-value { font-size: 19px; }
.ar-sheet .ar-flow-bar { height: 8px; }
.ar-sheet .ar-flow-name, .ar-sheet .ar-flow-rate { font-size: 11px; }
.ar-sheet .ar-camp-value { font-size: 30px; }
.ar-sheet .ar-dl { font-size: 11px; gap: 5px 18px; padding: 0; }
.ar-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12mm; flex: 1 1 auto; min-height: 0; }
.ar-cols--wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.ar-cover { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 8mm; }
.ar-cover-kicker { font-size: 12px; color: var(--ar-muted); font-weight: 500; }
.ar-sheet .ar-cover-title { font-family: var(--ar-display); font-weight: 750; font-size: 50px; line-height: 0.98; letter-spacing: -0.045em; margin-top: 3mm; max-width: 16ch; }
.ar-cover-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5mm; font-size: 13px; color: var(--ar-ink-2); }
.ar-cover-summary { font-family: var(--ar-display); font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ar-ink-2); max-width: 30ch; align-self: center; }
.ar-cover-summary b { color: var(--ar-ink); font-weight: 700; }
.ar-cover-heroes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ar-ink); }
.ar-cover-hero { padding: 5mm 5mm 0 0; display: flex; flex-direction: column; gap: 1.5mm; min-width: 0; }
.ar-cover-hero + .ar-cover-hero { padding-left: 5mm; border-left: 1px solid var(--ar-border); }
.ar-cover-hero .ar-hero-label { font-size: 12px; }
.ar-cover-hero .ar-hero-value { font-size: 46px; }
.ar-cover-hero .ar-hero-value--text { font-size: 15px; }
.ar-cover-hero .ar-spark { height: 34px; }
.ar-cover-cov { font-size: 10.5px; color: var(--ar-muted); margin-top: 5mm; }
.ar-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8mm; border-top: 1px solid var(--ar-border); padding-top: 4mm; }
.ar-insight b { display: block; font-family: var(--ar-display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ar-insight span { display: block; font-size: 11.5px; color: var(--ar-ink-2); line-height: 1.45; margin-top: 1mm; }

/* Sunum görünümünde yönetim kontrolleri gizlenir */
body.ar-presenting .ar-chrome { display: none !important; }

/* Dar ekran (yalnız analiz; kâğıt her ekranda aynı) */
@media (max-width: 1080px) {
  .ar-span-7, .ar-span-5, .ar-span-6 { grid-column: span 12; }
  .ar-analysis .ar-camp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ar-analysis .ar-camp-status { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ar-heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-hero:nth-child(3) { border-left: 0; }
  .ar-hero:nth-child(n+3) { border-top: 1px solid var(--ar-border); }
  .ar-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-mini { flex-direction: column; gap: 2px; }
  .ar-analysis .ar-panel { padding: 18px; }
}
@media (max-width: 520px) {
  .ar-hero { padding: 16px 14px 14px; }
  .ar-hero-value { font-size: 2.1rem; }
  .ar-analysis .ar-camp { grid-template-columns: minmax(0, 1fr); }
  .ar-analysis .ar-dl { grid-template-columns: minmax(0, 1fr); }
  .ar-analysis .ar-dl dd { margin-bottom: 6px; }
  .ar-analysis .ar-bar-row { grid-template-columns: minmax(80px, 38%) minmax(0, 1fr) 64px; gap: 8px; }
  .ar-actions { width: 100%; }
  .ar-actions .ar-btn { flex: 1 1 auto; }
}

/* v4 davranış analizi */
.ar-v4-lead { font-family: var(--ar-display); font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.ar-v4-partial { padding: 0 4px; grid-column: span 12; }
.ar-v4-stack { display: flex; flex-direction: column; gap: 6mm; min-width: 0; }
.ar-hist-wrap { max-width: 760px; width: 100%; }
.ar-hist { display: block; width: 100%; height: auto; overflow: visible; }
.ar-hbar { fill: var(--ar-bar); }
.ar-hbar--hidden { fill: var(--ar-other); opacity: 0.35; }
.ar-hist .ar-axis-text { font-size: 9px; }
.ar-chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-chips-list li { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: var(--ar-panel-2); border: 1px solid var(--ar-border); font-size: 0.8rem; color: var(--ar-ink-2); }
.ar-chips-list b { color: var(--ar-ink); font-weight: 600; }
.ar-flow-step--missing .ar-flow-value, .ar-flow-step--suppressed .ar-flow-value { font-family: var(--ar-body); font-size: 0.95rem; font-weight: 400; color: var(--ar-muted); }
.ar-heatmap th, .ar-heatmap td { padding: 7px 6px; font-size: 0.78rem; }
.ar-heatmap thead th { white-space: nowrap; }
.ar-heat { text-align: center !important; position: relative; background: rgba(0, 212, 255, calc(0.04 + var(--h, 0) * 0.5)); }
.ar-heat--zero { color: var(--ar-muted); background: none; }
.ar-heat--hidden { color: var(--ar-muted); background: repeating-linear-gradient(135deg, var(--ar-track) 0 4px, transparent 4px 8px); font-style: italic; }
.ar-heat--self { background: var(--ar-track); }
.ar-heat-total, .ar-heat-foot td, .ar-heat-foot th { font-weight: 600; }
.ar-heat-foot td, .ar-heat-foot th { border-top: 1px solid var(--ar-axis); }
.ar-back { display: block; font-size: 0.68rem; color: var(--ar-s2); font-weight: 600; line-height: 1.2; }
.ar-back--hidden { color: var(--ar-muted); font-weight: 400; }
.ar-top { list-style: none; counter-reset: top; display: flex; flex-direction: column; gap: 2px; }
.ar-top li { counter-increment: top; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--ar-border); font-size: 0.84rem; }
.ar-top li::before { content: counter(top); color: var(--ar-muted); font-size: 0.74rem; }
.ar-top .ar-back { display: inline; }
.ar-ad { padding-top: 4px; }
.ar-ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ar-ad-stats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--ar-panel-2); min-width: 0; }
.ar-ad-stats span { color: var(--ar-muted); font-size: 0.72rem; }
.ar-ad-stats b { font-family: var(--ar-display); font-weight: 650; font-size: 1.05rem; overflow-wrap: anywhere; }
.ar-dist { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; height: 92px; margin-top: 12px; }
.ar-dist-col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.ar-dist-bar { display: block; flex: none; width: 100%; background: var(--ar-s3); border-radius: 3px 3px 0 0; }
.ar-dist-bar--hidden { background: var(--ar-other); opacity: 0.35; }
.ar-dist-label { display: block; text-align: center; font-size: 0.6rem; color: var(--ar-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; }
.ar-verdict { font-weight: 600; font-size: 0.95rem; }
.ar-verdict--small { color: var(--ar-warn); }
.ar-sheet .ar-v4-lead { font-size: 14px; }
.ar-sheet .ar-ad-stats b { font-size: 12px; }
@media (max-width: 760px) {
  .ar-ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-top li { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .ar-top .ar-back { grid-column: 3; }
  .ar-analysis .ar-dist-label { font-size: 0.5rem; }
}

/* Yazdırma / PDF: yalnız A4 sayfaları, sunum önizlemesiyle birebir */
@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { background: #fff !important; color: #0b0b0b !important; }
  body { padding: 0 !important; margin: 0 !important; min-height: 0 !important; display: block !important; }
  /* Sayfaların önünde tek satır bile kalırsa son sayfa taşar ve PDF'e boş sayfa eklenir. */
  .ar-chrome, .ar-head, .ar-flags, .ar-analysis { display: none !important; }
  .ar-host { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; max-width: none !important; }
  .ar { display: block !important; }
  .ar-insights { display: none !important; }
  .ar-sheets { display: block !important; padding: 0 !important; }
  .ar-sheet-wrap { zoom: 1 !important; break-after: page; page-break-after: always; }
  .ar-sheet-wrap:last-child { break-after: auto; page-break-after: auto; }
  .ar-sheet { box-shadow: none !important; border-radius: 0 !important; height: 209.5mm; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  /* Gizliyken baskıya geçen içerikte animasyon baştan başlar; PDF'e boş düşmesin. */
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
