/* The dashboard and privacy page share only local fonts and static styles. */
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-ext.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.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: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/manrope-latin.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 { color-scheme: light; --ink: #1b2824; --muted: #626c66; --line: #e1e5dd; --paper: #f8f8f4; --accent: #b82c35; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; min-height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #315e4e; outline-offset: 4px; border-radius: 4px; }
button:disabled { cursor: wait; opacity: .55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); z-index: 10; }
.skip-link:focus { transform: none; color: #fff; }
.dashboard-shell { width: min(100% - 64px, 1160px); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; }
.site-header { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: baseline; gap: 0; font-family: 'Manrope', system-ui, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -1px; text-decoration: none; white-space: nowrap; }
.wordmark > span:first-child { font-weight: 500; }
.header-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; font-size: 13px; font-weight: 500; }
.header-nav a { text-decoration: none; }
.header-nav a:hover { text-decoration: underline; }
.header-nav a span { margin-left: 4px; }
main { flex: 1; padding: 44px 0 0; }
.page-heading { margin-bottom: 38px; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.privacy-dot { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: #537c64; }
h1, h2 { font-family: 'Manrope', system-ui, sans-serif; }
h1 { margin: 0; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.2; letter-spacing: -1.8px; font-weight: 800; }
.page-description { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.toolbar-heading { margin: 0 0 6px; font-size: 18px; letter-spacing: -.3px; }
#period-caption { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.toolbar-controls { display: flex; align-items: center; gap: 12px; }
.period-selector { display: flex; align-items: center; gap: 4px; border: 1px solid #dde2d9; border-radius: 12px; margin: 0; padding: 4px; background: #eef0e9; }
.period-selector button { min-height: 36px; padding: 8px 14px; border: 0; border-radius: 8px; background: transparent; color: #59645d; font-size: 12px; font-weight: 600; white-space: nowrap; }
.period-selector button[aria-pressed='true'] { color: var(--ink); background: #fff; box-shadow: 0 1px 5px #23392c12; }
.period-selector button:hover { color: var(--ink); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; padding: 11px 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #314e40; color: #fff; }
.button-secondary { background: #fff; color: var(--ink); border-color: #dbe1d7; }
.button-secondary:hover { background: #eef2eb; color: var(--ink); }
.refresh-button { min-height: 42px; padding: 10px 14px; font-size: 12px; }
.refresh-button span { font-size: 17px; line-height: 1; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.metric-card { min-width: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 5px 18px -15px #243b2e44; }
.metric-card h2 { font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; line-height: 1.5; font-weight: 600; margin: 0; }
.metric-value { font-family: 'Manrope', system-ui, sans-serif; margin: 16px 0 12px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -1.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.metric-card-accent { background: #fff8f6; border-color: #ecdcd5; }
.metric-card-accent .metric-value { color: #aa3035; }
.report-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 18px; margin: 16px 2px 28px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.report-meta p { margin: 0; }
.report-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.card-heading .eyebrow { margin-bottom: 7px; font-size: 10px; }
.card-heading h2 { font-size: 20px; letter-spacing: -.5px; margin: 0; line-height: 1.4; }
.quiet-badge { display: inline-block; padding: 7px 10px; border: 1px solid #e6e9e1; border-radius: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.table-scroll { overflow: auto; max-height: 410px; border-top: 1px solid #e8ebe4; border-bottom: 1px solid #e8ebe4; }
.daily-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 520px; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.daily-table th, .daily-table td { padding: 13px 16px; border-bottom: 1px solid #eef0ea; text-align: right; white-space: nowrap; }
.daily-table th:first-child, .daily-table td:first-child { text-align: left; padding-left: 8px; }
.daily-table th:last-child, .daily-table td:last-child { padding-right: 8px; }
.daily-table thead th { position: sticky; top: 0; background: #fff; color: #58645b; font-size: 11px; font-weight: 500; z-index: 1; border-bottom: 1px solid #dde3d7; }
.daily-table tbody th { font-weight: 500; }
.daily-table tbody tr:nth-child(even) { background: #fafbf8; }
.daily-table tbody tr:last-child th, .daily-table tbody tr:last-child td { border-bottom: 0; }
.daily-table .table-empty { text-align: center; white-space: normal; padding: 30px 16px; color: var(--muted); }
.card-footnote { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 22px; margin-top: 22px; }
.section-description { color: var(--muted); font-size: 12px; line-height: 1.7; margin: -8px 0 25px; }
.platform-list { display: grid; gap: 22px; padding: 0; margin: 0; list-style: none; }
.platform-row { --platform-color: #496457; }
.platform-instagram { --platform-color: #c73572; }
.platform-youtube { --platform-color: #ce3535; }
.platform-tiktok { --platform-color: #315e4e; }
.platform-facebook { --platform-color: #226dcc; }
.platform-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 8px; font-size: 13px; }
.platform-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.platform-name::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--platform-color); }
.platform-count { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
meter { width: 100%; height: 10px; display: block; border: 0; border-radius: 5px; overflow: hidden; background: #edf0e9; }
meter::-webkit-meter-bar { background: #edf0e9; border: 0; border-radius: 5px; box-shadow: none; }
meter::-webkit-meter-optimum-value { background: var(--platform-color); border-radius: 5px; }
meter::-moz-meter-bar { background: var(--platform-color); border-radius: 5px; }
.rank-list { margin: 0; padding: 0; list-style: none; max-height: 390px; overflow-y: auto; scrollbar-gutter: stable; }
.rank-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 3px; border-bottom: 1px solid #ecefe7; }
.rank-row:first-child { padding-top: 3px; }
.rank-row:last-child { border-bottom: 0; }
.rank-number { color: #828b81; font-size: 11px; font-variant-numeric: tabular-nums; }
.rank-name { display: block; font-size: 12px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
a.rank-name { text-decoration: none; }
a.rank-name:hover { text-decoration: underline; }
.rank-platform { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 3px; }
.rank-count { text-align: right; font-variant-numeric: tabular-nums; }
.rank-count strong { display: block; font-size: 15px; font-weight: 600; }
.rank-count span { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.list-empty { color: var(--muted); font-size: 13px; line-height: 1.8; padding: 22px 0; margin: 0; }
.measurement-note { max-width: 860px; color: var(--muted); font-size: 11px; line-height: 1.8; margin: 24px 2px 0; }
.empty-notice { display: flex; align-items: flex-start; gap: 16px; padding: 20px; margin: 22px 0 0; border: 1px solid #dbe3d4; border-radius: 14px; background: #eff4eb; }
.empty-mark { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid #d2deca; background: #fff; color: #416148; border-radius: 9px; }
.empty-notice h2 { margin: 0 0 5px; font-size: 14px; line-height: 1.5; }
.empty-notice p { margin: 0; color: #566a50; font-size: 12px; line-height: 1.8; }
.state-card { text-align: center; max-width: 620px; margin: 44px auto 80px; padding: 42px 34px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px -24px #243b2e55; }
.state-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 24px; color: #315e4e; background: #edf3ed; }
.state-icon svg { width: 29px; height: 29px; }
.state-card h2 { font-size: 25px; line-height: 1.4; letter-spacing: -.7px; margin: 0 0 14px; }
.state-card > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 440px; margin: 0 auto; }
.state-card > .state-note { margin-top: 16px !important; padding: 12px; background: #faf4e8; border-radius: 9px; font-size: 12px !important; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 25px; }
.state-card[data-state='error'] .state-icon, .state-card[data-state='denied'] .state-icon { color: #aa3035; background: #fff0eb; }
.notice { padding: 18px; border: 1px solid #e2d3b8; border-radius: 12px; background: #fcf6e9; font-size: 14px; line-height: 1.7; }
.page-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; border-top: 1px solid var(--line); margin-top: 54px; padding: 25px 0 30px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.page-footer > span:first-child { color: var(--ink); font-weight: 600; }
.page-footer > a:last-child { margin-left: auto; }
.privacy-main { width: min(100%, 760px); margin: 0 auto; padding-top: 50px; }
.privacy-main h1 { max-width: 650px; }
.privacy-main .page-heading { margin-bottom: 32px; }
.privacy-article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.privacy-article section + section { border-top: 1px solid #ebeee6; margin-top: 25px; padding-top: 25px; }
.privacy-article h2 { margin: 0 0 11px; font-size: 19px; letter-spacing: -.3px; line-height: 1.5; }
.privacy-article p { margin: 0; color: #536056; font-size: 14px; line-height: 1.9; }
.privacy-article p + p { margin-top: 12px; }
.privacy-article ul { padding-left: 20px; margin: 12px 0 0; color: #536056; font-size: 14px; line-height: 1.9; }
.privacy-article li + li { margin-top: 5px; }

@media (max-width: 800px) {
  .dashboard-shell { width: calc(100% - 40px); }
  .site-header { min-height: 84px; }
  main { padding-top: 34px; }
  .report-toolbar { flex-wrap: wrap; }
  .metric-grid { gap: 12px; }
  .metric-card { padding: 20px 17px; }
  .metric-card h2 { min-height: 40px; font-size: 12px; }
  .metric-description { font-size: 11px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 540px) {
  .dashboard-shell { width: calc(100% - 32px); }
  .site-header { gap: 12px; min-height: 78px; }
  .wordmark { font-size: 20px; letter-spacing: -.8px; }
  .header-nav { font-size: 11px; gap: 9px; max-width: 150px; }
  .header-nav a { min-height: 30px; display: inline-flex; align-items: center; }
  .page-heading { margin-bottom: 28px; }
  h1 { letter-spacing: -1.1px; }
  .page-description { font-size: 14px; margin-top: 11px; }
  .report-toolbar { gap: 17px; }
  .toolbar-controls { width: 100%; justify-content: space-between; gap: 8px; }
  .period-selector { gap: 2px; padding: 3px; }
  .period-selector button { padding: 8px 10px; font-size: 11px; }
  .refresh-button { padding: 10px; font-size: 11px; }
  .metric-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .metric-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; padding: 19px 21px; }
  .metric-card h2 { min-height: 0; align-self: end; font-size: 12px; }
  .metric-value { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; font-size: 35px; max-width: 180px; }
  .metric-description { grid-column: 1; font-size: 11px; }
  .report-meta { margin-bottom: 22px; font-size: 10px; }
  .report-card { padding: 20px 16px; border-radius: 15px; }
  .card-heading { gap: 10px; margin-bottom: 18px; }
  .card-heading h2 { font-size: 18px; }
  .quiet-badge { font-size: 9px; padding: 6px 7px; }
  .daily-table { min-width: 470px; font-size: 11px; }
  .daily-table th, .daily-table td { padding: 12px; }
  .platform-list { grid-template-columns: minmax(0, 1fr); }
  .state-card { padding: 32px 20px; margin: 32px auto 50px; }
  .state-card h2 { font-size: 22px; }
  .state-card > p:not(.eyebrow) { font-size: 13px; }
  .empty-notice { padding: 16px; gap: 12px; }
  .page-footer { margin-top: 40px; gap: 10px 14px; font-size: 10px; }
  .privacy-main { padding-top: 34px; }
  .privacy-article { padding: 24px 20px; border-radius: 16px; }
  .privacy-article h2 { font-size: 18px; }
  .privacy-article p, .privacy-article ul { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
