:root{color-scheme:light;--blue:#1967d2;--blue-hover:#1558b5;--blue-soft:#eaf2ff;--ink:#202b3d;--muted:#637084;--line:#e5eaf1;--bg:#f5f7fb;--green:#167348;--red:#b3261e;--amber:#8c5a12;--shadow:0 2px 6px #24375705,0 8px 24px #24375703}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 "Segoe UI",Roboto,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 15px;border:1px solid #d8e0ec;border-radius:8px;background:white;color:#35445b;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}button:hover{background:#f0f4fa;border-color:#bdcadd}button:disabled{opacity:.48;cursor:not-allowed}button.primary,.button.primary{background:var(--blue);color:white;border-color:var(--blue);box-shadow:0 2px 4px #1967d221}button.primary:hover,.button.primary:hover{background:var(--blue-hover)}button.danger{color:var(--red);border-color:#e9c8c5}button.text-button{border:0;background:transparent;color:var(--blue);padding:6px 8px;min-height:36px}button.text-button:hover{background:var(--blue-soft)}button.small,.button.small{min-height:32px;padding:5px 10px;font-size:12px}button.icon-button{padding:8px;min-width:40px;border-color:transparent;background:transparent}button.icon-button:hover{background:var(--blue-soft)}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 15px;min-height:40px;font-weight:600;border:1px solid var(--line);border-radius:8px;background:#fff}.button:hover{text-decoration:none;background:var(--blue-soft)}:focus-visible{outline:3px solid #8eb9f3;outline-offset:3px}svg.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;line-height:1.25;letter-spacing:-.65px}h2{font-size:17px;font-weight:650;letter-spacing:-.2px}h3{font-size:15px;font-weight:650}small,.subtle,.muted{color:var(--muted)}small{font-size:12px}p+p{margin-top:10px}strong,b{font-weight:650}[hidden]{display:none!important}.skip-link{position:fixed;top:-60px;left:16px;z-index:100;background:#fff;padding:12px}.skip-link:focus{top:10px}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:30px 18px 22px;background:#fff;border-right:1px solid var(--line);z-index:30;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 10px;color:var(--ink);font-size:25px;font-weight:700;letter-spacing:-1px;line-height:1.2}.brand:hover{text-decoration:none}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:.1px;margin-top:5px}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--blue);box-shadow:0 4px 12px #1967d22a}.brand-mark svg{width:42px;fill:none;stroke:white;stroke-width:2.8;stroke-linecap:round}.nav-label{font-size:9px;letter-spacing:1.1px;font-weight:700;color:#909bac;margin:47px 14px 14px}nav{display:grid;gap:6px}nav a{min-height:48px;display:flex;align-items:center;gap:13px;padding:12px 14px;color:#59677a;border-radius:9px;font-weight:500}nav a:hover{text-decoration:none;background:#f5f7fb}nav a.active{background:var(--blue-soft);color:var(--blue);font-weight:650}nav b{margin-left:auto;min-width:25px;text-align:center;border-radius:5px;padding:1px 5px;font-size:10px;background:#eef1f6;color:#758297}nav a.active b{background:#d8e8ff;color:var(--blue)}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding:22px 10px 0;display:flex;gap:10px;align-items:flex-start;font-size:11px;color:#66758a}.sidebar-footer strong{font-weight:600;color:#4e5e74}.sidebar-footer p{font-size:10px;margin-top:3px}.footer-icon{color:#8593a6}.workspace{margin-left:248px}.topbar{height:72px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff}.breadcrumb{display:flex;gap:14px;align-items:center;font-size:12px;color:#8893a3}.breadcrumb strong{color:#4d5b70;font-weight:500}.separator{color:#c3cbd7}.topbar-actions{display:flex;align-items:center;gap:16px}.connection{color:#647186;font-size:12px;display:flex;align-items:center;gap:8px}.connection:before{content:"";width:6px;height:6px;border-radius:50%;background:#a9b3c2}.connection.good:before{background:#2c9565}.connection.bad:before{background:#c24038}.connection:hover{text-decoration:none;color:var(--blue)}main{max-width:1640px;margin:auto;padding:32px 36px 0;min-height:calc(100dvh - 72px);display:flex;flex-direction:column}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:1.35px;font-weight:700;color:#7a8aa1;margin-bottom:9px}.page-heading p{font-size:13px;color:var(--muted);margin-top:9px;max-width:720px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.page-heading .actions{flex-shrink:0}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);min-width:0;overflow:hidden}.panel-head{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #edf0f5}.panel-head p{font-size:12px;color:var(--muted);margin-top:4px}.panel-body{padding:24px}.section-space{margin-top:24px}.grid-two{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:20px;box-shadow:var(--shadow);position:relative}.stat-label{color:var(--muted);font-size:12px;display:flex;align-items:center;gap:9px}.stat-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:#eef4ff;color:var(--blue);border-radius:8px}.stat-icon svg.icon{width:17px;height:17px}.stat-value{font-size:29px;font-weight:650;letter-spacing:-.6px;line-height:1.2;margin-top:16px;font-variant-numeric:tabular-nums}.stat-value .unit{font-size:16px;color:#8b98aa;font-weight:400}.stat-foot{font-size:11px;color:#8a96a8;margin-top:7px}.notice{display:flex;align-items:flex-start;gap:11px;background:#edf4ff;border:1px solid #dbe8fc;color:#34567d;padding:15px 18px;border-radius:10px;font-size:12px;line-height:1.65;margin-bottom:22px}.notice>svg{margin-top:1px}.notice p{flex:1;min-width:0}.notice a{text-decoration:underline;text-underline-offset:3px}.notice.error{background:#fff1f0;border-color:#f2d9d6;color:#973b35}.notice.warning{background:#fffaee;border-color:#f2e7c9;color:#82631d}.notice.success{background:#edf8f1;border-color:#d9eedf;color:#276341}.notice:last-child{margin-bottom:0}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:5px;line-height:1.5;font-size:10px;white-space:nowrap;background:#f0f3f7;color:#69778a;font-weight:600}.badge.ready,.badge.parsed{background:#e9f6ed;color:#267047}.badge.review,.badge.stale{background:#fff4da;color:#90621a}.badge.error{background:#fceae8;color:#b3261e}.badge.planned,.badge.long{background:#eaf2ff;color:#1967d2}.badge.short{background:#f2ecfc;color:#7956a6}.badge.neutral{background:#f2f4f8;color:#6f7d90}.empty{text-align:center;padding:52px 24px}.empty .empty-icon{width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:#f0f5ff;color:#7c9bc9;border-radius:19px;margin:0 auto 19px}.empty .empty-icon svg{width:30px;height:30px;stroke-width:1.35}.empty h3{font-size:16px;margin-bottom:9px}.empty p{color:var(--muted);font-size:12px;max-width:380px;margin:0 auto;line-height:1.8}.empty .actions{margin-top:22px;justify-content:center}.loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:60px 20px;color:var(--muted)}.spinner{display:inline-block;width:20px;height:20px;border:2px solid #dbe6f7;border-top-color:var(--blue);border-radius:50%;animation:spin .75s linear infinite}.spinner.small{width:15px;height:15px}@keyframes spin{to{transform:rotate(360deg)}}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th{background:#fbfcfe;color:#8a96a7;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.65px;white-space:nowrap;padding:12px 22px;border-bottom:1px solid var(--line)}td{padding:17px 22px;font-size:12px;border-bottom:1px solid #edf1f6;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}.num{font-variant-numeric:tabular-nums}.ticker-cell{display:flex;align-items:center;gap:11px}.asset-avatar{background:#eef3fa;color:#68819f;width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex-shrink:0}.ticker-cell strong{display:block;font-size:13px}.ticker-cell small{display:block;font-size:10px;margin-top:3px}.capital{font-size:15px;font-weight:650}.table-note{padding:13px 22px;border-top:1px solid var(--line);font-size:11px;color:#8794a5;background:#fcfdff}.checklist{list-style:none;margin:0;padding:0}.checklist li{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid #edf1f6}.checklist li:first-child{padding-top:0}.checklist li:last-child{border-bottom:0;padding-bottom:0}.step-dot{width:24px;height:24px;border-radius:50%;background:#edf2fa;color:#8293ab;display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0;margin-top:1px}.step-dot.done{background:#e9f6ed;color:#2b8154}.step-dot.done svg{width:14px;height:14px}.step-dot.current{background:var(--blue);color:#fff}.checklist strong{font-size:12px;display:block}.checklist p{font-size:11px;color:var(--muted);margin-top:4px}.checklist a{font-size:11px;display:inline-block;margin-top:7px}.sidebar-note{margin-top:20px;font-size:11px;color:#8290a3;display:flex;gap:8px;padding:0 6px}.sidebar-note svg{width:17px}.section-title{display:flex;align-items:center;gap:9px}.count-pill{border-radius:5px;background:#f0f3f8;font-size:10px;color:#728198;padding:2px 7px}.history-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:14px;padding:18px 24px;border-bottom:1px solid #eef1f6;align-items:start}.history-row:last-child{border:0}.history-symbol{width:32px;height:32px;border-radius:50%;background:#f0f5ff;color:#6089c1;display:grid;place-items:center}.history-symbol svg{width:17px}.history-row p{color:var(--muted);font-size:11px;margin-top:4px;overflow-wrap:anywhere}.history-row strong{font-size:12px}.history-row .meta{margin-top:5px;display:flex;align-items:center;gap:6px}.history-row .meta button{min-height:24px;padding:0 4px;font-size:11px}.history-row .badge{margin-top:2px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.search-field{position:relative;max-width:460px;flex:1}.search-field svg{position:absolute;left:13px;top:12px;width:18px;height:18px;color:#8794a7}.search-field input{padding-left:41px;background:#fff}.toolbar-count{font-size:12px;color:var(--muted);white-space:nowrap}.filter-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.filter-chip{min-height:32px;padding:5px 12px;border-radius:18px;background:transparent;border:1px solid #dfe5ee;font-size:11px;font-weight:500;color:#778399}.filter-chip.active{background:var(--blue-soft);border-color:#c5dbfa;color:var(--blue);font-weight:600}.split{display:grid;grid-template-columns:340px minmax(0,1fr);gap:22px;align-items:start}.message-list{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}.list-heading{padding:14px 18px;background:#fcfdff;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.7px;color:#8894a6;display:flex;justify-content:space-between}.message{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf0f5;border-radius:0;padding:18px 18px 16px;font-weight:400;background:#fff;box-shadow:inset 3px 0 transparent}.message:hover{background:#f8faff}.message.selected{background:#eff5ff;box-shadow:inset 3px 0 var(--blue)}.message-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.message-top .message-id{font-weight:650;color:#596b84}.message-preview{font-size:12px;color:#52617a;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0;overflow-wrap:anywhere}.message-footer{display:flex;align-items:center;justify-content:space-between;color:#929dae;font-size:10px;gap:6px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 16px;font-size:11px;color:#7c899d;border-top:1px solid var(--line);background:#fff}.pagination button svg{width:16px;height:16px}.detail{position:sticky;top:20px}.detail .panel-head{padding:20px}.detail .panel-body{padding:20px}.detail-title{display:flex;align-items:center;gap:9px}.source{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.85 "Segoe UI",Roboto,Arial,sans-serif;margin:0;color:#42526a;background:#f7f9fc;border:1px solid #edf1f7;border-radius:9px;padding:18px;max-height:390px;overflow:auto}.source-label{display:flex;align-items:center;gap:6px;color:#91a0b5;text-transform:uppercase;font-size:9px;letter-spacing:.9px;margin-bottom:10px}.source-actions{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:11px;color:#7a879a}.source-actions a{display:inline-flex;gap:5px;align-items:center}.source-actions svg{width:13px;height:13px}.tabs{display:flex;gap:23px;border-bottom:1px solid var(--line);padding:0 24px;margin-bottom:24px;overflow-x:auto}.tabs button{border:0;border-radius:0;border-bottom:2px solid transparent;white-space:nowrap;padding:14px 0;min-height:46px;background:transparent;color:#8090a5;font-size:12px;font-weight:500}.tabs button.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:650}.tabs button:hover{color:var(--blue)}.detail-tabs{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 20px;gap:12px}.detail-tabs .tabs{border:0;padding:0;margin:0;gap:20px}.detail-tabs>button{flex-shrink:0}.event{padding:16px;border:1px solid var(--line);border-radius:10px;margin-bottom:12px}.event:last-child{margin-bottom:0}.event-head{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.event-head strong{font-size:12px}.event-values{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px;font-size:12px}.quote{font-size:11px;line-height:1.7;color:#8491a5;border-left:2px solid #dbe6f5;padding-left:10px;margin-top:13px!important}.event details{margin-top:12px;background:#f8fafc;font-size:10px;padding:9px 11px}.event small{display:block;margin-top:10px}.reason-list{overflow-wrap:anywhere;margin-top:6px;color:#7d8ca2}.target-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.target-item{border-radius:5px;background:#f3f6fa;padding:4px 8px;font-size:11px;color:#5e718d}.parse-meta{border-top:1px solid var(--line);margin-top:20px;padding-top:13px;display:flex;align-items:center;gap:8px;font-size:10px;color:#95a0af;overflow-wrap:anywhere}.parse-meta svg{width:15px;height:15px}.mobile-back{display:none}.details-note{font-size:11px;color:var(--muted);margin-bottom:14px}details{padding:16px 18px;border:1px solid var(--line);border-radius:9px;background:#fff}details+details{margin-top:10px}summary{cursor:pointer;font-size:12px;font-weight:600;color:#65758b}details[open]>summary{margin-bottom:14px}.warning-item{margin-top:12px;font-size:11px;line-height:1.75;color:#718098;overflow-wrap:anywhere}.warning-item code{font-size:10px}.editor{width:100%;min-height:380px;resize:vertical;background:#f8faff!important;font:12px/1.7 Consolas,"Courier New",monospace!important;tab-size:2;color:#3d5779}.edit-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:16px}.unsaved{color:#9b701e;font-size:11px}.hint{font-size:11px;line-height:1.7;color:#8491a4;margin-top:7px}
label{display:block;font-size:12px;font-weight:600;color:#58677e;margin-bottom:7px}input,select,textarea{display:block;width:100%;border:1px solid #d9e1ec;border-radius:8px;min-height:42px;padding:10px 12px;color:#344760;background:#fff;outline:none}input::placeholder,textarea::placeholder{color:#a0abbb}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1967d212}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0}.field{margin-bottom:24px}.field-head{display:flex;align-items:center;justify-content:space-between}.field-head button{font-size:11px;min-height:30px;padding:3px 7px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-top:1px solid var(--line);margin:6px 0 20px}.switch-row strong{font-size:12px}.switch-row p{font-size:11px;color:var(--muted);margin-top:5px}.switch-row input{appearance:none;display:block;width:38px;min-width:38px;height:22px;min-height:0;border:0;background:#ccd5e2;border-radius:20px;padding:0;position:relative;cursor:pointer}.switch-row input:before{content:"";position:absolute;background:#fff;box-shadow:0 1px 3px #0002;width:16px;height:16px;left:3px;top:3px;border-radius:50%;transition:transform .15s}.switch-row input:checked{background:var(--blue)}.switch-row input:checked:before{transform:translateX(16px)}.check{display:flex;gap:10px;align-items:flex-start;font-size:11px;font-weight:400;line-height:1.6;margin-top:16px}.check input{width:16px;height:16px;min-height:0;margin-top:1px;accent-color:var(--blue);flex-shrink:0}.settings-tabs{padding-left:0;padding-right:0}.connection-card{padding:22px 24px}.connection-card+.connection-card{border-top:1px solid var(--line)}.connection-card header{display:flex;align-items:center;gap:11px;margin-bottom:13px}.connection-card header>span{color:var(--blue)}.connection-card header .badge{margin-left:auto}.connection-card p{font-size:12px;line-height:1.8;color:#65758e}.connection-card small{display:block;font-size:11px;line-height:1.8;margin-top:9px}.small-code,code{font:11px/1.6 Consolas,monospace;background:#f0f3f9;padding:2px 5px;border-radius:4px;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);gap:24px;align-items:start}.catalog-tools{padding:18px 22px;display:flex;gap:12px;border-bottom:1px solid var(--line)}.catalog-tools select{width:180px;font-size:12px}.catalog-summary{font-size:11px;color:#8794a8;margin-bottom:18px}.catalog-table td{padding:13px 22px}.catalog-table small{display:block;font-size:10px;margin-top:3px}.catalog-editor{margin-top:20px}.catalog-editor .editor{margin-bottom:14px}.catalog-savebar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.catalog-savebar p{font-size:11px;color:#8995a7;max-width:660px}.catalog-controls{display:flex;gap:8px;align-items:center}.tg-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:42px;padding:36px}.tg-instructions h2{font-size:21px;margin-bottom:12px}.tg-instructions>p{color:var(--muted);font-size:12px;max-width:460px}.steps{list-style:none;padding:0;margin:28px 0;display:grid;gap:22px}.steps li{display:flex;align-items:flex-start;gap:14px}.steps .step-dot{background:#edf4ff;color:var(--blue);width:28px;height:28px}.steps strong{font-size:12px}.steps p{font-size:11px;color:#8794a7;margin-top:4px;max-width:410px}.qr-column{border-left:1px solid var(--line);padding-left:38px;display:flex;flex-direction:column;justify-content:center}.qr-box{background:#f8faff;border:1px dashed #d6e1f0;border-radius:14px;min-height:280px;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:24px}.qr-box .empty{padding:15px 0}.qr-box .empty-icon{background:#eaf2ff}.qr-box .empty h3{font-size:14px}.qr-box .empty p{font-size:11px}.qr-box img{width:220px;max-width:100%;border-radius:8px;background:#fff}.qr-box>p{font-size:10px;color:#7b8ba1;margin-top:12px}.qr-caption{text-align:center;font-size:10px;line-height:1.7;color:#9aa5b5;margin-top:14px}.tg-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);background:#fcfdff;padding:21px 36px;gap:24px}.tg-facts small{font-size:10px;display:block;margin-bottom:5px}.tg-facts strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}#twofa{margin-top:20px}#twofa button{margin-top:12px}.job-bar{background:#eaf2ff;border:1px solid #d4e5fd;border-radius:10px;padding:13px 18px;display:flex;align-items:center;gap:12px;margin-bottom:22px;color:#3d6396;font-size:12px}.job-bar .job-copy{flex:1}.job-bar small{color:#7c93b3;display:block;font-size:10px}.job-bar progress{width:160px;height:5px;accent-color:var(--blue)}.job-bar.error{background:#fff0ee;color:#a53e35;border-color:#f2d8d5}.job-bar.review{background:#fff8e8;color:var(--amber);border-color:#f1dfb5}.job-bar.review small{color:#836a43}.job-bar.review p{margin:4px 0}footer{padding:30px 0 22px;display:flex;justify-content:space-between;gap:15px;color:#a0aabc;font-size:10px;margin-top:auto}.footer-separator{margin:0 6px}#toast{position:fixed;bottom:26px;left:calc(50% + 124px);transform:translateX(-50%);background:#263b56;color:white;border-radius:10px;padding:14px 20px;font-size:12px;box-shadow:0 8px 30px #24324d33;max-width:min(560px,90vw);z-index:100;overflow-wrap:anywhere}#toast.error{background:#9d3832}dialog{border:1px solid var(--line);border-radius:18px;padding:30px;width:min(440px,calc(100vw - 32px));box-shadow:0 24px 90px #1b2b4d30;color:var(--ink)}dialog::backdrop{background:#1e304f60;backdrop-filter:blur(3px)}dialog h2{font-size:22px;line-height:1.35;margin-bottom:12px}dialog p{font-size:13px;color:var(--muted);margin-bottom:24px}.dialog-icon{width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:var(--blue-soft);color:var(--blue);margin-bottom:20px}.dialog-actions{justify-content:flex-end}.full-button{width:100%;margin-top:20px}.field-error{color:var(--red);margin:12px 0 0!important}.maintenance{max-width:830px}.maintenance .panel-body p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:20px}
@media(min-width:1600px){.split{grid-template-columns:390px minmax(0,1fr)}}
@media(max-width:1200px){.sidebar{width:216px;padding-left:12px;padding-right:12px}.workspace{margin-left:216px}main{padding:28px 24px 0}.topbar{padding:0 24px}.grid-two{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.stat-grid{gap:12px}.stat-card{padding:17px}.stat-label{font-size:11px}.split{grid-template-columns:300px minmax(0,1fr);gap:18px}.page-heading{align-items:flex-start}.page-heading .actions{max-width:265px;justify-content:flex-end}.tg-grid{grid-template-columns:minmax(0,1fr) 280px;gap:28px;padding:28px}.qr-column{padding-left:26px}#toast{left:calc(50% + 108px)}}
@media(max-width:1020px){.grid-two{grid-template-columns:1fr}.setup-aside{display:none}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.split{grid-template-columns:265px minmax(0,1fr);gap:14px}.detail-tabs{flex-wrap:wrap;gap:0;padding-bottom:8px}.detail-tabs .tabs{width:100%}.detail .panel-head{flex-wrap:wrap}.tg-grid{grid-template-columns:1fr}.qr-column{padding:24px 0 0;border:0;border-top:1px solid var(--line);max-width:320px;width:100%;margin:auto}.page-heading{flex-wrap:wrap}.page-heading .actions{max-width:none;justify-content:flex-start}}
@media(max-width:760px){.sidebar{top:auto;bottom:0;width:100%;height:66px;padding:5px 10px calc(5px + env(safe-area-inset-bottom));border:0;border-top:1px solid #dfe6f1;height:calc(66px + env(safe-area-inset-bottom));box-shadow:0 -3px 20px #1a345108}.brand,.nav-label,.sidebar-footer{display:none}nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}nav a{padding:5px 3px;min-height:52px;display:flex;flex-direction:column;gap:3px;font-size:9px;justify-content:center;border-radius:9px}nav b{display:none}nav svg.icon{width:21px;height:21px}.workspace{margin:0}.topbar{height:58px;padding:0 20px}.breadcrumb>span{display:none}.breadcrumb strong{font-size:13px}.topbar-actions{gap:9px}.connection{font-size:10px}.topbar .icon-button{min-width:34px;min-height:34px;padding:6px}.topbar .icon-button svg{width:18px}main{padding:23px 20px 80px;min-height:calc(100dvh - 58px)}.page-heading{gap:18px;margin-bottom:22px}h1{font-size:27px}.eyebrow{font-size:9px}.page-heading p{font-size:12px;margin-top:7px}.page-heading .actions{gap:8px}button,.button{font-size:12px}.stat-grid{gap:10px;margin-bottom:18px}.stat-card{padding:15px}.stat-value{font-size:26px;margin-top:12px}.stat-foot{font-size:10px}.stat-label{font-size:10px;gap:7px}.stat-icon{width:25px;height:25px}.stat-icon svg{width:15px}.panel-head{padding:18px}.panel-body{padding:18px}.panel-head h2{font-size:15px}.notice{padding:13px;font-size:11px;margin-bottom:18px;gap:8px}.notice>svg{width:17px;height:17px;flex-shrink:0}.empty{padding:38px 20px}.empty h3{font-size:15px}.empty p{font-size:11px}.setup-aside{display:block}.grid-two{gap:18px}.setup-aside .sidebar-note{display:none}.section-space{margin-top:18px}.split{display:block}.split.detail-open #message-list{display:none}.split:not(.detail-open) #detail{display:none}.detail{position:static}.mobile-back{display:inline-flex;margin-bottom:13px}.split:not(.detail-open) .mobile-back{display:none}.message{padding:18px}.message-preview{-webkit-line-clamp:2}.filter-row{gap:6px}.filter-chip{font-size:10px;padding:5px 11px}.toolbar-count{font-size:10px}.detail .panel-head{padding:18px}.detail .panel-body{padding:18px}.detail-tabs .tabs{gap:18px}.detail-tabs .tabs button{font-size:11px}.source{font-size:12px;padding:14px}.detail-tabs{padding:0 18px 10px}.event{padding:13px}.event-head{gap:8px}.event-head strong{font-size:11px}.event-values{font-size:11px}.history-row{padding:16px;gap:10px;grid-template-columns:30px minmax(0,1fr)}.history-row>.badge{grid-column:2;justify-self:start;margin-top:-3px}.history-row .meta{flex-wrap:wrap}.tabs{gap:24px;padding:0}.tabs button{font-size:11px}.catalog-tools{flex-direction:column;padding:16px}.search-field{max-width:none;width:100%}.catalog-tools select{width:100%}.catalog-savebar{flex-direction:column;align-items:flex-start}.catalog-savebar button{width:100%}.catalog-controls{flex-wrap:wrap}.catalog-table th,.catalog-table td{padding:12px 16px}.tg-grid{padding:23px;gap:20px}.tg-facts{padding:20px 23px;grid-template-columns:1fr;gap:16px}.tg-instructions h2{font-size:19px}.steps{margin:24px 0}.job-bar{padding:12px;flex-wrap:wrap;font-size:11px}.job-bar progress{display:none}.job-bar .job-copy{min-width:130px}.job-bar button{font-size:10px}footer{font-size:9px;padding:26px 0 12px;flex-wrap:wrap;gap:8px}#toast{left:50%;bottom:86px;width:max-content;max-width:calc(100vw - 32px)}.edit-footer{flex-wrap:wrap}.connection-card{padding:20px}}
@media(prefers-reduced-motion:reduce){*,*:before{animation-duration:0s!important;transition:none!important}.spinner{animation:none;border-top-color:var(--blue)}}

.message-items{max-height:calc(100dvh - 380px);min-height:260px;overflow-y:auto;overscroll-behavior:contain}
#catalog-table .table-scroll{max-height:560px;overscroll-behavior:contain}
#catalog-table th{position:sticky;top:0;z-index:1}
.source-label svg.icon{width:13px;height:13px}
.settings-tabs{max-width:100%}
#settings-content,#content,.split>div{min-width:0}
@media(max-width:760px){
  .page-heading .actions{max-width:100%;width:100%;flex-shrink:1}
  .page-heading .actions>*{max-width:100%}
  .message-items{max-height:65dvh;min-height:0}
  .toolbar{flex-wrap:wrap}
  .toolbar .search-field{flex-basis:100%}
  .settings-tabs{gap:20px}
  .settings-tabs button{font-size:10px}
  .qr-caption svg{width:13px;height:13px}
}
.grid-two>*{min-width:0}
@media(max-width:760px){
  .panel-head{flex-wrap:wrap}
  .panel-head .badge{white-space:normal}
  .event-head{flex-wrap:wrap}
}

/* Telegram schedules live in their own dialog; form values survive status polls. */
.diagnostic-stats{display:flex;flex-wrap:wrap;gap:12px 24px;margin:14px 0}
.diagnostic-stats small,.diagnostic-stats strong{display:block}.diagnostic-stats small{color:var(--muted);font-size:11px;margin-bottom:4px}
.diagnostic-text{max-height:440px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.model-response{margin-top:16px}.model-response .details-note{overflow-wrap:anywhere}
.baseline-form{padding:18px;border:1px solid var(--line);border-radius:12px;background:#f4f8ff;margin-bottom:18px}
.baseline-form h3{font-size:15px;margin:0 0 8px}.baseline-form p{font-size:12px;line-height:1.6;margin:0 0 14px}
.baseline-position{margin:12px 0 18px}.baseline-position strong{display:block;font-size:12px;margin-bottom:12px}
.baseline-position label{font-size:12px}.baseline-position input{max-width:220px}.baseline-position small{display:block;color:var(--muted);font-size:11px;margin-top:6px;line-height:1.5}
.sync-dialog{padding:22px;width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
.sync-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sync-heading h2{font-size:20px;margin-bottom:4px}.sync-heading p{font-size:12px;line-height:1.5;margin-bottom:14px}
.sync-section{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px;background:#fbfdff}
.sync-section h3{font-size:15px;margin:0 0 6px}.sync-section p{font-size:12px;line-height:1.5;margin:0 0 10px}
.sync-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.sync-section .field{margin-bottom:4px}.sync-section label{font-size:12px;margin-bottom:5px}.sync-section input{max-width:220px}
.sync-section small{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
.sync-state{display:flex;flex-wrap:wrap;gap:4px 18px;color:var(--muted);font-size:10px;min-height:17px;margin-top:8px}
.sync-state .field-error{width:100%;overflow-wrap:anywhere}
.sync-dialog .sync-note{font-size:10px;margin:10px 0 14px;line-height:1.5}
.sync-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.sync-dialog form>small{display:block;font-size:10px;line-height:1.5;color:var(--muted)}
@media(max-width:760px){.sync-dialog{padding:20px}.sync-fields{grid-template-columns:1fr;gap:8px}.sync-section input{max-width:none}.sync-footer{flex-wrap:wrap}.sync-footer .actions{margin-left:auto}}

.badge.unrecognized { color: #24589b; background: #e8f0fe; }
.badge.resolved { color: #137333; background: #e6f4ea; }
#manual-text { width: 100%; min-height: 180px; resize: vertical; font: inherit; padding: 12px; }
.page-heading{flex-wrap:wrap}.page-heading .actions{flex-shrink:1;max-width:100%}
