:root { color-scheme: light; --ink:#15201b; --muted:#637068; --paper:#f4f0e8; --panel:#fffdf8; --line:#d9d7ce; --accent:#b34729; --green:#246b55; --yellow:#8a590e; --red:#a63b32; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
html { scrollbar-gutter:stable; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; color:var(--ink); background:var(--paper); min-height:100vh; }
a { color:inherit; }
.skip-link { position:fixed; z-index:1000; top:8px; left:8px; translate:0 -180%; padding:10px 14px; border-radius:3px; background:white; color:var(--ink); font-weight:850; text-decoration:none; }
.skip-link:focus { translate:0; }
.site-header { position:relative; height:68px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:0 max(24px, calc((100vw - 1180px)/2)); background:var(--ink); color:white; }
.brand { min-height:44px; display:flex; flex:0 0 auto; align-items:center; font-weight:800; letter-spacing:-.03em; text-decoration:none; font-size:1.25rem; }
.site-header>nav { min-width:0; margin-left:auto; align-items:center; justify-content:flex-end; }
.site-header>nav a { display:inline-flex; min-height:44px; align-items:center; border-bottom:3px solid transparent; }
.site-header>nav a[aria-current="page"] { border-bottom-color:#f2a990; color:white; }
.account-switcher { position:relative; z-index:20; flex:0 0 auto; color:white; }
.account-switcher>summary { min-height:46px; display:flex; align-items:center; gap:9px; padding:5px 10px 5px 6px; border:1px solid #526159; border-radius:999px; background:#1c2923; cursor:pointer; list-style:none; transition:background .15s,border-color .15s,box-shadow .15s; }
.account-switcher>summary::-webkit-details-marker { display:none; }
.account-switcher>summary:hover,.account-switcher[open]>summary { border-color:#87958d; background:#29372f; box-shadow:0 5px 16px rgba(0,0,0,.18); }
.account-avatar { width:34px; height:34px; display:grid; flex:0 0 34px; place-items:center; border-radius:50%; background:#f2a990; color:#4d1c0f; font-size:.8rem; font-weight:950; }
.account-avatar svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; }
.account-summary-copy { min-width:0; display:grid; line-height:1.05; }
.account-summary-copy strong { max-width:112px; overflow:hidden; color:white; font-size:.76rem; text-overflow:ellipsis; white-space:nowrap; }
.account-summary-copy small { margin-top:4px; color:#afbeb6; font-size:.61rem; font-weight:700; }
.account-chevron { width:12px; height:8px; display:grid; flex:0 0 12px; margin-left:2px; place-items:center; transition:rotate .15s; }
.account-chevron svg { width:12px; height:8px; fill:none; stroke:#afbeb6; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.account-switcher[open] .account-chevron { rotate:180deg; }
.account-popover { position:absolute; top:calc(100% + 9px); right:0; width:250px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); box-shadow:0 18px 45px rgba(8,16,12,.26); }
.account-popover-identity { display:grid; padding:16px; border-bottom:1px solid var(--line); background:#f7f3eb; }
.account-popover-identity small { color:var(--muted); font-size:.65rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.account-popover-identity strong { margin-top:5px; overflow:hidden; font-size:.94rem; text-overflow:ellipsis; white-space:nowrap; }
.account-popover-identity span { margin-top:3px; overflow:hidden; color:var(--muted); font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.account-popover>a,.account-popover form button { width:100%; min-height:44px; display:flex; align-items:center; padding:0 16px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:var(--panel); color:var(--ink); font-size:.76rem; font-weight:800; text-align:left; text-decoration:none; }
.account-popover>a:hover,.account-popover>a[aria-current="page"],.account-popover form button:hover { background:#eee8dc; color:var(--accent); filter:none; box-shadow:none; }
.account-popover form { margin:0; }
.account-popover form button { border-bottom:0; color:var(--red); }
nav { display:flex; gap:22px; }
nav a { color:#d8e2dc; text-decoration:none; font-size:.92rem; }
nav a:hover { color:white; }
main { width:min(1180px, calc(100% - 32px)); margin:0 auto; padding:52px 0 70px; }
footer { padding:24px; text-align:center; color:var(--muted); font-size:.82rem; }
h1,h2,h3,p { margin-top:0; }
h1 { font-family:Georgia, serif; font-size:clamp(2.3rem, 5vw, 4.7rem); line-height:.98; letter-spacing:-.045em; max-width:800px; margin-bottom:20px; }
h2 { letter-spacing:-.025em; }
.eyebrow { color:var(--accent); font-size:.72rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.align-start { align-items:start; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:5px; padding:25px; box-shadow:0 7px 24px rgba(40,48,43,.04); }
.panel p { line-height:1.5; }
.auth-panel { width:min(100%,560px); margin-inline:auto; }
.wide { margin-top:18px; }
.panel-heading,.page-heading,.candidate-meta { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.panel-heading { flex-wrap:wrap; }
.panel-heading h2 { margin:0; }
.page-heading { margin-bottom:28px; align-items:flex-end; }
.page-heading h1 { font-size:3.5rem; margin:0; }
.page-heading>p { color:var(--muted); }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.actions form { margin:0; }
.page-heading>.actions { justify-content:flex-end; }
.rows { margin-top:18px; }
.row { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); padding:14px 0; gap:15px; }
.row small { display:block; color:var(--muted); margin-top:4px; }
.row time { color:var(--muted); font-size:.78rem; }
.notice { margin-bottom:22px; padding:13px 16px; background:#fff2cc; border-left:4px solid var(--yellow); }
.danger-notice { margin:18px 0 24px; padding:15px 17px; background:#f8ded9; border-left:4px solid var(--red); color:#6e2924; }
.danger-notice a { font-weight:800; }
.connect-callout { display:flex; justify-content:space-between; gap:20px; align-items:center; margin:18px 0 24px; padding:18px 20px; background:#deebe5; border:1px solid #bed5c9; }
.connect-callout span,.connected-box span { display:block; color:var(--muted); margin-top:4px; }
.button-link { display:inline-flex; align-items:center; justify-content:center; background:var(--accent); color:white; border-radius:3px; padding:11px 16px; font-weight:800; text-decoration:none; white-space:nowrap; }
.button-link.large { padding:14px 20px; margin:12px 0; }
.button-link:hover { filter:brightness(.93); }
.stack { display:grid; gap:14px; }
.account-quick-form { display:grid; gap:12px; }
.handle-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:end; }
.handle-row button { min-width:82px; min-height:43px; }
.account-settings { border:1px solid var(--line); border-radius:4px; background:#f7f3eb; }
.account-settings summary { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; cursor:pointer; font-size:.78rem; font-weight:850; }
.account-settings summary small { color:var(--muted); font-size:.68rem; font-weight:500; text-align:right; }
.account-settings-fields { display:grid; gap:12px; padding:4px 12px 13px; border-top:1px solid var(--line); }
.date-pair { display:grid; grid-template-columns:1.4fr 1fr; gap:10px; }
label { display:grid; gap:6px; color:var(--muted); font-size:.8rem; font-weight:700; }
label small { color:var(--muted); font-weight:500; line-height:1.4; }
label small[role="alert"] { color:var(--red); font-weight:750; }
input,textarea,select { width:100%; min-height:44px; border:1px solid #9da29c; background:white; border-radius:3px; padding:11px 12px; color:var(--ink); font:inherit; }
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"] { border:2px solid var(--red); }
input:disabled { background:#e9e8e2; color:#46534b; cursor:not-allowed; opacity:1; }
button { min-height:44px; border:0; background:var(--accent); color:white; border-radius:3px; padding:11px 16px; font-weight:800; cursor:pointer; }
button:hover { filter:brightness(.88); box-shadow:0 2px 0 rgba(21,32,27,.18); }
button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.table-wrap:focus-visible { outline:3px solid white; outline-offset:2px; box-shadow:0 0 0 5px var(--accent); }
button:disabled { opacity:.5; cursor:not-allowed; }
button.secondary { background:var(--ink); }
button.danger { background:transparent; color:var(--red); border:1px solid #d7aaa6; }
button.large { padding:14px 20px; margin:12px 0; }
.hint,.empty { color:var(--muted); font-size:.88rem; margin:18px 0 0; }
.check-row { display:flex; min-height:44px; align-items:center; gap:10px; color:var(--ink); cursor:pointer; line-height:1.4; }
.check-row input[type="checkbox"] { width:20px; min-width:20px; min-height:20px; margin:0; accent-color:var(--accent); }
.steps { display:grid; gap:12px; padding-left:22px; color:#46534b; line-height:1.45; }
.account-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.account-card { border:1px solid var(--line); padding:18px; }
.account-card>div { display:flex; justify-content:space-between; gap:12px; }
.account-card h3 { margin-bottom:8px; }
.account-card p { color:var(--muted); min-height:2.5em; }
.account-actions { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:15px; }
.account-actions form,.account-actions button { width:100%; }
.account-actions button { height:100%; min-height:44px; padding:9px; font-size:.72rem; }
.account-management { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
.account-management summary { min-height:44px; display:flex; align-items:center; margin:-3px; padding:9px; border-radius:4px; cursor:pointer; color:var(--muted); font-size:.74rem; font-weight:800; transition:background .15s,color .15s; }
.account-management summary:hover,.account-management[open] summary { background:#eee8dc; color:var(--ink); }
.account-management form { margin-top:10px; }
.account-management small { display:block; margin-top:8px; color:var(--muted); font-size:.7rem; }
button.danger-button { background:transparent; color:var(--red); border:1px solid #d7aaa6; }
dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
dt { color:var(--muted); font-size:.72rem; text-transform:uppercase; }
dd { margin:4px 0 0; font-size:.82rem; overflow-wrap:anywhere; }
.badge { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:999px; font-size:.7rem; font-weight:800; background:#e9e8e2; white-space:nowrap; }
.badge.healthy,.badge.supported_professional { background:#dcece4; color:var(--green); }
.badge.unknown,.badge.rate_limited { background:#fbebc6; color:var(--yellow); }
.badge.paused { background:#e9e8e2; color:var(--muted); }
.badge.unavailable,.badge.permission_error,.badge.reconnect_required,.badge.unsupported_personal,.badge.age_gated { background:#f6dfdc; color:var(--red); }
.review-heading>p { max-width:410px; }
.review-list { display:grid; gap:14px; width:min(900px,100%); margin:0 auto; }
.review-card { padding:0; overflow:clip; }
.review-card-summary { display:grid; grid-template-columns:112px minmax(0,1fr); gap:18px; padding:18px; }
.review-thumb { display:block; width:112px; height:112px; padding:0; overflow:hidden; border:0; border-radius:5px; background:#ebe8df; text-decoration:none; cursor:zoom-in; }
.review-thumb img { width:100%; height:100%; object-fit:cover; }
.review-thumb:hover,.review-thumb:focus-visible { filter:none; outline:3px solid var(--accent); outline-offset:2px; }
.review-thumb-fallback { display:grid; width:100%; height:100%; place-items:center; background:var(--ink); color:white; font:2rem Georgia,serif; }
.image-dialog { position:fixed; inset:0; width:100%; max-width:none; height:100%; max-height:none; margin:0; padding:0; border:0; background:transparent; overflow:hidden; }
.image-dialog::backdrop { background:rgba(8,12,10,.9); }
.image-dialog-shell { position:relative; display:grid; width:100%; height:100%; min-width:0; min-height:0; padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); place-items:center; overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y pinch-zoom; }
.image-dialog img { display:block; width:auto; max-width:calc(100vw - max(24px,env(safe-area-inset-left)) - max(24px,env(safe-area-inset-right))); height:auto; max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom))); min-width:0; min-height:0; object-fit:contain; }
.image-dialog-close { position:fixed; z-index:2; top:max(14px,env(safe-area-inset-top)); right:max(14px,env(safe-area-inset-right)); display:grid; width:46px; height:46px; padding:0; place-items:center; border:1px solid rgba(255,255,255,.55); border-radius:50%; background:rgba(15,20,17,.78); color:white; font-size:1.7rem; font-weight:400; }
.review-summary-copy { min-width:0; align-self:center; }
.review-card-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:.78rem; }
.confidence-pill { display:inline-flex; align-items:center; min-height:24px; padding:3px 9px; border-radius:999px; background:#fbebc6; color:#7b500c; font-size:.7rem; font-weight:900; white-space:nowrap; }
.review-card h2 { margin:7px 0 4px; font-size:clamp(1.15rem,2.5vw,1.45rem); }
.review-card time,.missing-date { display:block; color:var(--green); font-size:.82rem; font-weight:800; }
.missing-date { color:var(--yellow); }
.review-excerpt { display:-webkit-box; margin:9px 0 0; overflow:hidden; color:var(--muted); font-size:.84rem; line-height:1.4; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.review-disclosure { border-top:1px solid var(--line); }
.review-disclosure summary { position:relative; display:grid; gap:2px; padding:13px 52px 13px 18px; cursor:pointer; list-style:none; font-size:.84rem; font-weight:850; }
.review-disclosure summary::-webkit-details-marker { display:none; }
.review-disclosure summary::after { content:"+"; position:absolute; right:19px; top:50%; translate:0 -50%; color:var(--accent); font-size:1.4rem; font-weight:500; }
.review-disclosure[open] summary::after { content:"−"; }
.review-disclosure summary small { color:var(--muted); font-size:.7rem; font-weight:500; }
.review-disclosure summary:hover { background:#f7f3eb; }
.review-expanded { padding:4px 18px 18px; }
.review-expanded h3 { margin:8px 0; color:var(--muted); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; }
blockquote { border-left:3px solid var(--accent); margin:20px 0; padding:2px 0 2px 18px; color:#3e4842; white-space:pre-wrap; }
.review-caption { max-height:250px; margin:0 0 14px; padding:3px 14px; overflow:auto; font-size:.88rem; line-height:1.48; }
.reason-chips { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 18px; }
.reason-chips span { padding:6px 9px; border-radius:999px; background:#ebe8df; color:#4e5952; font-size:.7rem; }
.review-edit-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.retry-ocr { margin-top:14px; }
.full { grid-column:1/-1; }
.review-card-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 18px; border-top:1px solid var(--line); background:#fffdf8; text-align:left; }
.review-card-actions>a { color:var(--muted); font-size:.78rem; font-weight:750; }
.review-action-buttons { display:flex; gap:8px; }
.review-action-buttons button { min-width:116px; min-height:43px; }
.pagination { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; width:min(900px,100%); margin:18px auto 0; color:var(--muted); font-size:.78rem; font-weight:800; }
.pagination a { min-height:42px; padding:11px 14px; border:1px solid var(--line); border-radius:4px; background:var(--panel); color:var(--ink); text-decoration:none; }
.pagination a:first-child { justify-self:start; }
.pagination a:last-child { justify-self:end; }
.empty-state { text-align:center; padding:70px 20px; }
.event-list article { display:grid; grid-template-columns:190px 1fr auto; gap:24px; border-top:1px solid var(--line); padding:22px 0; align-items:start; }
.event-list article:first-child { border:0; }
.event-list h2 { margin-bottom:6px; }
.event-list p,.event-list time { color:var(--muted); }
.table-wrap { overflow-x:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
table { width:100%; border-collapse:collapse; font-size:.82rem; }
th,td { border-bottom:1px solid var(--line); padding:12px 10px; text-align:left; vertical-align:top; }
th { color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-size:.68rem; }
.connect-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.connect-grid>* { min-width:0; }
.auth-form { margin:18px 0; padding:16px; border:1px solid var(--line); background:#fffdf8; }
.auth-form[aria-busy="true"] { opacity:.88; }
.login-submit-progress { display:flex; align-items:center; gap:10px; margin:2px 0 0; color:var(--muted); font-size:.78rem; font-weight:750; }
.login-submit-progress .login-spinner { width:18px; height:18px; border-width:2px; flex:0 0 auto; }
.integration-reconnect { margin:14px 0; }
.integration-reconnect summary { color:var(--accent); font-weight:800; cursor:pointer; }
.integration-reconnect[open] summary { margin-bottom:10px; }
.checkpoint-flow { display:grid; gap:10px; margin:16px 0; }
.checkpoint-flow p,.checkpoint-flow small { margin:0; }
.checkpoint-flow .button-link { width:max-content; max-width:100%; white-space:normal; text-align:center; }
.challenge-code-heading { padding:12px 14px; border-left:4px solid var(--accent); background:#f5e6df; }
.challenge-code-heading p { margin:5px 0 0; color:var(--muted); font-size:.8rem; }
.instagram-connect-intro { margin-bottom:8px; color:#35483f; }
.instagram-primary-action { display:flex; align-items:center; gap:13px; margin:18px 0 12px; }
.instagram-primary-action button { min-width:200px; }
.instagram-primary-action span { color:var(--muted); font-size:.76rem; font-weight:700; }
.security-note { margin:12px 0 18px; padding:13px 15px; border-left:4px solid var(--green); background:#e5f0ea; color:#35483f; font-size:.8rem; }
.instagram-session-actions { margin-bottom:16px; }
.advanced-auth { margin:16px 0; border:1px solid var(--line); border-radius:4px; background:#f7f3eb; }
.advanced-auth>summary { min-height:44px; display:flex; align-items:center; padding:10px 13px; color:var(--muted); cursor:pointer; font-size:.76rem; font-weight:800; }
.advanced-auth[open]>summary { border-bottom:1px solid var(--line); color:var(--ink); }
.advanced-auth-body { padding:2px 14px 14px; }
.instagram-login-dialog { width:min(1080px,calc(100% - 24px)); max-width:none; height:min(90dvh,820px); max-height:none; margin:auto; padding:0; overflow:hidden; border:0; border-radius:10px; background:var(--panel); color:var(--ink); box-shadow:0 28px 90px rgba(8,14,11,.42); }
.instagram-login-dialog::backdrop { background:rgba(9,15,12,.76); backdrop-filter:blur(3px); }
.instagram-login-shell { height:100%; display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.instagram-login-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:17px 19px 14px; border-bottom:1px solid var(--line); background:var(--panel); }
.instagram-login-head .eyebrow { margin-bottom:4px; }
.instagram-login-head h2 { margin:0; font-size:1.5rem; }
.instagram-login-content { min-height:0; padding:17px 19px; overflow:auto; overscroll-behavior:contain; }
.remote-login-status { display:flex; min-height:44px; align-items:center; gap:10px; margin-bottom:14px; padding:10px 12px; border:1px solid var(--line); border-radius:4px; background:#f4f1ea; color:#46534b; font-size:.82rem; font-weight:750; }
.remote-login-dot { width:10px; height:10px; flex:0 0 10px; border-radius:50%; background:var(--muted); }
.instagram-login-dialog[data-login-state="starting"] .remote-login-dot,.instagram-login-dialog[data-login-state="pending"] .remote-login-dot,.instagram-login-dialog[data-login-state="launching"] .remote-login-dot,.instagram-login-dialog[data-login-state="finishing"] .remote-login-dot { background:var(--yellow); box-shadow:0 0 0 5px #f8e6bb; }
.instagram-login-dialog[data-login-state="ready"] .remote-login-dot,.instagram-login-dialog[data-login-state="running"] .remote-login-dot,.instagram-login-dialog[data-login-state="active"] .remote-login-dot,.instagram-login-dialog[data-login-state="authenticating"] .remote-login-dot,.instagram-login-dialog[data-login-state="authenticated"] .remote-login-dot,.instagram-login-dialog[data-login-state="signed_in"] .remote-login-dot,.instagram-login-dialog[data-login-state="login_detected"] .remote-login-dot,.instagram-login-dialog[data-login-state="two_factor"] .remote-login-dot,.instagram-login-dialog[data-login-state="checkpoint"] .remote-login-dot { background:var(--accent); box-shadow:0 0 0 5px #f4d8ce; }
.instagram-login-dialog[data-login-state="authenticated"] .remote-login-dot,.instagram-login-dialog[data-login-state="connected"] .remote-login-dot,.instagram-login-dialog[data-login-state="complete"] .remote-login-dot,.instagram-login-dialog[data-login-state="finished"] .remote-login-dot,.instagram-login-dialog[data-login-state="session_saved"] .remote-login-dot { background:var(--green); box-shadow:0 0 0 5px #dcece4; }
.instagram-login-dialog[data-login-state="error"] .remote-login-dot,.instagram-login-dialog[data-login-state="failed"] .remote-login-dot,.instagram-login-dialog[data-login-state="expired"] .remote-login-dot,.instagram-login-dialog[data-login-state="unavailable"] .remote-login-dot { background:var(--red); box-shadow:0 0 0 5px #f6dfdc; }
.remote-login-intro { max-width:680px; margin:22px auto; }
.remote-login-intro h3 { margin-bottom:8px; font:1.65rem Georgia,serif; }
.remote-login-intro>p { color:var(--muted); }
.remote-login-progress { min-height:260px; display:flex; align-items:center; justify-content:center; gap:17px; text-align:left; }
.remote-login-progress p { margin:5px 0 0; color:var(--muted); font-size:.82rem; }
.login-spinner { width:34px; height:34px; flex:0 0 34px; border:4px solid #dedbd3; border-top-color:var(--accent); border-radius:50%; animation:login-spin .85s linear infinite; }
@keyframes login-spin { to { rotate:360deg; } }
.remote-browser-frame { overflow:hidden; border:1px solid #444d48; border-radius:6px; background:#111713; }
.remote-browser-toolbar { min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 11px; background:#202a25; color:white; font-size:.72rem; }
.remote-browser-toolbar span { color:#b8c5bd; }
.remote-browser-frame iframe { width:100%; height:clamp(390px,58dvh,620px); display:block; border:0; background:#202a25; }
.remote-browser-frame .field-help { margin:0; padding:8px 11px; background:#f4f1ea; }
.remote-login-error { max-width:680px; margin:22px auto; padding:16px; border-left:4px solid var(--red); background:#f8ded9; color:#6e2924; }
.remote-login-error p { margin:6px 0 0; }
.instagram-login-actions { display:flex; min-height:70px; align-items:center; justify-content:flex-end; gap:9px; padding:12px 19px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--panel); }
.instagram-login-actions button { min-width:128px; }
.step-number { margin:0 0 8px; font-size:.7rem; color:var(--accent); letter-spacing:.14em; font-weight:900; }
.copy-value { display:block; overflow-wrap:anywhere; margin:18px 0; padding:12px; background:#efede6; border:1px solid var(--line); }
.issued-invite { display:grid; gap:10px; margin-top:18px; padding:16px; border:1px solid #bed5c9; border-left:4px solid var(--green); background:#e5f0ea; }
.issued-invite h3,.issued-invite p { margin:0; }
.issued-invite>label { color:var(--ink); }
.issued-invite>small { color:var(--muted); }
.copy-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.copy-row input { min-width:0; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.76rem; }
.connected-box { margin-top:18px; padding:16px; border:1px solid #bed5c9; background:#e5f0ea; }
.session-status { display:grid; justify-items:start; gap:10px; min-height:150px; margin:18px 0; padding:18px; background:#efede6; border:1px solid var(--line); }
.session-status.connected { background:#e5f0ea; border-color:#bed5c9; }
.session-status p { margin:0; color:var(--muted); line-height:1.45; }
.session-status small { color:var(--muted); }
.integration-actions { margin:14px 0; }
.secret-form label span { font-weight:400; }
.scope-list { padding-left:20px; color:var(--muted); font-size:.86rem; line-height:1.6; }
.connection-list { margin-top:18px; }
.connection-list article { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:15px 0; border-top:1px solid var(--line); }
.connection-list article>div span { display:block; color:var(--muted); margin-top:4px; font-size:.82rem; }
.calendar-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-bottom:20px; }
.calendar-hero h1 { margin-bottom:8px; font-size:clamp(2.5rem,5vw,4rem); }
.calendar-hero p:not(.eyebrow) { max-width:620px; margin-bottom:0; color:var(--muted); }
.calendar-summary { display:flex; flex-wrap:wrap; gap:9px 15px; padding:12px 15px; border:1px solid var(--line); background:var(--panel); font-size:.78rem; font-weight:800; white-space:nowrap; }
.calendar-summary span { display:flex; align-items:center; gap:6px; }
.calendar-summary .calendar-total { width:100%; color:var(--muted); font-size:.7rem; font-weight:650; }
.calendar-summary b { font:inherit; }
.status-dot { width:9px; height:9px; border-radius:50%; }
.status-dot.tentative { background:#d99a2b; }
.status-dot.confirmed { background:var(--green); }
.calendar-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:18px; align-items:start; }
.calendar-main { min-width:0; }
.calendar-filters { position:sticky; top:18px; padding:17px; }
.filter-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.filter-heading .eyebrow { margin-bottom:5px; }
.filter-heading h2 { margin:0; font-size:1.2rem; }
button.text-button { min-height:44px; padding:4px; background:transparent; color:var(--accent); font-size:.7rem; }
.source-toggles { display:grid; gap:5px; margin-top:16px; }
.source-toggle { display:grid; grid-template-columns:18px 11px minmax(0,1fr); gap:8px; align-items:center; padding:8px 7px; border-radius:4px; cursor:pointer; }
.source-toggle:hover { background:#f3eee5; }
.source-toggle input { width:17px; height:17px; margin:0; accent-color:var(--source-color); }
.source-swatch { width:10px; height:10px; border-radius:3px; background:var(--source-color); }
.source-toggle strong,.source-toggle small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.source-toggle strong { color:var(--ink); font-size:.78rem; }
.source-toggle small { margin-top:2px; color:var(--muted); font-size:.67rem; font-weight:500; }
.filter-help { margin:16px 0 0; color:var(--muted); font-size:.7rem; line-height:1.45; }
.event-dialog { width:min(760px,calc(100% - 28px)); max-height:min(88dvh,820px); margin:auto; padding:0; overflow:hidden; border:0; border-radius:10px; background:var(--panel); color:var(--ink); box-shadow:0 24px 80px rgba(21,32,27,.3); }
.event-dialog::backdrop { background:rgba(15,24,20,.68); backdrop-filter:blur(3px); }
.dialog-shell { max-height:min(88dvh,820px); overflow:auto; }
.dialog-head { position:sticky; z-index:3; top:0; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:19px 20px 15px; border-bottom:1px solid var(--line); background:rgba(255,253,248,.97); text-align:left; }
.dialog-head h2 { margin:7px 0 0; font-size:clamp(1.3rem,3vw,1.8rem); }
.icon-button { display:grid; width:40px; height:40px; flex:0 0 40px; place-items:center; padding:0; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--ink); font-size:1.5rem; font-weight:400; }
.event-dialog-grid { display:grid; grid-template-columns:minmax(210px,38%) 1fr; gap:20px; padding:20px; }
.dialog-media { align-self:start; padding:0; overflow:hidden; border:0; border-radius:6px; background:#ebe8df; cursor:zoom-in; }
.dialog-media img { display:block; width:100%; max-height:420px; object-fit:cover; }
.dialog-media:hover,.dialog-media:focus-visible { filter:none; outline:3px solid var(--accent); outline-offset:2px; }
.dialog-details { min-width:0; }
.event-facts { display:grid; grid-template-columns:1fr; gap:12px; margin:0; }
.event-facts>div { padding-bottom:10px; border-bottom:1px solid var(--line); }
.event-facts dd { font-size:.92rem; font-weight:750; }
.caption-disclosure { margin-top:16px; border:1px solid var(--line); border-radius:4px; }
.caption-disclosure summary { padding:11px 12px; cursor:pointer; font-size:.8rem; font-weight:850; }
.caption-disclosure p { max-height:230px; margin:0; padding:0 12px 12px; overflow:auto; white-space:pre-wrap; font-size:.82rem; line-height:1.5; }
.dialog-links { display:flex; flex-wrap:wrap; gap:10px 16px; margin-top:16px; font-size:.78rem; font-weight:800; }
.dialog-actions { position:sticky; z-index:3; bottom:0; display:flex; justify-content:flex-end; gap:8px; padding:13px 20px calc(13px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:rgba(255,253,248,.97); text-align:left; }
.dialog-actions form { margin:0; }
.dialog-actions button { min-height:44px; min-width:130px; }
.calendar-empty { margin-top:18px; }
.timezone-control { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:end; }
.timezone-control label { min-width:0; }
.timezone-control button { min-height:43px; padding-inline:13px; }
.field-help { display:block; margin-top:6px; color:var(--muted); font-size:.74rem; font-weight:500; }
@media (max-width:900px) { nav { gap:12px; } .connect-grid { grid-template-columns:1fr; } .calendar-layout { grid-template-columns:180px minmax(0,1fr); } }
@media (max-width:760px) { .site-header { height:auto; min-height:68px; align-items:flex-start; padding-top:18px; padding-bottom:18px; gap:16px; } nav { flex-wrap:wrap; justify-content:flex-end; gap:8px 13px; } main { width:min(100% - 20px,1180px); padding-top:30px; } .page-heading,.calendar-hero { display:block; } .page-heading h1 { font-size:2.6rem; } .page-heading>p { margin-top:10px; } .split,.account-grid { grid-template-columns:1fr; } .connect-callout { align-items:flex-start; flex-direction:column; } .calendar-summary { margin-top:16px; width:max-content; max-width:100%; white-space:normal; } .calendar-layout { display:block; } .calendar-filters { position:static; margin-bottom:14px; padding:12px; } .filter-heading h2 { font-size:1rem; } .source-toggles { display:flex; gap:7px; margin-top:10px; overflow-x:auto; padding-bottom:3px; scrollbar-width:thin; } .source-toggle { min-width:160px; border:1px solid var(--line); background:#fffdf8; } .filter-help { margin-top:9px; } .event-dialog { width:100%; max-height:94dvh; margin:auto 0 0; border-radius:12px 12px 0 0; } .dialog-shell { max-height:94dvh; } .event-dialog-grid { grid-template-columns:1fr; padding:14px; } .dialog-media { max-height:260px; } .dialog-media img { max-height:260px; } .dialog-actions { padding-inline:14px; } .dialog-actions form { flex:1; } .dialog-actions button { width:100%; min-width:0; } .review-list { gap:10px; } .review-card-summary { grid-template-columns:78px minmax(0,1fr); gap:12px; padding:13px; } .review-thumb { width:78px; height:78px; } .review-card-meta { align-items:flex-start; } .review-card h2 { margin-top:5px; } .review-excerpt { -webkit-line-clamp:1; } .review-disclosure summary { padding-left:13px; } .review-expanded { padding-inline:13px; } .review-edit-grid { grid-template-columns:1fr; } .review-card-actions { padding:10px 12px calc(10px + env(safe-area-inset-bottom)); } .review-card-actions>a { display:none; } .review-action-buttons { width:100%; } .review-action-buttons button { flex:1; min-width:0; min-height:46px; } .timezone-control { grid-template-columns:1fr; } }
@media (max-width:760px) { .account-settings summary { align-items:flex-start; flex-direction:column; gap:2px; } .account-settings summary small { text-align:left; } .account-actions { grid-template-columns:1fr!important; } }
@media (max-width:760px) {
  .site-header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; padding:12px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left)); }
  .site-header>.brand { grid-column:1; }
  .site-header>.account-switcher { position:static; grid-column:2; }
  .account-switcher>summary { max-width:48vw; }
  .account-summary-copy strong { max-width:26vw; }
  .account-summary-copy small { display:none; }
  .account-popover { top:calc(100% + 8px); right:max(12px,env(safe-area-inset-right)); width:min(270px,calc(100vw - 24px)); }
  .site-header>nav { grid-column:1/-1; grid-row:2; width:100%; margin:0; padding:2px 2px 0; justify-content:flex-start; flex-wrap:nowrap; gap:16px; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:thin; }
  .site-header>nav a { flex:0 0 auto; }
  .panel { padding:20px; }
  .page-heading>.actions { width:100%; margin-top:16px; justify-content:flex-start; }
  .page-heading>a { display:inline-flex; min-height:44px; margin-top:12px; align-items:center; }
  .connect-grid .actions { align-items:stretch; flex-direction:column; }
  .connect-grid .actions form,.connect-grid .actions button { width:100%; }
  .instagram-primary-action { align-items:stretch; flex-direction:column; }
  .instagram-primary-action button { width:100%; min-height:50px; }
  .instagram-login-dialog { width:100%; height:100dvh; margin:0; border-radius:0; }
  .instagram-login-head { padding:max(13px,env(safe-area-inset-top)) 13px 11px; }
  .instagram-login-head h2 { font-size:1.3rem; }
  .instagram-login-content { padding:12px; }
  .remote-login-status { margin-bottom:10px; }
  .remote-login-intro { margin:16px 2px; }
  .remote-login-progress { min-height:45dvh; }
  .remote-browser-frame iframe { height:calc(100dvh - 245px); min-height:360px; touch-action:pan-x pan-y pinch-zoom; }
  .instagram-login-actions { min-height:0; display:grid; grid-template-columns:1fr auto; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .instagram-login-actions button { min-width:0; }
  .instagram-login-actions [data-instagram-browser-start],.instagram-login-actions [data-instagram-browser-finish] { min-height:48px; }
  .integration-actions { display:grid; grid-template-columns:1fr; }
  .integration-actions .button-link,.integration-actions button { width:100%; min-height:46px; white-space:normal; text-align:center; }
  .table-wrap { margin-inline:-20px; padding-inline:20px; }
  .table-wrap table { min-width:680px; }
  .runs-panel.table-wrap { margin-inline:0; padding:12px; overflow:visible; }
  .runs-table { min-width:0!important; }
  .runs-table thead { display:none; }
  .runs-table,.runs-table tbody { display:block; }
  .runs-table tbody { display:grid; gap:9px; }
  .runs-table tr { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:7px 10px; padding:12px; border:1px solid var(--line); border-radius:4px; background:#fffdf8; }
  .runs-table td { min-width:0; padding:0; border:0; }
  .runs-table td:nth-child(1) { grid-column:1; }
  .runs-table td:nth-child(2) { grid-column:2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .runs-table td:nth-child(3) { grid-column:3; }
  .runs-table td:nth-child(4),.runs-table td:nth-child(8) { grid-column:1/-1; color:var(--muted); }
  .runs-table td:nth-child(5) { grid-column:1; }
  .runs-table td:nth-child(6) { grid-column:2; }
  .runs-table td:nth-child(7) { grid-column:3; }
  .runs-table td:nth-child(n+4)::before { content:attr(data-label) " "; color:var(--muted); font-size:.64rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
  .runs-table .run-detail-empty { display:none; }
  .copy-row { grid-template-columns:1fr; }
  .copy-row button { width:100%; }
}
@media (max-width:420px) {
  main { width:min(100% - 16px,1180px); }
  .panel { padding:17px; }
  .page-heading h1 { font-size:2.25rem; }
  .page-heading>.actions { align-items:stretch; flex-direction:column; }
  .page-heading>.actions a,.page-heading>.actions form,.page-heading>.actions button { width:100%; min-height:44px; text-align:center; }
  .instagram-login-actions { grid-template-columns:1fr; }
  .instagram-login-actions button { width:100%; }
  .remote-browser-frame iframe { height:calc(100dvh - 290px); min-height:300px; }
  dl { grid-template-columns:1fr; }
}
@media (max-width:360px) {
  .account-summary-copy { display:none; }
  .account-switcher>summary { padding-right:8px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}
