.theme-bar{max-width:1460px;margin:auto;display:flex;justify-content:flex-end;padding:12px 24px}.theme-bar button{border:1px solid var(--line);background:var(--surface);padding:8px 16px;border-radius:9px;font-size:12px}.login-layout,.workspace-layout{max-width:1460px;margin:0 auto 24px}.field input{color:var(--ink)}.field:focus-within{outline:2px solid var(--gold);outline-offset:2px}#login-error{color:var(--error);font-size:12px;margin-top:16px;line-height:2}.shell-nav{margin-top:20px}.shell-nav a{padding:12px;border-radius:8px;color:var(--muted);font-size:12px}.shell-nav a:hover{background:var(--soft);color:var(--ink)}#shell-logout{margin-top:16px;color:var(--muted);font-size:12px}.shell-home .welcome{margin-top:24px}.shell-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0 48px}.shell-cards>a{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px;transition:border-color .2s,background .2s}.shell-cards>a:hover{border-color:var(--gold);background:var(--soft)}.shell-cards span{color:var(--gold);font-size:12px}.shell-cards h2{font-size:18px;margin:24px 0 10px}.shell-cards p{color:var(--muted);font-size:12px;line-height:2;min-height:54px}.shell-cards b{display:block;font-size:12px;font-weight:500;margin-top:28px}#shell-status{text-align:center;font-size:12px;color:var(--muted);margin-top:25px;line-height:2}@media(max-width:1000px){.shell-cards{grid-template-columns:1fr}}@media(max-width:760px){.login-layout,.workspace-layout{margin:0 10px 15px}.shell-cards{margin-bottom:24px}.shell-home .welcome h1{font-size:23px}}
.shell-workspace{height:calc(100dvh - 78px);min-height:620px}.shell-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.shell-nav a[aria-current=page]{color:var(--ink)}.shell-connected{color:var(--muted);font-size:11px}.shell-frame-wrap{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--bg)}#shell-frame{border:0;width:100%;flex:1;min-height:400px;background:var(--bg)}#shell-frame-fallback,.shell-support-note{font-size:11px;line-height:2;padding:10px 22px;color:var(--muted);border-top:1px solid var(--line)}#shell-frame-fallback a{color:var(--ink);text-decoration:underline}#shell-status:empty{display:none}#shell-status:not(:empty){margin:0;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--line)}@media(max-width:760px){.shell-workspace{grid-template-columns:150px minmax(0,1fr);height:calc(100dvh - 72px);min-height:600px}.shell-workspace .sidebar{padding:20px 10px}.shell-workspace .sidebar .brand{padding:0}.shell-workspace .wing-logo{width:112px}.shell-workspace .work-header{padding:0 18px}.shell-workspace .chat-area{padding:0 18px}.shell-cards{grid-template-columns:1fr}.shell-frame-wrap{min-width:0}.shell-support-note{padding:8px 12px}}@media(max-width:500px){.shell-workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 70px)}.shell-workspace>.sidebar{border-left:0;border-bottom:1px solid var(--line);padding:12px}.shell-workspace .sidebar>.brand,.shell-workspace .workspace-selector,.shell-workspace .profile{display:none}.shell-workspace .shell-nav{display:flex;overflow:auto;gap:4px;margin:0}.shell-workspace .shell-nav a{white-space:nowrap;padding:10px}.shell-workspace .side-bottom{margin:0}.shell-workspace #shell-logout{margin:3px 0;padding:6px}.shell-workspace .work-header{height:58px}.shell-workspace>.workspace-main{flex:1;min-height:600px}#shell-frame{min-height:580px}}
.shell-workspace .side-bottom{display:block}.shell-workspace .shell-profile-link{display:flex;width:100%;padding:12px 9px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:right}.shell-profile-link:hover,.shell-profile-link[aria-current=page]{background:var(--soft);border-color:var(--gold)}.shell-profile-link[aria-disabled=true]{opacity:.55;cursor:default}.shell-profile-link>div{min-width:0;flex:1}.shell-profile-link b{display:block;overflow-wrap:anywhere}.shell-profile-link>span.shell-profile-arrow{width:auto;height:auto;background:none;border-radius:0;color:var(--muted);font-size:15px}.shell-profile-area{flex:1;min-height:0;overflow:auto;width:100%;max-width:860px;margin:0 auto;padding:38px 36px 28px}.shell-profile-heading{margin-bottom:25px}.shell-profile-heading h1{font-size:30px;font-weight:600;line-height:1.7}.shell-profile-heading p,.shell-profile-card p{font-size:12px;line-height:2;color:var(--muted);margin-top:4px}.shell-profile-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;margin-bottom:18px}.shell-profile-card-heading{display:flex;align-items:center;gap:14px}.shell-profile-seal{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:14px;background:var(--soft);color:var(--gold);font-size:22px}.shell-profile-card h2{font-size:16px;font-weight:600;line-height:1.8}.shell-profile-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0 0;padding-top:22px;border-top:1px solid var(--line)}.shell-profile-details dt{color:var(--muted);font-size:11px}.shell-profile-details dd{margin:9px 0 0;font-size:14px;line-height:1.8;min-height:26px;overflow-wrap:anywhere}.shell-profile-details dd[dir=ltr]{text-align:right}.shell-profile-security{display:flex;gap:20px;justify-content:space-between;align-items:center}.shell-profile-actions{display:flex;gap:10px;flex-wrap:wrap}.shell-profile-actions a,.shell-profile-actions button{border:1px solid var(--line);border-radius:10px;padding:11px 16px;font-size:12px;text-align:center}.shell-profile-actions a{background:var(--ink);border-color:var(--ink);color:var(--surface)}.shell-profile-actions #shell-logout{margin:0;background:var(--surface);color:var(--ink)}.shell-profile-back{display:inline-block;font-size:12px;padding:10px 0;color:var(--muted)}.shell-profile-back:hover{color:var(--ink)}
@media(max-width:760px){.shell-profile-area{padding:26px 20px}.shell-profile-details{grid-template-columns:1fr;gap:18px}.shell-profile-security{align-items:start;flex-direction:column}.shell-profile-actions{width:100%}.shell-profile-actions a,.shell-profile-actions button{flex:1}.shell-workspace .shell-profile-link{font-size:11px}.shell-profile-card{padding:20px}}
@media(max-width:500px){.shell-workspace .side-bottom{display:block;margin-top:8px}.shell-workspace .shell-profile-link{margin-top:0;padding:10px}.shell-profile-heading h1{font-size:25px}.shell-profile-area{overflow:visible}.shell-profile-actions #shell-logout{padding:11px 16px;margin:0}}
.shell-profile-wrap{position:relative}.shell-profile-menu{position:absolute;inset-inline:0;bottom:calc(100% + 9px);z-index:30;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:0 12px 28px color-mix(in srgb,var(--ink) 12%,transparent)}.shell-profile-menu a,.shell-profile-menu button{display:block;width:100%;padding:11px 12px;border-radius:8px;text-align:right;color:var(--ink);font-size:12px}.shell-profile-menu a:hover,.shell-profile-menu button:not(:disabled):hover{background:var(--soft);transform:none}.shell-profile-menu a[aria-current=page]{background:var(--soft);color:var(--ink)}.shell-profile-menu button:disabled{opacity:.5}.shell-profile-menu[hidden]{display:none!important}
#shell-frame-loading[hidden]{display:none!important}
/* Keep the private child laid out behind an invisible, non-interactive gate.
   display:none rebuilds its FontFaceSet on reveal and can flash fallback text. */
.shell-frame-wrap{position:relative}
#shell-frame[hidden]{display:block!important;visibility:hidden!important;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#shell-frame-loading{flex:1;min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--bg);color:var(--muted);font-size:12px}
.shell-loading-mark{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--gold);font-size:24px}
#shell-frame{color-scheme:inherit}
