/* Original theme is retained verbatim. These rules scope the server-backed UI. */
.production{font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;background:#070c13;color:#edf5ff;height:100dvh;overflow:hidden}
.production *{box-sizing:border-box}.production button,.production input,.production select,.production textarea{font:inherit}
.production button:focus-visible,.production a:focus-visible,.production input:focus-visible,.production select:focus-visible,.production textarea:focus-visible{outline:2px solid #58d5ff;outline-offset:3px}
.production button:disabled{opacity:.5;cursor:not-allowed}.production a{color:#75c5ff}.production h1{font-size:24px;line-height:1.3;margin:0 0 8px}.production h2{font-size:17px;margin:0 0 12px}.production p{margin:0 0 12px}.production label{display:grid;gap:5px;color:#b9cbe0;font-size:13px}
.production .shell{height:100dvh;display:grid;grid-template-rows:68px 1fr;overflow:hidden}.production .top{height:68px;position:static;display:flex;gap:16px;padding:12px 20px;background:#09121e;border-bottom:1px solid #203247;align-items:center;justify-content:space-between;min-width:0}
.production .brand{display:flex;gap:10px;align-items:center}.production .brand b{font-size:14px;display:block}.production .brand small{font-size:10px;display:block;color:#8fa8c2}.production .logo{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#4dc8ff,#2c6be8);font-weight:900;color:white;flex-shrink:0}
.production .layout{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:0;height:auto}.production .side{display:flex;flex-direction:column;gap:3px;overflow:auto;padding:12px 9px;border-right:1px solid #203247;background:#080f19;min-width:0}.production .side button{display:flex;align-items:center;gap:10px;border:0;border-radius:9px;background:transparent;padding:10px;color:#90a8c1;text-align:left;font-size:12px;min-height:40px;width:100%;flex-shrink:0}.production .side button.active{background:#142b45;color:#fff;box-shadow:inset 3px 0 #378cff}.production .side button:hover{background:#102137}.production .side .ico{width:20px;text-align:center}.production .navStack b{display:block;font-size:12px;font-weight:650}.production .navStack small{display:block;font-size:9px;opacity:.65}.production .nav-foot{margin-top:auto;padding:20px 10px 4px;font-size:11px;color:#6e89a5}
.production .main{padding:26px;overflow:auto;min-height:0;height:auto;display:block}.production .content{max-width:1280px;margin:0 auto}.production .page-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;margin:0 0 20px}.production .page-head p{color:#8da6c1;font-size:13px}.production .eyebrow{font-size:10px;letter-spacing:1.5px;color:#61bfff;font-weight:700;margin-bottom:8px}.production .card{border:1px solid #20394f;background:#0d1928;border-radius:14px;padding:20px;min-width:0}.production .grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.production .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.production .kpi small{font-size:11px;color:#8da6c1}.production .kpi strong{display:block;font-size:32px;margin-top:8px;font-weight:650}.production .kpi em{font-size:10px;font-style:normal;color:#75d6b3}.production .stack{display:grid;gap:14px}.production .form-grid{display:grid;gap:13px;margin:0}.production .form-grid .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.production .input,.production .select,.production .textarea{width:100%;border:1px solid #29465e;border-radius:9px;padding:10px 12px;min-height:42px;background:#081320;color:#edf5ff;font-size:13px}.production .textarea{min-height:120px;resize:vertical}.production .btn{border:1px solid #2d4b67;border-radius:9px;background:#102238;color:#d8eaff;padding:9px 13px;min-height:40px;font-size:12px;font-weight:650;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.production .btn.primary{background:linear-gradient(135deg,#268ef0,#2862d8);border-color:#409dff;color:white}.production .btn.danger{background:#48202c;border-color:#71303e;color:#ffc4c9}.production .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.production .muted{color:#8da6c1}.production .small{font-size:11px}.production .badge,.production .status{display:inline-flex;align-items:center;gap:6px;border:1px solid #36536b;border-radius:999px;padding:4px 9px;color:#a8c5df;font-size:10px;white-space:nowrap}.production .status.green{color:#83e5be;border-color:#276149}.production .status.yellow{color:#f0cb7c;border-color:#66502b}.production .status.blue{color:#90cfff;border-color:#305a84}.production .banner{border:1px solid #4f452a;background:#221e15;border-radius:11px;padding:12px 15px;color:#e7c98b;font-size:12px;margin-bottom:20px}.production .banner.blue{background:#0b2237;border-color:#214c70;color:#a4d7ff}.production .empty{padding:35px 20px;text-align:center;color:#8da6c1;border:1px dashed #29435a;border-radius:11px}.production .empty strong{display:block;font-size:16px;color:#d8e9ff;margin-bottom:7px}.production .table-wrap{width:100%;overflow:auto}.production .table{width:100%;border-collapse:collapse;font-size:12px}.production .table th{color:#7896b4;font-size:10px;letter-spacing:.4px;font-weight:650}.production .table td,.production .table th{padding:12px 10px;text-align:left;border-bottom:1px solid #1d3349;white-space:nowrap}.production .table td.wrap{white-space:normal;min-width:180px}.production .item{border:1px solid #243e56;padding:14px;border-radius:10px;background:#0a1522}.production .item h3{font-size:14px;margin:0 0 4px}.production .item p{font-size:12px;margin:4px 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}.production .item select{max-width:220px}.production .chat-layout{display:grid;grid-template-columns:230px 1fr;gap:14px}.production .thread-button{display:block;text-align:left;width:100%;border:1px solid #213d55;background:#0a1726;color:#a8c4de;padding:14px;border-radius:10px;cursor:pointer}.production .thread-button.active{background:#133757;border-color:#3d8ac6}.production .thread-button b{display:block;font-size:13px}.production .thread-button small{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production .messages{height:340px;overflow:auto;border:1px solid #20394f;border-radius:10px;background:#07111c;padding:14px;margin:14px 0}.production .msg{font-size:13px;line-height:1.6;max-width:85%;width:fit-content;white-space:pre-wrap;overflow-wrap:anywhere;background:#15283c;padding:10px 13px;border-radius:10px;margin:10px 0}.production .msg.staff,.production .msg.ai{margin-left:auto;background:#143e5f}.production .msg.ai{background:#124039}.production .msg small{display:block;font-size:9px;color:#8eaac0;margin-top:6px}.production .auth-wrap{height:100dvh;overflow:auto;display:grid;place-items:center;padding:32px;background:radial-gradient(ellipse at 30% 10%,#142f52 0,transparent 55%),#070c13}.production .auth-grid{width:min(1060px,100%);display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center}.production .auth-intro h1{font-size:46px;line-height:1.12;letter-spacing:-1px;margin:25px 0}.production .auth-intro p{color:#99b2cb;max-width:430px}.production .auth-card{width:100%;padding:28px;border:1px solid #29435d;border-radius:18px;background:#0c1827}.production .auth-card h2{font-size:22px;margin-bottom:4px}.production .auth-tabs{display:flex;gap:6px;margin-bottom:22px}.production .auth-tabs .btn{flex:1}.production .auth-card .primary{width:100%;margin-top:4px}.production .auth-note{margin-top:18px;padding-top:15px;border-top:1px solid #21364b;font-size:11px;color:#809cb6}.production #notice{position:fixed;right:20px;bottom:20px;max-width:min(480px,90vw);z-index:1000;border-radius:10px;padding:0;background:#13344a;color:#e5f4ff;box-shadow:0 15px 45px #0006;font-size:13px}.production #notice:not(:empty){padding:14px 18px;border:1px solid #3c718d}.production .error{color:#ff9caa;white-space:pre-wrap;font-size:12px;min-height:18px}.production .boot{display:grid;place-items:center;height:100dvh;color:#83bff0}.production .top-actions{display:flex;align-items:center;gap:10px}.production .top-actions .select{min-width:0;max-width:200px;font-size:12px}.production .account-name{font-size:11px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production .menu-btn{display:none}.production .divider{height:1px;background:#233d54;margin:17px 0}.production .mono{font:11px ui-monospace,monospace;overflow-wrap:anywhere;white-space:pre-wrap}.production .checklist{padding-left:20px;color:#a5bed6;font-size:13px}.production .checklist li{margin:10px 0}
@media(max-width:1000px){.production .grid4{grid-template-columns:1fr 1fr}.production .grid2{grid-template-columns:1fr}.production .auth-grid{gap:30px}.production .auth-intro h1{font-size:36px}.production .main{padding:20px}.production .account-name{display:none}}
@media(max-width:720px){.production .shell{grid-template-rows:62px 1fr}.production .top{height:62px;padding:10px 12px;gap:8px}.production .brand b{font-size:11px}.production .brand small{font-size:9px}.production .logo{width:31px;height:31px;font-size:12px}.production .top-actions .select{max-width:116px;padding:7px;min-height:36px}.production .top-actions{gap:6px}.production .top-actions .btn{padding:7px;min-height:36px;font-size:10px}.production .layout{grid-template-columns:1fr;position:relative}.production .side{display:none}.production .shell.menu-open .side{display:flex;position:absolute;top:0;bottom:0;left:0;width:230px;z-index:30;box-shadow:20px 0 60px #0009}.production .menu-btn{display:inline-flex!important;padding:5px!important;min-height:30px!important}.production .main{padding:17px 12px}.production h1{font-size:21px}.production .page-head{gap:8px;margin-bottom:15px}.production .card{padding:16px}.production .grid4{gap:8px}.production .kpi strong{font-size:26px}.production .kpi small{font-size:10px}.production .grid2{gap:12px}.production .auth-wrap{padding:22px 14px;display:block}.production .auth-grid{display:block;width:min(480px,100%);margin:0 auto}.production .auth-intro h1{font-size:28px;margin:22px 0 12px}.production .auth-intro p{font-size:12px}.production .auth-card{padding:20px;margin-top:24px}.production .auth-intro .actions{display:none}.production .chat-layout{grid-template-columns:1fr}.production .chat-layout>.stack{display:flex;overflow:auto;padding-bottom:5px}.production .thread-button{min-width:170px;max-width:220px}.production .messages{height:300px}.production .form-grid .row{grid-template-columns:1fr}.production .badge.top-mode{display:none}.production .page-head .actions{max-width:150px}.production .banner{font-size:11px}.production .nav-foot{padding-top:15px}}
@media(prefers-reduced-motion:reduce){.production *{animation:none!important;transition:none!important}}
/* Earlier prototype patches use !important globally. Keep the live shell within its grid. */
.production .layout{height:100%!important;min-height:0!important}
.production .main{height:100%!important;min-height:0!important}
.production .top{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;position:static!important;height:68px!important}
.production .top-actions{width:auto!important;min-width:0!important;margin:0!important;overflow:hidden!important}
@media(max-width:720px){
 .production .top{height:62px!important;padding:9px 10px!important;gap:8px!important;flex-wrap:nowrap!important}
 .production .top .brand{flex:0 0 auto!important;min-width:0!important;gap:7px!important}
 .production .top .logo{width:31px!important;height:31px!important;min-width:31px!important}
 .production .top-actions{flex:1 1 auto!important;justify-content:flex-end!important;gap:6px!important}
 .production .top .top-mode{display:none!important}
 .production .top .select{width:116px!important;min-width:0!important;max-width:116px!important;height:36px!important;min-height:36px!important}
 .production .top .btn{height:36px!important;min-height:36px!important;padding:5px 9px!important;font-size:11px!important}
 .production .top .menu-btn{display:inline-flex!important;width:31px!important;min-width:31px!important;padding:4px!important}
 .production .main{padding:17px 12px 28px!important;scroll-padding-bottom:20px!important}
 .production .shell.menu-open .side{display:flex!important;height:100%!important}
}
