/* Source: src/styles/visitor-dashboard.css */
:root { color-scheme: light; --ink: #203a32; --muted: #62746c; --line: #dce3dd; --paper: #f5f6f2; --green: #245a46; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
a { color: var(--green); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 10px 14px; }
input, select { background: white; color: var(--ink); }
button { color: white; background: var(--green); border-color: var(--green); font-weight: 600; }
button:hover { filter: brightness(.94); }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #bd8b42; outline-offset: 3px; }
.secondary { color: var(--ink); background: white; border-color: #c8d5cc; }
.text-button { color: var(--ink); background: transparent; border-color: transparent; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 4vw; background: #193c30; color: #fff; }
.brand { text-decoration: none; letter-spacing: .16em; font-size: 16px; font-weight: 750; color: inherit; }
.brand span { display: block; font-size: 11px; font-weight: 450; letter-spacing: .22em; }
.private-label { color: #bed3c5; font-size: 12px; border: 1px solid #416052; border-radius: 20px; padding: 5px 11px; }
.dashboard-main { max-width: 1500px; margin: 0 auto; padding: 42px 4vw 56px; }
h1, h2, p { margin-top: 0; }
h1, h2.overview-title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.16; margin-bottom: 12px; letter-spacing: -.02em; }
h2 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; font-weight: 650; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.status { font-size: 13px; min-height: 20px; color: var(--muted); }
.status.error { color: #a03127; }
.login-panel { max-width: 680px; margin: 64px auto; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.login-panel h1 { max-width: 450px; }
.login-panel > p { color: var(--muted); }
.login-panel label { display: block; font-weight: 600; margin: 28px 0 9px; }
.login-controls { display: flex; gap: 10px; margin-bottom: 12px; }
.login-controls input { min-width: 0; flex: 1; }
.login-controls button { white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-heading { margin-bottom: 12px; }
.page-heading p { margin-bottom: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 24px; }
.metric { padding: 23px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.metric h2 { color: var(--muted); font-size: 12px; font-weight: 500; }
.metric strong { display: block; font-size: 38px; line-height: 1.3; font-weight: 600; letter-spacing: -.04em; }
.metric p { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.metric.accent { background: #e8efe6; border-color: #c5d5be; }
.panel { padding: 24px; border: 1px solid var(--line); background: white; border-radius: 10px; min-width: 0; }
.insight-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-bottom: 24px; }
.section-heading { align-items: baseline; margin-bottom: 18px; }
.section-heading p { margin: 5px 0 0; }
.daily-chart { display: flex; align-items: end; gap: 7px; height: 175px; margin: 25px 0 12px; overflow-x: auto; }
.day-column { flex: 1; min-width: 18px; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.day-bar { width: 100%; max-width: 45px; min-height: 2px; background: #6f9680; border-radius: 4px 4px 0 0; }
.day-column:last-child .day-bar { background: var(--green); }
.network-list { max-height: 235px; overflow-y: auto; }
.network-row { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #edf0ec; }
.network-row:first-child { padding-top: 0; }
.network-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.network-row strong { min-width: 35px; text-align: right; }
.badge { display: inline-block; margin: 4px 0 0; padding: 3px 7px; font-size: 11px; border-radius: 4px; background: #edf0ed; color: #526158; font-weight: 500; }
.badge.institution { background: #edf1da; color: #536322; }
.badge.provider { background: #eef0f2; color: #5d6672; }
.filters { display: flex; gap: 10px; margin-bottom: 22px; }
.filters input { width: min(450px, 100%); }
.table-scroll { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
th { color: var(--muted); font-weight: 500; font-size: 11px; padding: 12px 12px; background: #f7f8f5; white-space: nowrap; }
td { padding: 15px 12px; border-bottom: 1px solid #edf0ec; vertical-align: top; }
td:nth-child(2) { min-width: 160px; max-width: 260px; overflow-wrap: anywhere; }
td:nth-child(3) { min-width: 110px; }
td:nth-child(5) { max-width: 260px; min-width: 160px; overflow-wrap: anywhere; }
td:last-child { min-width: 120px; }
.visitor-link { font: inherit; color: var(--green); padding: 0; min-height: 28px; background: transparent; border: 0; text-decoration: underline; white-space: nowrap; }
.cell-note { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.method-note { max-width: 1050px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.method-note strong { color: var(--ink); }
.method-note p { margin: 8px 0; }
.warning { padding: 12px 16px; background: #fff1d7; border: 1px solid #ecd5a6; border-radius: 7px; font-size: 13px; }
dialog { width: min(700px, calc(100vw - 32px)); max-height: 85vh; border: 1px solid var(--line); border-radius: 12px; padding: 28px; color: var(--ink); }
dialog::backdrop { background: #102a2480; }
.activity-list { padding-left: 20px; }
.activity-list li { margin-bottom: 18px; padding-left: 6px; overflow-wrap: anywhere; }
.activity-list a { font-weight: 600; }
.privacy-page { max-width: 780px; margin: 0 auto; padding: 50px 24px; }
.privacy-page .brand { display: block; margin-bottom: 45px; }
.privacy-page h2 { margin-top: 30px; }
.privacy-page p { color: var(--muted); }
.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; }
@media (max-width: 1000px) { .insight-grid { grid-template-columns: 1fr; } .metrics { grid-template-columns: repeat(2, 1fr); } .page-heading { align-items: start; } }
@media (max-width: 600px) { .dashboard-header { padding: 18px 20px; } .brand { font-size: 13px; } .private-label { font-size: 11px; } .dashboard-main { padding: 25px 16px; } .page-heading { flex-direction: column; } .page-heading .actions { width: 100%; gap: 6px; } .metrics { gap: 10px; } .metric { padding: 16px; } .metric strong { font-size: 30px; } .panel { padding: 16px; } .section-heading { flex-wrap: wrap; gap: 4px; } .filters { flex-wrap: wrap; } .filters input { flex-basis: 100%; } .filters select { flex: 1; } .login-panel { margin: 20px auto; padding: 25px; } .login-controls { flex-direction: column; } .pagination { font-size: 11px; } .daily-chart { gap: 3px; } }
