:root {
  --canvas: #f1f0e9; --surface: #fbfaf5; --ink: #17211b; --muted: #6f766f;
  --line: #d9d9cf; --brand: #d7ff52; --brand-deep: #97bd19; --dark: #17211b;
  --danger: #c44838; --success: #2d7e50; --radius: 16px; --shadow: 0 14px 40px rgba(23,33,27,.08);
}
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); font-family: Tahoma, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sidebar { position: fixed; inset: 0 0 0 auto; width: 248px; background: var(--dark); color: #f6f7ee; padding: 28px 20px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.brand-symbol { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: var(--brand); color: var(--dark); font-weight: 900; font-size: 22px; transform: rotate(-5deg); }
.brand b, .brand small { display: block; }.brand b { font-size: 17px; }.brand small { color: #9da89f; font-size: 10px; margin-top: 4px; }
.sidebar nav { display: grid; gap: 7px; }.sidebar nav a { padding: 13px 14px; border-radius: 10px; color: #aeb8b0; display: flex; align-items: center; gap: 12px; transition: .18s ease; }
.sidebar nav a span { color: #667269; font: 10px Consolas, monospace; }.sidebar nav a:hover, .sidebar nav a.active { background: #26342b; color: #fff; }.sidebar nav a.active span { color: var(--brand); }
.side-foot { margin-top: auto; border-top: 1px solid #314039; padding-top: 18px; display: flex; gap: 8px; align-items: center; font-size: 11px; color: #98a39b; }.side-foot a { margin-right: auto; color: #e3e8e3; }
.status-dot { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 4px rgba(215,255,82,.12); }
.content { margin-right: 248px; padding: 42px clamp(24px, 4vw, 64px); max-width: 1680px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }.topbar h1 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -1.5px; margin: 6px 0 0; }.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .4px; }.menu-button { display: none; }
.button { border: 0; min-height: 44px; padding: 0 20px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }.button.primary { background: var(--dark); color: #fff; box-shadow: 0 8px 18px rgba(23,33,27,.16); }.button.primary:hover { background: #29392f; transform: translateY(-1px); }.button.wide { width: 100%; }
.metrics { display: grid; grid-template-columns: 1.65fr repeat(3, 1fr); gap: 14px; margin-bottom: 20px; scroll-margin-top: 20px; }.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 150px; display: flex; flex-direction: column; }.metric > span { color: var(--muted); font-size: 11px; }.metric strong { font-size: clamp(24px, 2.7vw, 38px); margin: auto 0 8px; letter-spacing: -1.4px; }.metric small { color: var(--muted); font-size: 10px; }.hero-metric { background: var(--brand); border-color: #c0e53e; }.hero-metric > span, .hero-metric small { color: #425014; }.meter { height: 4px; background: rgba(23,33,27,.15); margin-top: 18px; border-radius: 2px; overflow: hidden; }.meter i { display: block; height: 100%; background: var(--dark); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; scroll-margin-top: 24px; }.panel-head { min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }.panel-head h2 { margin: 4px 0 0; font-size: 20px; }.count { color: var(--muted); border: 1px solid var(--line); padding: 7px 10px; border-radius: 20px; font-size: 10px; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; min-width: 840px; }th { text-align: right; color: var(--muted); font-size: 10px; font-weight: 400; padding: 13px 20px; background: #f5f4ee; }td { padding: 17px 20px; border-top: 1px solid #e8e7df; vertical-align: middle; }td b, td small { display: block; }td small { color: var(--muted); margin-top: 6px; font-size: 10px; }.number { font-size: 20px; font-weight: 700; }.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; padding: 6px 9px; border-radius: 20px; }.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }.badge.live { background: #e1f2e7; color: var(--success); }.badge.live::before { background: var(--success); }.badge.off { background: #eee; color: #777; }.badge.off::before { background: #888; }.actions { display: flex; gap: 6px; }.actions a, .actions button { border: 1px solid var(--line); background: transparent; border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.split-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 20px; }.link-list, .activity-list { padding: 5px 24px; }.track-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 17px 0; border-bottom: 1px solid #e5e4dc; }.track-row:last-child { border: 0; }.network-icon, .avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #e7e8df; font-weight: 800; }.track-row b, .track-row small, .track-row code { display: block; }.track-row small { color: var(--muted); font-size: 10px; margin: 4px 0 7px; }.track-row code { direction: ltr; text-align: left; font-size: 10px; color: #536057; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }.copy { border: 1px solid var(--line); background: transparent; border-radius: 9px; height: 38px; padding: 0 13px; cursor: pointer; }.copy:hover { background: var(--brand); border-color: var(--brand-deep); }
.activity { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid #e5e4dc; }.activity:last-child { border: 0; }.activity > i { width: 10px; height: 10px; border-radius: 50%; }.activity > i.ok { background: var(--brand-deep); box-shadow: 0 0 0 5px #eff7d4; }.activity > i.bad { background: var(--danger); box-shadow: 0 0 0 5px #f7e4e0; }.activity b, .activity small { display: block; }.activity b { font-size: 12px; }.activity small { color: var(--muted); font-size: 10px; margin-top: 5px; }
.publisher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }.publisher-card { background: var(--surface); padding: 22px; }.publisher-card > div { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }.publisher-card b, .publisher-card small { display: block; }.publisher-card small { color: var(--muted); font-size: 10px; margin-top: 4px; }.publisher-card > strong { display: block; font-size: 22px; }.inline-form { display: flex; gap: 6px; margin-top: 14px; }.inline-form input { min-width: 0; width: 100%; }.inline-form button { white-space: nowrap; border: 0; border-radius: 8px; background: var(--dark); color: white; cursor: pointer; }
.create-panel { padding-bottom: 26px; }.tabs { display: flex; gap: 4px; padding: 18px 24px 0; overflow-x: auto; }.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 11px 14px; cursor: pointer; color: var(--muted); white-space: nowrap; }.tabs button.active { color: var(--ink); border-color: var(--brand-deep); font-weight: 700; }.tab-content { display: none; padding: 25px 24px 5px; }.tab-content.active { display: block; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end; }.form-grid label { display: grid; gap: 8px; color: #505951; font-size: 11px; }.form-grid .span-2 { grid-column: span 2; }input, select { width: 100%; height: 45px; padding: 0 13px; color: var(--ink); background: white; border: 1px solid #cfd1c7; border-radius: 9px; outline: none; }input:focus, select:focus { border-color: #6d871b; box-shadow: 0 0 0 3px rgba(151,189,25,.18); }.form-grid .button { justify-self: start; }
.alert { border-radius: 11px; padding: 13px 16px; margin: 0 0 18px; }.alert.success { background: #dff1e5; color: #246b43; }.alert.error { background: #f7e3df; color: #9d3327; }.empty { color: var(--muted); text-align: center; padding: 35px !important; }footer { color: var(--muted); font-size: 10px; text-align: center; padding: 18px; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--dark); padding: 25px; }.login-shell { width: min(900px, 100%); min-height: 560px; display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.35); }.login-mark { padding: 55px; background: var(--brand); display: flex; flex-direction: column; }.login-mark p { color: #56631f; }.login-mark h1 { margin: auto 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.15; letter-spacing: -4px; }.pulse-line { display: flex; gap: 7px; align-items: flex-end; height: 50px; }.pulse-line i { width: 9px; background: var(--dark); border-radius: 5px; }.pulse-line i:nth-child(1) { height: 16px; }.pulse-line i:nth-child(2) { height: 30px; }.pulse-line i:nth-child(3) { height: 46px; }.pulse-line i:nth-child(4) { height: 25px; }.pulse-line i:nth-child(5) { height: 36px; }.login-card { background: var(--surface); padding: 55px 42px; display: flex; flex-direction: column; justify-content: center; }.login-card h2 { margin: 7px 0; font-size: 28px; }.muted { color: var(--muted); }.login-card form { display: grid; gap: 16px; margin: 30px 0 20px; }.login-card label { display: grid; gap: 8px; font-size: 11px; }.login-card small { color: var(--muted); line-height: 1.8; }.login-card code { direction: ltr; }
@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(2, 1fr); }.split-grid { grid-template-columns: 1fr; }.publisher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .sidebar { transform: translateX(105%); transition: transform .22s ease; box-shadow: -10px 0 30px rgba(0,0,0,.25); }.menu-open .sidebar { transform: translateX(0); }.content { margin-right: 0; padding: 22px 14px; }.menu-button { display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); width: 44px; height: 44px; border-radius: 10px; }.topbar { align-items: center; flex-wrap: wrap; }.topbar > div { flex: 1; }.topbar .button { width: 100%; }.metrics { grid-template-columns: 1fr 1fr; }.hero-metric { grid-column: span 2; }.publisher-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.login-shell { grid-template-columns: 1fr; }.login-mark { min-height: 240px; padding: 30px; }.login-mark h1 { font-size: 42px; letter-spacing: -2px; }.pulse-line { display: none; }.login-card { padding: 35px 28px; } }
@media (max-width: 420px) { .metrics { grid-template-columns: 1fr; }.hero-metric { grid-column: auto; }.metric { min-height: 130px; }.panel-head { padding: 18px; }.link-list, .activity-list, .tab-content { padding-right: 18px; padding-left: 18px; }.track-row { grid-template-columns: 40px 1fr; }.track-row .copy { grid-column: 1 / -1; width: 100%; }.topbar h1 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Simple MVP account and publisher-link controls. */
.button.secondary { background: #ebeee2; border: 1px solid #cdd3c0; color: var(--ink); box-shadow: none; }
.button.secondary:hover { background: #dfe7cc; }
.balance-value { color: #24633c; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.funds-table { min-width: 640px; }
.link-create { padding: 20px 24px; background: #f5f6ef; border-bottom: 1px solid var(--line); }
.link-create p { font-size: 12px; line-height: 1.9; margin: 0 0 16px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-hint { color: #505951; }
.track-row > div:nth-child(2) { min-width: 0; }
.short-link { direction: ltr; text-align: left; font: 12px Consolas, monospace; height: 40px; background: #f5f6ef; padding: 0 9px; }
.copy { min-height: 44px; height: auto; white-space: nowrap; }
.selected-link { background: #eff6da; outline: 2px solid #97bd19; outline-offset: -2px; border-radius: 8px; padding-inline: 8px; }
.publisher-link-action { display: inline-flex; align-items: center; min-height: 44px; color: #30552b; font-size: 12px; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tabs button, .inline-form button { min-height: 44px; }
a:focus-visible, button:focus-visible { outline: 3px solid #6d871b; outline-offset: 3px; }
@media (max-width: 760px) { .panel-head { gap: 12px; flex-wrap: wrap; }.link-create { padding: 20px 18px; } }

.report-sharing { margin-top: 14px; display: grid; gap: 10px; max-width: 410px; }
.publisher-card .report-sharing { display: grid; align-items: stretch; margin-bottom: 0; }
.report-sharing .quick-actions { margin: 0; gap: 8px; }
.report-sharing .button, .report-sharing .copy { font-size: 11px; padding-inline: 12px; }
.revoke-report button { border: 0; background: none; color: #9d3327; cursor: pointer; padding: 8px 0; min-height: 44px; font-size: 11px; }
.report-body { background: var(--canvas); }
.report-shell { width: min(1120px, 100%); margin-inline: auto; padding: 32px 24px; }
.report-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.report-header .brand { margin: 0; }.report-header .brand small { color: var(--muted); }
.report-intro { margin: 32px 0 24px; }.report-intro h1 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0; }.report-intro p { margin: 0; line-height: 1.9; }
.report-filter { padding: 20px 24px; }.report-filter form { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; }.report-filter label { display: grid; gap: 8px; flex: 1; min-width: 160px; font-size: 12px; }.report-filter .quick-actions { margin-top: 18px; gap: 8px; }
.report-range { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); }.report-range:hover { background: #e7eed8; }
.report-period { color: var(--muted); font-size: 12px; line-height: 1.8; }.report-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }.report-metrics .metric strong { font-size: clamp(20px, 2.3vw, 29px); letter-spacing: -.5px; overflow-wrap: anywhere; }
.publisher-report .hero-metric { background: #ffdfa0; border-color: #d7b56b; }
.report-insight { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 24px 0; font-size: 12px; }.report-insight span { color: var(--muted); }
.chart-wrap { padding: 22px 24px; direction: ltr; }.trend-chart { width: 100%; display: block; min-height: 160px; }.chart-grid { stroke: var(--line); stroke-width: 1; }.chart-area { fill: #d7edb6; opacity: .55; }.chart-line { fill: none; stroke: #427b32; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }.chart-point { fill: #427b32; }.chart-label { fill: #525c53; font: 15px Tahoma, sans-serif; }
.report-table { min-width: 510px; }.daily-table { min-width: 360px; }.report-table tfoot { background: #eef2e4; font-weight: 700; }.report-note { padding: 0 24px 14px; color: var(--muted); font-size: 11px; line-height: 1.9; }.report-summary { cursor: pointer; padding: 22px 24px; font-size: 17px; font-weight: 700; min-height: 64px; }.report-empty { padding: 40px 24px; text-align: center; }
@media (max-width: 760px) { .report-shell { padding: 22px 14px; }.report-header { flex-wrap: wrap; }.report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.report-metrics .hero-metric { grid-column: auto; }.report-filter { padding: 18px; }.report-filter form .button { width: 100%; }.report-insight { padding-inline: 18px; }.chart-wrap { padding: 18px 8px; } }
@media (max-width: 420px) { .report-metrics .metric { padding: 16px 12px; min-height: 140px; }.report-metrics .metric strong { font-size: 19px; }.report-metrics .metric small { line-height: 1.7; }.report-sharing .quick-actions { flex-direction: column; } }

/* Manual social-network statistics: intentionally calm and form-first. */
.manual-panel { overflow: hidden; }
.source-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #b8c48f; border-radius: 999px; background: #edf2df; color: #38552f; font-size: 11px; font-weight: 700; }
.manual-guide { margin: 0 24px 22px; padding: 20px 22px; border: 1px solid #cfd6c2; border-right: 4px solid #8baa2e; border-radius: 10px; background: #f6f8f0; }
.manual-guide strong { display: block; margin-bottom: 8px; font-size: 15px; }
.manual-guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0 22px 0 0; }
.manual-guide li { padding-left: 8px; font-size: 12px; line-height: 1.8; }
.manual-guide p { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.manual-form { margin: 0 24px 26px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(26, 36, 29, .06); }
.manual-main-fields { margin-bottom: 18px; }
.manual-main-fields label small { margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 400; }
.manual-group { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf7; }
.manual-group summary { min-height: 48px; padding: 14px 16px; cursor: pointer; font-size: 13px; font-weight: 700; }
.manual-group[open] summary { border-bottom: 1px solid var(--line); }
.manual-number-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px 16px; }
.manual-number-grid label, .manual-note { display: grid; gap: 8px; font-size: 11px; font-weight: 700; }
.manual-note { margin-top: 18px; }
.manual-note textarea { width: 100%; resize: vertical; min-height: 86px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcf8; color: var(--ink); font: inherit; line-height: 1.8; }
.manual-note textarea:focus { outline: 3px solid rgba(109, 135, 27, .22); border-color: #6d871b; }
.manual-submit { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.manual-submit p { margin: 0; color: var(--muted); font-size: 11px; }
.manual-empty { margin: 0 24px 26px; padding: 28px; text-align: center; border: 1px dashed #bfc7b2; border-radius: 10px; background: #f8f9f4; }
.manual-history { border-top: 1px solid var(--line); }
.subsection-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 12px; }
.subsection-head h3 { margin: 4px 0 0; font-size: 18px; }
.manual-table { min-width: 850px; }
.manual-table td > span { display: block; font-weight: 700; }
.manual-table .metric-note { max-width: 270px; margin-top: 7px; white-space: normal; line-height: 1.7; }
.evidence-link { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 10px; border: 1px solid #b8c48f; border-radius: 7px; color: #31532c; font-size: 11px; font-weight: 700; }
.evidence-link:hover { background: #edf2df; }
.manual-report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 24px 20px; border: 1px solid var(--line); background: var(--line); }
.manual-report-metrics > div { min-height: 104px; padding: 18px; background: #f8faf4; }
.manual-report-metrics span { display: block; color: var(--muted); font-size: 11px; }
.manual-report-metrics strong { display: block; margin-top: 8px; font-size: clamp(18px, 2.2vw, 26px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.manual-report-table { min-width: 680px; }
@media (max-width: 980px) { .manual-number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.manual-guide ol { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .manual-guide, .manual-form, .manual-empty { margin-inline: 16px; }.manual-guide, .manual-form { padding: 18px; }.manual-number-grid { grid-template-columns: 1fr; }.manual-submit { align-items: stretch; flex-direction: column; }.manual-submit .button { width: 100%; }.source-chip { width: fit-content; }.manual-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 16px; }.manual-report-metrics > div { min-height: 92px; padding: 14px; } }

