:root{--bg:#070b0e;--rack:#28566a;--rack2:#183b4b;--panel:#11181e;--panel2:#0b1116;--line:#526773;--text:#f2f5f7;--muted:#aebac1;--blue:#56c9f2;--cream:#e7d79b;--green:#32d17d;--danger:#ff827a;--font:"Arial Narrow","Roboto Condensed","Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}html,body{min-height:100%;margin:0;background:radial-gradient(circle at 50% -20%,#1c2b33,#070b0e 46%);color:var(--text);font-family:var(--font)}button,input,textarea{font:inherit}button{color:inherit}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.rack-header{min-height:88px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:12px clamp(12px,3vw,42px);border-bottom:2px solid #8caab5;background:radial-gradient(circle at 14px 14px,#eee 0 2px,#68747a 3px 6px,transparent 7px),radial-gradient(circle at calc(100% - 14px) 14px,#eee 0 2px,#68747a 3px 6px,transparent 7px),repeating-linear-gradient(94deg,#ffffff08 0 1px,transparent 1px 4px),linear-gradient(#4a89a0,#28576a 58%,#173845);box-shadow:inset 0 0 0 3px #071116,0 8px 24px #0009}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:52px;height:52px;border:1px solid #abc0c9;background:linear-gradient(#1b252b,#070a0c);font-weight:900;font-size:15px;box-shadow:inset 0 0 12px #000}.brand strong,.brand small{display:block}.brand small,.product-title small{font-size:10px;letter-spacing:.17em;color:#cfdae0}.product-title{text-align:center}.product-title b{font-size:clamp(20px,2.5vw,34px);letter-spacing:.04em}.product-title span,.mobile-bar span{color:var(--cream)}.product-title small{display:block;margin-top:3px}.rack-button,.secondary,.text-button{min-height:44px;border:1px solid #8da1ab;background:linear-gradient(#27333a,#0d1215);cursor:pointer}.header-actions{justify-self:end;display:flex;gap:8px}.rack-button{padding:8px 14px}.primary{min-height:44px;padding:10px 18px;border:1px solid #8be2ff;border-radius:3px;background:linear-gradient(#23799a,#13485d);color:#fff;font-weight:800;cursor:pointer}.secondary{padding:9px 13px;border-radius:3px}.text-button{padding:8px 10px;border-color:transparent;background:transparent;color:var(--muted)}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.center-card{min-height:calc(100vh - 90px);display:grid;place-content:center;text-align:center;color:var(--muted)}.signal{width:14px;height:14px;margin:auto;border-radius:50%;background:var(--green);box-shadow:0 0 16px var(--green);animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.35}}
.auth-layout{min-height:calc(100vh - 90px);display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,460px);align-items:center;gap:clamp(30px,8vw,130px);width:min(1120px,calc(100% - 32px));margin:auto}.auth-copy h1{max-width:680px;margin:.2em 0;font-size:clamp(42px,7vw,78px);line-height:.92}.auth-copy p:not(.eyebrow){max-width:580px;color:var(--muted);font-size:19px}.eyebrow{margin:0 0 6px;color:var(--blue);font-size:11px;letter-spacing:.18em;font-weight:900}.panel{border:1px solid var(--line);background:linear-gradient(#151e24,#0b1014);box-shadow:inset 0 0 0 2px #050708,0 18px 50px #0008}.auth-panel,.profile-form{padding:24px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;margin-bottom:20px}.auth-tabs button{min-height:44px;border:0;border-bottom:2px solid var(--line);background:none;color:var(--muted);cursor:pointer}.auth-tabs button.active{border-color:var(--blue);color:#fff}.auth-panel label,.profile-form label,.dialog-form label{display:grid;gap:6px;margin:14px 0;color:var(--muted);font-size:13px}input,textarea{width:100%;border:1px solid #52616a;border-radius:3px;background:#070b0e;color:#fff;padding:11px 12px;font-size:16px}.auth-panel .primary{width:100%;margin-top:8px}.status{min-height:1.4em;margin:8px 0 0;color:var(--muted);font-size:13px}.status.error{color:var(--danger)}.status.ok{color:var(--green)}
select{width:100%;border:1px solid #52616a;border-radius:3px;background:#070b0e;color:#fff;padding:11px 12px;font-size:16px}
.notice{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;padding:10px clamp(12px,3vw,42px);border-bottom:1px solid #6c6542;background:#18170e;color:var(--cream);font-size:14px;line-height:1.35}.notice strong{letter-spacing:.02em}.notice span{color:#d9cf9f}
.profile-layout{display:grid;place-items:start center;padding:24px 16px}.profile-form{width:min(560px,100%)}.profile-form h2{margin:.1em 0 .4em}.profile-form label{display:grid;gap:6px;margin:14px 0;color:var(--muted);font-size:13px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.guide-dialog{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--line);border-radius:4px;background:linear-gradient(#151e24,#0b1014);color:var(--text);box-shadow:0 24px 80px #000;padding:24px}.guide-dialog::backdrop{background:#000c}.guide-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.guide-heading h2{margin:.1em 0}.guide-dialog h3{margin:20px 0 6px;color:var(--blue)}.guide-dialog p,.guide-dialog li{line-height:1.45}.guide-dialog ul{padding-left:22px}.guide-close{min-width:44px;min-height:44px;border:1px solid var(--line);background:#0b1116;color:var(--text);font-size:26px;cursor:pointer}.guide-warning{padding:10px 12px;border-left:3px solid var(--cream);background:#18170e;color:var(--cream)}
.chat-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;width:min(980px,100%);height:calc(100vh - 150px);min-height:460px;margin:0 auto;border:1px solid var(--line);border-top:0;background:var(--panel2)}
.chat-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);background:#0c1217}.chat-bar .eyebrow{margin:0}.chat-bar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.credit-card{display:flex;gap:10px;align-items:center;padding:8px 12px;border:1px solid #6c6542;background:#18170e;color:var(--cream)}
.messages{padding:18px;overflow:auto;display:flex;flex-direction:column;gap:12px}.message{max-width:min(82%,760px);padding:12px 15px;border:1px solid #3f4c53;background:#151d22;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.message.user{align-self:flex-end;border-color:#397a94;background:#173d4d}.message.assistant{align-self:flex-start}.message.error{border-color:#8f4b46;color:#ffc0bb}.message.hint{align-self:center;border-style:dashed;color:var(--muted);text-align:center}
.no-credits{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:0 12px 8px;padding:12px 14px;border:1px solid #8f4b46;background:#2a1513}.no-credits p{margin:0}.no-credits button[disabled]{opacity:.55;cursor:not-allowed}
.composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-top:1px solid var(--line)}.composer textarea{resize:none}.composer .primary{align-self:stretch}.composer .primary[disabled],.composer textarea[disabled]{opacity:.5;cursor:not-allowed}.chat-shell>.status{padding:0 12px 8px;margin:0}
@media(max-width:760px){.rack-header{min-height:68px;grid-template-columns:1fr auto}.header-actions{gap:4px}.rack-button{padding:8px}.brand-mark{width:42px;height:42px}.brand>span:last-child,.product-title{display:none}.notice{font-size:13px}.auth-layout{min-height:auto;grid-template-columns:1fr;padding:24px 0}.auth-copy h1{font-size:40px}.chat-shell{border-left:0;border-right:0;height:calc(100dvh - 150px)}.messages{padding:12px}.message{max-width:94%}.composer{grid-template-columns:1fr}.composer .primary{justify-self:end}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.docs-layout{display:grid;place-items:start center;padding:16px}.docs-panel{width:min(980px,100%);padding:20px}.docs-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.docs-top h2{margin:0}.docs-tabs{grid-template-columns:repeat(3,1fr);margin-top:14px}.docs-panel h3{margin:18px 0 0;color:var(--blue)}.docs-panel label{display:grid;gap:6px;margin:10px 0;color:var(--muted);font-size:13px}.docs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 14px}.table-wrap{overflow-x:auto}.docs-table{width:100%;border-collapse:collapse;margin-top:8px}.docs-table th,.docs-table td{padding:4px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;font-size:14px}.docs-table input{padding:7px 8px;font-size:14px;min-width:70px}.docs-table td.n{white-space:nowrap}.docs-total{text-align:right;font-size:18px}.logo-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.logo-preview{max-width:160px;max-height:90px;background:#fff;padding:4px;object-fit:contain}.file-btn{display:inline-flex;align-items:center;margin:0;padding:0 14px;cursor:pointer;min-height:40px}.docs-panel .hint{color:var(--muted)}
