:root {
  --ink: #14211d;
  --muted: #65736e;
  --line: #dfe7e3;
  --paper: #f5f8f6;
  --surface: #ffffff;
  --green: #087f5b;
  --green-2: #27ae7e;
  --mint: #dff5eb;
  --lime: #d7f05a;
  --violet: #6657d9;
  --amber: #d67a16;
  --red: #c2413b;
  --shadow: 0 8px 24px rgba(16, 54, 41, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
body.auth-pending .shell { visibility: hidden; }
.auth-screen { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; margin: 0; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(215,240,90,.16), transparent 32%), #0c211a; }
.login-card { width: min(430px, 100%); padding: 34px; border-radius: 22px; background: white; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.login-card h1 { font-size: 30px; }
.login-card > label { display: grid; gap: 7px; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 750; }
.login-card > button { width: 100%; margin-top: 20px; }
.login-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 15px; background: var(--lime); color: #10231d; font-size: 18px; font-weight: 900; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; padding: 28px 20px; background: #10231d; color: white; display: flex; flex-direction: column; z-index: 4; }
.brand { display: flex; gap: 12px; align-items: center; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 12px; background: var(--lime); color: #10231d; font-weight: 900; letter-spacing: -.04em; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: white; }
.brand-mark img:not([src]) { display: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: #a8bbb4; font-size: 11px; }
nav { display: grid; gap: 6px; margin-top: 48px; }
.workspace-switcher { display: grid; gap: 10px; margin-top: 24px; padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.05); }
.workspace-switcher label { display: grid; gap: 5px; color: #92a79f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.workspace-switcher select { min-width: 0; width: 100%; min-height: 34px; padding: 0 8px; border-color: rgba(255,255,255,.12); background: #183229; color: white; font-size: 11px; }
nav a { padding: 11px 12px; border-radius: 9px; color: #aebeb8; text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover, nav a.active { background: rgba(255,255,255,.08); color: white; }
.connection { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; gap: 10px; align-items: center; }
.connection small, .connection strong { display: block; }
.connection small { color: #92a79f; }
.connection strong { margin-top: 2px; font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #7f8c87; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.dot.ok { background: #3bd18f; }
.dot.error { background: #ff7b70; }
.user-menu { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; align-items: center; margin-top: 14px; }
.user-menu small, .user-menu strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu small { color: #92a79f; font-size: 9px; }
.user-menu strong { margin-top: 2px; font-size: 10px; }
.user-actions { display: flex; gap: 5px; }
.user-menu button { flex: 1; min-height: 28px; padding: 0 8px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #c6d5d0; font-size: 10px; }
.user-menu button:hover { background: rgba(255,255,255,.08); }
main { margin-left: 230px; padding: 42px clamp(24px, 4vw, 64px) 80px; max-width: 1660px; }
header { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 34px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: 25px; letter-spacing: -.03em; }
h3 { margin-bottom: 5px; font-size: 16px; }
.muted { color: var(--muted); }
.eyebrow { margin-bottom: 7px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.header-actions { display: flex; align-items: end; gap: 10px; }
.range-label, .table-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
select, input { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 0 12px; color: var(--ink); }
button { min-height: 42px; border: 0; border-radius: 9px; padding: 0 17px; background: var(--green); color: white; font-weight: 750; cursor: pointer; }
button:hover { background: #066b4d; }
button:disabled { opacity: .55; cursor: progress; }
[hidden] { display: none !important; }
.button-accent { background: var(--lime); color: #10231d; }
.button-accent:hover { background: #c7df4d; }
.button-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button-secondary:hover { background: #f1f5f3; }
.icon-button { width: 38px; min-height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 24px; font-weight: 400; }
.icon-button:hover { background: #f1f5f3; }
.error-banner { padding: 12px 15px; border: 1px solid #efb9b6; border-radius: 10px; background: #fff1f0; color: var(--red); }
.success-banner { padding: 12px 15px; border: 1px solid #a9dcc7; border-radius: 10px; background: #effbf6; color: var(--green); }
section { padding-top: 20px; margin-bottom: 58px; scroll-margin-top: 16px; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.timestamp { color: var(--muted); font-size: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { min-height: 138px; padding: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.kpi.primary { background: #102f25; color: white; border-color: #102f25; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 650; }
.kpi.primary .label { color: #b8d0c7; }
.kpi .value { margin: 16px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.kpi .delta { color: var(--muted); font-size: 11px; }
.kpi .delta.positive { color: var(--green-2); }
.chart-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; }
.panel { border: 1px solid var(--line); background: var(--surface); padding: 20px; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.panel-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.chart { min-height: 300px; }
.chart svg { width: 100%; height: 300px; overflow: visible; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .grid { stroke: #edf1ef; stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 10px; }
.chart path.line { fill: none; stroke-width: 2.5; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--legend); }
.bar-chart { display: grid; gap: 17px; }
.bar-row { display: grid; grid-template-columns: 66px 1fr 48px; gap: 10px; align-items: center; font-size: 12px; }
.bar-track { height: 9px; background: #edf1ef; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green-2); }
.bar-row strong { text-align: right; }
.text-link { color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.table-panel { padding: 0; overflow: hidden; }
.table-toolbar { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { border-bottom: 1px solid var(--line); padding: 15px 17px; text-align: left; font-size: 12px; }
th { color: var(--muted); background: #fbfcfb; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.post-cell { max-width: 320px; }
.post-cell strong, .post-cell small { display: block; }
.post-cell strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-cell small { margin-top: 5px; color: var(--muted); }
.format { display: inline-flex; padding: 4px 7px; border-radius: 5px; background: var(--mint); color: var(--green); font-weight: 750; text-transform: capitalize; }
.reaction-list { white-space: nowrap; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.gauge { display: grid; place-items: center; min-height: 210px; }
.gauge-ring { --value: 0; display: grid; place-items: center; width: 170px; height: 170px; border-radius: 50%; background: conic-gradient(var(--green-2) calc(var(--value) * 1%), #e8efeb 0); position: relative; }
.gauge-ring::before { content: ""; width: 126px; height: 126px; border-radius: 50%; background: white; }
.gauge-copy { position: absolute; text-align: center; }
.gauge-copy strong { display: block; font-size: 29px; }
.gauge-copy small { color: var(--muted); }
.hour-chart { height: 220px; display: flex; align-items: end; gap: 4px; border-bottom: 1px solid var(--line); padding-top: 16px; }
.hour { min-width: 0; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.hour-bar { width: min(18px, 72%); min-height: 2px; background: var(--violet); opacity: .85; }
.hour span { font-size: 9px; color: var(--muted); }
.ga-panel { min-height: 150px; margin-bottom: 14px; }
.ga-demo { margin-bottom: 14px; padding: 24px; background: linear-gradient(135deg, #fff 0%, #f5faf7 100%); }
.ga-demo-heading { gap: 24px; }
.ga-demo-heading > div { max-width: 760px; }
.demo-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #ead98c; border-radius: 999px; background: #fff9dc; color: #7a6011; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.scenario-tabs { display: flex; gap: 8px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.scenario-tab { min-height: 36px; border: 1px solid var(--line); padding: 0 13px; background: white; color: var(--muted); font-size: 11px; }
.scenario-tab:hover, .scenario-tab.active { border-color: var(--green); background: #eff9f5; color: var(--green); }
.ga-demo-summary { display: grid; grid-template-columns: 1.1fr .7fr 1.5fr; gap: 10px; margin-bottom: 16px; }
.ga-demo-summary > div { min-width: 0; padding: 13px; border: 1px solid var(--line); background: white; }
.ga-demo-summary small, .ga-demo-summary strong { display: block; }
.ga-demo-summary small { margin-bottom: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.ga-demo-summary strong { font-size: 12px; }
.ga-demo-summary > code { grid-column: 1 / -1; padding: 11px 13px; overflow-wrap: anywhere; background: #112d24; color: #d8f4e9; font-size: 10px; }
.ga-demo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.ga-demo-kpis > div { padding: 13px; border-left: 3px solid var(--green-2); background: white; }
.ga-demo-kpis small, .ga-demo-kpis strong { display: block; }
.ga-demo-kpis small { min-height: 25px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.ga-demo-kpis strong { margin-top: 5px; font-size: 22px; }
.ga-journey { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.journey-step { position: relative; min-height: 268px; padding: 15px 13px; border: 1px solid var(--line); background: white; }
.journey-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -10px; z-index: 2; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--green); font-size: 10px; }
.journey-number { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 18px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 10px; font-weight: 850; }
.journey-step small, .journey-step strong { display: block; }
.journey-step small { margin-bottom: 6px; color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.journey-value { display: block; margin: 11px 0 2px; font-size: 25px; font-weight: 850; letter-spacing: -.04em; }
.journey-drop { display: block; min-height: 28px; color: var(--red); font-size: 8px; font-weight: 750; }
.journey-step:first-child .journey-drop { color: var(--muted); }
.journey-step strong { min-height: 45px; font-size: 10px; line-height: 1.4; }
.journey-step code { display: block; min-height: 38px; margin-top: 12px; color: var(--violet); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.journey-step p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.ga-capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ga-capability-grid > div { padding: 14px; border: 1px solid var(--line); background: white; }
.ga-capability-grid p { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.capability-label { display: inline-flex; padding: 4px 7px; border-radius: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.capability-label.now { background: var(--mint); color: var(--green); }
.capability-label.setup { background: #efedff; color: var(--violet); }
.measurement-boundary { margin: 15px 0 0; padding: 12px 14px; border-left: 3px solid var(--amber); background: #fff9f0; color: #6d5a42; font-size: 10px; line-height: 1.55; }
.ga-reference { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.ga-reference a { color: var(--green); }
.ga-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ga-metric { padding: 15px; background: #f7faf8; }
.ga-metric small, .ga-metric strong { display: block; }
.ga-metric small { color: var(--muted); }
.ga-metric strong { margin-top: 8px; font-size: 21px; }
.ga-empty { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.ga-empty p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.ga-tag { padding: 7px 10px; background: #f0edff; color: var(--violet); font-size: 12px; font-weight: 750; }
.utm-builder form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.utm-builder label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
output { display: block; margin-top: 14px; padding: 12px; background: #f1f7f4; color: var(--green); overflow-wrap: anywhere; font-size: 12px; }
output strong, output code, output small { display: block; }
output code { margin: 7px 0; color: var(--ink); font-size: 11px; }
output small { color: var(--muted); }
.tracked-links-heading { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.tracked-links-heading h4 { margin: 0 0 4px; font-size: 13px; }
.tracked-links-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.tracked-links-list { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.tracked-link-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 18px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.tracked-link-row > div:first-child { min-width: 0; }
.tracked-link-row small, .tracked-link-row strong, .tracked-link-row span { display: block; }
.tracked-link-row > div:first-child small { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tracked-link-row > div:first-child strong { margin: 5px 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tracked-link-row > div:first-child span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tracked-link-count { padding-left: 15px; border-left: 1px solid var(--line); text-align: right; }
.tracked-link-count strong { font-size: 22px; }
.tracked-link-count small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.compact-empty { padding: 18px 0; text-align: left; }
.quality-panel { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.quality-score { padding-right: 25px; border-right: 1px solid var(--line); }
.quality-score strong { display: block; font-size: 38px; }
.quality-score span { color: var(--muted); font-size: 12px; }
.quality-panel ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.operation-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.operation-kpi { display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 16px 18px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.operation-kpi strong, .operation-kpi small { display: block; }
.operation-kpi strong { font-size: 25px; line-height: 1; }
.operation-kpi small { margin-top: 6px; color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #97a49f; box-shadow: 0 0 0 5px #eef2f0; }
.status-dot.draft { background: #55736a; box-shadow: 0 0 0 5px #e8efec; }
.status-dot.scheduled { background: var(--violet); box-shadow: 0 0 0 5px #efedff; }
.status-dot.publishing { background: var(--amber); box-shadow: 0 0 0 5px #fff4e7; }
.status-dot.published { background: var(--green-2); box-shadow: 0 0 0 5px var(--mint); }
.status-dot.failed { background: var(--red); box-shadow: 0 0 0 5px #fff0ef; }
.schedule-panel { padding: 0; overflow: hidden; }
.schedule-heading { margin: 0; padding: 19px 20px; border-bottom: 1px solid var(--line); align-items: end; }
.schedule-filters { display: flex; gap: 10px; }
.schedule-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.schedule-filters select { min-width: 145px; min-height: 38px; }
.calendar-strip { display: grid; grid-template-columns: repeat(7, minmax(95px, 1fr)); gap: 8px; padding: 14px 20px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.calendar-day { min-width: 95px; padding: 11px; border: 1px solid var(--line); background: white; }
.calendar-day.today { border-color: #94d4bd; background: #effaf5; }
.calendar-day span, .calendar-day small { display: block; color: var(--muted); font-size: 10px; text-transform: capitalize; }
.calendar-day strong { display: block; margin: 9px 0 2px; font-size: 20px; }
.schedule-list { display: grid; }
.schedule-item { display: grid; grid-template-columns: 104px minmax(0, 1fr) 190px; gap: 17px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.schedule-item:last-child { border-bottom: 0; }
.schedule-media { position: relative; display: grid; place-items: center; width: 104px; height: 78px; overflow: hidden; background: #edf2ef; color: var(--green); }
.schedule-media img, .schedule-media video { width: 100%; height: 100%; object-fit: cover; }
.media-loading { max-width: 82px; color: var(--muted); font-size: 10px; line-height: 1.25; text-align: center; }
.schedule-media .play-mark { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(16,35,29,.78); color: white; font-size: 11px; }
.text-mark { font-size: 25px; font-weight: 850; letter-spacing: -.08em; }
.text-mark.large { font-size: 50px; }
.poll-mark { font-size: 34px; font-weight: 800; }
.schedule-copy { min-width: 0; }
.schedule-copy > strong { display: block; margin: 7px 0 5px; }
.schedule-copy p { max-width: 680px; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-tags { display: flex; gap: 6px; align-items: center; }
.status-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #edf1ef; color: var(--muted); font-size: 10px; font-weight: 750; }
.status-badge.draft { background: #e8efec; color: #35594e; }
.status-badge.scheduled { background: #efedff; color: var(--violet); }
.status-badge.publishing { background: #fff1de; color: #9b5b10; }
.status-badge.published { background: var(--mint); color: var(--green); }
.status-badge.failed { background: #fff0ef; color: var(--red); }
.post-error { display: block; margin-top: 7px; color: var(--red); }
.schedule-when { display: grid; justify-items: end; }
.schedule-when > small { max-width: 190px; margin-bottom: 5px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.schedule-when > span { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; justify-content: end; gap: 6px; margin-top: 9px; }
.small-button { min-height: 30px; padding: 0 10px; border-radius: 6px; font-size: 10px; }
.small-button.ghost { border: 1px solid var(--line); background: white; color: var(--muted); }
.small-button.ghost:hover { background: #f2f5f3; }
.post-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 16px; box-shadow: 0 28px 80px rgba(8,31,23,.28); }
.post-dialog::backdrop { background: rgba(8,25,20,.62); backdrop-filter: blur(3px); }
.password-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 28px 80px rgba(8,31,23,.28); }
.password-dialog::backdrop { background: rgba(8,25,20,.62); backdrop-filter: blur(3px); }
.help-dialog { width: min(1180px, calc(100vw - 28px)); height: min(820px, calc(100vh - 28px)); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 0; border-radius: 18px; box-shadow: 0 28px 90px rgba(8,31,23,.32); }
.help-dialog::backdrop { background: rgba(8,25,20,.68); backdrop-filter: blur(4px); }
.help-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100%; background: var(--paper); }
.help-header { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin: 0; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: white; }
.help-header h2 { font-size: 27px; }
.help-header .muted { margin: 7px 0 0; font-size: 11px; }
.help-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.help-toolbar label { display: grid; flex: 1; max-width: 660px; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.help-toolbar input { width: 100%; background: white; text-transform: none; letter-spacing: normal; }
.help-version { padding-bottom: 11px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 0; }
.help-toc { display: block; margin: 0; padding: 18px 14px 30px; overflow-y: auto; border-right: 1px solid var(--line); background: #f8fbf9; }
.help-toc button { display: block; width: 100%; min-height: 0; margin: 0 0 3px; padding: 9px 10px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; line-height: 1.35; text-align: left; }
.help-toc button:hover, .help-toc button.active { background: var(--mint); color: var(--green); }
.help-content { padding: 8px 34px 54px; overflow-y: auto; background: white; scroll-behavior: smooth; }
.help-content > .help-intro { margin: 0 -34px 18px; padding: 22px 34px; border-bottom: 1px solid var(--line); background: #f5fbf8; color: #35594e; font-size: 13px; line-height: 1.65; }
.help-section { padding: 25px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 10px; }
.help-section:last-child { border-bottom: 0; }
.help-section h2 { margin-bottom: 16px; font-size: 22px; }
.help-section h3 { margin: 22px 0 9px; color: var(--green); font-size: 14px; }
.help-section p, .help-section li { color: #42524c; font-size: 12px; line-height: 1.7; }
.help-section p { margin-bottom: 12px; }
.help-section ul, .help-section ol { margin: 10px 0 16px; padding-left: 23px; }
.help-section li + li { margin-top: 4px; }
.help-section table { width: 100%; margin: 15px 0; border-collapse: collapse; font-size: 11px; }
.help-section th, .help-section td { padding: 10px 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.help-section th { background: #f1f7f4; color: var(--green); }
.help-section code { padding: 2px 5px; border-radius: 4px; background: #edf2ef; color: #34453e; font-size: .92em; }
.help-loading, .help-empty { padding: 28px; color: var(--muted); text-align: center; }
.help-empty { margin: 0; border-top: 1px solid var(--line); background: white; }
.help-dialog > .error-banner { margin: 18px 28px; }
.password-form { display: grid; gap: 15px; padding: 26px; }
.password-form .composer-header { margin-bottom: 2px; }
.password-form > label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.password-help { text-align: left; line-height: 1.45; }
.admin-section { scroll-margin-top: 24px; }
.admin-intro { max-width: 900px; margin: -14px 0 22px; color: var(--muted); line-height: 1.65; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.admin-panel { min-width: 0; }
.admin-panel .panel-heading { align-items: start; }
.admin-list { display: grid; gap: 9px; }
.admin-list-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; text-align: center; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }
.admin-row-main { min-width: 0; }
.admin-row-main strong, .admin-row-main span { display: block; }
.admin-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.admin-row-main span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-side { display: grid; gap: 6px; justify-items: end; }
.admin-status { display: inline-flex; padding: 4px 7px; border-radius: 99px; background: var(--mint); color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-status.disconnected, .admin-status.unavailable, .admin-status.paused, .admin-status.suspended { background: #fff1de; color: #9b5b10; }
.admin-status.revoked, .admin-status.archived { background: #fff0ef; color: var(--red); }
.admin-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 16px; box-shadow: 0 28px 80px rgba(8,31,23,.28); }
.admin-dialog::backdrop { background: rgba(8,25,20,.62); backdrop-filter: blur(3px); }
.admin-form { padding: 26px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admin-form-grid > label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-form-grid input[type="color"] { width: 100%; min-height: 42px; padding: 4px; cursor: pointer; }
.admin-wide { grid-column: 1 / -1; }
.documentation-hub { margin-top: 18px; }
.documentation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.documentation-list a { min-height: 104px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: #fbfdfc; transition: transform .15s ease, border-color .15s ease; }
.documentation-list a:hover { transform: translateY(-2px); border-color: var(--green); }
.documentation-list strong, .documentation-list span { display: block; }
.documentation-list strong { font-size: 13px; }
.documentation-list span { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.composer { padding: 26px; }
.composer-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 24px; }
.composer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.composer-fields > label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.composer-fields > label:nth-child(n+4) { grid-column: 1 / -1; }
.poll-fields { grid-column: 1 / -1; display: grid; gap: 15px; padding: 16px; border: 1px solid #b9ddcf; border-radius: 11px; background: #f4fbf8; }
.poll-fields > label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.poll-choice { grid-template-columns: auto 1fr !important; align-items: start; cursor: pointer; }
.poll-choice input { width: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--green); }
.poll-choice strong, .poll-choice small { display: block; }
.poll-choice strong { color: var(--ink); font-size: 12px; }
.poll-choice small { margin-top: 3px; font-weight: 500; }
textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 9px; padding: 12px; color: var(--ink); font: inherit; }
textarea:focus, select:focus, input:focus { outline: 2px solid rgba(8,127,91,.18); border-color: var(--green); }
.file-field { grid-column: 1 / -1; }
.drop-zone { position: relative; display: grid; place-items: center; min-height: 112px; padding: 18px; border: 1.5px dashed #9db8ae; border-radius: 10px; background: #f7fbf9; color: var(--ink); text-align: center; cursor: pointer; }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone small { margin-top: 5px; color: var(--muted); font-weight: 500; }
.field-meta { color: var(--muted); font-size: 10px; font-weight: 500; text-align: right; }
.schedule-controls { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.schedule-controls label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.preview-card { align-self: start; position: sticky; top: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #efeae2; box-shadow: var(--shadow); }
.preview-label { display: block; padding: 12px 14px; background: #10231d; color: #bed0ca; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.media-preview { display: grid; place-items: center; min-height: 255px; max-height: 390px; overflow: hidden; background: #dde4df; color: var(--muted); font-size: 12px; text-align: center; }
.media-preview img, .media-preview video { width: 100%; max-height: 390px; object-fit: contain; background: #101713; }
.poll-preview { width: 100%; padding: 22px; text-align: left; }
.poll-preview-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 20px; }
.poll-preview > strong { display: block; margin-bottom: 15px; color: var(--ink); font-size: 17px; line-height: 1.35; }
.poll-preview > div { display: grid; gap: 8px; }
.poll-preview > div span { padding: 10px 12px; border: 1px solid #bad4ca; border-radius: 8px; background: white; color: var(--ink); font-size: 12px; }
.poll-preview > small { display: block; margin-top: 12px; color: var(--muted); }
.poll-results { grid-column: 2 / -1; padding: 15px; border: 1px solid #b9ddcf; border-radius: 10px; background: #f5fbf8; }
.poll-results-heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.poll-results-heading span { color: var(--green); font-size: 11px; font-weight: 800; }
.poll-results-list { display: grid; gap: 9px; }
.poll-results-list > div { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr 88px; gap: 10px; align-items: center; font-size: 11px; }
.poll-result-track { height: 8px; overflow: hidden; border-radius: 99px; background: #dfe9e5; }
.poll-result-track i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.poll-results-list strong { text-align: right; }
.poll-results > small { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; }
.caption-preview { min-height: 88px; padding: 15px; background: white; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.preview-footer { display: flex; justify-content: space-between; padding: 0 15px 14px; background: white; color: var(--muted); font-size: 10px; }
.composer-actions { display: flex; justify-content: end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 1050px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .documentation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utm-builder form { grid-template-columns: 1fr 1fr; }
  .ga-grid { grid-template-columns: repeat(3, 1fr); }
  .ga-journey { grid-template-columns: repeat(2, 1fr); }
  .journey-step:nth-child(even)::after { display: none; }
  .schedule-item { grid-template-columns: 88px minmax(0, 1fr); }
  .schedule-media { width: 88px; }
  .schedule-when { grid-column: 2; justify-items: start; }
  .row-actions { justify-content: start; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; height: auto; padding: 16px; }
  nav { display: none; }
  .connection { margin: 16px 0 0; padding-top: 12px; }
  main { margin-left: 0; padding: 24px 16px 60px; }
  header { align-items: start; flex-direction: column; }
  .header-actions { width: 100%; }
  .header-actions { flex-wrap: wrap; }
  .button-accent { width: 100%; order: -1; }
  .range-label { flex: 1; }
  .kpi-grid { grid-template-columns: 1fr; }
  .ga-grid { grid-template-columns: 1fr 1fr; }
  .ga-demo-heading { display: block; }
  .demo-badge { display: inline-flex; margin-top: 12px; }
  .scenario-tabs { display: grid; grid-template-columns: 1fr; }
  .ga-demo-summary, .ga-demo-kpis, .ga-capability-grid { grid-template-columns: 1fr; }
  .ga-demo-summary > code { grid-column: 1; }
  .ga-journey { grid-template-columns: 1fr; }
  .journey-step { min-height: 0; }
  .journey-step:not(:last-child)::after { content: "↓"; display: grid; top: auto; right: 50%; bottom: -11px; }
  .ga-empty, .quality-panel { display: block; }
  .quality-score { margin-bottom: 18px; padding-bottom: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .utm-builder form { grid-template-columns: 1fr; }
  .tracked-link-row { grid-template-columns: minmax(0, 1fr) 68px; }
  .operation-kpis { grid-template-columns: 1fr 1fr; }
  .schedule-heading { display: block; }
  .schedule-filters { margin-top: 15px; }
  .schedule-filters label { flex: 1; }
  .schedule-filters select { min-width: 0; width: 100%; }
  .schedule-item { grid-template-columns: 72px minmax(0, 1fr); padding: 14px; }
  .schedule-media { width: 72px; height: 72px; }
  .poll-results { grid-column: 1 / -1; }
  .poll-results-list > div { grid-template-columns: 1fr; gap: 5px; }
  .poll-results-list strong { text-align: left; }
  .composer { padding: 19px; }
  .composer-grid, .composer-fields, .schedule-controls { grid-template-columns: 1fr; }
  .admin-form-grid, .documentation-list { grid-template-columns: 1fr; }
  .admin-wide { grid-column: 1; }
  .composer-fields > label { grid-column: 1; }
  .preview-card { position: static; }
  .help-dialog { width: 100vw; height: 100vh; border-radius: 0; }
  .help-header { padding: 19px; }
  .help-toolbar { display: grid; padding: 12px 19px; }
  .help-version { padding: 0; }
  .help-layout { grid-template-columns: 1fr; }
  .help-toc { display: flex; gap: 5px; padding: 10px 14px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .help-toc button { flex: 0 0 auto; width: auto; margin: 0; white-space: nowrap; }
  .help-content { padding: 4px 19px 40px; }
  .help-content > .help-intro { margin: 0 -19px 12px; padding: 18px 19px; }
}
