:root{--bg:#f6f7f9;--surface:#fff;--surface-2:#f0f2f5;--text:#1c2430;--muted:#5d6878;--border:#e1e5eb;--brand:#1f6feb;--brand-text:#fff;--ok:#1a7f37;--ok-bg:#e7f5ec;--error:#c62828;--error-bg:#fdecec;--info-bg:#e8f0fe;--warn:#9a6700;--warn-bg:#fff4d6;--shadow:0 10px 30px #0f172a26;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#11151b;--surface:#1a2029;--surface-2:#232a35;--text:#e6e9ee;--muted:#9aa5b4;--border:#2b3340;--brand:#5b9dff;--brand-text:#0b1220;--ok:#4ac26b;--ok-bg:#16301f;--error:#ff6b6b;--error-bg:#3a1c1f;--info-bg:#1b2a44;--warn:#e3b341;--warn-bg:#3a2f12;--shadow:0 10px 30px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1{margin:0 0 16px;font-size:22px}h2{margin:0;font-size:17px}a{color:var(--brand)}.muted{color:var(--muted);margin:0}.small{font-size:13px}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.loading{text-align:center;color:var(--muted);padding:32px}.stack{flex-direction:column;gap:12px;display:flex}.mark{background:var(--brand);width:32px;height:32px;color:var(--brand-text);border-radius:8px;flex:none;place-items:center;font-size:13px;font-weight:700;display:grid}.button{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:8px;padding:8px 14px}.button:hover{background:var(--surface-2)}.button:disabled{opacity:.6;cursor:default}.button-primary{background:var(--brand);border-color:var(--brand);color:var(--brand-text);font-weight:600}.button-primary:hover{background:var(--brand);filter:brightness(1.08)}.button-wide{width:100%;margin-top:8px}.button-small{padding:4px 10px;font-size:13px}.icon-button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 8px;font-size:20px;line-height:1}.icon-button:hover{background:var(--surface-2)}.field{flex-direction:column;gap:4px;margin-bottom:12px;display:flex}.stack .field{margin-bottom:0}.field label{font-size:14px;font-weight:600}.field input,.field select,.copy-link input{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;width:100%;padding:9px 11px}.field input:focus,.field select:focus{outline:2px solid var(--brand);outline-offset:-1px}.field input[aria-invalid=true]{border-color:var(--error)}.hint{color:var(--muted);margin:0;font-size:13px}.field-error{color:var(--error);margin:0;font-size:13px}.check{align-items:center;gap:8px;display:flex}.alert{border-radius:8px;margin-bottom:12px;padding:10px 12px;font-size:14px}.stack .alert{margin-bottom:0}.alert-error{background:var(--error-bg);color:var(--error)}.alert-success{background:var(--ok-bg);color:var(--ok)}.alert-info{background:var(--info-bg)}.copy-link{gap:8px;margin-top:8px;display:flex}.copy-link input{font-family:ui-monospace,monospace;font-size:13px}.auth-page{place-items:center;min-height:100vh;padding:16px;display:grid}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;width:100%;max-width:400px;padding:28px 24px}.auth-brand{align-items:center;gap:10px;margin-bottom:20px;font-weight:600;display:flex}.auth-card h1{font-size:20px}.auth-card .muted{margin-bottom:12px}.auth-foot{text-align:center;margin:16px 0 0;font-size:14px}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{background:var(--surface);border-bottom:1px solid var(--border);z-index:10;align-items:center;gap:10px;padding:10px 16px;display:flex;position:sticky;top:0}.brand{font-weight:600}.spacer{flex:1}.chip{font:inherit;border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;border-radius:999px;padding:6px 12px;font-size:14px}.menu{position:relative}.menu-list{background:var(--surface);border:1px solid var(--border);min-width:160px;box-shadow:var(--shadow);border-radius:10px;flex-direction:column;padding:4px;display:flex;position:absolute;top:calc(100% + 6px);right:0}.menu-list button{font:inherit;text-align:left;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px 10px}.menu-list button:hover{background:var(--surface-2)}.body{flex:1;display:flex}.sidebar{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;flex:none;gap:2px;width:220px;padding:12px 8px;display:flex}.sidebar a{color:var(--text);border-radius:8px;padding:8px 12px;text-decoration:none}.sidebar a:hover{background:var(--surface-2)}.sidebar a[aria-current=page]{background:var(--info-bg);color:var(--brand);font-weight:600}.nav-toggle{display:none}.main{flex:1;min-width:0;padding:24px}.page{flex-direction:column;gap:16px;max-width:1000px;display:flex}.page h1{margin:0}.page-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px}.card.empty{color:var(--muted);text-align:center;padding:40px 20px}.card.empty p{margin:0}.table-card{padding:0;overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:14px}.table th{text-align:left;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-bottom:1px solid var(--border);padding:10px 14px;font-size:12px}.table td{border-bottom:1px solid var(--border);vertical-align:middle;padding:10px 14px}.table tr:last-child td{border-bottom:0}.row-muted td{opacity:.6}.cell-strong{align-items:center;gap:6px;font-weight:600;display:flex}.actions{white-space:nowrap;text-align:right}.actions .button:not(:first-child){margin-left:6px}.tag{background:var(--surface-2);color:var(--muted);border-radius:4px;padding:1px 6px;font-size:11px;font-weight:600}.pill{border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600}.pill-active{background:var(--ok-bg);color:var(--ok)}.pill-invited{background:var(--warn-bg);color:var(--warn)}.pill-deactivated{background:var(--surface-2);color:var(--muted)}.backdrop{z-index:50;background:#0006;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);width:100%;max-width:440px;max-height:calc(100vh - 32px);box-shadow:var(--shadow);border-radius:14px;padding:20px;overflow-y:auto}.modal-wide{max-width:760px}.modal-head{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.modal-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.input{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:8px 11px}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.toolbar input[type=search]{flex:220px}.totals{margin-left:auto}.tabs{background:var(--surface-2);border-radius:9px;gap:4px;padding:3px;display:flex}.tabs button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px;padding:5px 12px;font-size:14px}.tabs button[aria-selected=true]{background:var(--surface);color:var(--text);font-weight:600}.dropzone{border:2px dashed var(--border);background:var(--surface);text-align:center;border-radius:12px;padding:24px 16px}.dropzone p{margin:0}.dropzone p+p{margin-top:4px}.dropzone.over{border-color:var(--brand);background:var(--info-bg)}.link-button{font:inherit;text-align:left;color:var(--brand);cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.uploads{padding:12px 16px}.uploads ul{margin:0 0 4px;padding:0;list-style:none}.upload{justify-content:space-between;gap:12px;padding:4px 0;font-size:14px;display:flex}.upload-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.upload-state{color:var(--muted);flex:none}.upload-done .upload-state{color:var(--ok)}.upload-error .upload-state{color:var(--error);text-align:right;flex:0 auto}.pill-file-queued,.pill-file-processing{background:var(--info-bg);color:var(--brand)}.pill-file-ready{background:var(--ok-bg);color:var(--ok)}.sync-pill{margin-left:4px}.facts{gap:10px;margin:0;display:grid}.facts div{grid-template-columns:180px 1fr;gap:12px;display:grid}.facts dt{color:var(--muted)}.facts dd{margin:0}code{font-family:ui-monospace,monospace;font-size:.92em}@media (width<=760px){.facts div{grid-template-columns:1fr;gap:2px}}.nowrap{white-space:nowrap}.file-warning{color:var(--warn);max-width:260px;margin-top:4px;font-size:13px}.pill-file-failed{background:var(--error-bg);color:var(--error)}a.button{text-decoration:none;display:inline-block}.button-danger{background:var(--error);border-color:var(--error);color:#fff;font-weight:600}.main:has(.ask){padding:0}.ask{height:calc(100vh - 53px);display:flex}.chats{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;flex:none;gap:8px;width:250px;padding:12px;display:flex;overflow-y:auto}.chats ul{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.chats li{border-radius:8px;align-items:center;display:flex}.chats li.current,.chats li:hover{background:var(--surface-2)}.chat-link{min-width:0;font:inherit;text-align:left;color:var(--text);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;flex:1;padding:7px 8px;font-size:14px;overflow:hidden}.chat-delete{visibility:hidden;font-size:16px}.chats li:hover .chat-delete,.chats li.current .chat-delete{visibility:visible}.chat{flex-direction:column;flex:1;min-width:0;display:flex}.chats-toggle{display:none}.messages{flex-direction:column;flex:1;gap:14px;padding:24px;display:flex;overflow-y:auto}.chat-empty{text-align:center;margin:auto}.bubble{border-radius:12px;max-width:760px;padding:12px 14px}.bubble-user{background:var(--brand);color:var(--brand-text);white-space:pre-wrap;align-self:flex-end}.bubble-answer{background:var(--surface);border:1px solid var(--border);align-self:flex-start;width:100%}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown table{border-collapse:collapse;margin:8px 0;font-size:14px}.markdown th,.markdown td{border:1px solid var(--border);text-align:left;padding:4px 8px}.typing>:is(p,h1,h2,h3,h4,h5,h6,pre):last-child:after,.typing>:is(ul,ol)>li:last-child:after{content:"";vertical-align:text-bottom;background:var(--muted);width:8px;height:16px;margin-left:2px;animation:1s steps(2,end) infinite blink;display:inline-block}@keyframes blink{50%{opacity:0}}.sources{flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none;display:flex}.source-chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:999px;align-items:center;gap:6px;padding:3px 10px 3px 4px;font-size:13px;text-decoration:none;display:inline-flex}.source-chip:hover{border-color:var(--brand)}.source-n{background:var(--brand);min-width:18px;height:18px;color:var(--brand-text);border-radius:999px;place-items:center;font-size:11px;font-weight:700;display:inline-grid}.answer-actions{margin-top:8px}.composer{border-top:1px solid var(--border);background:var(--bg);gap:8px;padding:12px 24px 20px;display:flex}.composer textarea{font:inherit;resize:none;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;flex:1;padding:10px 12px}.composer .button{align-self:flex-end}@media (width<=760px){.chats{z-index:15;box-shadow:var(--shadow);display:none;position:fixed;top:53px;bottom:0;left:0}.chats.open{display:flex}.chats-toggle{align-self:flex-start;margin:10px 16px 0;display:inline-block}.messages{padding:12px 16px}.composer{padding:10px 16px 14px}.nav-toggle{display:block}.sidebar{z-index:20;box-shadow:var(--shadow);display:none;position:fixed;top:53px;bottom:0;left:0}.sidebar.open{display:flex}.main{padding:16px}.table thead{display:none}.table,.table tbody,.table tr,.table td{display:block}.table tr{border-bottom:1px solid var(--border);padding:12px 14px}.table tr:last-child{border-bottom:0}.table td{border:0;padding:2px 0}.table td.hide-narrow{display:none}.actions{white-space:normal;flex-wrap:wrap;gap:6px;padding-top:8px!important;display:flex!important}.actions .button:not(:first-child){margin-left:0}}.answer-label{margin:8px 0 0;font-size:13px;font-weight:600}.label-pending{color:var(--warn)}.label-ok{color:var(--ok)}.label-warn{color:var(--error)}.icon-button.feedback{opacity:.6;font-size:15px}.icon-button.feedback[aria-pressed=true]{opacity:1;background:var(--surface-2)}.feedback-note{gap:6px;width:100%;margin-top:8px;display:grid}.feedback-note textarea{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:6px;padding:6px 8px}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px;display:grid}.stat{padding:12px 16px}.stat-value{font-size:22px;font-weight:700}.filters{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.filters .input{flex:220px;min-width:0}.filters select,.filters input[type=date]{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:6px;max-width:100%;padding:6px 8px}label.inline{align-items:center;gap:6px;font-size:14px;display:inline-flex}.conf{white-space:nowrap;font-weight:600}.tag-warn{background:var(--warn-bg);color:var(--warn);margin-left:6px}.pager{justify-content:center;align-items:center;gap:12px;margin-top:12px;display:flex}.pairs{grid-template-columns:max-content 1fr;gap:6px 16px;margin:0;display:grid}.pairs dt{color:var(--muted)}.pairs dd{margin:0}.answer-detail h3{margin:4px 0}.answer-detail h4{margin:0 0 6px}.gaps{gap:10px;padding:0;list-style:none;display:grid}.gaps>li{padding:12px 16px}.gap-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.sidebar a{position:relative}.badge{background:var(--brand);min-width:20px;color:var(--brand-text);text-align:center;border-radius:999px;margin-left:8px;padding:0 6px;font-size:12px;font-weight:700;line-height:20px;display:inline-block}.review-list{gap:8px;padding:0;list-style:none;display:grid}.review-row{width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:12px 16px;display:flex}.review-num{color:var(--muted);white-space:nowrap;font-weight:700}.review-main{flex:1;gap:2px;min-width:0;display:grid}.pill-open,.pill-needs_info{background:var(--warn-bg);color:var(--warn)}.pill-claimed{background:var(--info-bg);color:var(--brand)}.pill-approved,.pill-edited{background:var(--ok-bg);color:var(--ok)}.pill-rejected,.pill-cancelled{background:var(--surface-2);color:var(--muted)}.review-detail h1{margin-bottom:4px}.review-detail h2{margin:0;font-size:18px}.textarea,.needs-info textarea{font:inherit;border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);border-radius:8px;padding:9px 11px}.note{background:var(--surface-2);border-radius:8px;padding:8px 12px}.note-asker_reply{background:var(--info-bg)}.needs-info{background:var(--warn-bg);border:1px solid var(--border);border-radius:8px;gap:8px;margin-top:10px;padding:12px;display:grid}.needs-info p{margin:0}.link-code{letter-spacing:1px;background:var(--surface-2);border-radius:8px;justify-self:start;padding:8px 12px;font-size:20px;font-weight:700;display:inline-block}.history{gap:6px;margin:0;padding-left:18px;display:grid}@media (width<=700px){.review-row{flex-wrap:wrap}}.chat-link .dot{background:var(--brand);vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-left:6px;display:inline-block}.update-notice{background:var(--info-bg);text-align:center;border-radius:8px;margin:8px auto;padding:8px 12px;font-size:14px}details.original{background:var(--surface-2);border-radius:8px;margin-top:8px;padding:8px 12px}details.original summary{cursor:pointer;color:var(--muted);font-size:13px}.source-chip.source-verified,.pill-va-active{background:var(--ok-bg);color:var(--ok)}.pill-va-disabled,.pill-va-expired{background:var(--surface-2);color:var(--muted)}.date-input{max-width:180px}.owner-review h4{margin:0}.bell{font-size:18px;position:relative}.bell-badge{min-width:18px;margin:0;font-size:11px;line-height:18px;position:absolute;top:-4px;right:-8px}.bell-list{width:min(360px,100vw - 32px);max-height:70vh;padding:4px 0;overflow-y:auto}.bell-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.bell-list>p{margin:0;padding:8px 12px}.menu-list .bell-item{text-align:left;white-space:normal;gap:2px;width:100%;display:grid}.bell-item.unread .bell-title{font-weight:700}.bell-body{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.choices{border:0;gap:8px;margin:0;padding:0;display:grid}.choice{align-items:baseline;gap:8px;display:flex}.url-box .row{flex-wrap:nowrap}.grow{flex:200px;min-width:0}.platform-badge{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:700;display:inline-block}.platform-reddit{color:#b23a00;background:#ffe9e0}.platform-facebook{color:#1a4fb4;background:#e3ecfd}@media (prefers-color-scheme:dark){.platform-reddit{color:#ff9a6b;background:#3a2219}.platform-facebook{color:#8db3ff;background:#1b2840}}.thread-row{align-items:center;gap:8px;padding-right:16px;display:flex}.thread-row .review-row{flex:1;min-width:0}.thread-head h1{margin-bottom:4px}.thread-tree{gap:10px;margin:16px 0;display:grid}.tree-node{gap:10px;display:grid}.depth-1{margin-left:20px}.depth-2{margin-left:40px}.depth-3{margin-left:60px}.depth-4{margin-left:80px}.bubble-them{background:var(--surface);border:1px solid var(--border);border-radius:12px;max-width:720px;padding:12px 14px}.bubble-us{background:var(--info-bg);border-radius:12px;width:100%;max-width:720px;margin-left:auto;padding:12px 14px}.bubble-us.draft{border:1px dashed var(--brand)}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.pre.corrected{background:var(--surface);border-radius:6px;margin:8px 0;padding:8px}.draft-ask,.draft-tools{margin-top:10px}.tag-ok{background:var(--ok-bg);color:var(--ok);margin-left:6px}.pill-thread-waiting_for_us{background:var(--warn-bg);color:var(--warn)}.pill-thread-in_review{background:var(--info-bg);color:var(--brand)}.pill-thread-ready_to_post{background:var(--ok-bg);color:var(--ok)}.pill-thread-waiting_for_them,.pill-thread-closed{background:var(--surface-2);color:var(--muted)}@media (width<=700px){.depth-1,.depth-2,.depth-3,.depth-4{margin-left:12px}.url-box .row{flex-wrap:wrap}}.platform-card{border:1px solid var(--border);border-radius:10px;padding:10px 14px}.platform-card summary{cursor:pointer}.platform-card>.stack{margin-top:12px}.community-name{min-width:120px}.field-inline{align-items:center;gap:8px;display:flex}.usage-total{gap:4px;display:grid}.usage-total-value{font-size:28px;font-weight:700}.usage-total progress{width:100%;max-width:360px;height:8px;accent-color:var(--brand)}.usage-total progress.usage-over{accent-color:var(--warn)}.usage-chart{gap:4px;margin:0;display:grid}.usage-chart svg{width:100%;height:120px;display:block}.usage-hit{fill:#0000}.usage-bar{fill:var(--brand);pointer-events:none}.usage-day:hover .usage-bar{fill:var(--text)}.usage-axis{justify-content:space-between;display:flex}.table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.table-caption{text-align:left;padding:10px 14px 0;font-weight:600}.audit-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.audit-changes{color:var(--muted);overflow-wrap:anywhere;margin:4px 0 0;padding-left:18px;font-size:14px}.name-matches{gap:8px;margin:0;padding:0;list-style:none;display:grid}.name-match{justify-content:space-between;align-items:center;gap:12px;display:flex}.name-match p{overflow-wrap:anywhere;margin:0}.name-match.closest{border-color:var(--ok)}.name-match .tag{margin-left:6px}.name-match>.button{white-space:nowrap;flex-shrink:0}@media (width<=600px){.name-match{flex-direction:column;align-items:stretch}}.connection{border-top:1px solid var(--border);gap:10px;padding-top:16px;display:grid}.connection-head{align-items:center;gap:10px;display:flex}.connection-head h3{margin:0}.connection-fields{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0 16px;display:grid}.connection-fields input{font-family:ui-monospace,monospace}
