:root{--bg:#fff;--text:#111827;--muted:#667085;--line:#e5e7eb;--soft:#f7f8fa;--blue:#175cd3;--blue-dark:#154cb2;--red:#b42318;--green:#067647;--amber:#b54708;--radius:10px}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text)}body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 max(24px,calc((100vw - 1040px)/2));background:#fff;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;font-weight:700}.brand-mark{width:38px;height:38px;border-radius:9px;background:#111827;color:#fff;display:grid;place-items:center;font-size:19px}.brand-mark.small{width:30px;height:30px;border-radius:7px;font-size:15px}.topbar nav{display:flex;align-items:center;gap:22px;font-size:14px;color:#475467}.topbar nav a:hover{color:#111827}.nav-user{padding-left:4px;color:#98a2b3}.page{width:min(1040px,calc(100% - 40px));margin:0 auto;padding:72px 0 96px}.page.narrow,.settings-page{width:min(820px,calc(100% - 40px))}.hero{max-width:720px;margin-bottom:30px}.eyebrow{margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.12em;color:#667085}.hero h1,.section-title h1{font-size:42px;line-height:1.12;letter-spacing:-.035em;margin:0;color:#101828}.hero>p:last-child{font-size:17px;line-height:1.75;color:#667085;margin:18px 0 0}.composer{border:1px solid #d0d5dd;border-radius:var(--radius);overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.04)}.composer textarea{display:block;width:100%;min-height:230px;border:0;outline:none;resize:vertical;padding:22px 22px 18px;font-size:16px;line-height:1.75;color:#101828;background:#fff}.composer textarea::placeholder{color:#98a2b3}.composer-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:12px 14px 12px 18px;background:#fcfcfd}.context{font-size:13px;color:#667085;display:flex;gap:8px}.primary,.secondary{border:0;border-radius:8px;padding:10px 16px;font-weight:650}.primary{background:var(--blue);color:#fff}.primary:hover{background:var(--blue-dark)}.primary:disabled{opacity:.6;cursor:not-allowed}.secondary{background:#fff;border:1px solid #d0d5dd;color:#344054}.secondary:hover{background:#f9fafb}.status{margin:20px 0;padding:12px 14px;border-radius:8px;font-size:14px;border:1px solid}.status.info{background:#f8fafc;border-color:#e2e8f0;color:#475467}.status.success,.alert.success{background:#ecfdf3;border-color:#abefc6;color:var(--green)}.status.error,.alert.error{background:#fef3f2;border-color:#fecdca;color:var(--red)}.results{margin-top:48px}.results-head,.section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.results-head h2{margin:0;font-size:26px;letter-spacing:-.02em}.actions{display:flex;gap:10px}.event-list{display:grid;gap:14px}.event-card{border:1px solid var(--line);border-radius:var(--radius);padding:20px;background:#fff}.event-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.type-pill{display:inline-flex;padding:4px 8px;border-radius:6px;background:#f2f4f7;color:#344054;font-size:12px;font-weight:700}.confidence{font-size:12px;color:#98a2b3;margin-left:10px}.icon-btn,.danger-link{background:none;border:0;padding:4px;color:#667085;font-size:13px}.icon-btn:hover,.danger-link:hover{color:var(--red)}label.field,label:not(.checkbox){display:grid;gap:7px;color:#475467;font-size:13px;font-weight:600}input,textarea,select{width:100%;border:1px solid #d0d5dd;border-radius:7px;padding:10px 11px;background:#fff;color:#101828;outline:none}input:focus,textarea:focus,select:focus{border-color:#84adff;box-shadow:0 0 0 3px rgba(23,92,211,.08)}.title-field input{font-size:18px;font-weight:700;letter-spacing:-.01em;padding:9px 10px;margin-bottom:14px}.grid2,.grid3{display:grid;gap:12px}.grid2{grid-template-columns:repeat(2,1fr)}.grid3{grid-template-columns:1.1fr 1fr 1fr}.inline-row{display:flex;align-items:center;justify-content:space-between;margin:14px 0}.checkbox{display:flex!important;grid-template-columns:none!important;align-items:center;gap:9px!important;font-size:14px!important;color:#344054!important;font-weight:500!important}.checkbox input{width:auto}.subtle{font-size:12px;color:#98a2b3}.event-details{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}.event-details summary{cursor:pointer;color:#475467;font-size:13px;font-weight:600}.details-body{display:grid;gap:12px;padding-top:14px}.field small,label small{font-weight:400;color:#98a2b3}.warning-box{display:grid;gap:5px;margin-top:16px;padding:11px 12px;border-left:3px solid #f79009;background:#fffaeb;font-size:13px;color:#93370d}.warning-box strong{font-size:12px}.source{margin-top:16px}.source>span{display:block;font-size:11px;font-weight:700;color:#98a2b3;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}.source blockquote{margin:0;padding:0;color:#475467;font-size:13px;line-height:1.6}.privacy-note{margin-top:18px;font-size:12px;color:#98a2b3}.auth-page{display:grid;place-items:center;background:#f8fafc;padding:24px}.auth-card{width:min(430px,100%);padding:30px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 8px 30px rgba(16,24,40,.06)}.setup-card{width:min(560px,100%)}.auth-card h1{margin:18px 0 7px;font-size:27px}.muted{color:#667085;line-height:1.6}.stack{display:grid;gap:15px;margin-top:24px}.stack hr{border:0;border-top:1px solid var(--line);width:100%;margin:5px 0}.stack h2{font-size:16px;margin:0}.alert{padding:11px 13px;border:1px solid;border-radius:8px;margin:16px 0;font-size:14px}.section-title{margin-bottom:28px}.section-title h1{font-size:34px}.history-list{border-top:1px solid var(--line)}.history-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 2px;border-bottom:1px solid var(--line)}.history-row:hover strong{color:var(--blue)}.history-row div{min-width:0;display:grid;gap:7px}.history-row strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-row span{font-size:12px;color:#98a2b3}.empty{border:1px dashed #d0d5dd;border-radius:10px;padding:50px;text-align:center;color:#98a2b3}.settings-form{display:grid;gap:20px}.settings-section{display:grid;gap:16px;border-top:1px solid var(--line);padding:22px 0}.settings-section h2{font-size:18px;margin:0}.settings-section>p{margin:-8px 0 2px;color:#667085;font-size:14px;line-height:1.6}@media(max-width:720px){.topbar{height:58px;padding:0 18px}.topbar nav{gap:14px}.nav-user{display:none}.brand>span:last-child{display:none}.page,.page.narrow,.settings-page{width:calc(100% - 28px);padding:42px 0 72px}.hero h1{font-size:34px}.hero>p:last-child{font-size:15px}.composer textarea{min-height:220px;padding:18px}.composer-footer{align-items:flex-end}.context{display:grid;gap:2px}.context span:nth-child(2){display:none}.results-head{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions button{flex:1}.event-card{padding:16px}.grid2,.grid3{grid-template-columns:1fr}.confidence{display:none}.inline-row{align-items:flex-start;gap:10px;flex-direction:column}.section-title{align-items:flex-start}.auth-card{padding:24px}.history-row>span{display:none}}
