@charset "UTF-8";
:root{color-scheme:dark;--bg:#0a0c17;--text:#f2f2fb;--muted:#999eb9;--stroke:rgba(230,230,255,.115);--accent:#a291ff;--error:#ff9eae;--radius:24px;font-family:"Segoe UI",Arial,sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);height:100dvh;overflow:hidden}button,input,textarea{font:inherit}button,a,input,textarea{outline-offset:4px}button{cursor:pointer;color:inherit;border:0}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid #b6a7ff}input:focus,textarea:focus{outline:0;border-color:#a596ff;box-shadow:0 0 0 3px #9781ff1c}button svg{flex-shrink:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.aurora{position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 10% 0%,#263e9b55,transparent 45%),radial-gradient(ellipse at 100% 4%,#6b3c9e40,transparent 46%),radial-gradient(ellipse at 45% 100%,#244c7940,transparent 48%),linear-gradient(125deg,#090d1a,#171226 85%)}.aurora:after{content:"";position:absolute;inset:0;background:linear-gradient(128deg,transparent 20%,#b7a2ff06 20.1%,transparent 47%,#d5c5ff05 47.1%,transparent 75%)}
.glass{background:linear-gradient(140deg,#e5e9ff0e,#d7d5ff05);border:1px solid var(--stroke);box-shadow:inset 0 1px 0 #ffffff09,0 16px 48px #03041026;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);border-radius:var(--radius)}h1,h2,p{margin:0}h1{font-size:32px;font-weight:600;letter-spacing:-1.1px}h2{font-size:19px;font-weight:550;letter-spacing:-.4px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2.2px;color:#a9a4c7;margin-bottom:9px}.muted,.caption,small{color:var(--muted)}.caption{font-size:12px;line-height:1.6}.dot{display:inline-block;width:7px;height:7px;background:#73dfb8;box-shadow:0 0 10px #64deb555;border-radius:50%;flex-shrink:0}
input,textarea{color:var(--text);width:100%;background:#0b102448;border:1px solid #c8c8ff16;border-radius:13px;padding:12px 14px;transition:border-color .18s,box-shadow .18s;min-width:0}input::placeholder,textarea::placeholder{color:#777e9b}textarea{resize:vertical;line-height:1.6;min-height:72px}label{display:block;font-size:12px;font-weight:500;color:#d1d2e5}label>input,label>textarea,label>.input-action{margin-top:8px}label>small{display:block;font-size:10px;font-weight:400;line-height:1.5;margin-top:7px}form label+label{margin-top:20px}.form-error{font-size:12px;line-height:1.5;color:var(--error);white-space:pre-wrap}.form-error:not(:empty){margin-top:14px}
.primary,.secondary,.icon-button{display:inline-flex;justify-content:center;align-items:center;gap:9px;transition:background .18s,transform .18s;min-height:42px;border-radius:13px;padding:10px 18px;font-size:12px;font-weight:550}.primary{background:linear-gradient(120deg,#8372eb,#6b68d3);box-shadow:inset 0 1px 0 #e9e1ff47,0 5px 20px #7161da25;border:1px solid #b5a9ff37}.primary:hover{filter:brightness(1.12)}.primary:active,.secondary:active{transform:translateY(1px)}.secondary{background:#c9c8ff0b;border:1px solid var(--stroke)}.secondary:hover,.icon-button:hover{background:#d3d1ff16}.icon-button{padding:10px;width:42px;flex-shrink:0;background:transparent}.wide{width:100%}.form-footer .primary{min-height:46px}
.login-view{height:100dvh;overflow:auto;display:grid;place-items:center;padding:26px}.login-card{width:440px;max-width:100%;padding:34px 44px}.login-logo{width:62px;height:62px;object-fit:contain;margin-bottom:22px}.login-card h1{font-size:36px;line-height:1.18;margin-bottom:16px}.login-card .muted{line-height:1.7;font-size:13px;margin-bottom:28px}.login-card .primary{margin-top:22px}.login-foot{border-top:1px solid var(--stroke);margin-top:26px;padding-top:20px;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}
.app-shell{display:grid;grid-template-columns:210px minmax(0,1fr);height:100dvh;padding:18px;gap:24px}.sidebar{border-radius:23px;display:flex;flex-direction:column;padding:26px 14px 14px;min-height:0}.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;padding:0 8px 34px;font-size:23px;font-weight:600;letter-spacing:-.7px}.brand img{width:43px;height:43px;object-fit:contain}.brand small{display:block;font-size:8px;letter-spacing:.4px;margin-top:4px;font-weight:400}.nav-caption{font-size:9px;letter-spacing:1.8px;color:#7b819e;padding:0 16px 14px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 16px;border-radius:13px;color:#a3a6bf;background:transparent;text-align:left;margin:4px 0;font-size:12px}.nav-item:hover{background:#cec7ff08;color:white}.nav-item.active{color:#eee8ff;background:linear-gradient(100deg,#a793fb25,#a793fb08);box-shadow:inset 0 0 0 1px #b2a3ff18}.nav-item.active svg{color:#b3a3ff}.nav-item small{margin-left:auto;font-size:10px;background:#cac0ff14;padding:2px 6px;border-radius:6px}.sidebar-note{margin-top:auto;padding:28px 15px 34px;position:relative;overflow:hidden}.sidebar-note p{font-size:20px;font-weight:300;line-height:1.55;letter-spacing:-.5px;color:#aaaac3;position:relative}.sidebar-note strong{font-weight:500;color:#dfd8f9}.note-orbit{position:absolute;right:-42px;top:26px;width:130px;height:130px;border:1px solid #b1a0f122;border-radius:50%;box-shadow:inset 0 0 40px #9a80ff06,0 0 60px #9a80ff07}.profile{display:flex;align-items:center;gap:9px;padding:16px 2px 2px;border-top:1px solid var(--stroke)}.profile>div:nth-child(2){min-width:0;flex:1}.profile strong{display:block;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.profile span{display:block;font-size:9px;color:var(--muted);margin-top:4px}.profile .icon-button{width:30px;padding:7px}.profile .avatar{width:32px;height:32px;font-size:11px;border-radius:11px}
.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;padding:18px 6px 0 0}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px;flex-shrink:0}.page-header p{font-size:12px;color:var(--muted);margin-top:9px}.header-actions{display:flex;align-items:center;gap:18px}.connection{display:flex;align-items:center;gap:8px;font-size:11px;color:#b5bbcd;white-space:nowrap}.connection.offline .dot{background:#f6b36c;box-shadow:none}.page{flex:1;min-height:0;min-width:0}.account-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px}.directory{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}.directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 24px 16px}.directory-heading h2{display:flex;align-items:center;gap:9px}.directory-heading>.caption{font-size:10px}.count{font-size:11px;font-weight:400;padding:3px 7px;border-radius:8px;background:#cec6ff10;color:#b5adcf}.directory-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:0 24px 20px}.filters{display:flex;gap:3px;padding:3px;background:#090e1c55;border-radius:11px}.filter{padding:7px 14px;border-radius:8px;color:var(--muted);background:transparent;font-size:11px}.filter.active{background:#b8abf91c;color:#ebe5ff;box-shadow:0 2px 5px #0002}.search{flex:1;min-width:145px;position:relative}.search svg{width:15px;height:15px;position:absolute;left:12px;top:11px;color:#878da8}.search input{padding:10px 10px 10px 34px;margin:0;font-size:11px;border-radius:11px;background:#0b10242b}
.table-scroll{overflow:auto;flex:1;min-height:80px}table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}th{position:sticky;top:0;background:#1a1b30;z-index:1;font-size:9px;font-weight:500;letter-spacing:1.4px;padding:13px 20px;color:#848ba8;border-block:1px solid #bac1fa09}th:first-child{width:55%;padding-left:24px}td{padding:17px 20px;border-bottom:1px solid #b6b9ff09;font-size:11px}td:first-child{padding-left:24px}tr.user-row{cursor:pointer;outline-offset:-2px}tr.user-row:hover{background:#c1b5ff06}tr.user-row.selected{background:linear-gradient(90deg,#9786e919,#9786e904);box-shadow:inset 3px 0 #a392f5}.identity{display:flex;align-items:center;gap:12px;min-width:0}.identity>div:last-child{min-width:0}.identity strong{display:block;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity small{display:block;font-size:10px;margin-top:5px;overflow:hidden;text-overflow:ellipsis}.avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:14px;flex-shrink:0;font-size:13px;font-weight:500;border:1px solid #ffffff14;box-shadow:inset 0 1px 0 #ffffff16}.c0{background:linear-gradient(135deg,#58589a,#343355);color:#ded8ff}.c1{background:linear-gradient(135deg,#366d82,#2b405f);color:#c7eafa}.c2{background:linear-gradient(135deg,#756192,#42314f);color:#ecd2ff}.c3{background:linear-gradient(135deg,#4d7773,#2a444d);color:#cae8e4}.c4{background:linear-gradient(135deg,#7f626d,#473247);color:#f4d1e4}.c5{background:linear-gradient(135deg,#496792,#2c3557);color:#d0ddff}.badge{display:inline-block;padding:4px 7px;border:1px solid #c2b4ff20;background:#aa98ee0a;border-radius:7px;color:#b7add5;font-size:10px;white-space:nowrap}.badge.active{border-color:#89d8bb18;background:#89d8bb0a;color:#9ccbb9}.badge.disabled{color:#a2a0b0;background:#9999990a;border-color:#99999914}.empty{padding:42px 22px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.empty small{font-size:11px}.selection{padding:18px 24px;border-top:1px solid var(--stroke);background:#0b0d1b20;max-height:42%;overflow:auto;flex-shrink:0}.selection-empty{font-size:11px;color:var(--muted);padding:6px 0}.selection-top{display:flex;align-items:center;gap:12px;margin-bottom:15px}.selection-top .identity{flex:1}.selection-actions{display:flex;gap:8px;flex-wrap:wrap}.selection-actions button{min-height:36px;padding:8px 12px;font-size:10px}.selection-meta{margin-top:11px;color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.create-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;min-height:0}.card-heading{display:flex;gap:12px;align-items:center;padding:23px 22px 20px}.card-heading h2{font-size:18px}.card-heading p{font-size:10px;color:var(--muted);margin-top:6px}.section-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid #c8b7ff1e;background:linear-gradient(130deg,#bda2ff18,#7295ff0a);border-radius:13px;color:#b6a4f0}.section-icon.large{width:54px;height:54px;border-radius:18px;margin-bottom:28px}.section-icon.large svg{width:28px;height:28px}.form-scroll{overflow:auto;padding:0 22px 20px;scrollbar-gutter:stable}.kind-switch{border:0;display:flex;gap:3px;margin:0 0 24px;padding:4px;background:#090e1c55;border-radius:12px}.kind-switch label{flex:1;margin:0;text-align:center;cursor:pointer}.kind-switch input{position:absolute;opacity:0;width:1px;height:1px}.kind-switch span{display:block;padding:9px 6px;font-size:11px;color:var(--muted);border-radius:9px}.kind-switch input:checked+span{color:#ece5ff;background:#ac9afc20;box-shadow:inset 0 1px 0 #ddd0ff10}.kind-switch input:focus-visible+span{outline:2px solid var(--accent)}#humanFields,#botFields{margin-top:20px}.form-footer{padding:16px 22px 20px;border-top:1px solid var(--stroke);background:#11132233}.hint{display:flex;gap:9px;padding:13px 0 0;color:#a299c3}.hint svg{width:16px;flex-shrink:0;margin-top:2px}.hint p{font-size:10px;line-height:1.7}.workspace-foot{display:flex;justify-content:space-between;padding:14px 4px 0;font-size:9px;letter-spacing:.2px;color:#666d88;flex-shrink:0}
.openai-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(280px,1fr);gap:20px}.openai-card,.models-card{padding:30px;overflow:auto;min-height:0}.openai-card h2{font-size:27px;max-width:280px;line-height:1.3;margin-bottom:12px}.openai-card .muted{font-size:12px;line-height:1.7}.key-status{padding:17px 0;color:#b4a6ee;font-size:12px;margin:20px 0 8px;border-top:1px solid var(--stroke)}.openai-card form .caption{margin:10px 0 20px}.models-card{display:flex;flex-direction:column}.models-card .directory-heading{padding:0 0 12px}.models-list{overflow:auto;flex:1;min-height:60px;margin-top:20px}.model-row{padding:12px 4px;border-bottom:1px solid var(--stroke);font-size:12px;font-family:Consolas,monospace;overflow-wrap:anywhere}
.chat-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:20px}.chat-list{display:flex;flex-direction:column;overflow:hidden;padding:22px 10px 10px}.chat-list>h2{padding:0 12px 20px}.chat-list-scroll{overflow:auto;flex:1}.chat-item{display:flex;gap:10px;align-items:center;text-align:left;width:100%;padding:12px;border-radius:13px;background:transparent}.chat-item:hover,.chat-item.selected{background:#b1a2ff14}.chat-item strong{font-size:12px;display:block}.chat-item small{font-size:10px;display:block;margin-top:4px}.conversation{display:flex;flex-direction:column;min-height:0;overflow:hidden}.chat-heading{padding:20px 24px;border-bottom:1px solid var(--stroke)}.messages{flex:1;overflow:auto;display:flex;flex-direction:column;padding:22px;gap:10px;min-height:0}.bubble{align-self:flex-start;max-width:85%;padding:12px 15px;border:1px solid #a1a7ff16;border-radius:18px 18px 18px 5px;background:#0d122344;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65}.bubble.mine{align-self:flex-end;background:linear-gradient(120deg,#6655b74a,#6853a637);border-radius:18px 18px 5px 18px}.bubble small{display:block;font-size:9px;text-align:right;margin-top:5px}.message-quote{font-size:11px;border-left:2px solid var(--accent);padding:5px 8px;margin-bottom:7px;opacity:.75}.ai-status{padding:0 22px;font-size:11px;color:var(--accent);line-height:1.6;white-space:pre-wrap}.composer{padding:15px 20px;border-top:1px solid var(--stroke)}#sendForm{display:flex;align-items:flex-end;gap:10px}#sendForm textarea{min-height:48px;max-height:140px;resize:none}.send-button{width:46px;height:46px;padding:12px;flex-shrink:0}#retryAi{margin-bottom:12px}
dialog.modal{color:var(--text);padding:0;width:590px;max-width:calc(100vw - 36px);max-height:calc(100dvh - 48px);background:linear-gradient(130deg,#29283cf2,#171e34f2)}dialog::backdrop{background:#03061199;backdrop-filter:blur(8px)}.modal form{display:flex;flex-direction:column;max-height:calc(100dvh - 50px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 28px;border-bottom:1px solid var(--stroke)}.modal-body{padding:24px 28px;overflow:auto}.modal-body>.caption{margin-top:16px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 28px;border-top:1px solid var(--stroke)}.input-action{display:flex;gap:8px}.input-action input{flex:1}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 40px);padding:15px 22px;color:#e8e0ff;background:#24233bec;z-index:20;font-size:12px;white-space:pre-wrap}
::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#b7b1e32b;border-radius:8px;border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-track{background:transparent}
@media(max-width:1190px){.app-shell{grid-template-columns:175px minmax(0,1fr);gap:18px;padding:14px}.brand{font-size:20px;gap:8px}.brand img{width:34px;height:34px}.brand small{font-size:7px}.sidebar{padding-inline:10px}.nav-item{padding-inline:12px;gap:9px}.account-layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px}.directory-heading,.selection{padding-inline:18px}.directory-tools{padding-inline:18px}.directory-heading>.caption{display:none}.header-actions{gap:10px}.chat-layout{grid-template-columns:200px minmax(0,1fr);gap:16px}.card-heading{padding-inline:18px}.form-scroll,.form-footer{padding-inline:18px}td,th{padding-inline:12px}th:first-child,td:first-child{padding-left:18px}.profile{gap:6px}.profile .avatar{width:28px;height:28px}.profile strong{font-size:10px}}
@media(max-width:980px){.app-shell{grid-template-columns:68px minmax(0,1fr);gap:16px;padding:12px}.sidebar{padding:20px 8px 12px;align-items:center}.brand{padding:0 0 28px}.brand img{width:38px;height:38px}.brand>span,.nav-caption,.nav-item>span,.nav-item>small,.sidebar-note,.profile>div:nth-child(2){display:none}.sidebar nav{width:100%}.nav-item{padding:13px;justify-content:center}.profile{margin-top:auto;flex-direction:column;border-top:0}.profile .avatar{width:30px;height:30px}.profile .icon-button{margin-top:6px}.workspace{padding-top:12px}.page-header{margin-bottom:20px}.page-header h1{font-size:28px}.account-layout{grid-template-columns:minmax(0,1fr) 280px;gap:14px}.selection-actions button{flex:1}.connection{font-size:10px}.table-scroll th:first-child{width:52%}.badge{font-size:9px;padding-inline:5px}.identity{gap:8px}.identity .avatar{width:33px;height:33px;border-radius:11px}.identity strong{font-size:11px}.openai-layout{gap:14px;grid-template-columns:1fr 1fr}.openai-card,.models-card{padding:22px}}
@media(max-width:760px){body{height:auto;min-height:100dvh;overflow:auto}.app-shell{height:auto;min-height:100dvh;grid-template-columns:54px minmax(0,1fr);gap:10px;padding:8px}.sidebar{position:sticky;top:8px;height:calc(100dvh - 16px);padding-inline:4px}.nav-item{padding:13px 9px}.brand img{width:32px;height:32px}.workspace{min-height:calc(100dvh - 16px);padding-right:0}.page-header{gap:8px;align-items:flex-start}.page-header p{font-size:11px;line-height:1.5;max-width:210px}.header-actions .connection{display:none}.account-layout,.openai-layout{display:flex;flex-direction:column;flex:none;gap:16px}.directory{height:460px}.create-card{height:min(650px,calc(100dvh - 40px))}.page{min-height:0}.directory-tools{gap:9px}.filters{flex:1}.filter{flex:1}.search{min-width:100%;width:100%}.chat-layout{grid-template-columns:1fr;grid-template-rows:150px minmax(380px,1fr);min-height:650px}.chat-list{padding:16px}.chat-list>h2{padding:0 0 8px}.chat-list-scroll{display:flex}.chat-item{width:190px;flex-shrink:0}.workspace-foot{padding-bottom:10px}.login-card{padding:28px}.login-card h1{font-size:31px}.login-view{padding:16px}.openai-card,.models-card{min-height:300px;max-height:600px}.page-header .eyebrow{font-size:8px;letter-spacing:1.5px}}
@media(max-height:720px) and (min-width:761px){.app-shell{padding:12px}.workspace{padding-top:8px}.page-header{margin-bottom:16px}.page-header h1{font-size:28px}.page-header p{margin-top:6px}.sidebar-note{padding-block:15px}.sidebar-note p{font-size:17px}.sidebar .brand{padding-bottom:24px}.card-heading{padding-block:18px}.directory-heading{padding-top:18px}.form-scroll label+label{margin-top:15px}.workspace-foot{padding-top:10px}.login-card{padding:25px 38px}.login-logo{width:46px;height:46px;margin-bottom:15px}.login-card h1{font-size:30px}.login-card .muted{margin-bottom:20px}.login-foot{margin-top:20px;padding-top:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

select{font:inherit;color:var(--text);width:100%;background:#161b30;border:1px solid #c8c8ff16;border-radius:13px;padding:12px 14px;min-width:0}label>select{margin-top:8px}select:focus{outline:2px solid var(--accent);outline-offset:2px}.brand small{letter-spacing:.2px}.sidebar-note p{font-size:15px}.card-heading h2{font-size:17px;line-height:1.35}.page-header h1{font-size:30px}

.openai-card>.muted{min-height:3.4em}.openai-card>h2{max-width:none}

/* Стеклянный индикатор движется между разделами, содержимое мягко раскрывается. */
.sidebar nav{position:relative;display:flex;flex-direction:column;gap:5px;isolation:isolate}
.nav-item{position:relative;z-index:1;height:46px;margin:0;transition:color .2s,background .2s}
.nav-item.active{background:transparent;box-shadow:none}
.nav-marker{position:absolute;z-index:0;inset:0 0 auto;height:46px;border-radius:13px;background:linear-gradient(105deg,#a793fb30,#a793fb0b);border:1px solid #b2a3ff28;box-shadow:inset 0 1px 0 #ffffff18,0 5px 18px #07071b20;transition:transform .42s cubic-bezier(.22,1.15,.36,1);pointer-events:none}
nav:has([data-page="chats"].active) .nav-marker{transform:translateY(51px)}
nav:has([data-page="openai"].active) .nav-marker{transform:translateY(102px)}
nav:has([data-page="gemini"].active) .nav-marker{transform:translateY(153px)}
nav:has([data-page="mail"].active) .nav-marker{transform:translateY(204px)}
.mail-card{padding:28px;overflow:auto;min-height:0}.mail-card>h2{margin-bottom:12px}.mail-card form>button{margin-top:22px}.mail-grid{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:12px;margin-block:20px}.mail-grid label+label{margin-top:0}.mail-instructions{padding-left:20px;color:var(--muted);font-size:13px;line-height:1.8}.mail-instructions li{margin-bottom:15px}
.page-enter{animation:pageReveal .38s cubic-bezier(.2,.8,.2,1) both;transform-origin:50% 20%}
@keyframes pageReveal{from{opacity:0;transform:translateY(12px) scale(.985);filter:blur(3px)}to{opacity:1;transform:none;filter:none}}
dialog[open]{animation:glassReveal .3s cubic-bezier(.2,.9,.2,1) both}
dialog[open]::backdrop{animation:veilReveal .25s both}
dialog[open].closing{animation:glassDismiss .16s ease-in both}
dialog[open].closing::backdrop{animation:veilReveal .16s reverse both}
@keyframes glassReveal{from{opacity:0;transform:translateY(22px) scale(.95);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
@keyframes glassDismiss{to{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes veilReveal{from{opacity:0}to{opacity:1}}
tr.user-row{transition:background .2s,box-shadow .2s}
.selection-top{animation:pageReveal .25s ease-out both}
.badge.blocked{color:#f3a2b4;border-color:#ff8aa62c;background:#ff8aa60d}
.badge.active::before,.badge.blocked::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:middle}
.secondary.danger{color:#ffb0c0;background:#ed7e9b0a;border-color:#ed7e9b35}
.secondary.danger:hover{background:#ed7e9b20}
button:disabled{cursor:default}
.dialog-description{font-size:13px;line-height:1.7;color:#c9c8df;margin-bottom:22px;overflow-wrap:anywhere}
.danger-note{font-size:12px;line-height:1.7;border:1px solid #ed7e9b2b;background:#ed7e9b0a;color:#efbbcb;border-radius:14px;padding:14px 16px;margin-bottom:22px}
.account-type{margin-bottom:22px}
th:first-child,.table-scroll th:first-child{width:44%}th:nth-child(2){width:28%}
td .badge{white-space:normal;line-height:1.5;overflow-wrap:anywhere}
.toast{animation:veilReveal .2s ease-out both}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.mail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}#mailCheckResult{margin-top:14px}

.local-memory-option{display:flex;align-items:center;gap:12px;line-height:1.5}.local-memory-option input{width:18px;height:18px;flex:0 0 18px;accent-color:#8d7bec}.input-action select{flex:1;min-width:0}
.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar-preview{width:112px;height:112px;border-radius:28px;overflow:hidden;margin:8px auto 22px;background:#292b46;display:grid;place-items:center}.avatar-preview>img,.avatar-preview>.avatar{width:100%;height:100%;object-fit:cover;border-radius:inherit;font-size:32px}.profile .avatar>.avatar{width:100%;height:100%;border-radius:inherit}
.backlog-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px;align-items:start}
.backlog-filters{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 16px}.backlog-filters button{flex:1;padding:11px 14px;border:1px solid var(--stroke);border-radius:12px;background:#ffffff06;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}.backlog-filters button[aria-pressed="true"]{color:var(--text);background:#a291ff22;border-color:#a291ff77}.backlog-filters button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.backlog-card{padding:28px;min-width:0}.backlog-card h2{margin-bottom:16px}.backlog-list{display:grid;gap:12px;margin:20px 0}.backlog-item{display:flex;align-items:flex-start;gap:14px;padding:18px;background:#ffffff06;border:1px solid #ffffff12;border-radius:16px;cursor:pointer;margin:0}.backlog-item:hover{background:#ffffff0c}.backlog-item input{width:22px;height:22px;flex:0 0 22px;margin:2px 0 0;accent-color:#8d7bec;cursor:pointer}.backlog-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;font-weight:400}.backlog-item:focus-within{outline:2px solid #8d7bec}
.backlog-item{cursor:default;gap:10px}.backlog-main{display:flex;align-items:flex-start;gap:14px;flex:1;min-width:0;cursor:pointer}.backlog-content{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1;gap:8px}.backlog-text{max-width:100%}.backlog-clock{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--stroke);border-radius:12px;background:#ffffff06;color:var(--muted)}.backlog-clock:hover{background:#ffffff12;color:var(--text)}.backlog-clock[aria-pressed="true"]{color:#ffdc94;background:#e8ad3220;border-color:#e8ad3280}.backlog-item.in-progress{border-color:#e8ad3260;background:#e8ad320b}.backlog-progress{font-size:11px;line-height:1.5;color:#ffdc94;background:#e8ad3217;border-radius:6px;padding:3px 8px}.backlog-clock:disabled{cursor:default}
@media(max-width:1100px){.backlog-layout{grid-template-columns:1fr}.backlog-card{padding:20px}}
@media(max-width:480px){.backlog-item{padding:12px;gap:8px}.backlog-main{gap:10px}}
nav:has([data-page="backlog"].active) .nav-marker{transform:translateY(255px)}
nav:has([data-page="publication"].active) .nav-marker{transform:translateY(306px)}
.publication-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;overflow:auto;align-items:start;padding-bottom:12px}
.publication-card{padding:28px;min-width:0;border-radius:22px}
.publication-card h2{margin-bottom:16px}.publication-card>.caption{line-height:1.8;margin:16px 0}
.publication-card label{margin:20px 0}.publication-card button{margin-top:12px;white-space:normal}
.publication-summary{display:grid;gap:10px;padding:22px 0;border-bottom:1px solid var(--stroke);overflow-wrap:anywhere}
.publication-summary strong{font-size:23px}.publication-summary small{line-height:1.8}
@media(max-width:1100px){.publication-layout{grid-template-columns:1fr}.publication-card{padding:20px}}
@media(max-width:760px){.publication-layout{display:flex;flex-direction:column;flex:none;overflow:visible}.publication-card{width:100%}}
.publication-layout{grid-template-rows:auto minmax(0,1fr);align-content:start}
.publication-progress{grid-column:1/-1;padding:24px 28px;border-color:#a291ff55}
.publication-progress-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.publication-progress-heading h2{margin:0}
.publication-progress-phase{font-size:16px;line-height:1.7;margin:16px 0 12px;color:var(--text)}
.publication-progress-bar{height:9px;overflow:hidden;border-radius:8px;background:#b5a4ff1a;margin:16px 0 20px}
.publication-progress-bar>span{display:block;width:36%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8370e4,#c0adff);animation:publicationSweep 1.7s ease-in-out infinite alternate}
@keyframes publicationSweep{from{transform:translateX(-80%)}to{transform:translateX(260%)}}
.publication-progress[data-state="succeeded"]{border-color:#89d8bb55}.publication-progress[data-state="succeeded"] .badge{color:#9cddc3;border-color:#89d8bb55}
.publication-progress[data-state="succeeded"] .publication-progress-bar>span{width:100%;animation:none;transform:none;background:#79cba8}
.publication-progress[data-state="failed"]{border-color:#ff8aa680;background:#ed7e9b0c}.publication-progress[data-state="failed"] .badge{color:#ffb0c0;border-color:#ff8aa655}
.publication-progress[data-state="failed"] .publication-progress-bar>span{width:100%;animation:none;transform:none;background:repeating-linear-gradient(135deg,#e489a0 0 8px,#b5667a 8px 16px)}
.publication-steps{list-style:none;padding:0;margin:16px 0;display:flex;gap:14px;flex-wrap:wrap;counter-reset:step}
.publication-steps li{flex:1;min-width:130px;font-size:12px;line-height:1.6;color:var(--muted);border-top:2px solid var(--stroke);padding-top:9px;counter-increment:step}
.publication-steps li::before{content:counter(step) ". ";font-weight:600}.publication-steps .done{color:#9ccbb9;border-color:#89d8bb80}.publication-steps .current{color:#e0d4ff;border-color:#af9cff}.publication-steps .failed{color:#ffb0c0;border-color:#ed7e9b}
.publication-connection{color:#f2cb90;font-size:13px;line-height:1.7;margin-top:14px}
.publication-error-details,.publication-history{margin-top:18px;border-top:1px solid var(--stroke);padding-top:14px;font-size:12px}
.publication-progress summary{cursor:pointer;color:#d2c7f4;line-height:1.8}.publication-error-details pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 Consolas,monospace;color:#f0bec9;margin:14px 0;max-height:300px;overflow:auto}
.publication-history ol{list-style:none;padding:0;margin:12px 0 0}.publication-history li{padding:12px 0;border-top:1px solid var(--stroke);line-height:1.8;overflow-wrap:anywhere}.publication-history strong{display:block}.publication-history .failed{color:#ffb0c0}.publication-history .succeeded{color:#9ccbb9}
.publication-history pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 Consolas,monospace;max-height:240px;overflow:auto}
.nav-item small.publication-running{color:#ded4ff}.nav-item small.publication-failed{color:#ffb0c0}.nav-item small.publication-succeeded{color:#9ccbb9}
@media(max-width:980px){.nav-item>#publicationBadge:not([hidden]){display:block;position:absolute;right:0;top:0;font-size:8px;padding:1px 3px}}
@media(max-width:760px){.publication-progress{width:100%;padding:20px}.publication-progress-heading{align-items:flex-start;flex-direction:column;gap:10px}.publication-steps{gap:10px}.publication-steps li{min-width:100px}.publication-progress-phase{font-size:15px}}
.backlog-layout{overflow:auto;padding-bottom:12px}

.filters,.kind-switch{flex-wrap:wrap}
#serviceMailDialog{max-height:calc(100dvh - 50px);overflow:auto}#serviceMailItems{display:grid;gap:16px}.service-mail-item{padding:18px;min-width:0}.service-mail-item h3{font-size:14px;overflow-wrap:anywhere}.service-mail-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0;line-height:1.6}.service-mail-item form{gap:12px}.service-mail-item textarea{min-height:100px;resize:vertical}#serviceMailMore{margin-top:18px}

/* One unified user list, retaining the original layout. */
#accountsPage th:first-child{width:72%}
#accountsPage.user-versions th:first-child{width:46%}
#accountsPage.user-versions #appVersionHeading{width:28%}
#accountsPage.model-availability th:first-child{width:46%}
#accountsPage.model-availability #modelAccessHeading{width:28%}
.device-version{display:block;line-height:1.6;overflow-wrap:anywhere}
.app-version{font-size:13px}
@media(max-width:760px){#accountsPage.user-versions table{min-width:460px}}
@media(max-width:760px){#accountsPage.model-availability table{min-width:460px}}
/* Creation stays out of the directory until the floating plus is pressed. */
#accountsPage{display:flex;flex-direction:column}
#accountsPage>.directory{flex:1;width:100%;height:auto;padding-bottom:82px}
.create-account-fab{position:fixed;right:max(28px,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom));z-index:15;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;color:#fff;background:linear-gradient(135deg,#9984ff,#7062d9);border:1px solid #d8cdff60;box-shadow:0 10px 30px #08091c88,inset 0 1px 0 #ffffff30;transition:transform .18s,box-shadow .18s}
.create-account-fab svg{width:36px;height:36px;stroke-width:1.8}
.create-account-fab:hover{transform:translateY(-3px);box-shadow:0 14px 34px #08091c99,0 0 0 5px #a28aff14}
.create-account-fab:active{transform:scale(.96)}
.create-dialog{padding:0;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:hidden}
.create-dialog .create-card{height:auto;max-height:calc(100dvh - 30px);background:transparent;border:0;box-shadow:none}
.create-dialog .card-heading>div:nth-child(2){flex:1;min-width:0}
.create-dialog .card-heading h2{line-height:1.35}
.create-dialog .form-footer{display:flex;gap:10px}
.create-dialog .form-footer .wide{flex:1;width:auto}
.selection-dialog .selection{border:0;background:transparent;max-height:calc(100dvh - 160px);padding:26px 28px;overflow:auto}
.selection-dialog .selection-top{margin-bottom:24px}
.selection-dialog .identity .avatar{width:56px;height:56px;border-radius:18px;font-size:20px}
.selection-dialog .identity strong{font-size:18px;white-space:normal;overflow-wrap:anywhere}
.selection-dialog .identity small{font-size:12px}
.selection-dialog .selection-actions{gap:10px}
.selection-dialog .selection-actions button{min-height:42px;padding:10px 15px;font-size:12px}
.selection-dialog .selection-meta{font-size:12px;line-height:1.6;margin-top:18px}
.category-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0 24px 20px}
.category-tab{padding:11px 18px;border-radius:12px;background:#ffffff05;border:1px solid #c2b4ff20;color:var(--muted);font-size:12px}
.category-tab.active{background:#a291ff26;border-color:#b5a4ff60;color:var(--text)}
.category-tab small{font-size:10px;opacity:.7}
.model-section{border:1px solid var(--stroke);border-radius:16px;margin:0 0 22px;padding:18px}
.model-section legend{padding:0 8px;color:#d9d0ff;font-size:13px;font-weight:600}
.model-section .caption{font-size:11px;line-height:1.7;margin:12px 0}
.model-access{color:#bcb3df}
.input-action select{flex:1;min-width:0;width:0}
.model-help-button{flex:0 0 34px;align-self:center;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#a291ff18;border:1px solid #c1b3ff55;color:#ddd4ff;font-size:18px;font-weight:600}
.model-help-button:hover{background:#a291ff35;border-color:#c8bbff}
dialog.model-help-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.model-help-dialog .modal-heading,.model-help-dialog .modal-footer{flex-shrink:0}
.model-help-dialog .modal-body{min-height:0;flex:1}
.model-help-dialog h2{font-size:21px;overflow-wrap:anywhere}
.model-help-dialog h3{font-size:20px;line-height:1.4;margin:12px 0 20px}
.model-help-dialog p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.model-help-dialog .model-help-code{font-family:Consolas,monospace;font-size:12px;color:#b6acd6;margin-top:22px}
.model-help-section{margin:18px 0}.model-help-section h4{font-size:12px;color:#d5c9ff;margin:0 0 7px}
.model-help-dialog .caption{font-size:11px;color:var(--muted);margin-top:18px}
@media(max-width:760px){.model-help-button{width:40px;height:40px;flex-basis:40px}.model-help-dialog .modal-heading,.model-help-dialog .modal-body,.model-help-dialog .modal-footer{padding:18px}.model-help-dialog h2{font-size:18px}}
@media(max-width:760px){.category-tabs{padding-inline:18px;gap:6px}.category-tab{padding:10px;font-size:11px}.model-section{padding:14px}}
@media(max-width:760px){#accountsPage{min-height:calc(100dvh - 170px)}#accountsPage>.directory{min-height:460px}.create-account-fab{width:64px;height:64px;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom))}.create-dialog .card-heading{padding:20px 16px}.create-dialog .form-scroll,.create-dialog .form-footer{padding-inline:16px}.create-dialog .form-footer{flex-wrap:wrap}.create-dialog .form-footer .wide{min-width:180px}}
