:root {
  color-scheme: light;
  --ink: #102d48;
  --navy: #062c50;
  --muted: #4e6575;
  --line: #d9e3e8;
  --paper: #f5f8fa;
  --blue: #256d91;
  --serif: "Iowan Old Style", "Baskerville", "Baskerville Old Face", Georgia, serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; font-size: 1rem; line-height: 1.48; }
button, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #3486aa; outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: 8px; z-index: 10; padding: 9px 14px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.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; }
.wrap { width: min(1232px, calc(100% - clamp(36px, 9vw, 160px))); margin-inline: auto; }
.masthead { background: #fff; }
.masthead-inner { min-height: 82px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; justify-content: center; }
.brand img { width: 76px; height: 58px; object-fit: contain; display: block; }
.brand-divider { width: 1px; height: 27px; background: var(--line); }
.masthead-label { font-size: .88rem; color: #455b6c; font-weight: 500; }
.masthead nav { display: flex; gap: 28px; align-self: stretch; margin-left: auto; }
.masthead nav a { position: relative; display: flex; align-items: center; font-size: .9rem; text-decoration: none; color: var(--muted); }
.masthead nav a[aria-current] { color: var(--navy); font-weight: 630; }
.masthead nav a[aria-current]::after { content: ""; position: absolute; height: 3px; width: 100%; bottom: 0; background: var(--navy); }
.masthead nav a:hover { color: #08739b; }
.masthead .workspace-tabs {
  display: inline-flex; align-self: center; justify-content: flex-start; gap: 2px; margin: 0;
  min-height: 0; padding: 3px; background: #f0f5f7; border: 1px solid var(--line); border-radius: 8px;
}
.masthead .workspace-tabs a {
  padding: 7px 12px; border-radius: 5px; font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.masthead .workspace-tabs a[aria-current="page"] { background: var(--navy); color: white; }
.masthead .workspace-tabs a[aria-current="page"]::after { display: none; }
.hero { isolation: isolate; overflow: hidden; position: relative; color: #fff; background: linear-gradient(106deg,#052641 4%,#083758 65%,#104965); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(30px, 3.6vw, 54px) clamp(32px, 3.75vw, 58px); }
.wave-art { overflow: hidden; position: absolute; inset: 0 0 0 39%; z-index: -1; mask-image: linear-gradient(90deg,transparent,#000 43%); }
.wave-art svg { display: block; width: 100%; height: 100%; }
.network { display: inline-flex; gap: 9px; align-items: center; color: #d8e8ee; font-size: .85rem; font-weight: 600; letter-spacing: .015em; }
.facebook-mark { display: inline-grid; align-items: end; justify-content: center; overflow: hidden; width: 18px; height: 18px; border-radius: 50%; background: #e2eff2; color: #0d3556; font: 750 21px/18px Arial,sans-serif; padding-top: 2px; }
h1,h2,p { margin: 0; }
h1 { margin: 12px 0 9px; font: 400 clamp(2.6rem,5.1vw,5.15rem)/1.05 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
h1 em { color: #ccdee7; font-weight: 400; }
.hero-inner>p { color: #d9e7ed; font-size: 1rem; }
.dashboard { padding-block: 36px 48px; display: grid; gap: 24px; }
.section-heading,.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.summary-heading { margin-bottom: 20px; }
h2 { font: 400 clamp(1.7rem,2.2vw,2.15rem)/1.15 var(--serif); letter-spacing: -.04em; }
.section-sub,.cut-meta { margin-top: 7px; color: var(--muted); font-size: .88rem; }
.cut-meta { display: flex; align-items: center; column-gap: 7px; row-gap: 3px; flex-wrap: wrap; }
.meta-divider { color: #8799a3; }
.status-dot { width: 7px; height: 7px; border-radius: 100%; flex-shrink: 0; background: #8495a0; }
.status-dot.ready { background: #27836e; }
.status-dot.partial,.status-dot.unavailable { background: #b47a3d; }
.period-select,.chart-select { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
.period-control { display: grid; justify-items: end; gap: 5px; }
.summary-filters { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.summary-filters .chart-select select { padding-block: 11px; max-width: min(228px, 86vw); }
.chart-select[hidden] { display: none; }
.period-range { font-size: .8rem; color: var(--muted); }
.period-range:empty { display: none; }
.range-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px; margin:0 0 16px; padding:14px 17px; border:1px solid var(--line); border-radius:9px; background:#edf3f6; }
.range-form[hidden] { display:none; }
.range-form label { display:grid; gap:4px; min-width:0; color:var(--muted); font-weight:600; font-size:.82rem; }
.range-form input { min-width:0; min-height:39px; padding:7px 10px; background:#fff; color:var(--ink); border:1px solid #bdcfda; border-radius:6px; font:inherit; font-size:.89rem; }
.range-form button { min-height:39px; padding:7px 19px; color:#fff; background:var(--navy); border:0; border-radius:6px; font-size:.89rem; font-weight:600; }
#range-error:not(:empty) { flex:0 0 100%; color:#914a21; font-size:.875rem; }
select { appearance: none; border: 1px solid #c9d7df; border-radius: 7px; color: var(--ink); background: white; line-height: 1.3; font-size: .88rem; font-weight: 600; }
.period-select select { padding: 11px 33px 11px 39px; }
.chart-select select { padding: 9px 32px 9px 12px; max-width: 100%; }
.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg { display: block; width: 18px; height: 18px; }
.period-select>.icon,.chart-select>.icon { position: absolute; pointer-events: none; }
.period-select>.icon:first-child { left: 13px; color: #507086; }
.select-chevron { right: 11px; }
.select-chevron svg { width: 13px; height: 13px; }
.notices:not(:empty) { margin: -3px 0 16px; }
.notice { display: flex; align-items: flex-start; gap: 9px; background: #fff8ed; color: #734b1c; border: 1px solid #e9d7b8; border-radius: 7px; padding: 10px 14px; font-size: .875rem; overflow-wrap: anywhere; }
.notice+.notice { margin-top: 6px; }
.notice .icon { margin-top: 2px; }
.notice .icon svg { width: 16px; height: 16px; }
.permission-help { margin-top: 6px; }
.permission-help summary { width: fit-content; cursor: pointer; font-weight: 600; }
.permission-help ol { margin: 8px 0 2px; padding-left: 20px; }
.permission-help li+li { margin-top: 4px; }
.permission-help code { font-size: .95em; overflow-wrap: anywhere; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.kpi,.panel { border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.kpi { padding: clamp(15px,1.75vw,25px); display: flex; flex-direction: column; justify-content: space-between; min-height: 153px; }
.kpi-header { display: flex; align-items: center; gap: 10px; }
.kpi-header>.icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #e9f2f6; color: #306782; }
.kpi-label { font-size: .9rem; line-height: 1.25; font-weight: 600; }
.kpi-value { display: block; margin-top: 14px; font-size: clamp(1.75rem,2.65vw,2.75rem); font-weight: 550; line-height: 1.13; letter-spacing: -.065em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-unit { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.panel { overflow: hidden; }
.panel-heading { padding: 24px clamp(18px,2vw,30px) 18px; }
.chart-area { padding: 0 clamp(18px,2vw,29px) 18px; }
.chart-canvas { position: relative; }
.chart-plot { width: 100%; height: clamp(215px,20vw,280px); display: block; touch-action: pan-y; }
.chart-plot label,.chart-plot text { font: 13px var(--sans); fill: var(--muted); }
.chart-tip { position: absolute; background: var(--navy); color: white; border-radius: 6px; padding: 8px 12px; line-height: 1.45; font-size: .82rem; box-shadow: 0 5px 20px #123a561f; white-space: nowrap; pointer-events: none; z-index: 2; }
.chart-tip strong { display: block; }
.chart-axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding: 3px 1% 0; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 32px 18px; text-align: center; color: var(--muted); }
.empty>.icon { width: 39px; height: 39px; background: #eaf1f5; border-radius: 50%; color: #507389; }
.empty strong { font-weight: 620; color: #354f63; font-size: .96rem; }
.empty p { max-width: 55ch; font-size: .875rem; }
.chart-empty { min-height: 194px; border: 1px dashed #cedce3; border-radius: 8px; background: linear-gradient(180deg,#f5f9fb,#fbfcfd); }
.tabs { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f3f7f9; }
.tabs button { padding: 8px 13px; font-size: .875rem; line-height: 1.2; font-weight: 600; border: 0; border-radius: 5px; background: transparent; color: #516b7b; }
.tabs button[aria-selected=true] { background: var(--navy); color: #fff; }
.detail-content { max-width: 100%; overflow-x: auto; border-top: 1px solid var(--line); }
.campaign-table th:first-child,.campaign-table td:first-child { width:27%; }
.conversation-cost,.conversation-count { font-weight:650; color:var(--navy); }
.campaign-method { caption-side:bottom; text-align:left; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
th,td { padding: 13px 17px; text-align: right; vertical-align: middle; font-variant-numeric: tabular-nums; }
th { background: #f5f8fa; font-size: .8rem; font-weight: 600; color: #4e6879; }
th:first-child,td:first-child { text-align: left; padding-left: clamp(18px,2vw,30px); width: 50%; }
th:last-child,td:last-child { padding-right: clamp(18px,2vw,30px); }
td { border-top: 1px solid #e7edf0; }
td:first-child { overflow-wrap: anywhere; }
td:not(:first-child) { white-space: nowrap; }
td a { text-decoration-color: #abc4d1; text-underline-offset: 3px; }
td a:hover { color: var(--blue); }
.table-more { display: block; border: 1px solid #cbd9e0; border-radius: 6px; background: white; color: var(--ink); font-size: .875rem; padding: 8px 15px; margin: 12px auto 16px; }
.audience-heading { align-items: flex-end; }
.campaign-filter { min-width: 0; max-width: min(35%,380px); }
.campaign-filter>label { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.campaign-filter .chart-select,.campaign-filter select { width: 100%; }
.campaign-filter select { text-overflow: ellipsis; }
.dimensions { border: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 clamp(18px,2vw,30px) 16px; margin: 0; }
.dimensions label { cursor: pointer; position: relative; }
.dimensions input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dimensions span { display: block; border: 1px solid var(--line); border-radius: 20px; padding: 6px 13px; font-size: .85rem; color: var(--muted); }
.dimensions input:checked+span { background: #e5eff4; color: var(--navy); border-color: #aec4d1; font-weight: 600; }
.dimensions input:focus-visible+span { outline: 3px solid #3486aa; outline-offset: 2px; }
#audience-report { border-top: 1px solid var(--line); }
.audience-table th:first-child,.audience-table td:first-child { width: 23%; }
.audience-table .share-cell { width: 18%; }
.share-graph { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.share-track { width: min(6vw,90px); height: 5px; border-radius: 10px; background: #e4edf1; overflow: hidden; }
.share-fill { display: block; height: 100%; border-radius: inherit; background: #40839a; }
.share-label { min-width: 5ch; }
.audience-base,.campaign-method { border-top: 1px solid var(--line); padding: 12px clamp(18px,2vw,30px); color: var(--muted); font-size: .85rem; }
footer { border-top: 1px solid #cfdae1; color: var(--muted); background: #fff; font-size: .82rem; }
.footer-inner,.credit { display: flex; align-items: center; }
.footer-inner { min-height: 90px; justify-content: center; }
.credit { gap: 11px; }
.credit img { display: block; width: 79px; height: 40px; object-fit: contain; border-radius: 3px; }
@media (max-width:850px) {
  .wrap { width: calc(100% - 42px); }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi { min-height: 135px; }
  .masthead-inner { min-height: 74px; }
  .campaign-table { display:flex; flex-direction:column; }
  .campaign-table tbody { display:block; }
  .campaign-method { display:block; order:1; }
  .campaign-table thead { position:absolute; clip:rect(0,0,0,0); width:1px; height:1px; overflow:hidden; }
  .campaign-table tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:10px; padding:14px 15px; border-bottom:1px solid var(--line); }
  .campaign-table td,.campaign-table td:first-child,.campaign-table td:last-child { padding:0; min-width:0; width:auto; border:0; text-align:left; white-space:normal; }
  .campaign-table td:first-child { grid-column:1 / -1; font-weight:600; }
  .campaign-table td[data-label]::before { display:block; content:attr(data-label); font-size:.76rem; line-height:1.3; color:var(--muted); }
  .audience-table, .audience-table tbody { display:block; }
  .audience-table thead { position:absolute; clip:rect(0,0,0,0); width:1px; height:1px; overflow:hidden; }
  .audience-table tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:9px 7px; padding:13px 15px; border-bottom:1px solid var(--line); }
  .audience-table tr:last-child { border-bottom:0; }
  .audience-table td, .audience-table td:first-child, .audience-table td:last-child { padding:0; min-width:0; width:auto; border:0; text-align:left; font-size:.85rem; }
  .audience-table td:first-child { grid-column:1 / 3; grid-row:1; font-weight:650; }
  .audience-table .share-cell { grid-column:3; grid-row:1; width:auto; text-align:right; }
  .audience-table td[data-label]::before { display:block; content:attr(data-label); font-size:.76rem; color:var(--muted); }
  .audience-table.with-conversations tr { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .with-conversations td:first-child { grid-column:1; }
  .with-conversations .share-cell { grid-column:2; }
  .share-graph { gap:5px; justify-content:flex-end; }
  .share-label { min-width:0; }
}
@media (max-width:620px) {
  .range-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .range-form button { justify-self:start; }
  #range-error { grid-column:1 / -1; }
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { gap: 10px; min-height: 64px; }
  .brand img { width: 60px; height: 45px; }
  .masthead nav { gap: 17px; }
  .masthead nav a { font-size: .83rem; }
  .masthead-label,.brand-divider { display: none; }
  .hero-inner { padding-block: 28px 33px; }
  .hero-inner>p { font-size: .92rem; max-width: 31ch; }
  h1 { font-size: clamp(2.35rem,8vw,3.25rem); }
  .dashboard { padding-block: 26px 32px; gap: 17px; }
  .section-heading,.panel-heading { align-items: flex-start; gap: 12px; }
  .summary-heading { flex-wrap: wrap; margin-bottom: 15px; }
  .period-control { justify-items: start; }
  .campaign-filter { width: 100%; max-width: 100%; }
  .dimensions { padding: 0 15px 15px; gap: 5px; }
  .dimensions span { padding: 5px 9px; font-size: .8rem; }
  .summary-filters { justify-content: flex-start; }
  .cut-meta,.section-sub { font-size: .82rem; }
  .kpi-grid { gap: 9px; }
  .kpi { padding: 13px; min-height: 121px; border-radius: 9px; }
  .kpi-header { gap: 6px; }
  .kpi-label { font-size: .82rem; }
  .kpi-header>.icon { width: 25px; height: 25px; }
  .kpi-header>.icon svg { width: 15px; height: 15px; }
  .kpi-value { margin-top: 10px; font-size: clamp(1.55rem,6.2vw,2.4rem); }
  .kpi-unit { font-size: .76rem; }
  .panel-heading { flex-wrap: wrap; padding: 19px 15px 15px; }
  .chart-area { padding: 0 14px 15px; }
  .chart-empty { min-height: 168px; }
  .footer-inner { min-height: 76px; }
  .credit img { width: 68px; height: 35px; }
  th,td { padding: 11px 12px; }
  th:first-child,td:first-child { min-width: 150px; }
}
@media (max-width:400px) {
  .masthead nav { gap:10px; }
  .masthead nav a { font-size:.8rem; }
  .brand img { width:52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.post-table { table-layout: fixed; }
.post-table th, .post-table td { padding: 9px 10px; }
.post-table thead th { padding-block: 11px; font-size: .84rem; }
.post-table :is(th, td):first-child { width: 5rem; min-width: 0; padding-inline-start: clamp(15px, 2vw, 30px); }
.post-table thead th:nth-child(2), .post-table :is(th, td):nth-child(3) { text-align: left; }
.post-table thead th:nth-child(3) { width: 8.8rem; }
.post-table thead th:nth-child(4) { width: 8.4rem; }
.post-table thead th:nth-child(5) { width: 6.8rem; }
.post-table :is(th, td):last-child { width: 9rem; padding-inline-end: clamp(15px, 2vw, 30px); }
.post-table .post-copy-cell {
  border-top: 1px solid #e7edf0; background: transparent; color: var(--ink);
  text-align: left; font-size: .94rem; font-weight: 550;
}
.post-thumbnail {
  position: relative; display: grid; place-items: center; overflow: hidden; width: 44px; height: 44px;
  padding: 0; border: 1px solid #c6d6df; border-radius: 7px; background: #eef4f6; color: #587489; cursor: zoom-in;
}
.post-thumbnail:hover { border-color: var(--blue); box-shadow: 0 0 0 2px #256d9126; }
.post-thumbnail:focus-visible, .post-dialog-close:focus-visible { outline: 3px solid #2579a0; outline-offset: 3px; }
.post-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.post-date, .post-no-link { color: var(--muted); font-size: .875rem; }
.post-number { font-weight: 600; }
.post-mobile-label { display: none; }
.post-link { display: inline-block; padding-block: 4px; color: var(--blue); font-size: .875rem; font-weight: 600; }

#post-ranking { border-top: 1px solid var(--line); }
.post-ranking-list {
  list-style: none; margin: 0; padding: 2px clamp(15px,2vw,30px);
  display: grid; grid-template-columns: 1.5rem 44px minmax(0,1fr) minmax(0,1.15fr) minmax(5.5ch,auto);
  column-gap: clamp(10px,1.5vw,20px);
}
.post-ranking-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid;
  align-items: center; padding-block: 9px;
}
.post-ranking-row + .post-ranking-row { border-top: 1px solid #e7edf0; }
.post-rank { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.post-rank-label { min-width: 0; }
.post-rank-copy { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; font-size: .94rem; }
.post-rank-label time { display: block; color: var(--muted); font-size: .81rem; }
.post-bar-track { display: block; overflow: hidden; height: .625rem; border-radius: 3px; background: #eaf1f4; }
.post-bar-fill { display: block; height: 100%; background: #397792; border-radius: inherit; }
.post-ranking-row:first-child .post-bar-fill { background: #195c7b; }
.post-rank-value { text-align: right; font-size: .94rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.post-rank-coverage { border-top: 1px solid var(--line); padding: 11px clamp(15px,2vw,30px); color: var(--muted); font-size: .85rem; }

body:has(.post-dialog[open]) { overflow: hidden; }
.post-dialog {
  width: min(64rem, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink);
  box-shadow: 0 20px 80px #03243e52;
}
.post-dialog[open] { display: flex; flex-direction: column; }
.post-dialog::backdrop { background: rgb(6 31 49 / 72%); }
.post-dialog [hidden] { display: none; }
.post-dialog-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none;
  padding: 18px clamp(16px,2.5vw,30px); border-bottom: 1px solid var(--line); background: white;
}
.post-dialog-header h2 { font-size: clamp(1.55rem,3vw,2.1rem); overflow-wrap: anywhere; }
#post-dialog-date:not([hidden]) { display: block; margin-top: 3px; color: var(--muted); font-size: .875rem; }
.post-dialog-close {
  flex: none; min-height: 44px; padding: 8px 16px; border: 1px solid #bfced7; border-radius: 7px;
  color: var(--navy); background: white; font-size: .9rem; font-weight: 600;
}
.post-dialog-close:hover { border-color: var(--blue); background: #eff6f8; }
.post-dialog-body {
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: start;
  gap: clamp(18px,2.5vw,30px); padding: clamp(16px,2.5vw,30px); min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
}
.post-dialog-media {
  position: sticky; top: 0; display: grid; place-items: center; width: 100%; aspect-ratio: 1;
  max-height: 58vh; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #eff4f6;
}
#post-dialog-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.post-dialog-media:has(#post-dialog-image-missing) { aspect-ratio: auto; min-height: 8rem; }
#post-dialog-image-missing { padding: 20px; text-align: center; color: var(--muted); font-size: .9rem; }
.post-dialog-info { min-width: 0; }
.post-dialog-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 18px; }
.post-dialog-metrics > div { padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.post-dialog-metrics dt { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.post-dialog-metrics dd {
  margin: 3px 0 0; font-size: 1.2rem; font-weight: 650; line-height: 1.25;
  letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.post-dialog-copy { margin: 0; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .post-table, .post-table tbody { display: block; }
  .post-table thead { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
  .post-table tbody tr {
    display: grid; grid-template-columns: 44px minmax(0,1fr) minmax(0,1fr) auto;
    align-items: center; gap: 3px 9px; padding: 13px 15px;
  }
  .post-table tbody tr + tr { border-top: 1px solid var(--line); }
  .post-table tbody tr > :is(th, td),
  .post-table tbody tr > :first-child,
  .post-table tbody tr > :last-child,
  .post-table tbody .post-copy-cell { width: auto; min-width: 0; border: 0; padding: 0; text-align: left; white-space: normal; }
  .post-preview { grid-column: 1; grid-row: 1 / 3; }
  .post-copy-cell { grid-column: 2 / -1; grid-row: 1; }
  .post-date { grid-column: 2 / -1; grid-row: 2; }
  .post-table .post-number, .post-table .post-action { grid-row: 3; align-self: end; padding-top: 4px; }
  .post-number:nth-child(4) { grid-column: 1 / 3; }
  .post-number:nth-child(5) { grid-column: 3; }
  .post-action { grid-column: 4; }
  .post-mobile-label { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
  .post-dialog-body { display: block; }
  .post-dialog-info { margin-top: 16px; }
  .post-dialog-media { position: relative; max-height: 48vh; aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) {
  .post-ranking-list { grid-template-columns: 1.15rem 44px minmax(0,1fr) auto; column-gap: 9px; }
  .post-ranking-row { row-gap: 4px; padding-block: 10px; }
  .post-rank { grid-column: 1; grid-row: 1; align-self: start; }
  .post-ranking-row .post-thumbnail { grid-column: 2; grid-row: 1 / 3; }
  .post-rank-label { grid-column: 3; grid-row: 1; }
  .post-rank-value { grid-column: 4; grid-row: 1; align-self: start; }
  .post-bar-track { grid-column: 3 / -1; grid-row: 2; height: .45rem; }
  .post-dialog { width: calc(100% - 16px); max-height: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .post-dialog-header { padding: 12px 16px; }
}

.session-controls { position: relative; flex: none; }
.session-controls button, .insights-filters button {
  padding: 9px 13px; min-height: 40px; border: 1px solid #bdcfd9; border-radius: 7px;
  background: white; font-weight: 600; color: var(--navy); font-size: .86rem;
}
.session-controls button:hover, .insights-filters button:hover { background: #edf5f7; border-color: #799caf; }
.session-controls button:disabled, .insights-filters button:disabled { opacity: .65; cursor: wait; }
#logout-error {
  z-index: 2; position: absolute; inset: calc(100% + 5px) 0 auto auto; width: min(240px, 85vw);
  padding: 10px 13px; color: #734b1c; background: #fff8ed; border: 1px solid #e9d7b8; border-radius: 6px; font-size: .85rem;
}
.insights-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.insights-filters label { display: block; margin: 0 0 4px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.insights-filters select { min-height: 40px; }
#insights-status:not(:empty) { margin: 0 clamp(15px,2vw,30px) 17px; color: var(--muted); font-size: .87rem; }
#insights-report:not(:empty) { border-top: 1px solid var(--line); }
.insights-table { table-layout: fixed; }
.insights-table :is(th,td) { text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.insights-table th:first-child { min-width: 0; width: 14%; }
.insights-table thead th:last-child { width: 10%; }
.insights-table tbody th { background: white; border-top: 1px solid #e7edf0; color: var(--navy); font-size: .9rem; }
.insights-table tbody td { font-size: .88rem; line-height: 1.5; }
.insights-table tbody td:last-child { font-weight: 600; }

.login-page {
  min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  background-color: #082d49;
  background-image: repeating-radial-gradient(ellipse at 99% 15%, transparent 0 18px, #aad9e00d 19px, transparent 20px 27px),
    linear-gradient(120deg, #05253f, #0d3e5d 70%, #19576c);
}
.login-card {
  align-self: center; justify-self: center; width: min(30rem, calc(100% - 32px)); margin-block: clamp(28px,7vh,72px);
  padding: clamp(24px,5vw,44px); border: 1px solid #ffffff6b; border-radius: 16px;
  background: white; box-shadow: 0 20px 62px #021c3347;
}
.login-logo { display: block; width: 96px; height: 70px; margin-bottom: 24px; object-fit: contain; object-position: left; }
.login-card h1 { margin: 0 0 12px; font-size: clamp(2.25rem,5vw,3rem); line-height: 1.07; }
#login-instruction { font-size: .95rem; line-height: 1.55; color: var(--muted); }
#login-form { margin-top: 23px; }
#login-form label { display: block; margin: 14px 0 5px; font-size: .88rem; font-weight: 650; }
#login-form input {
  width: 100%; min-height: 45px; padding: 9px 12px; font: inherit; color: var(--ink);
  border: 1px solid #b6cbd6; border-radius: 6px; background: white;
}
#login-form input:read-only { color: var(--muted); background: var(--paper); }
#login-code { font-variant-numeric: tabular-nums; letter-spacing: .18em; }
#login-submit {
  width: 100%; min-height: 46px; margin-top: 19px; padding: 10px; border: 0; border-radius: 7px;
  background: var(--navy); color: #fff; font-size: .95rem; font-weight: 650;
}
#login-submit:hover { background: #154569; }
.login-status:not(:empty) { margin-top: 15px; color: var(--muted); font-size: .89rem; }
.login-actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 10px; }
.login-actions button {
  padding: 7px 0; border: 0; background: none; color: #245c7c; font-size: .88rem;
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.login-page button:disabled { opacity: .62; cursor: default; }

@media (max-width: 1080px) {
  .masthead-inner { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; padding-top: 8px; }
  .masthead-inner .brand-divider { display: none; }
  .masthead-inner .masthead-label { display: block; }
  .masthead-inner nav { order: 1; grid-column: 1 / -1; margin-left: 0; min-height: 39px; justify-content: space-between; gap: 10px; }
  .masthead-inner .workspace-tabs { order: 0; grid-column: 2; justify-self: start; }
  .session-controls { justify-self: end; }
}
@media (max-width: 900px) {
  .insights-table, .insights-table tbody { display: block; }
  .insights-table thead { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
  .insights-table tbody tr { display: grid; padding: 17px clamp(15px,2vw,30px); gap: 10px; }
  .insights-table tbody tr + tr { border-top: 1px solid var(--line); }
  .insights-table tbody :is(td,th), .insights-table tbody th:first-child, .insights-table tbody td:last-child {
    border: 0; padding: 0; width: auto; min-width: 0;
  }
  .insights-table tbody th { font: 600 1.02rem var(--sans); }
  .insights-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
}
@media (max-width: 520px) {
  .masthead .masthead-inner { grid-template-columns: 1fr auto; gap: 5px 10px; }
  .masthead .brand { justify-self: start; }
  .masthead .session-controls { grid-area: 1 / 2; }
  .masthead .workspace-tabs { grid-column: 1 / -1; justify-self: stretch; }
  .masthead .workspace-tabs a { flex: 1; justify-content: center; }
}
@media (max-width: 440px) {
  .masthead .masthead-inner { column-gap: 5px; }
  .masthead .workspace-tabs a { padding: 7px 6px; font-size: .8rem; }
  .masthead .session-controls button { padding-inline: 7px; font-size: .79rem; }
}
