@charset "UTF-8";
:root{--bg:#f5f7fb;--card:#fff;--text:#19253c;--muted:#7c879c;--line:#e8edf4;--blue:#245be8;--soft:#edf2ff;--green:#188b64;--red:#d54f5b;--shadow:0 12px 45px #2436580c;font-family:Inter,"Segoe UI",Arial,sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--blue);text-decoration:none}button{border:0;background:none;color:inherit}svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app{display:flex;min-height:100vh}.sidebar{width:240px;position:fixed;inset:0 auto 0 0;background:var(--card);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 18px 18px;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:0 16px 32px;font-size:25px;letter-spacing:-1px;font-weight:750}.brand img{width:36px;height:36px}.brand b{color:var(--blue);font-weight:500}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:var(--muted);text-transform:uppercase;margin:23px 17px 10px}.nav{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 15px;margin:4px 0;border-radius:9px;color:#758096;font-weight:500;font-size:13px}.nav:hover{background:var(--bg);color:var(--text)}.nav.active{background:var(--soft);color:var(--blue);font-weight:650}.nav.active:after{content:"";width:5px;height:5px;border-radius:50%;background:var(--blue);margin-left:auto}.side-foot{margin-top:auto}.workspace{border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;gap:10px;align-items:center;margin-top:20px}.workspace p{margin:0;font-size:12px;font-weight:650}.workspace small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.workspace .initial{width:32px;height:32px;border-radius:8px;background:#f1efff;color:#7763c5;display:grid;place-items:center;font-weight:700}.main{margin-left:240px;width:calc(100% - 240px)}.topbar{height:80px;border-bottom:1px solid var(--line);background:#ffffffd9;display:flex;align-items:center;justify-content:space-between;padding:0 40px}.crumb{font-size:12px;color:var(--muted)}.crumb span{margin:0 10px;color:#c2cad7}.crumb strong{font-weight:500;color:var(--text)}.top-actions{display:flex;gap:15px;align-items:center}.local-indicator{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;padding-right:17px;border-right:1px solid var(--line)}.dot{width:6px;height:6px;background:#1faf81;border-radius:50%;display:inline-block}.avatar{background:#fff0e3;color:#a67548;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:11px;font-weight:650}.content{max-width:1600px;padding:36px 40px 48px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-head h1{font-size:27px;letter-spacing:-.8px;margin:0 0 9px;font-weight:680}.page-head p{color:var(--muted);font-size:12px;margin:0;line-height:1.7}.actions{display:flex;align-items:center;gap:10px}.btn{border:1px solid var(--line);background:var(--card);border-radius:8px;padding:10px 15px;font-size:12px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;min-height:37px}.btn:hover{border-color:#cbd5e7;background:#fafbfe}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 4px 8px #245be820}.btn.primary:hover{background:#184bd1}.btn.danger{color:var(--red);background:#fff4f5;border-color:#f6dce0}.btn.small{padding:7px 11px;font-size:11px;min-height:32px}.btn svg{width:15px;height:15px}.icon-btn{padding:7px;color:var(--muted);display:inline-grid;place-items:center;border-radius:7px}.icon-btn:hover{background:var(--soft);color:var(--blue)}.icon-btn svg{width:16px;height:16px}.welcome{position:relative;border-radius:13px;padding:26px 30px;background:#edf2ff;border:1px solid #e0e8ff;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;overflow:hidden}.welcome h2{margin:0 0 9px;font-size:20px;letter-spacing:-.4px;font-weight:650}.welcome p{font-size:12px;line-height:1.7;color:#7182a8;max-width:600px;margin:0}.welcome-art{display:flex;align-items:center;gap:10px;margin-right:10px}.welcome-art .node{width:47px;height:47px;background:white;box-shadow:0 8px 20px #245be810;border:1px solid #dce5fd;border-radius:13px;display:grid;place-items:center;color:#6c8dea}.welcome-art .node.main-node{background:var(--blue);color:white;width:64px;height:64px}.welcome-art .connector{width:20px;border-top:2px dashed #b8c9f2}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:24px 0}.metric{background:var(--card);padding:22px;border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 4px #1e3c5c02}.metric-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:500}.metric-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;background:var(--soft);color:#5f7fe0}.metric-icon.green{background:#edf8f3;color:#60ac8a}.metric-icon.purple{background:#f3efff;color:#9a7ce3}.metric-icon.orange{background:#fff5eb;color:#dba46b}.metric-icon svg{width:16px;height:16px}.metric-value{font-size:29px;font-weight:650;letter-spacing:-1px;margin:11px 0 10px}.metric-footer{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:5px}.metric-footer em{font-style:normal;color:var(--green);font-weight:550}.columns{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;margin-bottom:22px}.card{background:var(--card);border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 4px #1e3c5c02;overflow:hidden}.card-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line)}.card-head h3{font-size:13px;font-weight:650;margin:0}.card-head p{color:var(--muted);font-size:10px;margin:6px 0 0}.card-body{padding:22px 24px}.legend{display:flex;gap:14px;font-size:10px;color:var(--muted)}.legend i{display:inline-block;width:6px;height:6px;background:var(--blue);border-radius:50%;margin-right:5px}.legend i.transfer{background:#b5c9ff}.chart{height:220px;position:relative;margin:12px 0 4px;padding-left:35px}.chart-grid{position:absolute;inset:0 0 25px 35px;display:flex;flex-direction:column;justify-content:space-between}.chart-grid div{border-top:1px dashed var(--line);position:relative}.chart-grid span{position:absolute;right:calc(100% + 12px);top:-6px;font-size:9px;color:#a0aabd}.chart-bars{display:flex;align-items:end;justify-content:space-around;position:absolute;inset:0 0 25px 35px}.bar-col{height:100%;flex:1;position:relative;display:flex;gap:5px;align-items:end;justify-content:center}.bar{width:15%;max-width:16px;border-radius:4px 4px 0 0;background:var(--blue);min-height:2px}.bar.secondary{background:#b5c9ff}.bar-label{position:absolute;bottom:-22px;font-size:9px;color:var(--muted)}.chart-no-data{position:absolute;inset:50px 0 50px 35px;display:grid;place-items:center;font-size:11px;color:var(--muted);background:#ffffffc9}.status-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);gap:12px}.status-row:last-child{border:0}.status-info{display:flex;gap:12px;align-items:center}.status-info p{margin:0 0 5px;font-size:12px;font-weight:550}.status-info small{color:var(--muted);font-size:10px}.service-logo{width:34px;height:34px;background:#f4f6fa;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;color:#46566d;font-size:13px;font-weight:700}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:5px 8px;font-size:10px;font-weight:500;white-space:nowrap;background:#f0f3f8;color:#8490a3}.badge.green{color:#26936d;background:#ecf8f2}.badge.blue{color:#527bd6;background:#edf3ff}.badge.orange{color:#bf9451;background:#fff7e9}.badge.red{color:#c15866;background:#fff0f2}.activity{display:flex;gap:12px;padding:12px 0;font-size:11px}.activity-marker{width:26px;height:26px;background:#f4f6fc;color:#8290ad;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.activity-marker svg{width:12px;height:12px}.activity p{margin:0 0 6px;line-height:1.5}.activity small{color:#9ba5b6;font-size:10px}.quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quick-link{border:1px solid var(--line);border-radius:9px;padding:19px;text-align:left;background:#fff;display:flex;gap:12px;align-items:center}.quick-link:hover{border-color:#b4c7ff}.quick-link h4{margin:0 0 5px;font-size:11px;font-weight:600}.quick-link small{color:var(--muted);font-size:10px}.quick-link>svg{color:#7892cc}.quick-link .arrow{margin-left:auto;width:14px;color:#bbc6db}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 21px;border-bottom:1px solid var(--line)}.search-box{display:flex;align-items:center;gap:10px;width:310px}.search-box svg{width:16px;color:#a0abc0}.search-box input{border:0;background:transparent;width:100%;font-size:12px;outline:none;padding:5px;color:var(--text)}.filters{display:flex;gap:9px}.filters select,.compact-select{border:1px solid var(--line);border-radius:7px;padding:8px 11px;background:var(--card);color:#718097;font-size:11px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{padding:14px 21px;background:#fafbfe;font-size:9px;letter-spacing:.7px;font-weight:600;color:#94a0b4;text-transform:uppercase;white-space:nowrap}td{padding:17px 21px;border-top:1px solid var(--line);font-size:11px;vertical-align:middle;line-height:1.55}tr:hover td{background:#fcfdff}td.title-cell{font-weight:550;min-width:160px;max-width:320px}.cell-text{max-width:310px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#8390a4}.muted{color:var(--muted)}.table-bottom{padding:15px 21px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.pagination{display:flex;gap:5px;align-items:center}.pagination button{border:1px solid var(--line);min-width:29px;height:28px;border-radius:6px;font-size:10px}.pagination .selected{background:var(--soft);color:var(--blue);border-color:#d8e3ff}.toggle{display:inline-block;width:29px;height:17px;border-radius:20px;background:#dce2ec;padding:2px;vertical-align:middle}.toggle:before{content:"";display:block;background:white;width:13px;height:13px;border-radius:50%;box-shadow:0 1px 2px #0002;transition:transform .2s}.toggle.on{background:#527ee9}.toggle.on:before{transform:translateX(12px)}.table-actions{display:flex;gap:5px}.bot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.bot-card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;transition:box-shadow .2s}.bot-card:hover{box-shadow:var(--shadow)}.bot-top{display:flex;justify-content:space-between;align-items:start}.bot-avatar{width:46px;height:46px;background:#eaf0ff;border:1px solid #dee7ff;color:#6782c3;display:grid;place-items:center;border-radius:13px;font-size:16px;font-weight:550}.bot-avatar.v1{background:#f3edff;color:#9981c2;border-color:#e8dfff}.bot-avatar.v2{background:#fff2e7;color:#c89770;border-color:#f5e7dc}.bot-card h3{font-size:15px;margin:15px 0 5px;font-weight:650}.bot-card p{margin:0;font-size:11px;color:var(--muted)}.bot-stat{display:flex;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:20px 0 14px;font-size:11px}.bot-stat span{color:var(--muted)}.chips{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:18px}.chip{background:#f5f7fc;border:1px solid #eaf0f9;color:#8190aa;font-size:9px;padding:4px 7px;border-radius:4px}.bot-foot{display:flex;justify-content:space-between;align-items:center}.content-layout{display:grid;grid-template-columns:205px 1fr;gap:22px}.category-panel{background:white;border:1px solid var(--line);border-radius:11px;padding:18px 12px;height:max-content}.category-panel h4{font-size:10px;text-transform:uppercase;color:#9aa5b6;letter-spacing:1px;margin:4px 12px 15px}.category{display:flex;text-align:left;width:100%;padding:11px 12px;font-size:11px;color:#7c899f;border-radius:7px;margin:3px 0;align-items:center;gap:8px;line-height:1.5}.category span{margin-left:auto;font-size:9px;opacity:.7}.category.active{background:var(--soft);color:var(--blue)}.category svg{width:14px;height:14px}.notice{display:flex;gap:10px;align-items:start;background:#f0f5ff;border:1px solid #dce6fc;padding:13px 16px;border-radius:8px;font-size:11px;line-height:1.7;color:#7588af;margin-bottom:22px}.notice.warning{background:#fff9ed;border-color:#f4e8ce;color:#aa8d51}.notice svg{width:16px;height:16px;margin-top:2px}.empty{padding:65px 30px;text-align:center;color:var(--muted)}.empty svg{width:38px;height:38px;color:#becbe0;margin-bottom:15px}.empty h3{color:#596b88;font-size:14px;font-weight:550;margin:0 0 9px}.empty p{font-size:11px;line-height:1.8;max-width:410px;margin:auto}.settings-layout{display:grid;grid-template-columns:220px 1fr;gap:25px}.settings-nav button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:13px 15px;color:#8190a5;font-size:12px;border-radius:8px;margin:4px 0}.settings-nav button.active{background:#e9effd;color:var(--blue)}.settings-nav button svg{width:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.field{display:flex;flex-direction:column;gap:8px}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:550;color:#596982}.field input,.field textarea,.field select{background:var(--card);border:1px solid #dfe6f0;border-radius:7px;padding:11px 12px;color:var(--text);font-size:12px;width:100%;min-width:0}.field input:focus,.field textarea:focus,.field select:focus{border-color:#87a7f8;outline:2px solid #edf2ff}.field textarea{resize:vertical;min-height:110px;line-height:1.7}.field small{font-size:10px;color:#9aa5b8;line-height:1.6}.check-line{display:flex;align-items:center;gap:9px;font-size:12px;padding:5px 0;color:#6f7d96}.check-line input{accent-color:var(--blue);width:15px;height:15px}.form-footer{padding:18px 24px;display:flex;justify-content:end;gap:10px;border-top:1px solid var(--line);background:#fcfdff}.section-title{font-size:11px;font-weight:600;margin:26px 0 14px;color:#5d6e89}.code{font-family:Consolas,monospace;background:#f5f7fb;border:1px solid var(--line);padding:12px;border-radius:7px;font-size:11px;overflow-wrap:anywhere;color:#7f8ba2;line-height:1.8}.overlay-backdrop{position:fixed;inset:0;background:#182d5266;backdrop-filter:blur(3px);z-index:70;display:flex;justify-content:end}.drawer{background:var(--card);width:660px;max-width:95vw;height:100%;display:flex;flex-direction:column;box-shadow:-10px 0 70px #16243b26}.drawer.wide{width:820px}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:25px 28px;border-bottom:1px solid var(--line)}.drawer-head h2{margin:0;font-size:19px;font-weight:650;letter-spacing:-.3px}.drawer-head p{color:var(--muted);font-size:11px;margin:7px 0 0}.drawer-body{padding:26px 28px;overflow:auto;flex:1}.drawer-foot{display:flex;justify-content:end;gap:10px;border-top:1px solid var(--line);padding:18px 28px}.drawer-foot .spacer{flex:1}.step{border:1px solid #dde5f1;border-radius:10px;margin:16px 0;background:white}.step-head{display:flex;align-items:center;justify-content:space-between;padding:13px 17px;background:#f7f9fd;border-bottom:1px solid var(--line)}.step-head b{font-size:11px;color:#697e9f}.step-body{padding:18px}.step-number{background:#e8efff;color:#6083d5;border-radius:5px;width:24px;height:24px;display:inline-grid;place-items:center;font-size:10px;margin-right:7px}.modal-backdrop{align-items:center;justify-content:center}.modal{width:470px;max-width:94vw;background:white;border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.modal .drawer-head{padding:22px 25px}.modal .drawer-body{padding:23px 25px}.modal p{line-height:1.8;color:var(--muted);font-size:12px}.modal .drawer-foot{padding:17px 25px}.playground{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.chat{height:620px;display:flex;flex-direction:column}.chat-head{padding:18px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.chat-head p{margin:0 0 4px;font-size:12px;font-weight:600}.chat-head small{color:var(--muted);font-size:10px}.chat-log{flex:1;overflow:auto;padding:25px;display:flex;flex-direction:column;gap:18px}.message{max-width:85%;font-size:12px;line-height:1.8;padding:13px 17px;border-radius:12px;background:#f3f5fa;white-space:pre-wrap;overflow-wrap:anywhere;align-self:start}.message.user{align-self:end;color:white;background:var(--blue);border-bottom-right-radius:3px}.message.assistant{border-bottom-left-radius:3px}.message.system{max-width:100%;align-self:center;color:#9ba5b6;font-size:10px;padding:7px;background:none;text-align:center}.chat-form{padding:18px 22px;border-top:1px solid var(--line);display:flex;gap:12px}.chat-form input{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:12px;font-size:12px}.analysis-row{padding:14px 0;border-bottom:1px solid var(--line);font-size:11px;line-height:1.8}.analysis-row b{display:block;font-size:10px;font-weight:500;color:var(--muted);margin-bottom:5px}.analysis-row:last-child{border:0}.split-chat{display:grid;grid-template-columns:1fr 1fr;gap:22px}.selected-row td{background:var(--soft)}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-aside{padding:60px 12%;background:#edf2ff;display:flex;flex-direction:column;justify-content:center}.auth-aside .brand{padding:0 0 70px}.auth-aside h1{font-size:42px;line-height:1.2;letter-spacing:-1.8px;max-width:450px;font-weight:650}.auth-aside p{font-size:14px;line-height:1.9;color:#8091b2;max-width:380px}.auth-main{display:flex;align-items:center;justify-content:center;padding:50px;background:white}.auth-box{width:370px;max-width:100%}.auth-box h2{font-size:24px;letter-spacing:-.6px;margin:0 0 10px}.auth-box>p{color:var(--muted);font-size:12px;line-height:1.8;margin-bottom:28px}.auth-box .field{margin-bottom:18px}.auth-box .btn{width:100%;margin-top:12px;padding:13px}.auth-box .form-grid .field{margin:0}.auth-box .form-grid{margin-bottom:18px}.error{background:#fff0f3;border:1px solid #f5dce2;color:#bf6879;font-size:11px;line-height:1.8;padding:12px 15px;border-radius:7px;margin-bottom:16px}.success{color:var(--green)}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;background:#1e2c44;color:white;border-radius:10px;padding:13px 22px;font-size:12px;box-shadow:0 8px 40px #172c4430;z-index:100;pointer-events:none;transition:all .2s;max-width:90vw;line-height:1.7}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error-toast{background:#a74456}.loading-screen{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);font-size:12px}.brand-symbol{background:var(--blue);border-radius:16px;width:55px;height:55px;color:white;font-size:40px;text-align:center;font-weight:650}.mobile-toggle{display:none}.footer-note{margin-top:25px;display:flex;justify-content:space-between;font-size:9px;color:#a8b1c1}.record-id{font-family:Consolas,monospace;color:#a5afbf;font-size:10px}.progress-list{display:grid;gap:13px}.progress-line{display:flex;justify-content:space-between;font-size:11px;color:#7c8ca6}.app-error{padding:50px;line-height:1.8}.divider{border:0;border-top:1px solid var(--line);margin:24px 0}.status-banner{display:flex;align-items:center;justify-content:space-between;margin:0 0 22px;font-size:11px;color:#8b98ad}.tab-strip{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:23px}.tab-strip button{padding:0 0 13px;font-size:12px;color:var(--muted);border-bottom:2px solid transparent}.tab-strip button.active{color:var(--blue);border-bottom-color:var(--blue)}
.sidebar{overflow-y:auto}.sidebar>.brand,.sidebar>.eyebrow,.sidebar>.nav,.sidebar>.side-foot{flex-shrink:0}
@media(min-width:1700px){.content{padding-top:45px}.metric{padding:26px}.chart{height:250px}.bot-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1200px){.sidebar{width:210px;padding-inline:12px}.main{margin-left:210px;width:calc(100% - 210px)}.content{padding:28px}.topbar{padding-inline:28px}.metric-grid{gap:12px}.metric{padding:17px}.columns{grid-template-columns:1.4fr 1fr}.welcome-art{display:none}.bot-grid{grid-template-columns:repeat(2,1fr)}.content-layout{grid-template-columns:170px 1fr;gap:15px}.playground{grid-template-columns:1fr 260px}td,th{padding-inline:15px}}
@media(max-width:950px){.sidebar{width:180px}.brand{padding-inline:10px;font-size:23px}.nav{font-size:11px;padding:11px}.main{margin-left:180px;width:calc(100% - 180px)}.metric-grid{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}.quick-links{grid-template-columns:1fr}.content-layout{display:block}.category-panel{display:flex;overflow:auto;margin-bottom:15px;padding:8px}.category-panel h4{display:none}.category{width:auto;white-space:nowrap}.settings-layout{display:block}.settings-nav{display:flex;overflow:auto;margin-bottom:15px}.settings-nav button{white-space:nowrap;width:auto}.playground{grid-template-columns:1fr}.split-chat{grid-template-columns:1fr}.page-head h1{font-size:23px}.local-indicator{display:none}.auth-aside{padding:35px}.auth-aside h1{font-size:34px}}
@media(max-width:640px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:235px;box-shadow:var(--shadow)}.sidebar.open{transform:none}.main{margin:0;width:100%}.mobile-toggle{display:inline-flex}.topbar{height:65px;padding:0 18px}.content{padding:25px 17px}.top-actions{gap:7px}.top-actions>.btn{padding:8px;font-size:10px}.crumb{font-size:10px}.page-head{align-items:start;flex-direction:column;gap:14px}.page-head>.actions{align-self:end}.metric-grid{gap:10px}.metric{padding:15px}.metric-value{font-size:26px}.metric-label{font-size:10px}.welcome{padding:22px}.welcome h2{font-size:18px}.welcome p{font-size:11px}.bot-grid{grid-template-columns:1fr}.toolbar{align-items:start;flex-direction:column}.search-box{width:100%}.filters{width:100%}.form-grid{grid-template-columns:1fr}.auth-screen{display:block}.auth-aside{padding:25px}.auth-aside .brand{padding:0}.auth-aside h1,.auth-aside>p{display:none}.auth-main{padding:35px 24px}.drawer-head,.drawer-body{padding:21px}.drawer-foot{padding:17px 21px}.quick-links{grid-template-columns:1fr}.chat{height:560px}.footer-note{line-height:1.8;gap:20px}}
/* ARMAI theme and readability */
:root{--bg:#f3f5fa;--card:#fff;--text:#19253c;--muted:#64748b;--line:#e0e6f0;--blue:#5b59e8;--soft:#eeedff;font-size:14px}
:root[data-theme=dark]{--bg:#0c101b;--card:#141b2b;--text:#e7ecf7;--muted:#a0adc4;--line:#29344b;--blue:#9b9aff;--soft:#252b4a;--green:#55d6ac;--red:#ff8896;--shadow:0 12px 40px #0003;color-scheme:dark}
body{background:var(--bg);color:var(--text)}.main,.content,.card,.content-layout>*{min-width:0}.content-layout{grid-template-columns:195px minmax(0,1fr)}.settings-layout{grid-template-columns:205px minmax(0,1fr)}
.card,.bot-card,.category-panel,.modal,.step,.auth-main{background:var(--card)}.topbar{background:var(--card)}.card-head,.drawer-head,.chat-head{background:transparent}.form-footer,.step-head{background:var(--bg)}.welcome,.auth-aside{background:var(--soft);border-color:var(--line)}
.nav{color:var(--muted)}.nav.active{color:var(--blue);background:var(--soft)}.nav:hover{background:var(--soft)}.brand{letter-spacing:-1.2px}.brand img{width:38px;height:38px}.topbar{height:76px}.card,.bot-card,.category-panel{border-radius:15px}.page-head h1{letter-spacing:-.8px}.page-head p,.muted,.card-head p{color:var(--muted)}
.table-wrap{overflow-x:auto;width:100%;border-radius:14px}table{width:100%;table-layout:fixed}th,td{overflow-wrap:anywhere;white-space:normal;line-height:1.7;text-align:left}td{font-size:12px;color:var(--text)}th{font-size:10px;color:var(--muted);background:var(--bg)}td .truncate,td .ellipsis{white-space:normal;overflow:visible;text-overflow:clip;max-width:none}tr:hover td{background:var(--soft)}td:first-child,th:first-child{width:76px}td:last-child,th:last-child{width:100px}.table-actions{flex-wrap:wrap}.table-actions .icon-btn{padding:8px}td p{white-space:normal;overflow-wrap:anywhere}.record-id{display:block;margin-top:5px;color:var(--muted)}
.field label,.section-title,.empty h3,.step-head b{color:var(--text)}.field input,.field textarea,.field select,.chat-form input{background:var(--bg);border-color:var(--line);color:var(--text)}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid var(--soft);border-color:var(--blue)}.field small,.check-line{color:var(--muted)}.btn.primary{background:#655cec;border-color:#655cec;color:white}.btn:hover{filter:brightness(1.12)}.btn:focus-visible,.nav:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.chip,.code{background:var(--bg);border-color:var(--line);color:var(--muted)}.settings-nav button.active{background:var(--soft);color:var(--blue)}
.message.assistant{background:var(--soft);color:var(--text)}.message.user{background:#655cec}.playground{grid-template-columns:minmax(0,1fr) 340px}.chat{height:clamp(530px,73vh,850px)}.analysis-row{color:var(--text);font-size:12px}.analysis-row b{color:var(--muted)}.source-detail{border:1px solid var(--line);border-radius:8px;margin:8px 0;padding:9px 11px}.source-detail summary{cursor:pointer;color:var(--text);line-height:1.6}.source-detail p{font-size:11px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.source-detail small{color:var(--muted)}.performance-fields{margin-top:18px}summary{cursor:pointer;line-height:1.8}.notice{background:var(--soft);border-color:var(--line);color:var(--muted)}.notice.warning{background:#3a2d1a;color:#f3cc84;border-color:#67512a}.bot-avatar{background:var(--soft);border-color:var(--line);color:var(--blue)}.bot-stat{color:var(--text)}.empty{color:var(--muted)}
[data-theme=dark] .badge{background:#263554;color:#bbc8ee}[data-theme=dark] .badge.green{background:#173c37;color:#78e3b5}[data-theme=dark] .badge.orange{background:#493a25;color:#f0c67a}[data-theme=dark] .badge.red{background:#4b2636;color:#ffa5ba}[data-theme=dark] .search-box,[data-theme=dark] .search-box input,[data-theme=dark] .filters select{background:var(--card);color:var(--text);border-color:var(--line)}
@media(max-width:1050px){.playground{grid-template-columns:minmax(0,1fr)}.content-layout{grid-template-columns:160px minmax(0,1fr)}}@media(max-width:700px){.content-layout{display:block}table{min-width:680px}.settings-layout{display:block}.content{padding:22px 16px}.topbar{padding-inline:16px}.top-actions{gap:7px}}
.cell-text{max-width:none;white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);line-height:1.7}.title-cell button{text-align:left;padding:0;line-height:1.7;color:var(--text)}th:first-child,td:first-child{width:90px}th:last-child,td:last-child{width:122px}th:nth-last-child(2),td:nth-last-child(2){width:118px}th{white-space:nowrap}.table-actions{flex-wrap:nowrap;gap:2px}.badge{max-width:100%;white-space:normal}.card-head h3{color:var(--text)}
.sandbox-shell{max-width:900px;margin:55px auto;padding:0 24px}.sandbox-shell>.brand{padding:0 0 30px}.sandbox-shell p,.sandbox-shell li{font-size:14px;line-height:1.9}.sandbox-shell .card-body{padding:32px}.sandbox-shell h1{font-size:30px;letter-spacing:-.7px}.sandbox-shell .actions{flex-wrap:wrap}
.livechat-test-frame{display:block;width:100%;height:800px;min-height:75vh;border:1px solid var(--line);border-radius:15px;background:var(--bg)}
.sandbox-shell.content{max-width:1050px;margin:0 auto;padding:38px 30px}.sandbox-shell.content .card{margin:0}.sidebar a.nav{text-decoration:none}.sandbox-shell.content h1{font-size:28px}
.group-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}
.group-choice label{display:flex;align-items:center;gap:10px;min-width:0;margin:0}
.group-choice select{width:155px;flex-shrink:0}
.group-choice input[type=checkbox]{width:16px;height:16px;flex-shrink:0}
.group-choice:has(input:disabled){opacity:.6}
@media(max-width:600px){.group-choice{align-items:flex-start;flex-direction:column;gap:8px}.group-choice select{width:100%}}
.nav-more{margin-top:14px;border-top:1px solid var(--border);padding-top:8px}
.nav-more summary{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;cursor:pointer;font-size:12px;list-style:none;color:var(--muted)}
.nav-more summary svg{width:15px;height:15px;fill:none;stroke:currentColor}
.nav-more[open] summary svg{transform:rotate(180deg)}
.bot-technical{margin-top:14px;font-size:11px;color:var(--muted)}
.bot-technical summary{cursor:pointer;margin-bottom:6px}
/* Shared surfaces must follow both themes. Keep page/category geometry stable. */
html{scrollbar-gutter:stable}
body{overflow-y:scroll}
.quick-link{background:var(--bg);border-color:var(--line);color:var(--text)}
.quick-link h4{color:var(--text)}
.quick-link small{color:var(--muted)}
.chart-no-data{background:transparent;color:var(--muted);pointer-events:none}
.category-panel{min-width:0;max-width:100%;overflow:hidden}
.category{min-width:0;overflow-wrap:anywhere;white-space:normal;text-align:left;display:flex;align-items:center;gap:8px}
.category span{flex-shrink:0;margin-left:auto}
.content-layout{align-items:start}
.content-layout>div{width:100%;min-width:0}
.group-choice,.nav-more{border-color:var(--line)}
@media(max-width:950px){.category-panel{overflow-x:auto}.category{white-space:nowrap;flex-shrink:0}}
.overlay-backdrop{align-items:center;justify-content:center;padding:22px;overflow:auto}
.drawer,.drawer.wide{height:auto;max-height:calc(100dvh - 44px);max-width:calc(100vw - 44px);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.drawer{width:720px}.drawer.wide{width:1000px}
.drawer-head,.drawer-foot{flex-shrink:0;background:var(--card)}
.drawer-body{min-height:0;overscroll-behavior:contain}
body.dialog-open{overflow:hidden}
.record-access{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:640px){.overlay-backdrop{padding:10px}.drawer,.drawer.wide{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.drawer-foot{flex-wrap:wrap}}
.drawer-body{margin-right:7px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.drawer-body::-webkit-scrollbar{width:6px;height:6px}
.drawer-body::-webkit-scrollbar-track{background:transparent;margin-block:12px}
.drawer-body::-webkit-scrollbar-thumb{background:var(--line);border-radius:20px}
.drawer-body::-webkit-scrollbar-thumb:hover{background:var(--muted)}
.drawer-body::-webkit-scrollbar-button{display:none;width:0;height:0}
.step{border-color:var(--line)}

.sidebar{overflow:hidden}.sidebar>.brand,.sidebar>.eyebrow,.sidebar>.side-foot{flex-shrink:0}.sidebar-nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding-right:4px}.sidebar-nav::-webkit-scrollbar{width:5px}.sidebar-nav::-webkit-scrollbar-thumb{background:var(--line);border-radius:10px}.sidebar-nav::-webkit-scrollbar-track{background:transparent}.sidebar>.brand{padding-bottom:12px}.sidebar>.eyebrow{margin-top:12px}.sidebar>.side-foot .workspace{margin-top:12px}.content>.card+.card{margin-top:20px}input[type=file]::file-selector-button{background:var(--soft);color:var(--text);border:1px solid var(--line);padding:8px 12px;border-radius:7px;cursor:pointer;margin-right:12px}

.audit-diff{max-width:760px;margin-top:8px}.audit-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;background:var(--bg);padding:12px;border-radius:8px;font-size:11px;color:var(--text)}

.history-filters{margin-bottom:20px}.history-filters .toolbar{flex-wrap:wrap}.history-filters label{font-size:11px;color:var(--muted)}.history-filters input[type=date]{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px}.history-split{grid-template-columns:minmax(0,1.15fr) minmax(320px,1fr)}.history-split>section{min-width:0}.history-split .chat{height:650px}.history-filters .actions{flex-wrap:wrap}@media(max-width:1100px){.history-split{grid-template-columns:1fr}}

html[data-theme="dark"] .btn:not(.primary):hover,html[data-theme="dark"] .btn:not(.primary):focus-visible{background:var(--soft);color:var(--text);border-color:var(--line)}

.brand img{width:38px;height:38px;object-fit:contain;flex:0 0 38px}.brand>span{font-size:25px;letter-spacing:-.8px;line-height:1;display:inline-block;font-weight:650}.brand>span b{font-weight:800;color:var(--blue)}

.company-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px}.company-card{padding:28px;min-width:0}.company-avatar{width:56px;height:56px;display:grid;place-items:center;border-radius:16px;background:var(--soft);color:var(--blue);font-size:21px;font-weight:750}.company-card h2{font-size:21px;margin:20px 0 8px}.company-card p{color:var(--muted);overflow-wrap:anywhere}.company-tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.company-card>.btn{width:100%;justify-content:space-between}.audit-table{table-layout:fixed;width:100%}.audit-table th:first-child,.audit-table td:first-child{width:170px}.audit-table th:last-child,.audit-table td:last-child{width:150px;white-space:nowrap}.audit-table td{vertical-align:middle;padding:16px 22px;overflow-wrap:anywhere;word-break:normal;line-height:1.6}.audit-table td:nth-child(2){color:var(--text)}.audit-table tr{height:auto}@media(max-width:640px){.audit-table{min-width:620px}.company-grid{grid-template-columns:1fr}}

/* Grouped navigation shared by Owner and independent company panels. */
.nav-group{margin:8px 0 18px}.nav-group-title{margin:14px 16px 8px;font-size:10px;line-height:1.5;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);font-weight:650}.sidebar-nav .nav{display:flex;align-items:center;gap:11px;width:100%;min-height:41px;text-align:left;border-radius:10px;margin:3px 0;padding:10px 14px}.sidebar-nav .nav span{min-width:0;white-space:normal;overflow-wrap:break-word}.sidebar-nav .nav svg{flex-shrink:0}.nav-owner-return{border:1px solid var(--line);margin-bottom:16px!important;color:var(--muted)}.nav-more{margin-top:4px}.nav-more summary{border-radius:9px;padding:12px 14px}.nav-more summary:hover{background:var(--soft)}.settings-nav[hidden]{display:none}.settings-layout.settings-single{grid-template-columns:minmax(0,1fr)}.platform-actions{margin-top:20px;flex-wrap:wrap}#platform-result{margin-top:18px}#platform-form{max-width:820px}#f-system_prompt{min-height:380px}.sidebar-nav{scrollbar-gutter:stable}.sidebar>.brand{padding-bottom:18px}
@media(max-width:700px){.nav-group{margin-bottom:13px}.nav-group-title{margin-top:12px}.settings-layout{grid-template-columns:minmax(0,1fr)}.settings-nav{display:flex;flex-wrap:wrap;gap:6px}.settings-nav button{flex:1;min-width:140px}#f-system_prompt{min-height:260px}}
[data-theme="dark"] .btn.danger{background:#39202d;color:#ffb7c5;border-color:#6d3447}[data-theme="dark"] .btn.danger:hover{background:#4b2636}

/* Stable navigation geometry for mouse and keyboard selection. */
.sidebar-nav .nav{position:relative;height:43px;min-height:43px;max-height:43px;padding:10px 24px 10px 11px;gap:10px;font-size:12px;line-height:18px;flex-wrap:nowrap}.sidebar-nav .nav span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-nav .nav.active:after{position:absolute;right:10px;top:19px;margin:0;flex:none}.sidebar-nav .nav:focus,.sidebar-nav .nav:focus-visible{outline:none;box-shadow:none}.sidebar-nav .nav:focus-visible span{text-decoration:none}#f-rules,#f-company_behavior{min-height:380px}

.preview-conversation{display:block;max-width:1040px;margin:0 auto}.preview-chat{height:min(720px,calc(100dvh - 240px));min-height:460px;display:flex;flex-direction:column;overflow:hidden}.preview-chat .chat-head{border-bottom:1px solid var(--line);padding:18px 22px}.preview-chat .chat-log{height:auto;min-height:0;flex:1;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:14px}.preview-chat .message{max-width:82%;width:max-content;font-size:13px}.preview-chat .message.assistant{align-self:flex-start;background:var(--soft)}.preview-chat .message.user{align-self:flex-end}.message-meta{font-size:10px;opacity:.65;margin-bottom:5px}.conversation-welcome{text-align:center;margin:auto;max-width:550px;padding:24px 8px}.conversation-welcome .bot-avatar{margin:0 auto 14px}.conversation-welcome p{color:var(--muted);font-size:12px;line-height:1.7}.preview-examples{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px}.preview-examples button{border:1px solid var(--line);border-radius:20px;padding:8px 12px;font-size:11px;color:var(--text);background:var(--bg)}.preview-examples button:hover{border-color:var(--blue);color:var(--blue)}.preview-chat .chat-form{padding:14px 18px;align-items:center}.preview-chat .chat-form textarea{resize:none;flex:1;min-width:0;min-height:48px;max-height:130px;padding:12px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:10px;font:inherit;font-size:13px;line-height:1.6}.preview-chat .chat-form button{width:46px;height:46px;flex:none;padding:12px}.preview-footer{font-size:10px;color:var(--muted);padding:0 18px 12px;text-align:center}.preview-analysis{margin-top:16px;overflow:hidden}.preview-analysis>summary{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;cursor:pointer;font-size:12px;color:var(--muted);list-style:none}.preview-analysis>summary svg{width:16px;height:16px;stroke:currentColor;fill:none}.preview-analysis[open]>summary{border-bottom:1px solid var(--line)}.typing-dots{display:inline-flex;gap:4px;margin-right:8px}.typing-dots i{width:5px;height:5px;background:var(--muted);border-radius:50%;animation:armai-typing 1s infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}@keyframes armai-typing{50%{opacity:.35;transform:translateY(-3px)}}
@media(max-width:600px){.preview-chat{height:calc(100dvh - 200px);min-height:410px}.preview-chat .chat-log{padding:14px}.preview-chat .message{max-width:92%}.preview-chat .chat-form{padding:10px}.preview-footer{font-size:9px}.preview-examples{gap:6px}.preview-conversation{width:100%}}
@media(prefers-reduced-motion:reduce){.typing-dots i{animation:none}}

/* Keep scrolling available without persistent scrollbar chrome. */
html,body,.sidebar-nav,.content,.overlay-body,.drawer-body,.modal-body,.chat-log,.table-wrap{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,.sidebar-nav::-webkit-scrollbar,.content::-webkit-scrollbar,.overlay-body::-webkit-scrollbar,.drawer-body::-webkit-scrollbar,.modal-body::-webkit-scrollbar,.chat-log::-webkit-scrollbar,.table-wrap::-webkit-scrollbar{display:none;width:0;height:0}
@media(max-width:600px){.top-backups{padding:8px}.top-backups span{display:none}}

.overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:22px}
.overview-chart,.overview-usage{margin-bottom:22px}
.overview-usage-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:24px;gap:24px}
.overview-usage-values>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.overview-usage-values span{color:var(--muted);font-size:12px}
.overview-usage-values strong{font-size:24px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.overview-bottom{padding:24px;display:flex;justify-content:space-between;gap:24px;align-items:center}
.overview-bottom h3{margin:0 0 12px;font-size:14px}
.overview-content,.overview-live{display:flex;flex-wrap:wrap;align-items:center;gap:14px;font-size:12px}
.overview-content span{color:var(--muted)}.overview-content strong{color:var(--text)}
.muted-dot{background:var(--muted)!important}
@media(max-width:800px){.overview-bottom{align-items:flex-start;flex-direction:column}.overview-metrics{gap:12px}.overview-chart .card-head{align-items:flex-start;gap:14px;flex-wrap:wrap}}
@media(max-width:600px){.overview-metrics{grid-template-columns:1fr}.overview-usage-values{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px}.overview-usage-values strong{font-size:22px}}

.main>.content{padding:24px 28px;max-width:none;width:100%;box-sizing:border-box}
@media(max-width:600px){.main>.content{padding:18px 14px}}

.top-clock{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;min-width:152px;text-align:center}
@media(max-width:600px){.topbar{flex-wrap:wrap;gap:10px}.topbar>.actions{min-width:0}.top-clock{font-size:10px;min-width:132px}.top-actions{flex-wrap:wrap;justify-content:flex-end}}

.profile-foot{position:relative}.profile-toggle{width:100%;text-align:left;cursor:pointer;color:var(--text)}.profile-toggle>div:nth-child(2){flex:1;min-width:0}.profile-toggle p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-toggle>svg{width:16px;height:16px;color:var(--muted)}
.profile-menu[hidden]{display:none}.profile-menu{position:absolute;bottom:calc(100% + 10px);left:0;right:0;padding:8px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #0004;z-index:35}.profile-menu>p{padding:8px;margin:0 0 6px;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.profile-menu small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.profile-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 8px;border-radius:7px;font-size:12px}.profile-menu button:hover{background:var(--soft)}.profile-menu svg{width:16px;height:16px}.profile-menu .profile-logout{color:#ef8585;border-top:1px solid var(--line);margin-top:5px}#password-error{color:#ef8585;font-size:12px;margin-bottom:12px}

@media(max-width:600px){.top-activities{padding:8px}.top-activities span{display:none}}

.vip-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.vip-summary>.card{padding:20px 24px}.vip-summary span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.vip-summary strong{font-size:26px;font-variant-numeric:tabular-nums}.vip-settings-card{margin-bottom:20px}.vip-settings-card>summary,.vip-import-box>summary{padding:18px 24px;cursor:pointer;display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:13px;list-style:none}.vip-settings-card>summary:after,.vip-import-box>summary:after{content:'+';font-size:18px;color:var(--muted)}.vip-settings-card[open]>summary:after,.vip-import-box[open]>summary:after{content:'−'}.vip-settings-card[open]>summary{border-bottom:1px solid var(--line)}.vip-list .card-head{flex-wrap:wrap;gap:12px}.vip-import-box{border-bottom:1px solid var(--line)}.vip-import-box>summary{justify-content:flex-start;color:var(--blue)}.vip-import-box>summary:after{margin-left:auto}.vip-bulk-bar{background:var(--soft);gap:10px;flex-wrap:wrap}.vip-bulk-bar[hidden]{display:none}.vip-list .toolbar{flex-wrap:wrap;gap:12px}.vip-list .toolbar select{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:9px}.vip-list input[type=checkbox]{accent-color:var(--blue);width:16px;height:16px;cursor:pointer}.vip-list td{vertical-align:middle}.vip-list .empty{padding:35px 15px}.vip-settings-card details{margin:14px 0}.vip-settings-card p{line-height:1.7}
@media(max-width:600px){.vip-summary{gap:8px}.vip-summary>.card{padding:15px 12px}.vip-summary strong{font-size:22px}.vip-summary span{font-size:10px}.vip-list .toolbar>.actions{flex-wrap:wrap}.vip-settings-card>summary,.vip-import-box>summary{padding:16px}.vip-list table{min-width:760px}}

.history-filters{margin-bottom:20px}.history-date-row{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:0 22px 18px;font-size:12px}.history-date-row label{display:flex;align-items:center;gap:8px;color:var(--muted)}.history-date-row input{background:var(--bg);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:8px;color-scheme:dark}.history-workspace{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.4fr);gap:20px;align-items:start}.history-list,.history-detail{min-width:0;overflow:hidden}.history-items{max-height:620px;overflow:auto;scrollbar-width:none}.history-item{display:block;width:100%;text-align:left;border-bottom:1px solid var(--line);padding:18px 20px}.history-item:hover,.history-item.selected{background:var(--soft)}.history-item.selected{box-shadow:inset 3px 0 var(--blue)}.history-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-item-head strong{font-size:13px;overflow-wrap:anywhere}.history-item p{color:var(--muted);font-size:11px;margin:9px 0;overflow-wrap:anywhere}.history-item-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);flex-wrap:wrap}.history-item-meta b{font-family:Consolas,monospace;color:var(--text);font-weight:500}.history-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;padding:18px 22px;border-bottom:1px solid var(--line)}.history-identity span{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.history-identity strong,.history-identity code{font-size:11px;font-weight:500;overflow-wrap:anywhere;user-select:text}.history-detail .chat-log{height:520px;display:flex;flex-direction:column;gap:14px;padding:22px;scrollbar-width:none}.history-detail .message{width:max-content;max-width:88%;margin:0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;flex:none}.history-detail .message.user{align-self:flex-start}.history-detail .message.assistant{align-self:flex-end}.history-detail .message.system{align-self:center;color:var(--muted);background:none;font-size:11px}.history-detail .empty{margin:auto}.history-filters .toolbar{flex-wrap:wrap;gap:12px}.history-filters .actions{flex-wrap:wrap}
[data-theme=light] .history-date-row input{color-scheme:light}
@media(max-width:1000px){.history-workspace{grid-template-columns:1fr}.history-items{max-height:380px}.history-detail .chat-log{height:440px}}@media(max-width:600px){.history-date-row{padding:0 16px 16px}.history-date-row label{flex:1;min-width:140px}.history-date-row input{min-width:0;width:100%}.history-identity{padding:16px;gap:14px}.history-item{padding:16px}.history-list .table-bottom{flex-wrap:wrap;gap:10px}}

.history-date-row{border-top:1px solid var(--line);background:var(--bg);padding:16px 22px;gap:12px}.history-date-title{display:flex;align-items:center;gap:8px;margin-right:6px;color:var(--muted);font-size:12px}.history-date-title svg{width:18px;height:18px}.history-date-row label{display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:9px 13px;min-width:170px}.history-date-row label>span{font-size:10px;letter-spacing:.25px}.history-date-row input{border:0;border-radius:0;background:transparent;padding:0;width:145px;min-height:23px;font-size:13px;font-variant-numeric:tabular-nums;cursor:pointer}.history-date-row label:focus-within{border-color:var(--blue)}.history-date-separator{color:var(--muted);font-size:18px}.history-date-shortcuts{display:flex;gap:6px;flex-wrap:wrap;margin-left:6px}.history-total{margin-left:auto;white-space:nowrap}.history-date-shortcuts .btn{background:var(--card)}
@media(max-width:700px){.history-date-title{width:100%;margin:0}.history-date-row label{flex:1;min-width:125px}.history-date-row input{width:100%;min-width:0}.history-date-separator{display:none}.history-date-shortcuts{margin:0;flex:1}.history-total{margin-left:0}}

.history-filters .toolbar{align-items:center;gap:12px;padding:16px 20px}.history-filters .toolbar>.actions{gap:8px}.history-filters .toolbar label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}.history-filters .toolbar input[type=date]{width:138px;min-height:36px;border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:var(--bg);color:var(--text);font:inherit;color-scheme:dark}.history-split{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.history-split>section{min-width:0}.history-split th,.history-split td{padding:13px 12px}.history-split .chat-log{height:480px}.history-split .empty{padding:36px 16px}.preview-context{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}.preview-chat{height:min(650px,calc(100dvh - 235px));min-height:400px}.preview-chat .chat-log{padding:20px}.preview-chat .message{line-height:1.65;border-radius:14px}.preview-chat .chat-form textarea:focus{border-color:var(--blue)}.preview-conversation{max-width:1100px}.preview-analysis summary:hover{color:var(--text)}[data-theme=light] .history-filters .toolbar input[type=date]{color-scheme:light}
@media(max-width:1100px){.history-split{grid-template-columns:1fr}}@media(max-width:600px){.history-filters .toolbar>.actions{width:100%}.history-filters .toolbar label{flex:1}.history-filters .toolbar input[type=date]{width:100%;min-width:110px}.preview-chat{min-height:420px;height:65dvh}}

/* Consistent focus appearance: retain base borders without extra rings. */
:where(button,a,input,select,textarea,summary,[tabindex]):focus,
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:none!important;box-shadow:none!important;text-decoration:none!important}
:where(button,a,summary):focus *,
:where(button,a,summary):focus-visible *{text-decoration:none!important}
.field:focus-within,.history-date-row label:focus-within{outline:none!important;box-shadow:none!important;border-color:var(--line)!important}
input:focus,select:focus,textarea:focus,.preview-chat .chat-form textarea:focus{border-color:var(--line)!important}
input[type=date]::-webkit-datetime-edit-fields-wrapper{outline:none;box-shadow:none}
input[type=date]::-webkit-datetime-edit-day-field:focus,input[type=date]::-webkit-datetime-edit-month-field:focus,input[type=date]::-webkit-datetime-edit-year-field:focus{outline:none;background:var(--soft);color:var(--text)}

.history-filters .search-box{border:1px solid var(--line);border-radius:9px;background:var(--bg);padding:0 12px;min-height:40px;min-width:240px;flex:1}.history-filters .search-box input{width:100%;min-height:38px;background:transparent}.history-filters .toolbar{gap:14px}.history-filters #history-period{min-width:130px;min-height:36px}@media(max-width:700px){.history-filters .search-box{min-width:0;width:100%;flex-basis:100%}}

.main[data-page=chats] .history-split .chat-log{height:clamp(220px,calc(100dvh - 350px),420px)}.main[data-page=chats] .content{padding-bottom:16px}.history-split>section{align-self:start}.history-split .empty{min-height:0}.history-split .table-bottom{padding:12px 16px}
.main:is([data-page=knowledge],[data-page=workflows],[data-page=faq],[data-page=abbreviations],[data-page=vip]) .page-head h1{font-size:26px;line-height:1.25}
.main:is([data-page=knowledge],[data-page=workflows],[data-page=faq],[data-page=abbreviations],[data-page=vip]) .page-head p{font-size:12px;line-height:1.6}
.main:is([data-page=knowledge],[data-page=workflows],[data-page=faq],[data-page=abbreviations],[data-page=vip]) table{font-size:12px}
.main:is([data-page=knowledge],[data-page=workflows],[data-page=faq],[data-page=abbreviations],[data-page=vip]) th{font-size:10px;line-height:1.5}
.main:is([data-page=knowledge],[data-page=workflows],[data-page=faq],[data-page=abbreviations],[data-page=vip]) td{font-size:12px;line-height:1.6;padding:14px 18px}
.category-panel h4{font-size:10px}.category-panel .category{font-size:12px;line-height:1.6}.category-panel .category span{font-size:10px}.vip-summary>.card{padding:14px 20px}.vip-summary strong{font-size:23px}.vip-summary{margin-bottom:14px}.vip-settings-card{margin-bottom:14px}.vip-settings-card>summary{padding:14px 20px}.vip-list .card-head{padding:15px 20px}.vip-list .toolbar{padding:14px 20px}.vip-list .table-bottom{padding:12px 20px}#vip-import .actions{flex-wrap:wrap;margin-top:14px}#vip-import input{max-width:100%}
@media(max-width:600px){.main:is([data-page=knowledge],[data-page=workflows],[data-page=faq],[data-page=abbreviations],[data-page=vip]) .page-head h1{font-size:23px}}
.main[data-page=chats] .history-split>.card.chat{height:auto;min-height:0;max-height:none}.main[data-page=chats] .history-split>.card.chat .chat-log{flex:none;min-height:220px;height:clamp(220px,calc(100dvh - 380px),420px)}

/* Stable five-row content panels, independent of title length. */
.content-layout{align-items:start}.fixed-record-card{display:flex;flex-direction:column;min-height:500px}.fixed-record-card .toolbar{min-height:68px;flex:none}.fixed-record-card>.table-wrap{min-height:360px}.fixed-record-card table{table-layout:fixed;width:100%}.fixed-record-card tbody tr{height:72px}.fixed-record-card td{height:72px;max-height:72px;overflow:hidden}.fixed-record-card td:nth-child(1){width:65px}.fixed-record-card th:first-child{width:65px}.fixed-record-card th:last-child{width:88px}.fixed-record-card .title-cell button{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:18px;max-height:36px;overflow-wrap:anywhere}.fixed-record-card .cell-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:18px;max-height:36px}.fixed-record-card .table-bottom{margin-top:auto;min-height:60px}.fixed-record-card>.empty{height:360px;min-height:360px;padding:30px}
.preview-conversation{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px;max-width:none;align-items:start}.preview-analysis{margin-top:0;max-height:650px;overflow:auto;scrollbar-width:none}.preview-analysis .card-body{padding:18px}.preview-chat{height:clamp(440px,calc(100dvh - 240px),650px)}.import-upload{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:24px 0 12px}.import-result-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 14px}.import-results{max-height:430px;overflow:auto;border:1px solid var(--line);border-radius:10px;margin-bottom:12px}.import-results th{position:sticky;top:0;background:var(--card);z-index:1}.import-results td{font-size:12px;overflow-wrap:anywhere}.import-results+small{display:block;margin-bottom:16px}
@media(max-width:1050px){.preview-conversation{grid-template-columns:1fr}.preview-analysis{max-height:none}.fixed-record-card table{min-width:700px}} 

.fixed-record-card{height:535px;min-height:535px}.fixed-record-card>.table-wrap{height:405px;min-height:405px;flex:none;overflow-y:hidden}.fixed-record-card td{padding:10px 14px!important}.fixed-record-card .title-cell button{line-height:16px;max-height:32px}.fixed-record-card .record-id{line-height:14px;font-size:10px}.fixed-record-card>.empty{height:405px;min-height:405px;flex:none}
.vip-list>.table-wrap{height:350px;min-height:350px;overflow-y:hidden}.vip-list table{table-layout:fixed;width:100%}.vip-list tbody tr{height:60px}.vip-list td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vip-list th:first-child{width:50px}.vip-list th:last-child{width:95px}.vip-list th:nth-last-child(2){width:85px}
.sidebar .nav.active,.sidebar .nav.active:hover{background:var(--soft)!important;color:var(--blue)!important}.sidebar .nav.active:after{background:var(--accent)!important}.brand span,.brand span b{background:none!important;-webkit-text-fill-color:var(--blue)!important;color:var(--blue)!important}.notice:not(.error){background:var(--soft);border-color:var(--line);color:var(--text)}.preview-chat .bot-avatar{background:var(--soft);color:var(--blue)}

/* ArmAI Studio: matte surfaces, restrained teal accents, no glow. */
:root,[data-theme=light]{--bg:#f4f6f8;--card:#ffffff;--text:#223247;--muted:#65758a;--line:#e1e7ee;--blue:#3457b1;--accent:#3457b1;--soft:#edf1fb;--shadow:none}
[data-theme=dark]{--bg:#0f151d;--card:#17202b;--text:#e5ecf4;--muted:#93a2b5;--line:#2a3544;--blue:#91aaf0;--accent:#6f8fe5;--soft:#24314b;--shadow:none}
.btn,.btn.small{border-radius:8px;font-size:12px;font-weight:600;min-height:36px;padding:8px 13px;gap:7px;line-height:18px;box-shadow:none!important;background-image:none!important;transform:none!important;transition:background-color .15s,border-color .15s}
.btn{background:var(--card);border:1px solid var(--line);color:var(--text)}.btn:hover{background:var(--bg);border-color:var(--muted)}.btn.primary{background:#4669cf!important;color:#fff!important;border-color:#4669cf!important}.btn.primary:hover{background:#3c5fc3!important;border-color:#3c5fc3!important}.btn.danger{background:transparent;color:#e08083;border-color:var(--line)}
.card,.category-panel{border-radius:12px;box-shadow:none}.sidebar,.topbar{background:var(--card)}.top-actions{gap:10px}.page-head>.actions{gap:8px;align-items:center;flex-wrap:wrap}.nav,.category{border-radius:8px}.nav.active,.category.active{background:var(--soft);color:var(--blue)}.sidebar .nav.active:after{background:var(--accent)!important}
.brand{gap:0;padding:0 8px 26px;letter-spacing:0}.brand img.brand-logo{width:190px;height:55px;object-fit:contain;object-position:left center}.brand-logo-light{display:none}[data-theme=light] .brand-logo-dark{display:none}[data-theme=light] .brand-logo-light{display:block}.auth-aside .brand img.brand-logo{width:260px;height:76px}
.notice:not(.error){background:var(--bg);color:var(--muted);border:1px solid var(--line);border-radius:9px}.badge.blue,.metric-icon.purple,.bot-avatar,.initial{background:var(--soft);color:var(--blue)}.toggle.on{background:#5275d5}.pagination .selected{background:var(--soft);border-color:var(--accent);color:var(--blue)}.chart .bar{background:#6f8fe5}.chart .bar.secondary{background:#7a8fa8}.legend i{background:#6f8fe5}.legend i.transfer{background:#7a8fa8}.preview-chat .message.user{background:#3557ac;color:#f7f9ff}.preview-chat .message.assistant{background:var(--bg);border:1px solid var(--line)}.preview-examples button{border-radius:7px}.preview-examples button:hover{background:var(--soft)}.brand-symbol{background:#4669cf}.auth-aside{background:var(--bg)}.auth-main{background:var(--card)}
@media(max-width:950px) and (min-width:761px){.brand img.brand-logo{width:144px;height:45px}}@media(prefers-reduced-motion:reduce){.btn{transition:none}}
html[data-theme="light"]{--bg:#f4f6f8;--card:#ffffff;--text:#223247;--muted:#65758a;--line:#e1e7ee;--blue:#3457b1;--accent:#3457b1;--soft:#edf1fb;--shadow:none}html[data-theme="dark"]{--bg:#0f151d;--card:#17202b;--text:#e5ecf4;--muted:#93a2b5;--line:#2a3544;--blue:#91aaf0;--accent:#6f8fe5;--soft:#24314b;--shadow:none}

:root[data-theme=dark]{--bg:#0f151d;--card:#17202b;--text:#e5ecf4;--muted:#93a2b5;--line:#2a3544;--blue:#91aaf0;--accent:#6f8fe5;--soft:#24314b;--shadow:none}
:root[data-theme=light]{--bg:#f4f6f8;--card:#ffffff;--text:#223247;--muted:#65758a;--line:#e1e7ee;--blue:#3457b1;--accent:#3457b1;--soft:#edf1fb;--shadow:none}

/* Shared typography across data management, including VIP. */
:root{font-family:"Segoe UI",Arial,sans-serif;font-synthesis:none}body,button,input,select,textarea{font-family:inherit}.main:is([data-page=knowledge],[data-page=workflows],[data-page=faq],[data-page=abbreviations],[data-page=vip]) td{font-weight:400}.vip-list td:nth-child(2),.vip-list td:nth-child(3){font-weight:550}.sidebar .brand{padding:0 0 24px}.sidebar .brand img.brand-logo{width:202px;height:76px;max-width:100%;object-fit:contain}

.vip-list th:first-child,.vip-list td:first-child{width:46px;padding:12px;overflow:visible;text-overflow:clip}.vip-list th:last-child,.vip-list td:last-child{width:96px;padding:10px 8px;overflow:visible;text-overflow:clip}.vip-list td:last-child .icon-btn{padding:7px}.vip-list th:nth-last-child(2){width:85px}

/* Owner return belongs to the persistent action bar, outside scrolling navigation. */
.topbar{position:sticky;top:0;z-index:15;flex-shrink:0}.top-actions>*{flex-shrink:0}.top-owner-return{text-decoration:none!important;line-height:18px}.top-owner-return svg{width:15px;height:15px}.sidebar>.brand,.sidebar>.side-foot{flex:none}.sidebar-nav{overscroll-behavior:contain;scrollbar-gutter:auto}.sidebar-nav .nav{flex-shrink:0}
@media(max-width:900px){.topbar{padding-inline:20px;gap:12px}.top-actions{gap:7px}.top-clock{font-size:11px;min-width:140px}}
@media(max-width:640px){.topbar{height:auto;min-height:70px;padding:10px 14px;flex-wrap:wrap}.topbar>.actions{flex:1}.top-actions{margin-left:auto;flex-wrap:wrap}.top-owner-return span{display:none}.top-owner-return{padding:8px!important}.top-clock{font-size:10px;min-width:132px}}

.company-tags .badge.blue{background:var(--soft);color:var(--blue)}

/* Crisp vector symbol with editable, independent brand typography. */
.sidebar .brand,.auth-aside .brand{gap:10px;align-items:center;line-height:1;letter-spacing:0}.sidebar .brand{padding:0 0 25px;min-height:76px}.brand img.brand-icon{width:34px;height:34px;object-fit:contain;flex:0 0 34px;align-self:flex-start;margin-top:3px}.brand .brand-copy{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--text)!important;-webkit-text-fill-color:currentColor!important}.brand .brand-copy strong{font-family:"Segoe UI",Arial,sans-serif;font-size:27px;font-weight:650;letter-spacing:-.7px;line-height:1.05;color:var(--text)}.brand .brand-copy .brand-ai{color:var(--blue)!important;-webkit-text-fill-color:currentColor!important}.brand .brand-copy small{font-family:inherit;font-size:10px;line-height:1.2;letter-spacing:.25px;font-weight:400;color:var(--muted);white-space:nowrap}.auth-aside .brand img.brand-icon{width:44px;height:44px;flex-basis:44px}.auth-aside .brand .brand-copy strong{font-size:35px}.auth-aside .brand .brand-copy small{font-size:12px}.auth-aside .brand{padding-bottom:55px}

.brand img.brand-icon{width:40px;height:40px;flex-basis:40px}.brand .brand-copy strong{font-size:31px}.brand .brand-copy small{font-size:11px}.brand-icon-light{display:none}:root[data-theme=light] .brand-icon-dark{display:none}:root[data-theme=light] .brand-icon-light{display:block}

@font-face{font-family:ArmAI Poppins;font-style:normal;font-weight:400;font-display:swap;src:url("fonts/poppins-400.ttf") format("truetype")}
@font-face{font-family:ArmAI Poppins;font-style:normal;font-weight:600;font-display:swap;src:url("fonts/poppins-600.ttf") format("truetype")}
/* Brand proportions follow the approved compact horizontal reference. */
.sidebar .brand{gap:5px;align-items:flex-start}.brand img.brand-icon{width:35px;height:35px;flex-basis:35px;margin-top:2px}.brand .brand-copy{gap:0;align-items:center}.brand .brand-copy strong{font-family:ArmAI Poppins,"Segoe UI",sans-serif;font-size:34px;line-height:1.08;font-weight:600;letter-spacing:-1px;white-space:nowrap}.brand .brand-copy .brand-ai{color:var(--text)!important;-webkit-text-fill-color:currentColor!important}.brand .brand-copy small{font-family:ArmAI Poppins,"Segoe UI",sans-serif;font-size:11px;line-height:1.4;font-weight:400;letter-spacing:-.15px}.auth-aside .brand{gap:8px}.auth-aside .brand .brand-copy strong{font-size:42px}.auth-aside .brand .brand-copy small{font-size:14px}.auth-aside .brand img.brand-icon{width:44px;height:44px;flex-basis:44px}

/* Center the symbol against both brand text lines. */
.sidebar .brand,.auth-aside .brand{align-items:center}.brand img.brand-icon{align-self:center;margin-top:0}


.sidebar .brand img.brand-icon{width:42px;height:42px;flex-basis:42px}.sidebar .brand{gap:7px}


.sidebar .brand img.brand-icon{width:45px;height:45px;flex-basis:45px}


.sidebar-close,.sidebar-backdrop{display:none}
@media(max-width:640px){.top-actions{flex-basis:100%;width:100%;justify-content:flex-end;gap:5px;flex-wrap:nowrap}.top-clock{margin-right:auto;min-width:125px;font-size:10px}.top-actions .btn{padding:7px 8px;gap:5px}.sidebar-close{display:inline-grid;position:absolute;right:9px;top:9px;z-index:2}.sidebar.open+.sidebar-backdrop{display:block;position:fixed;inset:0;z-index:19;background:#0007;border:0;cursor:pointer}.sidebar{z-index:20}}
@media(max-width:360px){.top-clock{min-width:116px;font-size:9px}.top-actions{gap:3px}.top-actions .btn{padding:7px 6px}}
/* Auth presentation and operational reporting */
.auth-aside{display:flex;flex-direction:column;justify-content:center;padding:48px 64px;gap:34px}
.auth-aside .brand{margin:0 0 10px}.auth-intro .auth-eyebrow{font-size:10px;letter-spacing:2px;color:var(--blue);font-weight:600}
.auth-aside h1{font-size:36px;line-height:1.28;letter-spacing:-1px;margin:20px 0}.auth-aside p{margin:0;max-width:420px;line-height:1.9}
.auth-preview{max-width:440px;border:1px solid var(--line);border-radius:18px;padding:22px;background:var(--card)}
.auth-preview-head{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px;margin-bottom:24px}.auth-preview-head .dot{background:var(--blue)}
.auth-preview-message{padding:11px 16px;border:1px solid var(--line);border-radius:12px 12px 3px 12px;width:fit-content;margin-left:auto;font-size:12px}
.auth-preview-answer{display:flex;align-items:flex-start;gap:12px;margin-top:18px;padding:16px;background:var(--soft);border-radius:12px 12px 12px 3px}
.auth-preview-answer>svg{width:22px;height:22px;flex-shrink:0;color:var(--blue)}.auth-preview-answer strong{font-size:13px}.auth-preview-answer p{font-size:11px;margin-top:7px;line-height:1.7}
.auth-proof{display:flex;gap:20px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px;color:var(--muted);font-size:10px}.auth-proof span{display:flex;gap:6px;align-items:center}.auth-proof svg{width:15px;height:15px;color:var(--blue)}
.publication-state{display:flex;flex-direction:column;gap:3px;line-height:1.3;max-width:205px}.publication-label{color:var(--blue);font-size:10px;font-weight:600}.publication-label.pending{color:#d5a34d}.publication-state small{font-size:9px;color:var(--muted)}
.bonus-fields{padding:16px;border:1px solid var(--line);border-radius:10px}.bonus-fields .form-grid{margin-top:14px}.bonus-fields p{font-size:11px;line-height:1.7}
.health-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px;border-bottom:1px solid var(--line)}.health-summary>div{display:flex;flex-direction:column;gap:8px}.health-summary span,.health-summary small{color:var(--muted);font-size:11px}.health-summary strong{font-size:20px}
.health-checks{padding:12px 22px}.health-checks>div{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.health-checks>div:last-child{border:0}.health-checks svg{width:16px;height:16px;color:var(--blue)}.health-checks .badge{margin-left:auto;white-space:nowrap}
.system-firms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.system-firms .health-summary{padding:18px;gap:10px}.system-firms .health-summary strong{font-size:16px}.metrics-note{font-size:11px;line-height:1.9;color:var(--muted);margin:18px 0}.metrics-note a{color:var(--blue)}
@media(max-width:1100px){.system-firms{grid-template-columns:1fr}.publication-state{max-width:150px}.publication-state small{font-size:8px}}
@media(max-width:640px){.publication-state{display:none}.health-summary{grid-template-columns:1fr}.system-firms .health-summary{grid-template-columns:1fr}.auth-aside{padding:28px;gap:22px}.auth-aside h1{font-size:28px}}

.auth-aside .brand{padding-bottom:0}
@media(max-width:640px){.top-actions{flex-wrap:wrap}.publication-state{display:flex;order:9;flex-basis:100%;max-width:none;flex-direction:row;align-items:center;gap:8px;justify-content:flex-end}.publication-state small{font-size:8px}}
/* Owner reporting: balanced columns and compact operational details. */
.operations-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.operations-metrics .metric{padding:22px;min-width:0;display:flex;flex-direction:column;gap:9px}.operations-metrics .metric-value{font-size:27px;line-height:1.2;margin:7px 0}.operations-metrics .metric small{line-height:1.65;color:var(--muted);font-size:10px}.operations-metrics .metric-label{font-size:11px;display:flex;justify-content:space-between}.operations-metrics .metric-label svg{width:15px;height:15px}.balance-status{font-size:17px;font-weight:600}.balance-metric .btn{margin-top:auto;align-self:flex-start;font-size:10px;min-height:30px}
.cost-table{width:100%;table-layout:fixed!important;min-width:880px}.cost-table th,.cost-table td{padding:17px 18px!important;vertical-align:middle;line-height:1.6;font-size:12px}.cost-table th{font-size:10px}.cost-table th:nth-child(1){width:15%!important}.cost-table th:nth-child(2){width:19%!important}.cost-table th:nth-child(3){width:23%!important}.cost-table th:nth-child(4),.cost-table th:nth-child(5){width:14%!important}.cost-table th:nth-child(6){width:15%!important}.cost-table .record-id{display:block;font-family:inherit;font-size:10px;margin-top:4px;line-height:1.5}.cost-table .title-cell{white-space:normal!important}.cost-table .title-cell .record-id{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.firm-health{margin:0}.firm-health>summary{list-style:none;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.firm-health>summary::-webkit-details-marker{display:none}.firm-health>summary strong{font-size:14px}.firm-health>summary small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.firm-health>summary>span{display:flex;align-items:center;gap:12px}.firm-health>summary svg{width:16px;height:16px}.firm-health[open]>summary{border-bottom:1px solid var(--line)}.firm-health[open]>summary>span>svg{transform:rotate(180deg)}
.recovery-banner{padding:18px 22px;background:var(--soft)}.recovery-banner>div{display:flex;gap:9px;align-items:center;font-size:12px}.recovery-banner svg{width:17px;height:17px;color:var(--blue)}.recovery-banner p{font-size:11px;color:var(--muted);margin:9px 0}.recovery-banner small{font-size:10px;color:var(--muted)}
@media(max-width:1200px){.operations-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.operations-metrics{grid-template-columns:1fr 1fr;gap:10px}.operations-metrics .metric{padding:15px}.operations-metrics .metric-value{font-size:22px}.balance-status{font-size:14px}.cost-table{min-width:880px}.system-firms{gap:12px}.firm-health>summary{padding:15px}}
.health-detail>summary{padding:18px 22px;cursor:pointer;font-size:12px;color:var(--blue)}.health-help{padding:0 22px;margin:0;color:var(--muted);font-size:11px;line-height:1.7}.health-detail .health-checks{padding-top:8px}.health-checks .badge{white-space:normal;text-align:right}
@media(max-width:640px){.cost-table{min-width:0!important;display:block}.cost-table thead{display:none}.cost-table tbody{display:block}.cost-table tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:12px;gap:0 10px}.cost-table tr:last-child{border:0}.cost-table td{display:block;border:0!important;padding:10px!important;min-width:0;overflow-wrap:anywhere}.cost-table td:first-child{grid-column:1/-1;font-weight:600;font-size:14px}.cost-table td:before{display:block;color:var(--muted);font-size:9px;letter-spacing:.4px;margin-bottom:7px}.cost-table td:nth-child(2):before{content:'GİRİŞ / ÇIKIŞ TOKEN'}.cost-table td:nth-child(3):before{content:'TAHMİNİ MALİYET'}.cost-table td:nth-child(4):before{content:'CANLI: HAZIR KAYNAK'}.cost-table td:nth-child(5):before{content:'TEST: HAZIR KAYNAK'}.cost-table td:nth-child(6):before{content:'MESAJ İŞLEME SERVİSİ'}.health-checks>div{font-size:11px}.health-checks .badge{max-width:140px}}
.firm-health-list{margin-top:22px}.firm-health-list>.card-head>.muted{font-size:11px}.firm-health-row{display:flex;align-items:center;gap:22px;padding:18px 22px;border-top:1px solid var(--line)}.firm-health-row>div{flex:1}.firm-health-row strong{font-size:13px}.firm-health-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.health-modal{width:min(850px,calc(100vw - 32px))!important;max-width:850px!important}.health-modal .drawer-body{padding:0}.health-modal .health-detail{border-top:1px solid var(--line)}.health-modal .health-detail .health-checks{padding-bottom:20px}.health-modal .health-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.health-modal .health-summary strong{font-size:17px}
@media(max-width:640px){.firm-health-row{flex-wrap:wrap;gap:12px;padding:16px}.firm-health-row>.btn{width:100%;justify-content:center}.firm-health-list>.card-head>.muted{display:none}.health-modal .health-summary{grid-template-columns:1fr}.health-modal .drawer-body{max-height:65vh}}
.company-lifecycle-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-bottom:10px}.company-lifecycle-actions>span{margin-right:auto}.company-lifecycle-actions .icon-btn{width:28px;height:28px;border:1px solid var(--line);border-radius:7px}.company-lifecycle-actions .icon-btn svg{width:14px;height:14px}.company-paused .company-avatar{background:var(--bg);color:var(--muted)}.company-card .btn:disabled{opacity:.45;cursor:not-allowed}.company-card .company-avatar{margin-top:0}

.company-trial-info{display:flex;align-items:flex-start;flex-direction:column;gap:10px;margin:14px 0 20px;color:var(--muted,#9aabc8);font-size:11px;line-height:1.6}.company-trial-info strong{font-weight:500}.company-trial-info .btn{font-size:11px;padding:6px 10px}

.publication-open{border:0;background:transparent;text-align:right;display:flex;flex-direction:column;gap:3px;padding:5px 7px;border-radius:7px;cursor:pointer;font:inherit}.publication-open:hover{background:var(--surface,#20304a)}.publication-diff-list{display:flex;flex-direction:column;gap:10px}.publication-diff-item{border:1px solid var(--border,#35435c);border-radius:10px;padding:12px}.publication-diff-item summary{cursor:pointer}.publication-diff-item summary>span{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.publication-diff-item summary strong{font-size:13px;overflow-wrap:anywhere}.publication-field h4{font-size:12px;margin:14px 0 8px}.publication-field>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}.publication-field section{min-width:0}.publication-field small{font-size:10px;color:var(--muted)}.publication-field pre{font:11px/1.7 inherit;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;margin:5px 0;padding:9px;background:var(--bg,#101c30);border-radius:6px}@media(max-width:650px){.publication-field>div{grid-template-columns:1fr}}

.activity-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.activity-tabs .btn{font-size:11px}.activity-tabs .btn span{font-size:10px;opacity:.7;margin-left:4px}.activity-search{display:flex;align-items:center;gap:20px}.activity-search input{max-width:440px}.activity-search>span{font-size:11px;color:var(--muted)}.activity-workspace{display:block;font-size:10px;color:var(--muted);margin-top:5px}.audit-table td code{font-size:11px;white-space:nowrap}.audit-table td p{margin:7px 0 0;font-size:12px}.audit-table th,.audit-table td{vertical-align:top}

.activity-search{padding:18px 22px;gap:14px;border-bottom:1px solid var(--border,#35435c)}.activity-search-box{display:flex;align-items:center;gap:11px;width:min(100%,520px);min-width:0;min-height:42px;padding:0 13px;border:1px solid var(--border,#35435c);background:var(--bg,#101827);border-radius:10px}.activity-search-box>svg{width:17px;height:17px;color:var(--muted,#91a4c3);flex-shrink:0}.activity-search-box #activity-search{appearance:none;min-width:0;max-width:none;width:100%;height:40px;padding:0;margin:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--text,#e6edff);font:12px 'Segoe UI',sans-serif}.activity-search-box #activity-search::placeholder{color:var(--muted,#91a4c3);opacity:.85}.activity-search-clear{border:0;background:transparent;color:var(--muted,#91a4c3);padding:4px;display:grid;place-items:center;border-radius:5px;cursor:pointer}.activity-search-clear[hidden]{display:none}.activity-search-clear svg{width:14px;height:14px}.activity-search-clear:hover{color:var(--text,#e6edff);background:var(--surface,#22324c)}.activity-result-count{white-space:nowrap;padding:6px 10px;border-radius:7px;background:var(--bg,#101827);font-size:10px!important}@media(max-width:600px){.activity-search{padding:14px;gap:10px}.activity-search-box{flex:1}.activity-result-count{padding:6px}}

.modal.publication-review{width:min(940px,94vw);max-width:940px;max-height:88vh;display:flex;flex-direction:column}.publication-review .drawer-head,.publication-review .drawer-foot{flex-shrink:0}.publication-review .drawer-body{overflow:auto;min-height:0;padding:22px 26px}.publication-review-intro p{font-size:13px;margin:0 0 6px}.publication-review-intro>span{font-size:11px;color:var(--muted)}.publication-review-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.publication-review-stats>div{padding:13px 16px;border:1px solid var(--line);background:var(--bg);border-radius:10px}.publication-review-stats strong{display:block;font-size:22px;font-weight:650}.publication-review-stats span{font-size:10px;color:var(--muted)}.diff-stat-added strong{color:var(--blue)}.publication-review .publication-diff-item{padding:0;overflow:hidden;border-color:var(--line)}.publication-review .publication-diff-item summary{position:relative;list-style:none;display:block;padding:16px 20px;background:var(--card)}.publication-review .publication-diff-item summary::-webkit-details-marker{display:none}.diff-summary-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:9px}.diff-summary-meta small{font-size:10px;color:var(--muted);margin-left:auto}.publication-review .publication-diff-item summary>strong{display:block;padding-right:100px;font-size:14px;line-height:1.5}.diff-expand{position:absolute;right:20px;bottom:17px;font-size:10px;color:var(--muted)}.diff-expand svg{width:13px;height:13px}.publication-diff-item[open] .diff-expand svg{transform:rotate(180deg)}.publication-review .publication-field-list{padding:0 20px 18px;border-top:1px solid var(--line)}.publication-review .publication-field{padding-top:15px}.publication-review .publication-field h4{margin:0 0 9px;font-size:11px;color:var(--muted);font-weight:600}.publication-review .publication-field>div{gap:12px}.publication-review .publication-field section{padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.publication-review .publication-field .diff-after{border-color:color-mix(in srgb,var(--blue) 35%,var(--line))}.publication-review .publication-field small{font-size:9px;letter-spacing:1px}.publication-review .publication-field pre{font-family:inherit;font-size:12px;line-height:1.7;padding:0;margin:7px 0 0;min-height:20px;max-height:220px;background:transparent}.publication-review-note{font-size:10px;color:var(--muted);line-height:1.8;margin:16px 0 0}.diff-page-count{font-size:11px;color:var(--muted);margin-right:auto}@media(max-width:600px){.publication-review .drawer-body{padding:16px}.publication-review-stats{gap:6px}.publication-review-stats>div{padding:10px 8px}.publication-review-stats strong{font-size:18px}.publication-review-stats span{font-size:9px}.publication-review .publication-diff-item summary{padding:13px}.publication-review .publication-field-list{padding:0 13px 13px}.publication-review .drawer-foot{gap:6px;flex-wrap:wrap}.publication-review .drawer-foot .btn{padding:7px 9px;font-size:11px}}

#session-alert{position:fixed;right:24px;bottom:24px;z-index:10050;width:min(410px,calc(100vw - 32px));display:flex;align-items:flex-start;gap:13px;padding:18px;border:1px solid var(--blue,#6c8de6);border-radius:13px;background:var(--card,#192436);color:var(--text,#e7efff);box-shadow:0 15px 45px #0005}#session-alert strong{font-size:13px;display:block;margin:0 0 6px}#session-alert p{font-size:12px;line-height:1.7;color:var(--muted,#9eafca);margin:0}.session-alert-icon{width:36px;height:36px;display:grid;place-items:center;background:var(--soft,#263b60);color:var(--blue,#9cb9ff);border-radius:10px;font-size:22px;font-weight:700;flex-shrink:0}.session-alert-icon svg{width:20px;height:20px}@media(max-width:600px){#session-alert{right:16px;bottom:16px;padding:15px}}

.notification-bell{position:relative;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:9px;color:var(--muted);cursor:pointer}.notification-bell:hover{background:var(--soft);color:var(--blue)}.notification-bell svg{width:18px;height:18px}.notification-bell>span{position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;padding:1px 4px;border-radius:12px;background:var(--blue);color:#fff;font-size:9px;border:2px solid var(--card);display:grid;place-items:center}.notification-bell>span[hidden]{display:none}.modal.notification-modal{width:min(720px,94vw);max-width:720px;max-height:86vh;display:flex;flex-direction:column}.notification-modal .drawer-body{overflow:auto;min-height:0}.notification-modal .drawer-head,.notification-modal .drawer-foot{flex-shrink:0}.notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px;font-size:11px;color:var(--muted)}.notification-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.notification-list{display:flex;flex-direction:column;gap:12px}.notification-item{padding:18px;border:1px solid var(--line);border-radius:11px;background:var(--bg)}.notification-item.unread{border-left:3px solid var(--blue)}.notification-heading{display:flex;align-items:center;gap:10px}.notification-heading strong{font-size:14px;overflow-wrap:anywhere}.notification-item time{display:block;font-size:10px;color:var(--muted);margin-top:6px}.notification-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;margin:13px 0}.notification-item-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.notification-note{font-size:10px;line-height:1.7;margin:15px 0 0}.notification-page-count{margin-right:auto;font-size:11px;color:var(--muted)}#notification-targets{padding:12px;border:1px solid var(--line);border-radius:8px;margin-top:12px}@media(max-width:600px){.notification-toolbar{align-items:flex-start;flex-direction:column}.notification-item{padding:14px}.notification-modal .drawer-foot{flex-wrap:wrap}.notification-bell{width:32px;height:32px}}

.top-clock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:88px;line-height:1.2;text-align:center}.top-clock-date{font-size:11px}.top-clock-time{font-size:12px;color:var(--text);font-weight:600;letter-spacing:.6px}@media(max-width:640px){.top-clock{min-width:77px}.top-clock-date{font-size:9px}.top-clock-time{font-size:11px}}

.top-actions>.publication-state{order:99;flex-shrink:0}@media(max-width:640px){.top-actions>.publication-state{order:99;justify-content:flex-end}}

.notification-bell>span{background:#422432;color:#ff8292;font-weight:750;border-color:var(--card)}[data-theme=light] .notification-bell>span{background:#ffe8eb;color:#cf334b}#notification-popover{position:fixed;z-index:220;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:15px;background:var(--card);box-shadow:0 18px 55px #0005;overflow:hidden;color:var(--text)}.notification-popover-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px}.notification-popover-head>div{display:flex;align-items:center;gap:10px}.notification-popover-head h3{font-size:16px;margin:0}.notification-popover-head span{font-size:10px;color:var(--muted)}.notification-popover-tools{display:flex;gap:8px;padding:0 20px 14px;flex-wrap:wrap}.notification-popover-tools:empty{display:none}.notification-popover-tools .btn{font-size:10px;padding:7px 10px}.notification-popover-list{overflow:auto;min-height:0;border-top:1px solid var(--line);scrollbar-width:none}.notification-popover-list::-webkit-scrollbar{display:none}.notification-popover-item{display:flex;gap:12px;padding:17px 20px;border-bottom:1px solid var(--line)}.notification-popover-item:last-child{border-bottom:0}.notification-popover-item.unread{background:var(--soft)}.notification-popover-mark{width:30px;height:30px;background:var(--bg);color:var(--blue);border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;flex-shrink:0}.notification-popover-mark svg{width:15px;height:15px}.notification-popover-copy{min-width:0;flex:1}.notification-popover-copy strong{font-size:12px;line-height:1.5}.notification-popover-copy time{display:block;font-size:9px;color:var(--muted);margin:4px 0 8px}.notification-popover-copy p{font-size:11px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.notification-popover-copy .notification-item-actions{justify-content:flex-start;margin-top:10px}.notification-popover-copy .notification-item-actions .btn{font-size:10px;padding:6px 9px}.notification-popover-copy .notification-item-actions .icon-btn{margin-left:auto;width:26px;height:26px}.notification-popover-copy .notification-item-actions .icon-btn svg{width:14px;height:14px}.notification-popover-copy .notification-item-actions>small{font-size:9px;color:var(--muted)}.notification-unread-dot{width:6px;height:6px;background:#eb586f;border-radius:50%;flex-shrink:0}.notification-popover-foot{display:flex;align-items:center;justify-content:space-between;margin:0;padding:11px 20px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);background:var(--card)}.notification-popover-foot>div{display:flex;gap:6px}.notification-popover-empty{padding:35px 20px;display:flex;align-items:center;flex-direction:column;gap:10px}.notification-popover-empty>svg{width:28px;height:28px;color:var(--blue)}.notification-popover-empty strong{font-size:13px}.notification-popover-empty span{font-size:11px;color:var(--muted)}@media(max-width:480px){.notification-popover-head{padding:15px}.notification-popover-tools{padding:0 15px 12px}.notification-popover-item{padding:14px 15px;gap:9px}.notification-popover-foot{padding:10px 15px}}

/* Compact notification inbox. */
#notification-popover{border-radius:16px;box-shadow:0 12px 36px #0003;padding:0}
.notification-popover-head{padding:18px 20px 10px}.notification-popover-head h3{font-size:15px;font-weight:650;letter-spacing:-.2px}.notification-popover-head>div{gap:9px}.notification-popover-head .notification-count-label{padding:3px 7px;border-radius:6px;background:var(--bg);color:var(--muted);font-size:10px}.notification-popover-head>.icon-btn{width:26px;height:26px;color:var(--muted)}
.notification-popover-tools{padding:0 20px 12px;justify-content:space-between;align-items:center}.notification-popover-tools .notification-text-action{border:0;background:transparent;padding:0;min-height:24px;color:var(--blue);font-size:11px}.notification-text-action svg{width:13px;height:13px}
.notification-popover-list{padding:6px 10px;border-top:1px solid var(--line)}
.notification-popover-item,.notification-popover-item.unread{position:relative;padding:15px 10px;gap:12px;background:transparent;border-bottom:1px solid var(--line);border-radius:0}
.notification-popover-mark{width:34px;height:34px;border:0;border-radius:50%;background:var(--bg);color:var(--muted)}.notification-popover-item.unread .notification-popover-mark{color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,var(--card))}
.notification-popover-copy{position:relative;padding-right:0}.notification-popover-copy .notification-heading{padding-right:62px;gap:8px;min-height:20px}.notification-popover-copy strong{font-size:13px;font-weight:600}.notification-popover-copy time{font-size:10px;margin:3px 0 8px;color:var(--muted)}.notification-popover-copy p{font-size:12px;line-height:1.7;color:var(--text);margin:0 0 2px}
.notification-popover-copy .notification-item-actions{position:absolute;right:0;top:-2px;margin:0;gap:3px;justify-content:flex-end}.notification-popover-copy .notification-item-actions .icon-btn{width:27px;height:27px;margin:0;padding:6px;border-radius:7px;color:var(--muted);background:transparent;border:0}.notification-popover-copy .notification-item-actions .icon-btn:hover{background:var(--bg);color:var(--text)}.notification-popover-copy .notification-item-actions>small{display:none}.notification-popover-foot{padding:10px 20px;font-size:10px;border-top:1px solid var(--line);color:var(--muted)}.notification-unread-dot{width:5px;height:5px;background:#f05a70}
.billing-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.billing-stats>div{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:18px 20px;display:flex;flex-direction:column;gap:12px}.billing-stats span{color:var(--muted);font-size:11px}.billing-stats strong{font-size:26px;font-weight:650;line-height:1.3}.billing-stats .billing-stat-text{font-size:14px;line-height:1.8}.billing-toolbar{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.billing-tabs{display:flex;gap:4px}.billing-tabs button{background:transparent;border:0;color:var(--muted);font:inherit;font-size:12px;padding:9px 12px;border-radius:7px;cursor:pointer}.billing-tabs button.selected{background:var(--soft);color:var(--blue)}.billing-search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;min-width:240px;background:var(--bg)}.billing-search svg{width:16px;height:16px;color:var(--muted)}.billing-search input{background:transparent;border:0;padding:0;min-width:200px;width:100%;font-size:12px;color:var(--text)}.billing-rows{min-height:320px}.billing-row{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(140px,1fr) minmax(110px,.7fr) auto;gap:18px;align-items:center;min-height:78px;padding:15px 22px;border-bottom:1px solid var(--line)}.billing-row:last-child{border:0}.billing-row strong{font-size:13px;font-weight:600}.billing-row small{display:block;color:var(--muted);font-size:11px;margin-top:6px;line-height:1.5}.billing-row>div>span{font-size:10px}.billing-row strong small{display:inline;font-size:10px}.billing-state{font-size:10px;font-weight:600;color:var(--muted);background:var(--bg);padding:6px 9px;border-radius:6px;width:fit-content;white-space:nowrap}.billing-state.paid{color:#69bfa5}.billing-state.review{color:var(--blue);background:var(--soft)}.billing-state.overdue{color:#e6808a;background:#a8414b15}.billing-pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.billing-pagination>div{display:flex;gap:5px}.billing-pagination button{width:29px;height:29px;border:1px solid var(--line);border-radius:7px}.billing-modal{width:min(720px,94vw);max-width:720px}.billing-invoice-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}.billing-invoice-heading h3{font-size:20px;margin:8px 0}.billing-invoice-heading p,.billing-invoice-heading span{font-size:12px;color:var(--muted)}.billing-invoice-heading>div:last-child{text-align:right;display:flex;align-items:flex-end;flex-direction:column;gap:12px}.billing-invoice-heading strong{font-size:24px;white-space:nowrap}.billing-invoice-heading strong small{font-size:12px}.billing-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 0}.billing-detail-grid>div{display:flex;flex-direction:column;gap:7px}.billing-detail-grid small{color:var(--muted);font-size:11px}.billing-detail-grid strong{font-size:13px}.billing-wallet{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin-bottom:20px}.billing-wallet>div{display:flex;align-items:center;gap:12px}.billing-wallet>div b{font-size:14px}.billing-wallet>div span{font-size:10px;color:var(--blue);background:var(--soft);padding:4px 8px;border-radius:5px}.billing-wallet p{font-size:12px;color:var(--muted);line-height:1.7}.billing-wallet code{display:block;font-family:monospace;font-size:14px;overflow-wrap:anywhere;margin-bottom:12px}.billing-wallet>small{display:block;color:var(--muted);font-size:10px;margin-top:12px;line-height:1.7}.billing-section-title{font-size:13px}.billing-claim{border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:14px}.billing-claim>div:first-child{display:flex;justify-content:space-between;gap:12px}.billing-claim strong{font-size:12px}.billing-claim time,.billing-claim small{color:var(--muted);font-size:10px}.billing-claim small{display:block;overflow-wrap:anywhere;margin:10px 0}.billing-claim>a{color:var(--blue);font-family:monospace;overflow-wrap:anywhere;font-size:11px;display:block;margin:12px 0;text-decoration:none}.billing-claim p{font-size:11px;line-height:1.8}.billing-review-note textarea{min-height:65px}.billing-tx-proof{display:block;overflow-wrap:anywhere;font-size:11px}.notification-invoice-link{display:flex;align-items:center;gap:6px;color:var(--blue);background:transparent;border:0;padding:10px 0 0;font-size:11px;cursor:pointer}.notification-invoice-link svg{width:13px;height:13px}.billing-modal .muted{font-size:11px;line-height:1.8}@media(max-width:900px){.billing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-row{grid-template-columns:1fr 1fr;gap:10px}.billing-row>.actions{flex-wrap:wrap}}@media(max-width:540px){.billing-toolbar{padding:12px}.billing-tabs button{padding:8px;font-size:11px}.billing-search{min-width:0;width:100%}.billing-row{padding:15px}.billing-invoice-heading{flex-direction:column}.billing-invoice-heading>div:last-child{align-items:flex-start}.billing-detail-grid{gap:12px}}
.billing-modal .form-grid .field.full{grid-column:auto}.billing-modal .form-grid .field[hidden]{display:none}.billing-modal form .form-grid{gap:18px}.billing-modal .form-grid input,.billing-modal .form-grid select{min-width:0;width:100%}.billing-modal .form-grid .field small{line-height:1.6}.billing-modal .billing-invoice-heading p{margin:6px 0}.billing-row .actions{gap:6px}.billing-row .actions .btn{font-size:11px;padding:7px 10px}
.notification-popover-item[data-invoice-link]{cursor:pointer}.notification-popover-item[data-invoice-link]:hover{background:color-mix(in srgb,var(--soft) 35%,var(--card))}.billing-row{height:82px;min-height:82px}.billing-row>div{min-width:0}.billing-row strong,.billing-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:900px){.billing-row{height:auto;min-height:100px}}
.billing-detail-modal{width:min(960px,calc(100vw - 40px))!important;max-width:960px!important;max-height:calc(100dvh - 40px)!important;display:flex;flex-direction:column;overflow:hidden}.billing-detail-modal .drawer-head,.billing-detail-modal .drawer-foot{flex-shrink:0}.billing-detail-modal .drawer-head{padding:18px 24px}.billing-detail-modal .drawer-head h2{font-size:17px}.billing-detail-modal .drawer-body{min-height:0;overflow:auto;padding:22px 24px;scrollbar-width:thin}.billing-detail-modal .drawer-foot{padding:14px 24px}.billing-detail-modal .billing-invoice-heading{align-items:center;padding-bottom:18px}.billing-detail-modal .billing-invoice-heading h3{font-size:20px;margin:6px 0 0}.billing-detail-modal .billing-invoice-heading>div:last-child{gap:8px}.billing-detail-columns{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px;padding-top:20px}.billing-detail-columns>section{min-width:0}.billing-summary-panel .billing-detail-grid{padding:0 0 20px;gap:18px 14px}.billing-payment-panel{border-left:1px solid var(--line);padding-left:22px}.billing-payment-panel>h4{font-size:13px;margin:0 0 14px}.billing-detail-modal .billing-wallet{padding:15px;margin:0}.billing-detail-modal .billing-wallet code{font-size:12px}.billing-detail-modal .billing-wallet p{font-size:11px}.billing-detail-modal .billing-claim{padding:14px}.billing-claim .billing-tx-link{display:flex;align-items:center;gap:8px;width:100%;min-width:0}.billing-tx-link span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.billing-tx-link svg{width:14px;height:14px;flex-shrink:0}.billing-detail-modal .billing-snapshot-wallet{font-size:9px;overflow-wrap:anywhere}.billing-review-note .field{margin-top:14px}.billing-detail-modal .billing-review-note textarea{height:76px;min-height:76px!important;max-height:130px;resize:vertical;rows:3}.billing-detail-modal .billing-review-note label{font-size:11px}.billing-review-actions{justify-content:flex-end;margin-top:12px;gap:8px}.billing-detail-modal .billing-verification-note{font-size:10px;line-height:1.6;color:var(--muted);margin:12px 0 0}.billing-no-claim{padding:22px 15px;border:1px dashed var(--line);border-radius:10px;font-size:12px;color:var(--muted)}.billing-table-wrap{overflow-x:auto;min-height:300px}.billing-invoice-table{width:100%;table-layout:auto!important;border-collapse:collapse;min-width:800px}.billing-invoice-table th{padding:14px 20px;font-size:10px;font-weight:600;color:var(--muted);text-align:left;white-space:nowrap;background:var(--bg);border-bottom:1px solid var(--line)}.billing-invoice-table td{padding:16px 20px;height:78px;border-bottom:1px solid var(--line);font-size:12px;vertical-align:middle}.billing-invoice-table td strong{font-size:13px;font-weight:600}.billing-invoice-table td small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.billing-invoice-table td .billing-currency{display:inline;font-size:9px}.billing-invoice-table td:last-child{text-align:right}.billing-invoice-table .empty{min-height:220px}.billing-invoice-table .btn{font-size:11px;padding:7px 11px;min-height:32px}@media(max-width:720px){.billing-detail-modal{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}.billing-detail-modal .drawer-body{padding:18px}.billing-detail-columns{grid-template-columns:1fr;gap:20px}.billing-payment-panel{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:18px}.billing-detail-modal .billing-invoice-heading{flex-direction:row}.billing-detail-modal .billing-invoice-heading strong{font-size:22px}.billing-detail-modal .drawer-foot{padding:12px 18px}}
.two-factor-panel{margin-top:22px}.two-factor-panel .card-body p,.two-factor-modal p{font-size:12px;line-height:1.8;color:var(--muted)}.two-factor-panel .actions{margin-top:18px}.two-factor-panel small{color:var(--muted);font-size:11px}.two-factor-modal{width:min(680px,94vw);max-height:90dvh;display:flex;flex-direction:column}.two-factor-modal .drawer-body{min-height:0;overflow:auto}.two-factor-pair{display:grid;grid-template-columns:190px 1fr;gap:22px;align-items:center;margin-bottom:22px}.two-factor-pair svg{display:block;width:190px;height:190px;background:#fff;border-radius:12px}.two-factor-pair ol{padding-left:18px;font-size:12px;line-height:1.8;color:var(--muted)}.two-factor-pair code{display:block;overflow-wrap:anywhere;font-size:12px;line-height:1.8;background:var(--bg);padding:10px;border-radius:7px}.two-factor-pair small{display:block;font-size:10px;color:var(--muted);margin-top:8px}.two-factor-recovery{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}.two-factor-recovery code{background:var(--bg);border:1px solid var(--line);padding:10px;border-radius:7px;font-size:12px;user-select:all}#two-factor-error{font-size:12px;color:#e6808a;margin-top:12px}.company-duration{padding:15px 0;margin:6px 0 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.company-duration>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.company-duration>div>span{font-size:11px;color:var(--muted)}.company-duration>div>strong{font-size:20px;color:var(--text)}.company-duration dl{margin:14px 0}.company-duration dl>div{display:flex;justify-content:space-between;gap:10px;margin-top:8px;font-size:10px}.company-duration dt{color:var(--muted)}.company-duration dd{margin:0;font-size:10px;text-align:right}.company-grid .company-card{display:flex;flex-direction:column}.company-card>.btn.primary{margin-top:auto}.company-grid{align-items:stretch}@media(max-width:600px){.two-factor-pair{grid-template-columns:1fr}.two-factor-pair svg{margin:auto}.two-factor-recovery{grid-template-columns:1fr}.company-duration dl>div{flex-wrap:wrap}}
.field[hidden]{display:none!important}.billing-table-wrap{min-height:0}

/* Focused sign-in screen shared by management and company panels. */
.auth-screen.auth-login{display:flex;min-height:100vh;min-height:100dvh;background:var(--bg);justify-content:center;align-items:center;padding:32px 20px}
.auth-login .auth-main{width:100%;min-height:0;padding:0;background:transparent;display:flex;justify-content:center}
.auth-login .auth-box{width:100%;max-width:410px;padding:36px;background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 60px #0000000c}
.auth-login .brand{justify-content:center;gap:9px;padding:0;margin:0 0 34px;letter-spacing:0}
.auth-login .brand img.brand-icon{width:42px;height:42px;flex-basis:42px;margin-top:2px}
.auth-login .brand .brand-copy strong{font-size:39px}
.auth-login .brand .brand-copy small{font-size:12px}
.auth-login .auth-box h2{text-align:center;font-size:22px;margin:0 0 10px;letter-spacing:-.5px}
.auth-login .auth-box>p{text-align:center;line-height:1.6;margin-bottom:27px}
.auth-login #auth-form .btn.primary{width:100%;min-height:44px;margin-top:8px}
.auth-login .auth-box>p:last-child{margin-bottom:0}
@media(max-width:480px){.auth-screen.auth-login{padding:24px 16px}.auth-login .auth-box{padding:28px 23px}.auth-login .brand .brand-copy strong{font-size:36px}}

/* Align the sign-in brand with the form's left edge. */
.auth-login .brand{justify-content:flex-start;margin-bottom:34px}


/* Compact sign-in brand at every viewport width. */
.auth-login .brand{gap:6px;margin-bottom:30px}.auth-login .brand img.brand-icon{width:30px;height:30px;flex-basis:30px;margin-top:1px}.auth-login .brand .brand-copy strong{font-size:28px;letter-spacing:-.7px}.auth-login .brand .brand-copy small{font-size:9px;letter-spacing:-.1px}


/* Balanced, quiet sign-in composition. */
.auth-login .auth-box{max-width:420px;padding:38px 36px 28px;border-radius:16px;box-shadow:0 16px 50px #00000010}
.auth-login .brand{justify-content:center;gap:7px;margin:0 0 30px;padding:0 0 28px;border-bottom:1px solid var(--line)}
.auth-login .brand img.brand-icon{width:33px;height:33px;flex-basis:33px;margin-top:1px}
.auth-login .brand .brand-copy strong{font-size:31px;letter-spacing:-.8px}
.auth-login .brand .brand-copy small{font-size:10px;letter-spacing:-.1px}
.auth-login .auth-box h2{font-size:21px;margin:0 0 8px;font-weight:650}
.auth-login .auth-box>p{font-size:12px;margin:0 0 27px;color:var(--muted)}
.auth-login #auth-form .field{margin-bottom:19px}
.auth-login #auth-form input{min-height:44px;border-radius:9px}
.auth-login #auth-form .btn.primary{min-height:44px;margin-top:5px;border-radius:9px}
.auth-login .auth-box>p:last-child{margin:24px 0 0!important;font-size:10px!important}
@media(max-width:480px){.auth-login .auth-box{padding:30px 24px 24px}.auth-login .brand .brand-copy strong{font-size:31px}}

/* Compact login rhythm without a separate brand section. */
.auth-login .auth-box{padding:26px 30px 22px;max-width:400px}
.auth-login .brand{padding:0;border-bottom:0;margin:0 0 22px}
.auth-login .auth-box h2{margin-bottom:7px}
.auth-login .auth-box>p{margin-bottom:21px}
.auth-login #auth-form .field{margin-bottom:15px}
.auth-login #auth-form .btn.primary{margin-top:3px}
.auth-login .auth-box>p:last-child{margin-top:17px!important}
@media(max-width:480px){.auth-login .auth-box{padding:25px 24px 21px}}

.auth-login .auth-box>p.login-help{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:11px;line-height:1.65;color:var(--muted);text-align:center}

.auth-verification .field:has(input[name=email]),.auth-verification .field:has(input[name=password]){display:none}
.auth-verification input[name=two_factor_code]{text-align:center;font-size:23px;letter-spacing:5px;min-height:55px!important;font-weight:600}
.auth-verification .login-help{display:none}
.auth-verification .check{font-size:11px;line-height:1.5}

/* Consistent brand scale and clear navigation groups. */
.sidebar .brand{gap:8px;align-items:center;padding:0 12px 25px;min-height:68px}
.sidebar .brand img.brand-icon{width:32px;height:32px;flex-basis:32px;margin:0;align-self:center}
.sidebar .brand .brand-copy strong{font-size:29px;letter-spacing:-.8px}
.sidebar .brand .brand-copy small{font-size:9.5px;line-height:1.5}
.sidebar .nav-group-title{font-size:10px;font-weight:650;letter-spacing:1px;margin:22px 14px 9px;color:var(--muted)}
.sidebar .nav{padding:10px 12px;min-height:40px;margin:3px 0;font-size:12px}
#owner-livechat-launcher{position:fixed;right:24px;bottom:24px;z-index:900;display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);padding:12px 17px;border-radius:18px;box-shadow:0 8px 30px #0002;text-align:left;font-size:12px;font-weight:650}
#owner-livechat-launcher[hidden]{display:none}#owner-livechat-launcher img{width:28px;height:28px}#owner-livechat-launcher small{display:block;margin-top:3px;font-size:10px;color:var(--muted);font-weight:400}#owner-livechat-launcher:hover{border-color:var(--blue)}
#owner-widget-form textarea{min-height:210px;font-family:ui-monospace,monospace;font-size:12px}
@media(max-width:600px){#owner-livechat-launcher{right:14px;bottom:14px}}

.billing-select-cell{width:40px!important}.billing-select-cell input{width:16px;height:16px;accent-color:var(--blue)}.billing-retention-note{font-size:11px;line-height:1.6;margin:0 0 16px}

.efficiency-card{margin-top:24px}.efficiency-card .card-head small{display:block;margin-top:6px;color:var(--muted)}.efficiency-card table{min-width:920px}.efficiency-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.efficiency-results>div{padding:18px;border:1px solid var(--line);border-radius:12px}.efficiency-results small{display:block;color:var(--muted);margin-bottom:8px}.efficiency-results strong{font-size:20px}@media(max-width:760px){.efficiency-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
.efficiency-card table{table-layout:fixed!important;min-width:1050px}.efficiency-card th,.efficiency-card td{width:16.666%!important;padding:16px 20px;white-space:normal;overflow-wrap:anywhere}.efficiency-card th{font-size:10px;letter-spacing:.35px}.efficiency-card .record-id{line-height:1.6;margin-top:5px}.efficiency-card .form-grid input{width:100%;min-width:0}
.metrics-tab-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:6px;background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:24px}.metrics-tab{text-align:left;padding:13px 16px;border-radius:9px;transition:background .15s}.metrics-tab strong{display:block;font-size:13px;font-weight:600}.metrics-tab small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.metrics-tab.active{background:var(--soft);color:var(--blue)}.metrics-view[hidden]{display:none!important}.metrics-view>.card:first-child,.metrics-view>.efficiency-card:first-child{margin-top:0}.metrics-explanation{border:1px solid var(--line);border-radius:10px;margin-top:18px;color:var(--muted);font-size:12px}.metrics-explanation summary{cursor:pointer;padding:15px 18px;font-weight:550}.metrics-explanation>.metrics-note{padding:0 18px 14px;margin:0}.metrics-explanation>.card-body{padding:0 18px 18px}.metrics-explanation .metrics-explanation{margin-top:0}.scenario-save-bar{margin-top:22px;flex-wrap:wrap}.scenario-save-bar .muted{font-size:11px}.scenario-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}.scenario-group-title{grid-column:1/-1;font-size:11px;font-weight:650;color:var(--muted);letter-spacing:.5px;padding-top:14px;border-top:1px solid var(--line)}.scenario-group-title:first-child{padding-top:0;border-top:0}.scenario-panel .efficiency-results{grid-template-columns:repeat(3,minmax(0,1fr))}.record-local-engine{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:10px}.record-local-engine summary{cursor:pointer;font-weight:600}.record-local-engine .muted{font-size:11px;line-height:1.7}@media(max-width:800px){.metrics-tab-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.scenario-panel .efficiency-results{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.metrics-tab small{display:none}.metrics-tab{padding:12px 9px}.metrics-tab strong{font-size:12px}.scenario-panel .form-grid{grid-template-columns:1fr}.scenario-panel .efficiency-results{grid-template-columns:1fr}.scenario-save-bar .btn{width:100%}}
/* Shared content navigation: identical label/count geometry in all source pages. */
@media(min-width:951px){.content-layout{grid-template-columns:265px minmax(0,1fr);gap:22px}.category-panel{padding:20px 12px}.category-panel .category{width:100%;gap:8px;padding:12px}.category-panel .category-name{flex:1;min-width:0;font-size:12px;white-space:normal;overflow-wrap:normal;word-break:normal}.category-panel .category-count{flex:0 0 26px;text-align:right;font-size:10px}}
@media(max-width:950px){.category-panel .category-name{font-size:12px;white-space:nowrap}.category-panel .category-count{font-size:10px;flex:none}}
.engine-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.engine-summary{margin-bottom:20px}.engine-summary p{margin-bottom:0}.engine-table{min-width:760px}.engine-table td{vertical-align:middle}.engine-table td small{display:block;margin-top:6px}.engine-record-title{text-align:left;font-weight:650;color:var(--text)}.engine-rule-preview{max-width:330px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6}.engine-status-switch{width:38px;height:22px;padding:3px;background:#c9d1df;border-radius:20px}.engine-status-switch span{display:block;background:white;width:16px;height:16px;border-radius:50%;transition:transform .15s}.engine-status-switch.on{background:var(--blue)}.engine-status-switch.on span{transform:translateX(16px)}#engine-alias-field{grid-column:1/-1}

.category-panel .category .category-name{font-size:12px;margin-left:0;text-align:left}.category-panel .category .category-count{font-size:10px;margin-left:auto}
#engine-query,#engine-category{min-height:42px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text)}#engine-query{width:100%;max-width:420px;min-width:220px}#engine-category{min-width:180px}.engine-table .engine-record-title{font-size:13px;line-height:1.5}
