@font-face{font-family:Abzar;src:url(./abzar-regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:Abzar;src:url(./abzar-bold.woff2) format("woff2");font-weight:700;font-display:swap}
:root{--orange:#f8740a;--blue:#364f70;--navy:#172b46;--ink:#162940;--muted:#52657d;--line:#dbe2ea;--light:#f3f6fa;--white:#fff}
*{box-sizing:border-box}html,body{margin:0}body{font:15px/1.9 Abzar,Tahoma,sans-serif;color:var(--ink);background:#e8edf3}
button,textarea{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.55}[hidden]{display:none!important}button:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #b95100;outline-offset:3px}
.frame{height:min(790px,calc(100dvh - 60px));min-height:390px;width:min(790px,calc(100% - 48px));margin:30px auto;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;border:1px solid #aebdce;border-radius:21px;background:white;box-shadow:0 20px 70px #19314e22}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 19px;background:var(--navy);border-bottom:3px solid var(--orange);color:white}
.identity{display:flex;align-items:center;gap:11px;min-width:0}.mark{width:44px;height:44px;display:grid;place-items:center;background:#fff;border-radius:12px;flex:none}.mark img{display:block;width:34px;height:34px;object-fit:contain}.avatar{width:35px;height:35px;display:grid;place-items:center;background:#fff;border:1px solid #d5deea;border-radius:10px;flex:none}.avatar img{width:24px;height:24px;object-fit:contain}
.identity h1{font-size:16px;line-height:1.45;margin:0;font-weight:700}.identity p{font-size:11px;line-height:1.45;margin:3px 0 0;color:#d5e0ee}.controls{display:flex;align-items:center;gap:7px;flex:none}.icon-button,.send{min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border-radius:10px;flex:none}.icon-button{background:transparent;border:1px solid #68819f;color:#fff}.icon-button:hover{background:#324b6c}.icon-button:focus-visible{outline-color:#ffad6a}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.scroll{min-block-size:0;overflow:auto;padding:22px 22px 12px;scrollbar-gutter:stable}.thread{display:grid;gap:17px;max-width:650px;margin:auto}.divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;margin-block-end:2px}.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}.message{display:flex;align-items:flex-start;gap:8px;max-width:min(88%,610px);min-width:0}.message.user{margin-inline-start:auto;justify-content:flex-end}.bubble{background:var(--light);border:1px solid #e1e8ef;padding:11px 14px;border-radius:4px 13px 13px 13px;min-width:0;overflow-wrap:anywhere}.bubble p{margin:0}.bubble p+p{margin-top:9px}.speaker{display:block;color:#405b7e;font-size:11px;font-weight:700;margin-block-end:4px}.message.user .bubble{background:var(--blue);color:white;border:1px solid var(--blue);border-radius:13px 13px 4px 13px}.message.user .speaker{color:#e1e9f3}.q-list{margin:8px 0 0;padding-inline-start:20px}.q-list li+li{margin-block-start:2px}
.source{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;min-height:44px;margin-block-start:10px;border-radius:8px;border:1px solid #a8bacd;background:#fff;color:#304e75;font-size:12px;font-weight:700;text-align:right}.source:hover,.chip:hover{background:#eaf0f7}.source .icon{width:15px;height:15px}
.chips{display:flex;flex-wrap:wrap;gap:7px;padding-inline-start:43px}.chip{min-height:44px;padding:7px 11px;border:1px solid #b9c8d8;background:#fff;border-radius:21px;color:#334f74;font-size:12px;font-weight:700;text-align:right}.typing{color:var(--muted);font-size:12px;margin:0;padding-inline-start:43px}
.footer{border-top:1px solid var(--line);padding:11px 20px max(10px,env(safe-area-inset-bottom));background:#fff}.compose{max-width:650px;margin:auto;display:flex;align-items:flex-end;gap:6px;padding:5px;border-radius:14px;border:1px solid #9aaec5;background:#fff}.compose:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px #dfe8f5}.compose textarea{display:block;min-height:44px;max-height:120px;flex:1;min-width:0;border:0;resize:vertical;background:transparent;padding:8px 8px 6px;line-height:1.8;outline:0}.compose textarea:focus-visible{outline:0}.compose textarea::placeholder{color:#5d6f86}.send{border:0;background:var(--orange);color:var(--navy)}.send:hover:not(:disabled){background:#ff9a43}.send .icon{transform:rotate(-90deg);width:20px;height:20px}.quota{max-width:650px;margin:4px auto 0;color:var(--muted);font-size:11px;display:flex;align-items:center;gap:7px}.quota::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--orange)}
dialog{width:min(430px,calc(100% - 30px));padding:19px;border:1px solid #a8b8c9;border-radius:15px;color:var(--ink);background:#fff}dialog::backdrop{background:#111f3499}dialog h2{margin:0 0 9px;font-size:20px}dialog p{margin:5px 0 10px}.history-item,.close{min-height:44px;border:1px solid #b3c1d2;border-radius:8px;background:#f1f5fa;padding:6px 10px;text-align:right;font-weight:700}.history-item{display:block;width:100%;margin:8px 0}.close:hover,.history-item:hover{background:#e4edf8}
.sr{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:560px){body{background:#fff}.frame{width:100%;height:100dvh;min-height:320px;margin:0;border:0;border-radius:0;box-shadow:none}.bar{padding:10px 11px;gap:4px}.identity{gap:7px}.identity h1{font-size:14px}.mark{width:39px;height:39px}.mark img{width:29px;height:29px}.controls{gap:5px}.scroll{padding:13px 10px 12px;scrollbar-gutter:auto}.thread{gap:14px}.message{max-width:94%;gap:5px}.bubble{padding:9px 10px;font-size:14px}.avatar{width:29px;height:29px}.avatar img{width:21px;height:21px}.chips,.typing{padding-inline-start:34px}.chip{font-size:11px;padding-inline:8px}.footer{padding:8px 10px max(7px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

body{background:#e7edf4}
.frame{width:min(824px,calc(100% - 48px));margin-block:22px;height:min(826px,calc(100dvh - 44px));border-color:#b5c4d6;border-radius:17px}
.bar{background:#fff;color:var(--navy);border-bottom:1px solid #c6d3e1;min-height:72px}
.identity p{color:#52657d}.mark{background:#f5f7fa;border:1px solid #dbe2ea;border-radius:11px}.identity h1{font-size:17px}
.icon-button{color:#284568;background:#f4f7fb;border-color:#a9bbcf}.icon-button:hover{background:#e2ebf5}.icon-button:focus-visible{outline-color:#b95100}
.scroll{background:#f6f8fb;padding-block-start:17px}.thread{gap:14px;max-width:670px}
.message.assistant{width:min(100%,650px);max-width:100%}.assistant .bubble{width:100%;background:#fff;border-color:#c9d6e5;border-radius:12px;border-inline-start:3px solid #a4b8d1}
.message.user{max-width:min(87%,560px)}.user .bubble{background:#e4edf7!important;color:#193451!important;border-color:#a7bdd6!important}
.user .speaker{color:#3b587b!important}.bubble{font-size:15px}.speaker{font-size:12px}
.answer-head{font-weight:700;color:#223a58}.q-list{margin-block-start:5px}
.references{margin:9px 0 0;border-top:1px solid #d9e3ee;padding-block-start:4px}
.references summary{cursor:pointer;color:#304e75;font-size:12px;font-weight:700;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}.references summary::-webkit-details-marker{display:none}.references summary::before{content:"+";font:700 17px/1 Abzar;width:18px;height:18px;text-align:center;border:1px solid #9db4ce;border-radius:5px}.references[open] summary::before{content:"−"}.ref-card{padding:8px 11px;background:#f1f5fa;color:#304966;border-radius:7px;margin-block-end:7px}.ref-card p{font-size:12px}
.feedback,.recovery{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.feedback button,.recovery button{min-height:44px;border:1px solid #adbed2;border-radius:8px;background:#fff;color:#2b496e;padding:5px 10px;font-size:12px;font-weight:700}.feedback button:hover,.recovery button:hover{background:#eaf2fb}.feedback button[aria-pressed=true]{border-color:#94531b;background:#fff1e1;color:#69370e}
.chips{padding-inline-start:43px}.chip{font-size:12px;min-height:44px}.typing{min-height:24px;max-width:670px;margin:4px auto 0}.typing[hidden]{display:none}
.footer{padding-top:8px}.footer-inner{max-width:670px;margin:auto}.compose-label{display:block;font-size:12px;font-weight:700;margin-block-end:4px}.compose{max-width:none;gap:7px}.compose textarea{font-size:16px;resize:none}
.send{min-inline-size:46px}.quota{max-width:none;justify-content:space-between}.quota::before{display:none}.quota small{font-size:11px}.status-box{margin-inline-start:43px;border:1px solid #bb865e;padding:9px 10px;background:#fff6eb;border-radius:9px}.status-box p{margin:0;color:#714016}.handoff{margin-inline-start:43px}
@media(max-width:560px){
 .frame{width:100%;height:100dvh;margin:0;border:0;border-radius:0;min-height:320px}.bar{min-height:62px}.identity h1{font-size:14px}.mark{width:38px;height:38px}.scroll{padding:10px}.thread{gap:10px}
 .bubble{font-size:14px}.message.assistant{max-width:100%}.message.user{max-width:92%}.chips,.typing{padding-inline-start:34px}.status-box,.handoff{margin-inline-start:34px}.quota small{font-size:10px}
}

:root{--ink:#1a2d42;--muted:#4f647d;--navy:#1b314a;--nav-blue:#364f70;--focus:#a2470a;--paper:#f3f6fa;--brand:#f8740a;--edge:#b7c9dc;--glass:#f7faff;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px)}
body{background:radial-gradient(ellipse at 18% 0%,#d2e0f1,transparent 53%),radial-gradient(ellipse at 93% 80%,#ffe2ca,transparent 51%),#e9edf5}
.frame{width:min(760px,calc(100% - 40px));height:min(828px,calc(100dvh - 40px));margin:20px auto;min-height:360px;border:1px solid #a9bdcf;border-radius:34px;background:#f4f7fb;box-shadow:0 25px 84px #243f6340;position:relative;grid-template-rows:auto minmax(0,1fr) auto;isolation:isolate}
.bar{min-height:0;margin:0;padding:13px 19px 10px;border:0;background:transparent;color:var(--navy);align-items:center;gap:12px}
.identity{gap:10px}.identity h1{font-size:16px;letter-spacing:-.02em}.identity p{font-size:11px;color:#516880}.mark{width:45px;height:45px;border:1px solid #d4dfeb;border-radius:17px;background:#fff;box-shadow:inset 0 -1px 1px #dbe4ee}.mark img{width:34px;height:34px}
.controls{border:1px solid #a9bfd6;border-radius:26px;background:var(--glass);gap:0;overflow:visible;padding:0 2px;box-shadow:0 2px 8px #233a5612,inset 0 1px 0 white}
@supports ((backdrop-filter:blur(14px)) or (-webkit-backdrop-filter:blur(14px))){.controls,.footer .compose{background:#ffffffd9;backdrop-filter:blur(14px) saturate(1.24);-webkit-backdrop-filter:blur(14px) saturate(1.24)}}
.icon-button{background:transparent;border:0;border-radius:22px;color:#304f73;min-width:44px;min-height:44px}.icon-button:hover,.icon-button:active{background:#dbe9f8}.controls .icon-button+.icon-button{margin-inline-start:1px}.icon-button .icon{width:19px;height:19px}
.scroll{background:transparent;padding:14px 23px 13px;margin:0;scrollbar-color:#bbcbdc transparent}
.thread{max-width:586px;gap:16px}.divider{gap:8px;font-size:11px;color:#4d6480;margin:0;justify-content:center}.divider::before,.divider::after{flex:none;width:16px;background:#aabed3}
.message.assistant{width:min(100%,570px);max-width:100%;align-items:start;gap:10px}.assistant .avatar{width:31px;height:31px;border:1px solid #c0d0e4;border-radius:12px;background:#fff}.assistant .avatar img{width:23px;height:23px}
.message.assistant .bubble{border:0;border-radius:0;background:transparent;padding:0 0 0 3px;line-height:1.85}.bubble{font-size:15px}.speaker{font-size:11px;margin-bottom:5px;color:#3e5875;line-height:1.35}
.message.user{max-width:min(85%,515px)}.message.user .bubble{padding:10px 15px;background:#203b5b!important;border:1px solid #203b5b!important;color:#fff!important;border-radius:21px 21px 5px 21px;box-shadow:0 3px 9px #22405b1b}.message.user .speaker{color:#e2edfb!important}
.answer-head{font-size:16px;font-weight:700;color:#1d354e}.q-list{padding-inline-start:18px;margin-block-start:6px}.q-list li+li{margin-block-start:4px}
.source{min-height:44px;max-width:100%;margin-block-start:10px;gap:7px;padding:4px 10px;border:1px solid #a5bacf;border-radius:14px;background:#fff;box-shadow:0 1px 2px #243f6013;font-weight:700;font-size:12px;color:#284b72}.source:hover,.source:active{background:#e6eef7}.source-mark{display:grid;place-items:center;border-radius:8px;width:25px;height:25px;background:#fcefdf;color:#933b00;border:1px solid #efc59d;font-size:12px;font-weight:700}
.feedback{gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}.feedback button{min-height:44px;min-width:44px;padding:5px 9px;background:transparent;border:0;border-radius:13px;color:#455e79;font-size:12px}.feedback button:hover{background:#e3edf7}.feedback button[aria-pressed=true]{background:#e5edf7;color:#21436d;box-shadow:inset 0 0 0 1px #a6bcd3}
.chips{gap:7px;padding-inline-start:41px}.chip{border:1px solid #9fb7ce;background:#eef4fa;border-radius:18px;padding:6px 11px;color:#23486e;font-size:12px;font-weight:700;min-height:44px}.chip:hover{background:#dbeafa}
.footer{background:transparent;border:0;padding:7px 20px max(11px,var(--safe-bottom));position:relative;box-shadow:0 -12px 20px #f4f7fb}
.footer-inner{max-width:586px}.compose-label{margin:0 13px 3px;color:#3e5872;font-size:11px}.compose{background:#fff;border:1px solid #97aec7;min-height:56px;border-radius:27px;box-shadow:0 4px 13px #223d6121,inset 0 1px 0 #fff;padding:5px 8px;align-items:end}.compose textarea{font-size:16px;min-height:44px;max-height:104px;color:var(--ink)}.compose textarea::placeholder{color:#536b85}
.send{min-inline-size:44px;min-block-size:44px;background:var(--brand);border-radius:50%;color:#172b46;box-shadow:inset 0 1px 0 #ffd1ad}.send:hover:not(:disabled){background:#ff973f}.send .icon{transform:none;width:20px;height:20px;stroke-width:2}
.quota{margin:5px 13px 0;color:#495f79;font-size:11px}.quota span:first-child::before{content:"";display:inline-block;width:5px;height:5px;margin-inline-end:5px;background:var(--brand);border-radius:50%;vertical-align:2px}
dialog{width:min(460px,calc(100% - 28px));max-height:min(70dvh,630px);border:1px solid #a9bfd6;border-radius:25px;padding:0;background:#f9fbfd;color:var(--ink);box-shadow:0 18px 62px #162f5b49;overflow:auto}
dialog::backdrop{background:#12294470}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 17px;border-bottom:1px solid #c2d2e2}.sheet-head h2{margin:0;font-size:17px}.sheet-head form{margin:0}.sheet-head .close{min-height:44px;border-radius:16px;font-size:12px;background:#e8f0f8;color:#294b72;border-color:#9bb4cc}
#dialogBody{padding:12px 17px 16px}.sheet-source{padding:13px;margin:0;border:1px solid #a9bdd3;border-radius:17px;background:white}.sheet-source strong{display:block;color:#243c5a}.sheet-source p{margin:5px 0 0}.source-kind{font-size:11px;color:#7c3c09}.status-box{margin-inline-start:41px}.typing{padding-inline-start:42px;max-width:586px}
@media(max-width:560px){
 body{background:#f4f7fb}.frame{width:100%;margin:0;height:100dvh;border:0;border-radius:0;box-shadow:none;background:linear-gradient(180deg,#e6eef8 0%,#f5f7fb 25%,#f4f7fb 100%)}
 .bar{padding:calc(8px + var(--safe-top)) 11px 7px}.identity h1{font-size:14px}.identity p{font-size:11px}.mark{width:40px;height:40px;border-radius:14px}.mark img{width:30px;height:30px}
 .scroll{padding:9px 11px 8px}.thread{gap:13px}.message.assistant{gap:7px}.assistant .avatar{width:28px;height:28px}.assistant .avatar img{width:20px;height:20px}.bubble{font-size:14px}.answer-head{font-size:15px}.chips,.typing{padding-inline-start:35px}.status-box{margin-inline-start:35px}.footer{padding:5px 10px max(9px,var(--safe-bottom))}.quota{margin-inline:9px}
 dialog{margin:auto auto 0;width:100%;max-width:none;border-block-end:0;border-radius:25px 25px 0 0;padding-bottom:var(--safe-bottom)}
}
@media(prefers-reduced-transparency:reduce){.controls,.footer .compose{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:no-preference){dialog[open]{animation:sheet-in .18s ease-out}@keyframes sheet-in{from{transform:translateY(10px);opacity:.5}to{transform:translateY(0);opacity:1}}}

:root{--panel-paper:#f6f9fc;--panel-rule:#b6c7d9;--panel-soft:#e8f0f8;--panel-text:#1a3858}
body{min-height:100dvh}
.workspace{width:min(1190px,calc(100% - 44px));margin:20px auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,345px);gap:14px;align-items:stretch}
.workspace .frame{width:100%;margin:0;min-width:0}
.app-tabs{display:none}
.account-panel{height:min(828px,calc(100dvh - 40px));min-height:360px;overflow:auto;scrollbar-width:thin;scrollbar-color:#aebed0 transparent;color:var(--ink);background:var(--panel-paper);border:1px solid #acbed1;border-radius:31px;box-shadow:0 20px 68px #243f632f}
.account-head{display:flex;align-items:center;gap:12px;padding:17px 17px 12px;border-block-end:1px solid #c8d5e3}
.account-head h2{margin:0;font-size:17px;line-height:1.45;color:var(--navy)}.account-head p{margin:3px 0 0;font-size:11px;color:#536c86}.person{width:42px;height:42px;flex:none;border:1px solid #a6bbd1;border-radius:15px;background:#e7eef7;color:#294e75;display:grid;place-items:center}.person .icon{width:22px;height:22px}
.account-body{padding:13px;display:grid;gap:12px}.account-section{display:grid;gap:8px}.account-section h3{font-size:14px;line-height:1.5;margin:0}.subtle{font-size:12px;color:#4c627d;margin:0}.balance-card{padding:12px 13px 10px;border:1px solid #a4bad2;border-radius:18px;background:linear-gradient(135deg,#203b5b,#304e74);color:#fff}
.balance-card h3{font-size:12px;font-weight:700;color:#e4eefb}.balance-line{display:flex;align-items:baseline;gap:7px;margin-block:2px 8px}.balance-line strong{font-size:35px;line-height:1.23}.balance-line span{font-size:12px;color:#e4effc}
.balance-card dl{display:grid;gap:2px;border-top:1px solid #69819d;padding-top:5px;margin:0}.balance-card dl div{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.balance-card dt{font-size:11px;color:#e5effc}.balance-card dd{font-weight:700;font-size:12px;margin:0;color:#fff}
.account-action,.pack-select{min-height:44px;border:1px solid #95aec7;border-radius:14px;padding:6px 10px;background:#fff;color:var(--panel-text);font-size:12px;font-weight:700;text-align:center}
.account-action:hover,.pack-select:hover{background:#e0edf9}.account-action.strong{background:#f8740a;border-color:#f8740a;color:#172b46}.account-action.strong:hover{background:#ff9a43}.account-action.logout{background:#fff;color:#712d2a;border-color:#c6a2a0}.account-action.logout:hover{background:#fff1ef}
.scope-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 9px 5px;color:#2d5279;font-size:11px}.scope-line button{min-height:44px;border:1px solid #a0b6cb;border-radius:12px;background:#fff;color:#294b70;font-size:11px;padding:4px 7px}.account-loading{min-height:18px;color:#4c627d;font-size:11px;margin:0}.account-loading:empty{display:none}
.course-list{display:grid;gap:5px;margin:0;padding:0;list-style:none}.course-list li{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:6px 8px;border:1px solid #b3c6da;border-radius:13px;background:#fff;min-width:0}.course-list h4{margin:0;font-size:11px;line-height:1.55;color:#203c5d}.course-list small{display:block;color:#4f6480;font-size:10px}.course-list .account-action{padding-inline:8px;flex:none}.account-divider{margin:0;border:0;border-block-start:1px solid #c4d3e2}
.signin{display:grid;gap:8px;margin:0}.signin label{font-size:12px;font-weight:700}.signin input{font:16px Abzar,Tahoma,sans-serif;width:100%;padding:8px 11px;border-radius:13px;background:#fff;border:1px solid #91abc5;color:#213e60;min-height:44px}.signin input:focus-visible{outline:3px solid #a2470a;outline-offset:2px}.signin .account-action{justify-self:stretch}.signin p{margin:0}
.pack-list{display:grid;gap:8px}.pack-select{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:right;padding:8px 10px}.pack-select small{font-weight:400;color:#506883}.pack-select[aria-pressed=true]{border-color:#a2490d;background:#fff0df;color:#733809}.pack-help{font-size:12px;color:#47627e}.pack-confirm{display:inline-flex;align-items:center;justify-content:center;margin-top:10px}
.linklike{color:#2d4c71;background:#fff;border:1px solid #a4b9d0;border-radius:14px;padding:5px 10px;font-size:12px;font-weight:700;min-height:44px}.linklike:hover{background:#eaf1fa}
@media(max-width:920px){.workspace{width:calc(100% - 24px);gap:10px;grid-template-columns:minmax(0,1fr) minmax(258px,300px)}.account-body{padding:10px}}
@media(max-width:730px){
 body{background:#f4f7fb}.workspace{width:100%;height:100dvh;min-height:360px;margin:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:0}
 .app-tabs{grid-row:1;display:flex;justify-content:center;gap:4px;padding:calc(6px + var(--safe-top)) 9px 5px;background:#e8eff8;border-bottom:1px solid #afc2d8;min-width:0}
 .app-tabs button{min-height:44px;min-width:90px;border:1px solid transparent;background:transparent;border-radius:16px;color:#314e71;font-size:12px;font-weight:700;padding:5px 12px;display:flex;align-items:center;justify-content:center;gap:6px}.app-tabs .icon{width:17px;height:17px}.app-tabs button:hover{background:#f6f9fc}.app-tabs button[aria-pressed=true]{background:#fff;border-color:#a3bbd4;box-shadow:0 1px 4px #24486d1b;color:#213d5e}
 .workspace .frame,.account-panel{grid-row:2;grid-column:1;height:100%;min-height:0;width:100%;border:0;border-radius:0;box-shadow:none}.workspace .frame{background:linear-gradient(180deg,#e9f0fa 0%,#f5f7fb 24%,#f4f7fb 100%)}
 .workspace[data-view=chat] .account-panel,.workspace[data-view=account] .frame{display:none}
 .workspace .bar{padding-block:8px 5px}.account-head{padding:13px 15px}.account-body{padding:12px 15px max(13px,var(--safe-bottom));gap:11px}
 .course-list h4{font-size:12px}.course-list small{font-size:11px}
}

:root{
 --night:#0e1623;--surface:#152233;--panel:#19283a;--raised:#243448;
 --light-text:#f4f7fc;--quiet-text:#b4c6dc;--edge-dark:#526983;--orange:#ff8b2d;--orange-soft:#ffd1ab;
 --ink:var(--light-text);--muted:var(--quiet-text);--navy:#15263d;--focus:#ffb578;
 --panel-text:#e9f2ff;--panel-rule:var(--edge-dark);--panel-paper:var(--night);
 color-scheme:dark;
}
body{
 color:var(--light-text);
 background:radial-gradient(ellipse at 86% 2%,#2e4059 0,transparent 48%),radial-gradient(ellipse at 5% 99%,#553221 0,transparent 51%),#0c131f;
}
.workspace{width:min(1240px,calc(100% - 60px));margin:24px auto;gap:18px;isolation:isolate}
.workspace .frame,.account-panel{height:min(850px,calc(100dvh - 48px));border-radius:31px;border:1px solid #455d78;box-shadow:0 28px 75px #03091270}
.workspace .frame{background:linear-gradient(146deg,#192a40 0%,#121e2e 38%,#0f1827 100%)}
.bar{padding:16px 23px 12px;min-height:72px;border-bottom:1px solid #3f546c;color:var(--light-text);gap:12px}
.identity{gap:11px}.identity h1{color:#fff;font-size:17px}.identity p{color:#b9cbe1;font-size:11px}.mark{border:1px solid #e2ecfa;border-radius:15px;background:#fff;box-shadow:0 4px 15px #0b111ab0}
.controls,.footer .compose{background:#1c2d43;color:#ecf4ff;border:1px solid #5e7490;box-shadow:inset 0 1px 0 #7388a655,0 5px 16px #060b16a0}
@supports ((backdrop-filter:blur(14px)) or (-webkit-backdrop-filter:blur(14px))){
 .controls,.footer .compose{background:#243650c9;backdrop-filter:blur(14px) saturate(1.18);-webkit-backdrop-filter:blur(14px) saturate(1.18)}
}
.icon-button{color:#f1f7ff;background:transparent}.icon-button:hover,.icon-button:active{background:#3a5575}.icon-button:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:var(--focus)}
.scroll{padding:22px 24px 12px;scrollbar-color:#536e90 transparent}
.thread{max-width:590px;gap:18px}.message.assistant{max-width:100%}.message.assistant .bubble{background:transparent;color:#edf3fb;line-height:1.8}.assistant .avatar{background:#eef5ff;border-color:#b1c3d8}.speaker{font-size:11px;color:#b4c7df}.answer-head{color:#f6faff;font-size:17px;line-height:1.65}
.message.user .bubble{background:#ff8b2d!important;color:#161f2f!important;border-color:#ffac65!important;border-radius:23px 23px 6px 23px;box-shadow:0 5px 20px #0a121c74;padding:11px 15px}.message.user .speaker{color:#34251c!important;font-weight:700}
.source{color:#fff1e4;border-color:#99816e;background:#342c2b;border-radius:16px;box-shadow:0 3px 9px #0d142077}.source:hover,.source:active{background:#49382c}.source-mark{background:#ffac65;color:#391b04;border-color:#ffc598}
.feedback{gap:3px}.feedback button{color:#c7d8ed}.feedback button:hover{background:#2f4866}.feedback button[aria-pressed=true]{background:#334d6b;color:#fff;box-shadow:inset 0 0 0 1px #758da9}.chip{border-color:#6a809b;background:#1d3047;color:#edf4fc}.chip:hover{background:#334d6a}
.footer{box-shadow:none;background:linear-gradient(180deg,transparent,#101b2b 25%);padding-block:9px max(13px,var(--safe-bottom))}.compose-label,.quota{color:#bfd1e7}.compose:focus-within{border-color:#ffae70;box-shadow:0 0 0 2px #e88b4d4f}.compose textarea{color:#f6f9ff}.compose textarea::placeholder{color:#bbcee4}.send{background:#ff8b2d;color:#16283e;box-shadow:0 3px 8px #ff8b2d40,inset 0 1px 0 #ffcd9d}.quota span:first-child::before{background:#ff9f54}.scope-line{color:#d3e4f7}.scope-line button{background:#253a55;color:#f0f5ff;border-color:#657e9d}
.account-panel{background:linear-gradient(170deg,#182638,#111a28 76%);scrollbar-color:#516984 transparent}.account-head{padding:17px 16px 13px;border-color:#4b617b}.account-head h2{color:#f3f8ff;font-size:17px}.account-head p{color:#bed0e5}.person{background:#263b55;color:#e9f3ff;border-color:#647d9a;border-radius:16px}
.account-body{padding:14px;gap:12px}.balance-card{position:relative;min-height:170px;overflow:hidden;border:1px solid #ad7753;border-radius:20px;padding:13px 14px 10px;
 background:#2b231f;isolation:isolate;
 color:#fff5ea;box-shadow:0 8px 23px #050a1450}
.balance-card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,#302219 15%,#2b231fdc 55%,#1a1c2270 100%)}
.balance-card .balance-art{position:absolute;inset:-13% 0 auto;width:100%;height:126%;object-position:right center;object-fit:cover;z-index:-2;pointer-events:none}
.balance-card .balance-art:not([src]){display:none}
.balance-card h3,.balance-card .balance-line span,.balance-card dt{color:#ffdbbf}.balance-line strong{font-size:47px;line-height:1.15;color:#fff;letter-spacing:-.02em}.balance-card dl{border-color:#98775f}.balance-card dd{color:#fff5ec}
.account-action,.pack-select,.linklike{background:#24384f;color:#eef6ff;border-color:#647f9e}.account-action:hover,.pack-select:hover,.linklike:hover{background:#334c68}.account-action.strong{background:var(--orange);color:#14253a;border-color:#ffae70;box-shadow:inset 0 1px #ffbf88;font-weight:700}.account-action.strong:hover{background:#ffac68}.account-action.logout{background:#1a2638;color:#ffc4b7;border-color:#8b6f73}.account-action.logout:hover{background:#493237}.course-list li{background:#1e2e42;border:1px solid #536c88;padding:7px 9px;border-radius:16px}.course-list h4{color:#f0f7ff;font-size:12px}.course-list small{color:#b7cce4;font-size:11px}.account-divider{border-color:#4a617c}.account-section h3{color:#eff5ff}.balance-card h3{color:#ffdbbf}.subtle,.account-loading{color:#b8cce4}.signin input{background:#1c2b41;color:#fff;border-color:#68819f}.signin input:focus-visible{outline-color:#ffb578}
dialog{background:#17263a;color:#f4f7fd;border:1px solid #637d9c;box-shadow:0 18px 62px #050911cb}dialog::backdrop{background:#070d19a6}.sheet-head{border-color:#526982}.sheet-head .close,.history-item{background:#263c56;color:#e9f4ff;border-color:#7791ad}.sheet-head .close:hover,.history-item:hover{background:#385571}.sheet-source{background:#20344e;color:#f1f7ff;border-color:#7791ad}.sheet-source strong{color:#f6f8fd}.source-kind,.pack-help{color:#f4cfac}.pack-select small{color:#c0d0e2}.pack-select[aria-pressed=true]{background:#5b3926;color:#fff6e9;border-color:#fc9950}
.status-box{background:#432e25;border-color:#a48168}.status-box p{color:#ffdab8}.recovery button{background:#293f58;color:#fff;border-color:#9eb1c7}.recovery button:hover{background:#405e7e}
@media(min-width:731px){
 body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(90deg,#0d1522f6 0%,#132038c9 60%,#151c2cdc 100%),url(./workshop-scene.68dd4ef44531.webp) center/cover no-repeat;opacity:.35}
}
@media(max-width:930px){.workspace{width:calc(100% - 30px);gap:11px}}
@media(max-width:730px){
 body{background:var(--night)}.workspace{width:100%;margin:0;gap:0}
 .workspace .frame,.account-panel{height:100%;border:0;border-radius:0;box-shadow:none}.workspace .frame{background:linear-gradient(160deg,#192940,#111a29 66%)}.account-panel{background:linear-gradient(175deg,#1e2f46,#111a29 74%)}
 .app-tabs{background:#141f31;border-color:#5d708b;gap:7px}.app-tabs button{min-width:92px;border-color:transparent;color:#bfcee1}.app-tabs button:hover{background:#2c425e}.app-tabs button[aria-pressed=true]{background:#2c4461;color:#fff;border-color:#728aa7;box-shadow:inset 0 1px 0 #8097b35c}
 .bar{padding:8px 11px 6px;min-height:59px}.identity h1{font-size:14px}.mark{border-radius:13px}.scroll{padding:13px 11px 8px}.thread{gap:14px}.bubble{font-size:14px}.answer-head{font-size:15px}.footer{padding-block:7px max(9px,var(--safe-bottom))}.account-body{padding:13px 15px max(14px,var(--safe-bottom));gap:11px}
}
@media(prefers-reduced-transparency:reduce){.controls,.footer .compose{background:#21334c;backdrop-filter:none;-webkit-backdrop-filter:none}}
.account-panel{display:grid;grid-template-rows:auto 1fr}.account-body{align-content:start}#signedIn{display:flex;flex-direction:column}.account-footer{display:grid;gap:9px;margin-top:auto;padding-block-start:6px}
[hidden]{display:none!important}
html{color-scheme:dark}
body{font:15px/1.9 Abzar,Tahoma,sans-serif}
.status-box{color:#ffdab8}.status-box p{color:#ffdab8}
.status-box .recovery{margin-block-start:8px}
.account-action:disabled{opacity:.68;cursor:default}
.account-capability{padding:10px;border:1px solid #536c88;border-radius:14px;background:#1d2c40}
.history-item{overflow-wrap:anywhere}
.message .bubble p{white-space:pre-wrap}
.send:disabled{opacity:.55}
.account-placeholder{min-width:0;min-height:360px;height:min(850px,calc(100dvh - 48px))}
#otpDialog{
  width:min(440px,calc(100% - 28px));max-width:none;max-height:none;
  margin:auto;padding:0;border:0;border-radius:26px;overflow:visible;
  background:none;box-shadow:none;transform-origin:top left;animation:none;
}
#otpDialog::backdrop{background:#080f1bc2;transition:background 200ms ease}
#otpDialog[data-returning]::backdrop{background:#080f1b00}
#otpDialog .account-panel{
  width:100%;height:auto;min-height:0;max-height:calc(100dvh - 32px);
  overflow:auto;border:1px solid #7890ae;border-radius:26px;
  box-shadow:0 22px 65px #050914ba;background:linear-gradient(145deg,#243850,#132137 70%);
}
#otpDialog .account-head{padding:15px 19px}
#otpDialog .account-body{padding:14px 19px 17px}
#otpDialog .account-body > .account-section{display:none}
.otp-field{position:relative;max-width:100%;border-radius:12px}
.otp-cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;pointer-events:none}
.otp-cells span{
  display:grid;place-items:center;min-height:45px;aspect-ratio:1;
  border:1px solid #6884a3;border-radius:9px;color:#fff5ed;background:#15253b;
  font-size:clamp(19px,5vw,25px);font-weight:700;
  transition:border-color 170ms ease,background 170ms ease,box-shadow 170ms ease;
}
.otp-cells span[data-filled]{background:#433229;border-color:#c78659}
.otp-field:focus-within .otp-cells span[data-current]{
  border-color:#ffad74;box-shadow:inset 0 0 0 1px #ffad74,0 0 0 2px #ffad7430;
}
#accountCode{
  position:absolute;inset:0;height:100%;padding:0;opacity:1;border:0;
  outline:0;background:transparent;color:transparent;caret-color:transparent;
}
#accountCode:focus-visible{outline:none}
.otp-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:5px}
#otpDialog #authStatus{color:#ffcfac}
@media(max-width:730px){
  .account-placeholder{grid-column:1;grid-row:2;min-height:0;height:100%}
  #otpDialog .account-head{padding:12px 13px}
  #otpDialog .account-body{padding:12px 13px 15px}
}
@media(prefers-reduced-motion:reduce){
  #otpDialog::backdrop,.otp-cells span{transition:none}
}
