:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#1b2634;background:#f6f8fc}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:10px 15px;display:inline-flex;gap:8px;align-items:center;justify-content:center;background:#2265d1;color:#fff;font-weight:600;transition:background-color .15s ease,opacity .15s ease}button:hover:not(:disabled){filter:brightness(.96)}button:disabled{opacity:.55;cursor:not-allowed}.layout{display:flex;height:100vh;height:100dvh;min-height:0;overflow:hidden}aside{position:fixed;inset:0 auto 0 0;width:240px;height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;background:#111d30;color:#fff;padding:24px 16px;display:flex;flex-direction:column;gap:12px;transition:width .2s ease,padding .2s ease}.aside-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.brand{display:flex;gap:10px;align-items:center;font-weight:750;font-size:18px;white-space:nowrap;min-width:0}.sidebar-toggle{background:transparent;color:#a5b6ce;padding:6px;border-radius:8px;flex-shrink:0}.sidebar-toggle:hover:not(:disabled){background:#20324a;color:#fff;filter:none}.aside-sub{font-size:12px;color:#a5b6ce;margin:0 0 20px 34px}nav{display:grid;gap:6px}.nav-item{position:relative;width:100%;justify-content:flex-start;background:transparent;color:#bfccdd;padding:11px 12px;border-radius:9px;font-weight:500;text-align:left;white-space:nowrap}.nav-item:hover:not(:disabled){background:#20324a;color:#fff;filter:none}.nav-item.active{background:#2265d1;color:#fff;font-weight:600}.nav-badge{margin-left:auto;background:#ffffff29;color:#fff;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}.aside-foot{margin-top:auto}.ghost{background:transparent;border:1px solid #53647b;color:#dce5f2;width:100%;white-space:nowrap}.content{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;margin:0 0 0 240px;width:calc(100% - 240px);padding:36px 42px;transition:margin-left .2s ease,width .2s ease}.layout.sidebar-collapsed aside{width:74px;padding:20px 12px;align-items:center}.layout.sidebar-collapsed .aside-head{flex-direction:column;gap:10px;margin-bottom:8px}.layout.sidebar-collapsed nav{width:100%}.layout.sidebar-collapsed .nav-item{justify-content:center;padding:11px}.layout.sidebar-collapsed .nav-badge{position:absolute;top:4px;right:4px;padding:1px 5px;font-size:10px;line-height:1.3;background:#2265d1;border:1px solid #111d30}.layout.sidebar-collapsed .nav-item.active .nav-badge{background:#111d30}.layout.sidebar-collapsed .aside-foot{width:100%}.layout.sidebar-collapsed .ghost{padding:10px}.layout.sidebar-collapsed .content{margin-left:74px;width:calc(100% - 74px)}.content-inner{max-width:1150px;margin:0 auto}header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px;flex-wrap:wrap}.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}h1{font-size:27px;margin:0 0 6px}h2{font-size:18px;margin:0}header p,.panel p{color:#778496;margin:0}.secondary{background:#fff;color:#355075;border:1px solid #d9e1ed}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.stats article,.panel{background:#fff;border:1px solid #e3e8f0;border-radius:14px;padding:22px;box-shadow:0 2px 9px #25355308}.stats article{display:flex;flex-direction:column;gap:8px}.stats article.clickable{cursor:pointer;transition:border-color .15s ease,transform .15s ease}.stats article.clickable:hover{border-color:#9ebef0;transform:translateY(-1px)}.stats span{color:#7c899a;font-size:13px}.stats strong{font-size:25px}.stats small{color:#8c99a9}.panel{margin-bottom:22px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.section-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pill{background:#e9f0ff;color:#2863bf;border-radius:20px;font-size:12px;padding:5px 11px;font-weight:600}.panel p{font-size:13px;margin-bottom:15px}textarea,input{border:1px solid #d5deec;border-radius:9px;padding:12px 13px;width:100%;outline:none}textarea:focus,input:focus,select:focus{border-color:#2265d1}textarea{resize:vertical;display:block;margin-bottom:13px}.panel select{display:block;width:100%;margin:8px 0 16px;padding:10px 11px;border:1px solid #d5deec;border-radius:9px;background:#fff;color:#1b2634}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{color:#8490a2;font-weight:600;white-space:nowrap}td,th{padding:12px 10px;border-bottom:1px solid #edf0f5;vertical-align:middle}.status{display:inline-block;border-radius:20px;padding:4px 10px;background:#eaf0fa;color:#59708a;font-size:12px;font-weight:600}.status.completed{background:#e4f7ed;color:#198657}.status.running{background:#eaf0ff;color:#2862ce}.status.failed{background:#ffebec;color:#bd3142}.empty{text-align:center;color:#8994a3;padding:28px}.muted{color:#8794a5;font-size:13px}footer{display:flex;align-items:center;gap:7px;color:#91a0ae;font-size:12px;margin-top:8px}.alert{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff1f1;color:#a82e34;border:1px solid #ffcacc;padding:12px 14px;border-radius:9px;margin-bottom:20px;overflow-wrap:anywhere;font-size:13px}.alert button{background:transparent;color:#a82e34;padding:4px 8px;font-size:12px;flex-shrink:0}.login{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(100%,410px);background:#fff;border:1px solid #e2e7f0;border-radius:16px;padding:34px;box-shadow:0 8px 30px #15294312}.login-card p{color:#8693a5;margin-bottom:30px}.login-card label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.login-card button{margin:16px 0;width:100%}.login-card small{color:#8b98a8;line-height:1.6;display:block}.session-toggle{display:flex;align-items:center;gap:9px;margin:12px 0;font-size:13px;color:#40546d;cursor:pointer}.session-toggle input{width:16px;height:16px;padding:0}.session-current{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 14px;padding:10px 12px;background:#f5f8fd;border:1px solid #e1e9f6;border-radius:9px;font-size:13px;color:#53657c}.session-current code{overflow-wrap:anywhere;font-weight:600;color:#243b5a}.session-current .secondary{padding:6px 10px;margin-left:auto}.danger{width:auto;color:#b83245;border-color:#f0c7cc;padding:7px 10px}.session-action{width:auto;padding:7px 10px;margin:2px 4px 2px 0}.chat-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}.chat-selectors{display:flex;gap:12px;flex:1 1 300px;flex-wrap:wrap}.chat-selectors label{display:grid;gap:5px;flex:1 1 180px;color:#718096;font-size:12px;font-weight:600}.chat-selectors select{margin:0!important}.chat-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chat-actions .session-toggle{margin:0}.system-prompt-settings{margin:12px 0;border:1px solid #e3e8f0;border-radius:10px;padding:12px 14px}.system-prompt-settings summary{cursor:pointer;color:#40546d;font-weight:650}.system-prompt-settings summary span{margin-left:8px;color:#8c99a9;font-size:12px;font-weight:400}.system-prompt-settings p{margin:8px 0 12px!important}.saved-prompt-controls{display:flex;gap:8px;align-items:center;margin-bottom:10px;flex-wrap:wrap}.saved-prompt-controls select,.saved-prompt-controls input{flex:1 1 150px;width:auto;margin:0;padding:9px}.saved-prompt-controls button{padding:9px 11px}.saved-prompt-controls .danger{width:auto}.system-prompt-settings textarea{margin-bottom:0}.chat-transcript{display:flex;flex-direction:column;gap:12px;height:min(56dvh,620px);min-height:280px;overflow:auto;padding:16px;margin:12px 0;background:#f6f8fc;border:1px solid #e4eaf2;border-radius:12px;scroll-behavior:smooth}.chat-bubble{max-width:85%;padding:12px 15px;border-radius:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.chat-bubble small{display:block;font-size:11px;font-weight:700;opacity:.7;margin-bottom:5px}.chat-bubble.user{align-self:flex-end;background:#2265d1;color:#fff;border-bottom-right-radius:4px}.chat-bubble.assistant{align-self:flex-start;background:#fff;border:1px solid #e0e6ef;color:#26364a;border-bottom-left-radius:4px}.chat-bubble.typing{opacity:.75}.chat-bubble div{overflow-wrap:anywhere}.empty-chat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;height:100%;margin:0;color:#8995a5;text-align:center}.empty-chat strong{color:#43546c;font-size:15px}.chat-composer{display:flex;align-items:flex-end;gap:10px}.chat-composer textarea{flex:1;min-height:54px;max-height:180px;margin:0}.chat-composer button{min-height:48px}.composer-hint{display:block;color:#8995a5;margin:7px 2px;font-size:12px}.usage-panel{padding:20px 23px}.usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.usage-window{border:1px solid #e8edf4;border-radius:11px;padding:14px 16px}.usage-window>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.usage-window span{color:#6f7f93;font-size:13px}.usage-window strong{font-size:18px;color:#26364a}.usage-track{height:8px;background:#edf1f7;border-radius:10px;margin:11px 0 8px;overflow:hidden}.usage-track i{display:block;height:100%;background:#3676db;border-radius:10px;transition:width .25s ease}.usage-track i.warn{background:#d9822b}.usage-track i.high{background:#d13b4c}.usage-window small,.usage-note{color:#8794a5;font-size:12px}.usage-note{margin:0!important}.agy-usage-grid{align-items:stretch}.agy-usage-group{min-width:0;border:1px solid #e8edf4;border-radius:12px;padding:15px;background:linear-gradient(180deg,#fbfcff,#fff)}.agy-usage-group-title{min-height:54px;margin-bottom:12px}.agy-usage-group-title h3{margin:0 0 5px;color:#26364a;font-size:15px}.agy-usage-group-title p{margin:0!important;color:#8794a5;font-size:12px;line-height:1.45}.agy-usage-buckets{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.agy-usage-buckets .usage-window{padding:12px;border-color:#edf0f5;background:#fff}.agy-usage-buckets .usage-window strong{font-size:16px}.agy-usage-buckets .usage-window small{line-height:1.5}.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.filter-pills{display:flex;gap:6px;flex-wrap:wrap}.filter-pill{padding:7px 12px;border-radius:20px;font-size:12px;background:#f1f4fa;color:#495d77;border:1px solid transparent}.filter-pill.active{background:#e9f0ff;color:#2265d1;border-color:#b9d0fb}.search-input{max-width:260px;padding:8px 12px;font-size:13px}.compact-btn{padding:7px 12px;font-size:13px}.error-cell{max-width:260px;color:#b83245;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-logout{display:none}@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:spin .9s linear infinite}@media(max-width:900px){.stats{grid-template-columns:repeat(2,1fr)}aside{width:190px}.content{margin-left:190px;width:calc(100% - 190px);padding:25px}.layout.sidebar-collapsed aside{width:74px}.layout.sidebar-collapsed .content{margin-left:74px;width:calc(100% - 74px)}}@media(max-width:650px){.layout{display:flex;flex-direction:column}aside,.layout.sidebar-collapsed aside{position:relative;inset:auto;width:100%;height:auto;flex:0 0 auto;overflow-y:auto;padding:12px 15px;align-items:stretch}.layout.sidebar-collapsed .aside-head{flex-direction:row;margin-bottom:0}.sidebar-toggle,.aside-sub,.aside-foot{display:none}.mobile-logout{display:inline-flex}nav{display:flex;flex-wrap:wrap;gap:6px}.nav-item,.layout.sidebar-collapsed .nav-item{width:auto;padding:7px 10px;font-size:13px}.content,.layout.sidebar-collapsed .content{height:auto;min-height:0;flex:1 1 auto;width:100%;margin:0;padding:18px;overflow-y:auto}header{align-items:flex-start}h1{font-size:22px}.stats{gap:8px}.stats article,.panel{padding:15px}.usage-grid{grid-template-columns:1fr}.chat-toolbar{align-items:stretch}.chat-selectors{flex-basis:100%}.chat-actions{justify-content:space-between}.chat-transcript{height:48dvh;min-height:220px;padding:12px}.chat-bubble{max-width:94%}.saved-prompt-controls{align-items:stretch}.saved-prompt-controls select,.saved-prompt-controls input{flex-basis:100%}.search-input{max-width:none}}
