:root{--canvas:#ffffff;--surface:#ffffff;--surface-muted:#f7f7f8;--surface-hover:#ececf1;--ink:#202123;--ink-soft:#353740;--muted:#6e6e80;--line:#e5e5e5;--line-strong:#d9d9e3;--sidebar:#f7f7f8;--sidebar-soft:#ececf1;--accent:#10a37f;--accent-dark:#0d8f70;--accent-soft:#e9f7f3;--green:#16885f;--green-soft:#eaf7f1;--amber:#b86f14;--amber-soft:#fff6e5;--red:#c24135;--red-soft:#fff0ee;--blue:#4b6bfb;--blue-soft:#eef1ff;--shadow-sm:0 1px 2px rgba(0,0,0,0.04),0 8px 24px rgba(0,0,0,0.04);--shadow-md:0 1px 2px rgba(0,0,0,0.06),0 18px 48px rgba(0,0,0,0.08)}*{box-sizing:border-box}html{scroll-behavior:smooth}body,html{min-height:100%}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{color:inherit}h1,h2,h3,p{margin:0}::selection{background:#cceee5}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:20;display:flex;width:260px;flex-direction:column;border-right:1px solid var(--line);background:var(--sidebar);color:var(--ink);padding:14px 12px 12px}.brand{display:flex;min-width:0;align-items:center;gap:11px;border-radius:10px;padding:7px 8px}.brand:hover{background:var(--sidebar-soft)}.brand-mark{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:9px;background:var(--ink);color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.16)}.brand-copy{display:grid;gap:1px;line-height:1.2}.brand-copy strong{font-size:14px;font-weight:650;letter-spacing:-.01em}.brand-copy small{color:var(--muted);font-size:11px;font-weight:450}.side-nav{display:grid;gap:2px;margin-top:22px}.nav-label{margin:24px 10px 7px;color:#8e8ea0;font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.nav-link{display:flex;min-height:42px;align-items:center;gap:11px;border-radius:9px;color:var(--ink-soft);font-size:13px;font-weight:500;padding:0 11px;transition:background .14s ease,color .14s ease}.nav-link svg{color:#6f7078;stroke-width:1.8}.nav-link.active,.nav-link:hover{background:var(--sidebar-soft);color:var(--ink)}.nav-link.active{font-weight:600}.nav-link.active svg{color:var(--ink)}.sidebar-status{display:grid;gap:6px;margin-top:auto;border-top:1px solid var(--line);padding:16px 10px 6px}.sidebar-status strong{font-size:12px;font-weight:600}.sidebar-status>span{color:var(--muted);font-size:11px;line-height:1.45}.sidebar-status a{display:flex;align-items:center;gap:3px;color:var(--ink);font-size:11px;font-weight:600;margin-top:2px}.sidebar-status a:hover{color:var(--accent-dark)}.live-label{display:flex;align-items:center;gap:7px;color:var(--green);font-size:10px;font-weight:650}.live-dot,.online-dot,.status-pill i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px rgba(16,163,127,.12)}.app-content{min-height:100vh;margin-left:260px}.mobile-bar,.mobile-nav{display:none}.page{width:min(1320px,100%);margin:0 auto;padding:52px 56px 80px}.page-header{display:flex;min-height:88px;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:36px}.page-heading{display:grid;gap:9px;min-width:0}.page-heading h1{font-size:clamp(30px,3vw,38px);font-weight:620;letter-spacing:-.035em;line-height:1.08}.page-heading>p:not(.eyebrow){max-width:680px;color:var(--muted);font-size:14px;line-height:1.55}.heading-row{display:flex;align-items:center;gap:12px}.eyebrow,.section-kicker{color:var(--accent-dark);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.header-summary,.status-pill{display:inline-flex;width:fit-content;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-soft);font-size:11px;font-weight:550;padding:7px 10px;white-space:nowrap}.page-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;border:1px solid var(--ink);border-radius:9px;background:var(--ink);color:#fff;cursor:pointer;font-size:12px;font-weight:600;padding:9px 14px;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.button:hover{background:#343541;box-shadow:var(--shadow-sm);transform:translateY(-1px)}.button.secondary{border-color:var(--line-strong);background:var(--surface);color:var(--ink)}.button.secondary:hover{background:var(--surface-muted)}.button:disabled{cursor:not-allowed;opacity:.55;transform:none}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.metric{display:grid;min-height:130px;grid-template-columns:38px minmax(0,1fr);gap:11px 12px;border-left:1px solid var(--line);padding:22px}.metric:first-child{border-left:0}.metric-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:10px}.metric-icon.green,.metric-icon.teal{background:var(--accent-soft);color:var(--accent-dark)}.metric-icon.coral{background:var(--red-soft);color:var(--red)}.metric-icon.blue{background:var(--blue-soft);color:var(--blue)}.metric>div:nth-child(2){display:grid;gap:3px}.metric span{color:var(--muted);font-size:11px;font-weight:550}.metric strong{font-size:28px;font-weight:620;letter-spacing:-.035em;line-height:1}.metric strong.metric-word{font-size:18px;line-height:1.5}.metric small{grid-column:1/-1;display:flex;align-items:center;gap:6px;color:#8e8ea0;font-size:10px}.metric.compact{min-height:96px;align-items:center}.metric.compact strong{font-size:24px}.metric.compact .metric-word{font-size:16px}.online-dot{display:inline-block;width:6px;height:6px;box-shadow:none}.section{margin-top:48px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:17px}.section-heading>div{display:grid;gap:6px}.section-heading h2{font-size:21px;font-weight:620;letter-spacing:-.025em;line-height:1.2}.section-heading p:not(.section-kicker){color:var(--muted);font-size:12px;line-height:1.5}.text-link{display:inline-flex;align-items:center;gap:5px;color:var(--ink-soft);font-size:11px;font-weight:600;white-space:nowrap}.text-link:hover{color:var(--accent-dark)}.surface-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent-dark)}.grid,.macro-grid{display:grid;gap:14px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.macro-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cluster-card,.log-feed,.macro-card,.rubric-row,.tree-box{border:1px solid var(--line);border-radius:14px;background:var(--surface);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.cluster-card:hover,.macro-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow-sm);transform:translateY(-1px)}.cluster-card{display:grid;width:100%;gap:24px;min-height:200px;padding:21px;text-align:left}.cluster-card.clickable{cursor:pointer}.cluster-card.selected{border-color:var(--accent);box-shadow:0 0 0 3px rgba(16,163,127,.12)}.card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.cluster-heading,.macro-title{display:flex;align-items:flex-start;gap:11px;min-width:0}.cluster-heading>div,.macro-title>div{display:grid;gap:7px;min-width:0}.cluster-heading h3,.macro-title h3{font-size:14px;font-weight:620;line-height:1.35}.severity-mark{width:7px;height:7px;flex:0 0 7px;border-radius:50%;margin-top:6px}.severity-mark.red{background:var(--red)}.severity-mark.amber{background:#d9962a}.severity-mark.green{background:var(--green)}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);font-size:10px;font-weight:650;padding:5px 8px;white-space:nowrap}.badge.red{background:var(--red-soft);color:var(--red)}.badge.amber{background:var(--amber-soft);color:var(--amber)}.badge.green{background:var(--green-soft);color:var(--green)}.cluster-footer{display:grid;grid-template-columns:auto minmax(60px,1fr) auto;align-items:center;gap:10px;margin-top:auto}.severity-track{height:4px;overflow:hidden;border-radius:4px;background:#ececf1}.severity-track span{display:block;height:100%;border-radius:inherit;background:var(--accent)}.muted{color:var(--muted)}.small{font-size:11px;line-height:1.55}.macro-card{display:grid;gap:16px;min-width:0;padding:21px}.macro-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent-dark)}.macro-body,.tree-code{overflow:auto;margin:0;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:11px;line-height:1.7;white-space:pre-wrap}.macro-body{max-height:235px;border:1px solid var(--line);border-radius:10px;background:var(--surface-muted);color:var(--ink-soft);padding:16px}.macro-meta{display:flex;align-items:center;gap:8px 16px;color:var(--muted);font-size:10px;font-weight:550}.macro-meta span:nth-child(2){color:var(--green)}.icon-button{display:grid;width:32px;height:32px;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer;margin-left:auto}.icon-button:hover{background:var(--surface-muted);color:var(--accent-dark)}.log-feed{overflow:hidden}.log-head,.log-row{display:grid;grid-template-columns:140px 150px 175px minmax(0,1fr);gap:14px;align-items:center}.log-head{border-bottom:1px solid var(--line);background:var(--surface-muted);color:#8e8ea0;font-size:9px;font-weight:650;padding:11px 16px;text-transform:uppercase}.log-row{min-height:58px;border-top:1px solid #ededed;font-size:11px;padding:11px 16px}.log-row:nth-child(2){border-top:0}.log-row:hover{background:#fafafa}.log-time{color:var(--muted);font-variant-numeric:tabular-nums}.agent-name{display:flex;align-items:center;gap:7px;font-weight:600}.agent-name i{width:6px;height:6px;border-radius:50%;background:var(--accent)}.log-action{width:fit-content;border-radius:6px;background:var(--blue-soft);color:var(--blue);font-size:9px;font-weight:650;padding:4px 7px;text-transform:capitalize}.log-summary{color:var(--ink-soft);line-height:1.45}.tree-box{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(360px,1.2fr);gap:0;overflow:hidden}.tree-visual{min-height:360px;flex-direction:column;justify-content:center;background:var(--surface-muted);padding:30px}.tree-node,.tree-visual{display:flex;align-items:center}.tree-node{width:min(260px,100%);gap:11px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-sm);padding:12px}.tree-node>span{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:8px}.tree-node>div{display:grid;gap:2px}.tree-node small{color:var(--muted);font-size:9px;font-weight:600;text-transform:uppercase}.tree-node strong{font-size:12px;font-weight:600}.root-node>span{background:var(--accent-soft);color:var(--accent-dark)}.risk-node>span{background:var(--red-soft);color:var(--red)}.safe-node>span{background:var(--green-soft);color:var(--green)}.tree-connector{display:grid;height:58px;place-items:center;position:relative}.tree-connector:before{position:absolute;width:1px;height:100%;background:var(--line-strong);content:""}.tree-connector span{position:relative;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:9px;font-weight:600;padding:4px 8px}.tree-branches{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;position:relative}.tree-branches:before{position:absolute;top:-15px;left:25%;width:50%;height:15px;border:1px solid var(--line-strong);border-bottom:0;content:""}.tree-source{min-width:0;background:#202123;color:#ececf1;padding:24px}.code-label{display:flex;align-items:center;gap:7px;border-bottom:1px solid #353740;color:#acacbe;font-size:10px;font-weight:600;padding-bottom:14px}.code-label span{color:#7edac2;margin-left:auto}.tree-code{color:#ececf1;padding-top:16px}.rubric-row,.rubric-scale{display:grid;grid-template-columns:220px minmax(0,1fr) 70px;gap:18px;align-items:center}.rubric-scale{color:#8e8ea0;font-size:9px;font-weight:650;padding:0 18px 9px;text-transform:uppercase}.rubric-list{display:grid;gap:9px}.rubric-row{min-height:80px;padding:15px 18px}.rubric-row:hover{border-color:var(--line-strong);background:#fdfdfd}.rubric-row>strong{color:var(--accent-dark);font-size:18px;font-weight:620;text-align:right}.rubric-name{display:flex;align-items:center;gap:11px}.rubric-name>span{display:grid;width:30px;height:30px;place-items:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-dark);font-size:9px;font-weight:700}.rubric-name h3{font-size:13px;font-weight:600}.filter-bar,.run-context{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--muted);font-size:11px;margin-bottom:15px;padding:12px 14px}.filter-label,.run-context span{display:flex;align-items:center;gap:7px}.filter-label{color:var(--ink);font-weight:600}.run-context{justify-content:flex-start;gap:28px;background:var(--surface-muted)}.run-context strong{color:var(--ink)}.cluster-detail{display:grid;gap:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-sm);margin-top:16px;padding:24px}.cluster-detail-main{display:grid;gap:8px}.cluster-detail-main h3{font-size:20px;font-weight:620;letter-spacing:-.025em}.cluster-detail-main>p:not(.section-kicker){max-width:820px;color:var(--muted);font-size:13px;line-height:1.55}.cluster-detail-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.cluster-detail-stats span{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:999px;background:var(--surface-muted);color:var(--muted);font-size:11px;padding:6px 9px}.cluster-detail-stats strong{color:var(--ink)}.cluster-detail-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:16px;align-items:start}.cluster-detail-grid h4{font-size:12px;font-weight:650;margin:0 0 10px}.ticket-snippets{display:grid;gap:9px}.ticket-snippet{border:1px solid var(--line);border-radius:12px;background:var(--surface-muted);padding:13px}.ticket-snippet strong{display:block;font-size:12px;font-weight:650;margin-bottom:6px}.ticket-snippet p{color:var(--ink-soft);font-size:11px;line-height:1.55}.ticket-snippet small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:8px}.hero{display:flex;min-height:calc(100vh - 104px);align-items:center}.welcome-hero{position:relative;overflow:hidden}.welcome-hero:before{position:absolute;top:8%;right:0;width:46%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(16,163,127,.11) 0,rgba(16,163,127,.04) 40%,transparent 70%);content:"";pointer-events:none}.hero-grid{display:grid;width:100%;grid-template-columns:minmax(0,1.02fr) minmax(390px,.98fr);align-items:center;gap:clamp(54px,8vw,110px)}.hero-main{display:flex;position:relative;z-index:1;flex-direction:column;align-items:flex-start;gap:19px}.hero-main h1{max-width:720px;font-size:clamp(46px,5.2vw,70px);font-weight:580;letter-spacing:-.055em;line-height:.99}.lede{max-width:620px;color:var(--muted);font-size:17px;line-height:1.62}.hero-status{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.82);color:var(--green);font-size:10px;font-weight:650;padding:7px 10px;backdrop-filter:blur(10px)}.hero-proof{display:flex;flex-wrap:wrap;gap:10px 18px;color:var(--muted);font-size:11px;font-weight:500}.hero-proof span{display:flex;align-items:center;gap:6px}.hero-proof svg{color:var(--accent-dark)}.hero-preview{position:relative;z-index:1;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-md);padding:13px;transform:rotate(1deg)}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:7px 7px 14px}.preview-agent{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600}.preview-avatar{display:grid;width:29px;height:29px;place-items:center;border-radius:9px;background:var(--ink);color:#fff}.preview-state{display:flex;align-items:center;gap:6px;color:var(--green);font-size:10px}.preview-conversation{display:grid;gap:13px;padding:19px 7px 7px}.preview-bubble{max-width:88%;border-radius:13px;color:var(--ink-soft);font-size:12px;line-height:1.55;padding:12px 14px}.preview-bubble.customer{justify-self:end;border-bottom-right-radius:4px;background:var(--surface-hover)}.preview-bubble.agent{border:1px solid #d9eee8;border-bottom-left-radius:4px;background:var(--accent-soft)}.preview-thinking{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;padding:4px 6px 2px}.preview-thinking span{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:10px 0 0 rgba(16,163,127,.55),20px 0 0 rgba(16,163,127,.25);margin-right:18px}.preview-footer{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:11px;color:var(--muted);font-size:10px;margin-top:3px;padding:11px 12px}.preview-footer strong{display:flex;align-items:center;gap:5px;color:var(--green);font-weight:600}@media (max-width:1100px){.page{padding-inline:34px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric:nth-child(3){border-left:0}.metric:nth-child(3),.metric:nth-child(4){border-top:1px solid var(--line)}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.log-head,.log-row{grid-template-columns:120px 120px 155px minmax(0,1fr)}.hero-grid{grid-template-columns:1fr;padding-block:46px}.hero-preview{width:min(600px,100%);transform:none}.welcome-hero:before{top:auto;right:-10%;bottom:0;width:75%}}@media (max-width:820px){.sidebar{display:none}.app-content{margin-left:0;padding-top:64px;padding-bottom:70px}.mobile-bar{position:fixed;inset:0 0 auto;z-index:20;display:flex;height:64px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(247,247,248,.92);padding:0 12px;backdrop-filter:blur(14px)}.mobile-bar .brand-copy strong{color:var(--ink)}.mobile-bar .brand-copy small{color:var(--muted)}.mobile-live{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green)}.mobile-nav{position:fixed;inset:auto 0 0;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);background:rgba(255,255,255,.96);padding:7px 12px max(7px,env(safe-area-inset-bottom));backdrop-filter:blur(14px)}.mobile-nav a{display:flex;min-height:47px;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:9px;color:var(--muted);font-size:9px;font-weight:550}.mobile-nav a.active{background:var(--surface-hover);color:var(--ink)}.page{padding:30px 20px 48px}.page-header{align-items:flex-start;flex-direction:column;gap:20px}.cluster-detail-grid,.grid,.macro-grid,.tree-box{grid-template-columns:1fr}.tree-visual{min-height:330px}.log-head{display:none}.log-row{grid-template-columns:105px minmax(0,1fr);gap:8px 12px;padding:14px}.log-action{justify-self:start}.log-summary{grid-column:2}.hero{min-height:auto}}@media (max-width:560px){.page{padding-inline:15px}.page-header{margin-bottom:24px}.heading-row{align-items:flex-start;flex-direction:column}.page-actions{width:100%}.page-actions .button{flex:1}.metric-grid{grid-template-columns:1fr 1fr}.metric{grid-template-columns:30px minmax(0,1fr);min-height:114px;gap:8px;padding:14px}.metric:nth-child(3){border-left:0}.metric-icon{width:30px;height:30px}.metric strong{font-size:23px}.metric strong.metric-word,.metric.compact .metric-word{font-size:13px}.playbook-metrics .metric{min-height:88px}.section{margin-top:38px}.section-heading{align-items:flex-start}.section-heading .text-link{margin-top:20px}.cluster-card,.macro-card{padding:17px}.cluster-footer{grid-template-columns:auto 1fr}.cluster-footer>span{grid-column:1/-1}.macro-meta{flex-wrap:wrap}.rubric-scale{display:none}.rubric-row{grid-template-columns:1fr auto;gap:8px 14px}.rubric-row p{grid-column:1/-1}.tree-branches{grid-template-columns:1fr}.tree-branches:before{display:none}.tree-node{width:100%}.run-context{align-items:flex-start;flex-direction:column;gap:8px}.hero-grid{gap:46px;padding-block:22px 34px}.hero-main h1{font-size:43px}.lede{font-size:15px}.hero-proof{align-items:flex-start;flex-direction:column}.hero-preview{border-radius:15px;padding:10px}.preview-bubble{max-width:94%;font-size:11px}.header-summary{white-space:normal}}.import-page{padding-bottom:132px}.import-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.import-panel{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:22px}.compact-heading{align-items:flex-start;margin-bottom:18px}.drop-zone{display:flex;min-height:285px;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:1px dashed var(--line-strong);border-radius:12px;background:var(--surface-muted);text-align:center;padding:28px;transition:border-color .15s ease,background .15s ease,transform .15s ease}.drop-zone.dragging{border-color:var(--accent);background:var(--accent-soft);transform:scale(1.005)}.drop-zone>strong{font-size:14px;font-weight:620}.drop-zone>p{max-width:310px;color:var(--muted);font-size:11px;line-height:1.5}.drop-zone .button{margin-top:5px}.drop-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:13px;background:var(--accent-soft);color:var(--accent-dark)}.format-row{display:flex;gap:8px;margin-top:7px}.format-row span{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--muted);font-size:9px;font-weight:650;padding:5px 7px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.import-help{display:grid;gap:6px;border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.import-help strong{font-size:10px;font-weight:650}.import-help code{overflow:auto;border-radius:7px;background:var(--surface-muted);color:var(--muted);font-size:9px;padding:8px 10px;white-space:nowrap}.ticket-form{display:grid;gap:14px}.ticket-form label{display:grid;gap:6px}.ticket-form label>span{color:var(--ink-soft);font-size:10px;font-weight:600}.ticket-form input,.ticket-form textarea{width:100%;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:var(--ink);font-size:12px;line-height:1.5;padding:10px 11px;resize:vertical;transition:border-color .14s ease,box-shadow .14s ease}.ticket-form input{min-height:40px}.ticket-form input:focus,.ticket-form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(16,163,127,.1);outline:none}.ticket-form input::placeholder,.ticket-form textarea::placeholder{color:#a0a0ad}.ticket-form>.button{justify-self:start}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.import-message{display:flex;align-items:center;gap:9px;border:1px solid;border-radius:10px;font-size:11px;line-height:1.5;margin-top:16px;padding:12px 14px}.import-message.error{border-color:#f0c7c1;background:var(--red-soft);color:var(--red)}.import-message.success{border-color:#c8e8dc;background:var(--green-soft);color:var(--green)}.ticket-preview-section{margin-top:36px}.text-button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;cursor:pointer;font-size:10px;font-weight:600;padding:6px}.text-button.danger{color:var(--red)}.text-button:hover{text-decoration:underline}.ticket-preview-list{display:grid;overflow:hidden;border:1px solid var(--line);border-radius:13px}.ticket-preview{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:12px;align-items:start;border-top:1px solid var(--line);background:#fff;padding:15px}.ticket-preview:first-child{border-top:0}.ticket-preview:hover{background:#fdfdfd}.ticket-preview>div{display:grid;gap:4px;min-width:0}.ticket-preview strong{overflow:hidden;font-size:12px;font-weight:620;text-overflow:ellipsis;white-space:nowrap}.ticket-preview small{color:var(--muted);font-size:9px}.ticket-preview p{display:-webkit-box;overflow:hidden;color:var(--ink-soft);font-size:10px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.ticket-number{display:grid;width:30px;height:30px;place-items:center;border-radius:8px;background:var(--surface-muted);font-size:9px;font-weight:650}.ticket-number,.ticket-preview .icon-button{color:var(--muted)}.ticket-preview .icon-button:hover{color:var(--red)}.ticket-overflow{border-top:1px solid var(--line);font-size:10px;font-weight:600;padding:11px 15px}.empty-import-state,.ticket-overflow{background:var(--surface-muted);color:var(--muted);text-align:center}.empty-import-state{display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:7px;border:1px dashed var(--line-strong);border-radius:13px;padding:24px}.empty-import-state strong{color:var(--ink-soft);font-size:12px}.empty-import-state p{font-size:10px}.launch-bar{position:fixed;right:28px;bottom:22px;left:288px;z-index:15;justify-content:space-between;gap:18px;border:1px solid var(--line-strong);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-md);padding:13px 14px 13px 17px;backdrop-filter:blur(16px)}.launch-bar,.launch-bar>div{display:flex;align-items:center}.launch-bar>div{gap:10px;min-width:0;color:var(--accent-dark)}.launch-bar span{display:grid;gap:2px;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.launch-bar span strong{color:var(--ink);font-size:11px}.launch-bar .button{min-width:180px}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}@media (max-width:1050px){.import-layout{grid-template-columns:1fr}}@media (max-width:820px){.launch-bar{right:14px;bottom:74px;left:14px}}@media (max-width:560px){.import-panel{padding:17px}.drop-zone{min-height:250px;padding:21px}.form-grid{grid-template-columns:1fr}.ticket-preview{grid-template-columns:30px minmax(0,1fr) 32px;gap:9px;padding:12px}.launch-bar{align-items:stretch;flex-direction:column;gap:10px;padding:12px}.launch-bar .button{width:100%}.launch-bar span{white-space:normal}.import-page{padding-bottom:190px}}.agent-modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(32,33,35,.56);padding:24px;backdrop-filter:blur(5px);animation:modal-fade-in .16s ease-out}.agent-modal{display:grid;width:min(780px,100%);max-height:min(760px,calc(100vh - 48px));overflow:hidden;border:1px solid rgba(255,255,255,.55);border-radius:18px;background:var(--surface);box-shadow:0 26px 90px rgba(0,0,0,.28);animation:modal-rise .18s ease-out}.agent-modal-header{display:grid;grid-template-columns:46px minmax(0,1fr) 34px;gap:13px;align-items:center;padding:21px 22px 18px}.agent-modal-header>div:nth-child(2){display:grid;gap:4px;min-width:0}.agent-modal-header h2{font-size:20px;font-weight:640;letter-spacing:-.025em}.agent-modal-header p:not(.section-kicker){overflow:hidden;color:var(--muted);font-size:11px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.agent-modal-status{display:grid;width:44px;height:44px;place-items:center;border-radius:12px}.agent-modal-status.running{background:var(--blue-soft);color:var(--blue)}.agent-modal-status.success{background:var(--green-soft);color:var(--green)}.agent-modal-status.error{background:var(--red-soft);color:var(--red)}.agent-modal-close{margin:0;color:var(--muted)}.agent-progress{height:3px;overflow:hidden;background:var(--surface-hover)}.agent-progress span{display:block;height:100%;transform-origin:left}.agent-progress.active span{width:45%;background:linear-gradient(90deg,transparent,var(--accent),transparent);animation:progress-scan 1.6s ease-in-out infinite}.agent-progress.complete span{width:100%;background:var(--green);animation:progress-complete .3s ease-out}.agent-progress.failed span{width:100%;background:var(--red);animation:progress-complete .3s ease-out}.agent-run-meta{display:flex;align-items:center;gap:8px 18px;border-bottom:1px solid var(--line);background:var(--surface-muted);color:var(--muted);font-size:9px;padding:10px 22px}.agent-run-meta span{display:inline-flex;align-items:center;gap:5px}.agent-run-meta code{overflow:hidden;margin-left:auto;color:#8e8ea0;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.agent-log-window{min-height:270px;max-height:430px;overflow-y:auto;background:#fcfcfc;overscroll-behavior:contain;padding:18px 22px;scrollbar-color:#d9d9e3 transparent;scrollbar-width:thin}.agent-log-entry{display:grid;grid-template-columns:25px minmax(0,1fr);gap:10px;min-height:68px}.agent-log-rail{display:flex;align-items:center;flex-direction:column}.agent-log-rail>span{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;border-radius:50%}.agent-log-rail>span.done{background:var(--green-soft);color:var(--green)}.agent-log-rail>span.current{background:var(--blue-soft);color:var(--blue);box-shadow:0 0 0 4px rgba(75,107,251,.08)}.agent-log-rail>i{width:1px;min-height:38px;flex:1;background:var(--line)}.agent-log-content{min-width:0;padding:1px 0 18px}.agent-log-content>p{color:var(--ink-soft);font-size:11px;line-height:1.5;margin-top:7px}.agent-log-heading{display:flex;min-width:0;align-items:center;gap:7px}.agent-log-heading time{margin-left:auto;color:#9a9aa8;font-size:8px;font-variant-numeric:tabular-nums}.action-chip,.agent-chip{display:inline-flex;align-items:center;gap:4px;border-radius:6px;font-size:8px;font-weight:650;padding:4px 6px;white-space:nowrap}.agent-chip{background:var(--accent-soft);color:var(--accent-dark)}.action-chip{overflow:hidden;max-width:190px;background:var(--blue-soft);color:var(--blue);text-overflow:ellipsis;text-transform:capitalize}.agent-log-empty{display:flex;min-height:235px;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:var(--muted);text-align:center}.agent-log-empty strong{color:var(--ink-soft);font-size:12px}.agent-log-empty p{max-width:380px;font-size:10px;line-height:1.5}.agent-modal-footer{display:flex;min-height:72px;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:13px 18px 13px 22px}.agent-modal-footer>p{color:var(--muted);font-size:9px}.agent-modal-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.run-result-stats{display:flex;align-items:center;gap:16px}.run-result-stats span{display:grid;gap:1px;color:var(--muted);font-size:8px}.run-result-stats strong{color:var(--ink);font-size:15px;font-weight:630}@keyframes modal-fade-in{0%{opacity:0}}@keyframes modal-rise{0%{opacity:0;transform:translateY(10px) scale(.985)}}@keyframes progress-scan{0%{transform:translateX(-110%)}to{transform:translateX(245%)}}@keyframes progress-complete{0%{transform:scaleX(.75)}}@media (max-width:620px){.agent-modal-backdrop{align-items:end;padding:10px}.agent-modal{max-height:calc(100vh - 20px);border-radius:16px}.agent-modal-header{grid-template-columns:42px minmax(0,1fr) 32px;padding:17px 15px 14px}.agent-modal-status{width:40px;height:40px}.agent-modal-header h2{font-size:17px}.agent-modal-header p:not(.section-kicker){white-space:normal}.agent-run-meta{flex-wrap:wrap;padding-inline:15px}.agent-run-meta code{width:100%;margin-left:0}.agent-log-window{min-height:240px;padding:16px 14px}.agent-log-heading{flex-wrap:wrap}.agent-log-heading time{margin-left:0}.agent-modal-footer{align-items:stretch;flex-direction:column;padding:12px 14px}.agent-modal-actions{width:100%;margin-left:0}.agent-modal-actions .button{flex:1}.run-result-stats{justify-content:space-between;width:100%}}