:root{--navy:#15326f;--blue:#2563eb;--surface:#f5f9ff;--text:#233554;--muted:#7385a0;--font-ui:Tahoma,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--surface);color:var(--text);font:12px/1.35 var(--font-ui)}p,h1,h2,h3{margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{border:0;cursor:pointer;color:inherit;text-align:left}button:hover{filter:brightness(.97)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}img{display:block}button p{pointer-events:none}a:hover{text-decoration:none}
.app-shell{display:flex;min-height:100vh}.sidebar{width:250px;flex:0 0 250px;min-height:100vh;background:var(--navy);padding:12px 15px;color:#d0e4ff;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin}.brand{display:block;width:218px;height:110px;flex-shrink:0}.brand img{object-fit:contain}.tenant{background:#23447f;padding:12px;border-radius:12px;height:62px;display:flex;flex-direction:column;gap:3px;margin-bottom:0;flex-shrink:0}.tenant small{font-size:9px;color:#a9c7e9}.tenant strong{font-size:12px;color:white;font-weight:600}.nav-label{font-size:10px;color:#a6c4eb;line-height:14px}.nav-group{display:flex;gap:7px;align-items:center;background:transparent;color:#d0e4ff;padding:5px 7px 5px 9px;min-height:37px;border-radius:9px;width:218px;flex-shrink:0}.nav-group.active{background:#2563eb;color:white;font-weight:600}.nav-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;flex-shrink:0}.chevron{margin-left:auto;font-size:14px}.subnav{background:#17386e;color:#d4e3f9;border-radius:8px;font-size:10.5px;min-height:28px;padding:7px 6px 7px 36px;display:block;flex-shrink:0}.subnav.selected{background:#def;color:#15326f;font-weight:600}.support{background:#214581;padding:11px;border-radius:10px;margin-top:0;min-height:78px;display:flex;flex-direction:column;gap:5px;flex-shrink:0}.support strong{color:#64e4f4;font-size:12px}.support small{font-size:10px;color:#d2e6ff}.preview-label{font-size:9px;margin-top:8px;color:#a9c7e9}.workspace{flex:1;min-width:0}.topbar{height:78px;background:white;display:flex;align-items:center;gap:14px;padding:18px 26px}.breadcrumb{font-weight:600;font-size:14px;flex:1;white-space:nowrap}.search-box{width:292px;position:relative;flex-shrink:1}.search-box input{border:0;background:#eef6ff;border-radius:11px;width:100%;height:40px;padding:12px;color:var(--text)}.search-box input::placeholder{color:var(--muted)}.search-results{position:absolute;top:46px;left:0;min-width:340px;max-height:400px;overflow:auto;z-index:20;background:white;box-shadow:0 12px 32px #15326f25;border-radius:12px;padding:8px}.search-results a{display:block;padding:10px}.search-results a:hover{background:#eef6ff}.pill{padding:8px;border-radius:15px;min-width:68px;background:#f5f9ff;font-size:11px;white-space:nowrap}.pill.ai{min-width:110px;background:#e7f1ff;color:#2563eb;font-weight:600}.account{display:flex;align-items:center;gap:9px;font-size:10px;white-space:nowrap}.account span{display:grid;place-items:center;background:#e7f1ff;color:#2563eb;width:35px;height:35px;border-radius:50%;font-weight:700;font-size:13px}.mobile-toggle{display:none;background:#e7f1ff;padding:8px;border-radius:8px}.screen-view>[data-name='Main content']{width:100%;height:auto;min-height:calc(100vh - 78px);overflow:visible}.screen-view [data-name='Main content']>div{flex-shrink:1}.screen-view [data-name='Main content']{padding:28px}.screen-view [data-name='Main content']>[data-name='Section title']{margin:0 0 18px}.screen-view [data-name='Main content']>[data-name='Hero · Next learning journey']{margin-bottom:18px}.screen-view [data-name='Main content']>[data-name='Highlights']{margin-bottom:18px}.screen-view [data-name='Highlights']{justify-content:space-between;gap:20px}.screen-view [data-name='Highlights']>div{flex:1;min-width:0}.screen-view [data-name='Dashboard lower split']{display:grid;grid-template-columns:703fr 411fr;gap:20px}.screen-view [data-name='Dashboard lower split']>div{width:100%;max-width:100%}.screen-view [data-name='Hero · Next learning journey']{background:linear-gradient(100deg,#153b80,#255bc6)}.screen-view [data-name='Hero main message']{flex:1;min-width:0}.screen-view [data-name='Hero illustration']{flex-shrink:0}.screen-view [data-name='Functional workspace']{width:100%;display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);height:auto;overflow:visible}.screen-view [data-name='Functional workspace']>div{width:100%;height:auto;min-height:435px}.screen-view [data-name='Record content']{flex:1;min-width:0}.screen-view [data-name^='Record /']{width:100%}.screen-view [data-name='Overview indicators']{width:100%;display:flex;gap:18px}.screen-view [data-name='Overview indicators']>div{flex:1;min-width:0}.screen-view [data-name='Screen heading']{height:auto;min-height:105px}.screen-view [data-name='Context filter']{height:auto;min-height:45px;flex-wrap:wrap}.screen-view [data-name='Courses row 0'],.screen-view [data-name='Courses row 1']{width:100%;height:auto;display:grid;grid-template-columns:1fr 1fr}.screen-view [data-name='Courses row 0']>div,.screen-view [data-name='Courses row 1']>div{width:100%}.screen-view [data-name='Completed portion']{max-width:100%}.screen-view [data-name='Quick access'] button{background:white}.screen-view [data-name='Main content'] [data-name='Title actions']{margin-left:auto;flex-shrink:0}.screen-view [data-name='Main content'] [data-name='Heading and description']{flex:1;min-width:0}.screen-view [data-name='Main content'] [data-name='Section title']{width:100%}.screen-view [data-name='Main content'] [data-name='Section title'] [data-name='Title actions']{width:345px}.screen-view [data-name='Main content'] [data-name='Section title'] button{flex-shrink:0}.screen-view [data-name^='Record /'][hidden]{display:none!important}
.auth-main{width:100%}.auth-view>div{width:100%;min-height:100vh;height:auto;display:grid;grid-template-columns:46% 54%;border-radius:0}.auth-view>div>div{width:100%;height:100vh;min-height:780px}.empty{padding:40px}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#0d224c88;display:grid;place-items:center;padding:20px}.dialog{position:relative;background:white;border-radius:18px;padding:32px;width:540px;max-width:100%;box-shadow:0 24px 80px #071c4e44;max-height:90vh;overflow:auto}.dialog small{color:#2563eb;font-size:10px}.dialog h2{font-size:22px;margin:12px 20px 18px 0}.dialog h3{margin-bottom:12px}.dialog p{font-size:13px;line-height:1.7;margin-bottom:18px}.dialog button:not(.dialog-close),.primary-link{display:inline-block;padding:12px 18px;border-radius:9px;background:#e7f1ff;margin:4px 6px 0 0}.dialog button.primary,.primary-link{background:#2563eb;color:white}.dialog-close{position:absolute;top:12px;right:16px;background:transparent;font-size:26px}.dialog label{display:block;margin:14px 0;color:#7385a0}.dialog input,.dialog textarea{display:block;margin-top:6px;width:100%;border:1px solid #dfe9f8;border-radius:9px;padding:12px;background:#fafcff;color:#233554}.dialog textarea{min-height:90px}.draft-status{position:fixed;bottom:18px;right:18px;background:#e7f9f3;color:#118c70;padding:14px;border:1px solid #86d3bc;border-radius:12px;z-index:30}#blazor-error-ui{display:none;background:#fff1d0;padding:12px;position:fixed;bottom:0;width:100%;z-index:1000}
@media(min-width:1441px){.screen-view>[data-name='Main content']{max-width:1600px;margin:0 auto}.topbar{gap:14px}.breadcrumb{min-width:300px}}
@media(max-width:1200px){.topbar{padding:16px;gap:10px}.breadcrumb{font-size:12px}.search-box{width:220px}.account{font-size:0}.screen-view [data-name='Hero illustration']{display:none}.screen-view [data-name='Section title'] [data-name='Title actions']{width:auto!important}.screen-view [data-name='Heading and description'] p:first-child{font-size:22px}.screen-view [data-name='Dashboard lower split']{grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr)}.screen-view [data-name='lesson texts'],.screen-view [data-name='lesson texts2']{flex:1;min-width:0}.screen-view [data-name='lesson · Robot dò line'],.screen-view [data-name='lesson · Điều khiển Servo']{gap:10px}.screen-view [data-name='Functional workspace']{grid-template-columns:minmax(0,1fr)}.screen-view [data-name='Functional workspace']>div{min-height:0}.screen-view [data-name='Overview indicators']{height:auto}.screen-view [data-name^='KPI ']{height:auto;min-height:100px}}
@media(max-width:900px){.sidebar{display:none}.sidebar.mobile-open{display:flex;position:fixed;z-index:50;box-shadow:10px 0 40px #10274d66}.mobile-toggle{display:block}.topbar{height:70px}.topbar .ai{display:none}.breadcrumb{flex:1}.search-box{width:220px}.screen-view>[data-name='Main content']{padding:22px;min-height:calc(100vh - 70px)}.auth-view>div{grid-template-columns:1fr}.auth-view>div>div:first-child{height:auto;min-height:0;padding:24px;gap:12px}.auth-view [data-name='Official brand logo']{height:140px}.auth-view>div>div:nth-child(2){height:auto;min-height:600px;padding:32px;gap:18px}.auth-view>div>div:first-child>p{display:none}}
@media(max-width:600px){.topbar{padding:12px;gap:8px}.breadcrumb{font-size:10px;white-space:normal}.search-box{width:135px}.search-box input{font-size:10px;padding:8px}.topbar>.pill{display:none}.account{gap:0}.search-results{min-width:250px;left:auto;right:0}.screen-view>[data-name='Main content']{padding:18px;gap:16px}.screen-view [data-name='Section title']{height:auto;min-height:100px;flex-wrap:wrap;gap:12px}.screen-view [data-name='Heading and description']{min-width:100%!important;height:auto}.screen-view [data-name='Heading and description'] p:first-child{font-size:21px}.screen-view [data-name='Title actions']{margin-left:0!important;height:auto}.screen-view [data-name='Hero · Next learning journey']{height:auto;min-height:180px;padding:22px}.screen-view [data-name='Hero main message']{height:auto}.screen-view [data-name='Hero main message']>p{width:100%;height:auto}.screen-view [data-name='Hero main message']>p:nth-child(2){font-size:22px}.screen-view [data-name='Highlights']{display:grid;grid-template-columns:1fr 1fr;height:auto;gap:12px}.screen-view [data-name='Highlights']>div{width:100%;height:122px}.screen-view [data-name='Dashboard lower split']{display:flex;flex-direction:column;height:auto}.screen-view [data-name='Dashboard lower split']>div{height:auto;min-height:270px;padding:18px}.screen-view [data-name='lesson · Robot dò line'],.screen-view [data-name='lesson · Điều khiển Servo']{height:auto;min-height:90px;flex-wrap:wrap;padding:12px}.screen-view [data-name='lesson icon'],.screen-view [data-name='lesson icon2']{display:none}.screen-view [data-name='lesson texts'],.screen-view [data-name='lesson texts2']{min-width:100%;height:auto}.screen-view [data-name='Courses row 0'],.screen-view [data-name='Courses row 1']{grid-template-columns:1fr}.screen-view [data-name='Overview indicators']{gap:8px;flex-wrap:wrap}.screen-view [data-name='Overview indicators']>div{min-width:28%;padding:10px}.screen-view [data-name='Functional workspace']{gap:16px}.screen-view [data-name='Functional workspace']>div{padding:16px}.screen-view [data-name^='Record /']{height:auto;min-height:74px;gap:8px}.screen-view [data-name^='Record /']>p{width:auto;flex:0 0 50px}.screen-view [data-name='Screen heading']{min-height:120px}.screen-view [data-name='Screen heading']>p{height:auto}.auth-view>div>div:nth-child(2){padding:24px}.screen-view input{min-width:0}}
.screen-view [data-name='Main content']>[data-name='Section title'],.screen-view [data-name='Main content']>[data-name='Hero · Next learning journey'],.screen-view [data-name='Main content']>[data-name='Highlights']{margin-bottom:0}
button{background:transparent;padding:0}
@media(max-width:600px){.screen-view [data-name='Heading'],.screen-view [data-name='Class info panel'],.screen-view [data-name='Class detail sections']{height:auto;min-height:0;flex-direction:column;gap:16px;overflow:visible}.screen-view [data-name='Heading']>div,.screen-view [data-name='Class info panel']>div,.screen-view [data-name='Class detail sections']>div{width:100%;height:auto;min-height:0}.screen-view [data-name='Heading']>div>p,.screen-view [data-name='Class info panel'] p{width:100%}.screen-view [data-name='Heading text'] p:first-child{font-size:23px}.screen-view [data-name='Learning submenu'],.screen-view [data-name='Class details tabs'],.screen-view [data-name='Assignment filters']{flex-wrap:wrap;height:auto;gap:8px}.screen-view [data-name='Learning submenu']>*,.screen-view [data-name='Class details tabs']>*,.screen-view [data-name='Assignment filters']>*{width:auto;min-width:90px;flex:1;padding:8px}.screen-view [data-name='Learning submenu'] p,.screen-view [data-name='Class details tabs'] p{width:auto}.screen-view [data-name='Project cards 0'],.screen-view [data-name='Project cards 1']{display:grid;grid-template-columns:1fr;height:auto;overflow:visible}.screen-view [data-name='Project cards 0']>div,.screen-view [data-name='Project cards 1']>div{width:100%;height:auto;min-height:180px}.screen-view [data-name='Assignments numbers']{height:auto;flex-wrap:wrap;gap:8px}.screen-view [data-name='Assignments numbers']>div{width:calc(50% - 4px);height:auto;min-height:75px}.screen-view [data-name='Assignment table']{overflow-x:auto}.screen-view [data-name='Assignment table']>div{min-width:900px;max-width:none}.screen-view [data-name='Class detail']{padding:16px}.screen-view [data-name='Class numbers']{flex-direction:row}.screen-view [data-name='Class schedule'],.screen-view [data-name='Class detail sections']>div{padding:16px}.screen-view [data-name='class session']{height:auto;min-height:90px;gap:8px}.screen-view [data-name='session details']{flex:1;min-width:0}.screen-view [data-name='Project top']{width:100%}.screen-view [data-name='Project title']{flex:1;min-width:0}}
@media(max-width:600px){.screen-view [data-name='Studio independent app CTA']{flex-direction:column;height:auto;gap:18px;padding:24px;overflow:visible}.screen-view [data-name='Studio intro']{width:100%;height:auto;gap:12px}.screen-view [data-name='Studio intro'] p{width:100%}.screen-view [data-name='Projects filters']{height:auto;flex-wrap:wrap;gap:8px;overflow:visible}.screen-view [data-name='Projects filters']>div{width:calc(50% - 4px);flex-shrink:1}.screen-view [data-name='class session']{flex-wrap:wrap;overflow:visible;padding:12px}.screen-view [data-name='session details']{min-width:calc(100% - 90px);height:auto}.screen-view [data-name='session details'] p{height:auto}.screen-view [data-name='class session']>div:last-child{margin-left:86px}.screen-view [data-name='course summary']{height:auto;flex-wrap:wrap;overflow:visible}.screen-view [data-name='course summary']>div{width:100%;height:auto;min-height:70px}.screen-view [data-name='Metric']{width:100%;height:auto}}
/* Collapsible navigation: scrollable menu and a footer fixed to the sidebar bottom. */
.sidebar{width:296px;flex-basis:296px;padding:0;overflow:hidden;gap:0}
.sidebar-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 15px;display:flex;flex-direction:column;gap:2px;scrollbar-width:thin}
.sidebar-footer{flex-shrink:0;padding:12px 15px 16px;background:var(--navy)}
.sidebar-footer .preview-label{display:block;margin:0;white-space:nowrap}
.menu-toggle{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:9px;background:#e7f1ff;color:#15326f;font-size:23px;line-height:1}
.sidebar-close,.menu-backdrop{display:none}
@media(min-width:901px){
 .menu-collapsed .sidebar{width:72px;flex-basis:72px}
 .menu-collapsed .sidebar-scroll{padding:12px 10px}
 .menu-collapsed .brand{width:52px;height:64px}
 .menu-collapsed .brand img{width:52px;height:64px;object-fit:contain}
 .menu-collapsed .tenant,.menu-collapsed .nav-label,.menu-collapsed .nav-text,.menu-collapsed .chevron,.menu-collapsed .subnav,.menu-collapsed .support,.menu-collapsed .version-caption{display:none}
 .menu-collapsed .nav-group{width:52px;min-height:43px;padding:8px;justify-content:center}
 .menu-collapsed .sidebar-footer{padding:12px 4px 16px;text-align:center}
 .menu-collapsed .sidebar-footer small{font-size:9px}
}
@media(max-width:900px){
 .sidebar.mobile-open{left:0;top:0;height:100dvh}
 .sidebar-close{display:grid;place-items:center;position:absolute;right:8px;top:8px;z-index:2;width:32px;height:32px;border-radius:8px;background:#23447f;color:white;font-size:21px}
 .menu-backdrop{display:block;position:fixed;inset:0;z-index:49;background:#0d224c66}
 .menu-collapsed .sidebar{width:296px;flex-basis:296px}
}
/* Full-viewport application shell and fluid desktop content. */
.app-shell{height:100dvh;min-height:0;width:100%}
.sidebar{height:100dvh;min-height:0}
.workspace{height:100%;display:flex;flex-direction:column}
.topbar{flex:0 0 78px}
#main-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.screen-view{min-height:100%}
.screen-view>[data-name='Main content']{width:100%;max-width:none;margin:0;min-height:100%}
.screen-view>[data-name='Main content']>*{width:100%}
.app-shell.authentication{height:auto;min-height:100dvh}
[tabindex='-1']:focus{outline:none}
@media(min-width:901px){
 .screen-view [data-name='Heading'],.screen-view [data-name='Section title']{width:100%}
 .screen-view [data-name='Heading text']{flex:1;min-width:0}
 .screen-view [data-name='Heading']>[data-name='Actions']{margin-left:auto;flex-shrink:0}
 .screen-view [data-name='lesson · Robot dò line'],.screen-view [data-name='lesson · Điều khiển Servo'],.screen-view [data-name^='Shortcut ·']{width:100%}
 .screen-view [data-name='lesson texts'],.screen-view [data-name='lesson texts2']{flex:1;min-width:0}
 .screen-view [data-name='course summary'],.screen-view [data-name='Assignments numbers']{width:100%;gap:18px}
 .screen-view [data-name='course summary']>div,.screen-view [data-name='Assignments numbers']>div{flex:1;min-width:0}
 .screen-view [data-name='Project cards 0'],.screen-view [data-name='Project cards 1']{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .screen-view [data-name='Project cards 0']>div,.screen-view [data-name='Project cards 1']>div{width:100%}
 .screen-view [data-name='Project top']{width:100%}
 .screen-view [data-name='Project title']{flex:1;min-width:0}
 .screen-view [data-name='Class detail sections']{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);width:100%;height:auto}
 .screen-view [data-name='Class detail sections']>div{width:100%;height:auto;min-height:300px}
 .screen-view [data-name='Class info panel']{width:100%}
 .screen-view [data-name='Class detail']{flex:1;min-width:0}
 .screen-view [data-name='class session']{width:100%}
 .screen-view [data-name='session details']{flex:1;min-width:0}
 .screen-view [data-name='Studio intro']{flex:1;min-width:0}
 .screen-view [data-name='Assignment table']>div{width:100%;display:grid;grid-template-columns:minmax(220px,2.7fr) repeat(3,minmax(110px,1fr)) minmax(115px,1fr);align-items:center}
 .screen-view [data-name='Assignment table']>div>*{width:auto;max-width:100%}
 .screen-view [data-name='Analytics dashboards']{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);height:auto}
 .screen-view [data-name='Analytics dashboards']>div{width:100%;height:auto;min-height:320px}
 .screen-view [data-name='Quantitative bars']{width:100%;justify-content:space-around}
}
@media(max-width:900px){.topbar{flex-basis:70px}.screen-view>[data-name='Main content']{min-height:100%}}
.screen-view>[data-name='Main content']{min-height:calc(100dvh - 78px)}
@media(max-width:900px){.screen-view>[data-name='Main content']{min-height:calc(100dvh - 70px)}}
/* Readable navigation with room for Vietnamese labels. */
.sidebar .brand{margin-inline:auto}
.sidebar-scroll{gap:3px}
.nav-group{width:100%;font-size:16px;font-weight:500;line-height:1.45;min-height:46px;padding:8px 10px;gap:10px}
.nav-group.active{font-weight:600}
.nav-text{min-width:0}.nav-icon{width:30px;height:30px;border-radius:8px}.nav-icon img{width:20px;height:20px}.chevron{font-size:16px;flex-shrink:0}
.subnav{font-size:14px;line-height:1.5;min-height:40px;padding:9px 12px 9px 50px}
.tenant{height:auto;min-height:76px;padding:14px;gap:5px}.tenant small{font-size:11px;line-height:1.4}.tenant strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.nav-label{font-size:11px;line-height:1.5;padding:4px 0}
.support{padding:14px;min-height:84px}.support strong{font-size:14px}.support small{font-size:12px;line-height:1.5}
.sidebar-footer .preview-label{font-size:11px;line-height:1.5}
@media(max-width:900px){.sidebar.mobile-open,.menu-collapsed .sidebar{width:min(296px,calc(100vw - 32px));flex-basis:min(296px,calc(100vw - 32px))}.sidebar.mobile-open{z-index:90}.menu-backdrop{z-index:89}}
.auth-view .auth-module{width:100%;min-height:100dvh;display:grid;grid-template-columns:46% 54%;border-radius:0}
.auth-view .auth-module>section{height:auto;min-height:100dvh;width:100%}
.auth-brand{background:linear-gradient(90deg,#123b91,#5045ab);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:48px;color:white}
.auth-brand img{max-width:100%;height:auto;object-fit:contain}
.auth-brand h2,.auth-brand p{width:535px;max-width:100%}.auth-brand h2{font-size:23px}
.auth-form-panel{display:flex;align-items:center;justify-content:center;background:white;padding:48px}
.auth-form{width:540px;max-width:100%}.auth-form h1{font-size:27px;margin-bottom:16px}.auth-form>p{color:#7385a0;margin-bottom:24px;line-height:1.6}
.auth-form label{display:block;margin:24px 0 8px;font-weight:600;color:#6f809d}
.auth-form input{width:100%;height:44px;background:#fafcff;border:1px solid #dfe9f8;border-radius:9px;padding:12px;color:#233554}
.auth-password{position:relative}.auth-password input{padding-right:64px}.auth-password button{position:absolute;right:12px;top:12px;color:#2563eb}
.auth-submit{width:100%;background:#2563eb;color:white;border-radius:10px;padding:14px 16px;margin-top:24px;font-weight:600;text-align:center}
.auth-link{color:#2563eb;padding:10px 6px}.auth-form small{display:block;color:#7385a0;margin-top:14px;line-height:1.5}
.auth-form .auth-error{background:#fff0ec;color:#b42318;padding:14px;border-radius:9px;margin-top:20px}
.tenant-choice{width:100%;padding:20px;background:#f0f7ff;border:2px solid transparent;border-radius:14px;margin:8px 0;font-weight:600}
.tenant-choice.selected{border-color:#2563eb;background:#e7f1ff}.auth-check{padding:32px;line-height:1.8}.auth-check a,.auth-check button{display:inline-block;margin:12px;color:#2563eb}
@media(max-width:900px){.auth-view .auth-module{grid-template-columns:1fr}.auth-view .auth-module>section{min-height:0}.auth-brand{padding:28px;gap:14px}.auth-brand img{width:240px}.auth-brand h2,.auth-brand p{display:none}.auth-form-panel{padding:32px 24px;min-height:600px!important}}
.account-profile{padding:32px;max-width:850px}.account-profile h1{font-size:26px;margin-bottom:24px}.account-profile h2{margin:24px 0 12px}.account-profile dl{display:grid;grid-template-columns:200px 1fr;gap:14px;background:white;border-radius:14px;padding:24px}.account-profile dt{color:#7385a0}.account-profile dd{margin:0}.account-profile .auth-submit{max-width:250px;display:block}@media(max-width:600px){.account-profile{padding:20px}.account-profile dl{grid-template-columns:1fr;gap:8px}.account-profile dd{margin-bottom:12px}}
.auth-view .auth-module{grid-template-columns:minmax(0,46fr) minmax(0,54fr)}
.auth-view .auth-module>section{min-width:0}.auth-form{min-width:0;width:100%;max-width:540px}
@media(max-width:900px){.auth-view .auth-module{grid-template-columns:minmax(0,1fr)}}
.mqtt-page{padding:28px;min-height:100%;background:#f0f7ff}.mqtt-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.mqtt-heading small{color:#2563eb;font-weight:600}.mqtt-heading h1{font-size:27px;margin:8px 0}.mqtt-heading p{color:#7385a0}.mqtt-state{padding:10px 16px;border-radius:24px;background:#e7f1ff;color:#2563eb;white-space:nowrap;font-weight:600}.mqtt-state.ready{background:#e7f9f3;color:#118c70}.mqtt-state.error,.mqtt-state.forbidden{background:#fff0ec;color:#b42318}.mqtt-endpoints{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.mqtt-endpoints>div{background:white;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:8px;min-width:0}.mqtt-endpoints small{color:#7385a0}.mqtt-endpoints strong{overflow-wrap:anywhere}.mqtt-notice{padding:20px;background:#fff8e5;border-radius:14px;margin:20px 0;line-height:1.7}.mqtt-notice h2{font-size:17px;margin-bottom:8px}.mqtt-notice a{display:inline-block;color:#2563eb;font-weight:600;margin-top:12px}.mqtt-controls{display:flex;align-items:end;gap:12px;margin:20px 0;flex-wrap:wrap}.mqtt-controls label{display:flex;flex-direction:column;gap:8px;min-width:220px}.mqtt-controls select{padding:12px;border:1px solid #dfe9f8;border-radius:9px;background:white}.mqtt-controls .auth-submit{margin:0;width:auto}.mqtt-metrics{display:grid;grid-template-columns:1fr 1fr 2fr;gap:18px;margin:20px 0}.mqtt-metrics>div{background:white;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0}.mqtt-metrics span{color:#7385a0}.mqtt-metrics strong{font-size:24px;color:#2563eb}.mqtt-metrics .mqtt-client-id{font-size:13px;overflow-wrap:anywhere}.mqtt-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px}.mqtt-card{background:white;border-radius:15px;padding:24px;min-width:0;min-height:280px}.mqtt-card h2{font-size:18px;margin-bottom:16px}.mqtt-card>p{color:#7385a0;line-height:1.7}.mqtt-grant{padding:14px 0;border-bottom:1px solid #e7f1ff;display:flex;flex-direction:column;gap:6px}.mqtt-grant code,.mqtt-message code{overflow-wrap:anywhere;color:#2563eb}.mqtt-grant small,.mqtt-message time{color:#7385a0}.mqtt-inbox-title{display:flex;align-items:center;justify-content:space-between}.mqtt-message{padding:16px 0;border-bottom:1px solid #e7f1ff;display:flex;flex-direction:column;gap:8px}.mqtt-message pre{font:inherit;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f9ff;padding:12px;border-radius:8px;margin:0}@media(max-width:900px){.mqtt-content{grid-template-columns:1fr}}@media(max-width:600px){.mqtt-page{padding:18px}.mqtt-heading{align-items:start;flex-direction:column}.mqtt-heading h1{font-size:23px}.mqtt-endpoints{grid-template-columns:1fr}.mqtt-metrics{grid-template-columns:1fr 1fr}.mqtt-metrics>div:last-child{grid-column:1/-1}.mqtt-card{padding:18px}}
.notification-menu{position:relative;flex-shrink:0;z-index:60}.notification-bell{position:relative;z-index:82;display:flex;align-items:center;justify-content:center;width:44px;height:38px;background:#eef6ff;border-radius:12px;font-size:18px}.notification-badge{position:absolute;right:-4px;top:-5px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;background:#e5484d;color:white;border:2px solid white;border-radius:12px;font-size:10px;font-weight:700}.notification-dismiss{position:fixed;inset:0;z-index:80;background:transparent;cursor:default}.notification-popover{position:absolute;right:0;top:48px;z-index:81;width:400px;max-width:calc(100vw - 24px);border-radius:16px;background:white;box-shadow:0 16px 50px #15326f30;border:1px solid #dfe9f8;overflow:hidden}.notification-popover>header{display:flex;flex-direction:column;gap:5px;padding:18px 20px;border-bottom:1px solid #e7f1ff}.notification-popover>header strong{font-size:17px}.notification-popover>header small{color:#7385a0;font-size:11px}.notification-scroll{max-height:min(440px,calc(100dvh - 170px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.notification-item{display:flex;flex-direction:column;gap:7px;width:100%;padding:16px 20px;border-bottom:1px solid #edf2fa;text-align:left;background:white}.notification-item:hover{background:#f0f7ff}.notification-item.unread{background:#f0f7ff}.notification-item-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:600;overflow-wrap:anywhere}.unread-dot{flex-shrink:0;width:7px;height:7px;border-radius:50%;background:#2563eb}.notification-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#7385a0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.notification-item time{font-size:10px;color:#7385a0}.notification-empty{padding:30px 20px;color:#7385a0;text-align:center}.notification-detail{padding:28px;max-width:1100px;margin:auto}.notification-detail>a{display:inline-block;margin-bottom:20px;color:#2563eb}.notification-detail article{padding:28px;background:white;border-radius:16px}.notification-detail h1{font-size:25px;margin-bottom:12px;overflow-wrap:anywhere}.notification-detail time{color:#7385a0}.notification-detail pre{font:inherit;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:24px 0}.notification-detail details{border-top:1px solid #e7f1ff;padding-top:16px;color:#7385a0}.notification-detail code{display:block;overflow-wrap:anywhere;margin-top:12px}@media(max-width:600px){.notification-bell{width:34px;height:34px}.notification-popover{position:fixed;left:12px;right:12px;top:64px;width:auto;max-width:none}.notification-detail{padding:18px}.notification-detail article{padding:20px}.notification-detail h1{font-size:22px}.topbar .search-box{width:105px;min-width:60px}.topbar .breadcrumb{min-width:0}}

.notification-read-all{border:0;background:transparent;color:#2563eb;font-size:12px;cursor:pointer;padding:6px 0;text-align:left}.notification-read-all:disabled{opacity:.45;cursor:default}
.account-menu{position:relative;flex-shrink:0}.account-trigger{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#17366e;cursor:pointer;font:inherit}.account-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e5efff;color:#2563eb;font-weight:700}.account-fullname{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.account-dismiss{position:fixed;inset:0;border:0;background:transparent;z-index:80}.account-popover{position:absolute;right:0;top:46px;width:340px;max-width:calc(100vw - 24px);padding:22px;background:white;border:1px solid #d9e5f8;border-radius:16px;box-shadow:0 16px 45px #17366e26;z-index:81;max-height:calc(100dvh - 90px);overflow:auto}.account-popover h2{font-size:18px;margin:0 0 16px}.account-popover dl{display:grid;grid-template-columns:1fr;gap:6px}.account-popover dt{color:#7385a0;font-size:12px}.account-popover dd{margin:0 0 10px;overflow-wrap:anywhere}.account-profile{max-width:1100px}.account-profile dd{overflow-wrap:anywhere;min-width:0}.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.profile-heading h1{margin-bottom:8px}.profile-heading p{color:#7385a0}.profile-grants{padding:20px;background:white;border-radius:14px;overflow-wrap:anywhere}.profile-grants p{margin:10px 0}.account-profile dd p{margin:0 0 8px}@media(max-width:700px){.account-fullname{max-width:110px;font-size:12px}.topbar .search-box{display:none}.account-popover{position:fixed;top:64px;right:12px;left:12px;width:auto}.profile-heading{align-items:flex-start;flex-direction:column}.profile-heading button{margin-bottom:16px}.account-profile h1{font-size:24px}}
@media(max-width:700px){.topbar .breadcrumb{display:none}.account-fullname{max-width:155px;white-space:normal;text-align:left;line-height:1.3}.topbar{gap:8px}.account-trigger{gap:6px}}
.admin-page{padding:28px;max-width:1500px;margin:auto}.admin-heading,.admin-toolbar,.admin-card>header,.admin-actions,.admin-site{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-heading small{color:#5475a3;font-weight:700}.admin-heading h1{font-size:26px;margin:8px 0}.admin-heading p{color:#7385a0}.admin-page button{font:inherit;font-size:13px;padding:9px 14px;border:1px solid #d5e2f6;background:white;color:#17366e;border-radius:9px;cursor:pointer}.admin-page button.primary{background:#2563eb;color:white;border-color:#2563eb}.admin-page button:disabled{opacity:.5;cursor:default}.admin-tabs{display:flex;gap:8px;overflow-x:auto;padding:18px 0;margin:8px 0 14px;border-bottom:1px solid #dce7f7}.admin-tabs a{white-space:nowrap;padding:10px 14px;border-radius:9px;background:white;font-size:13px}.admin-tabs .selected{background:#2563eb;color:white}.admin-toolbar{margin:20px 0}.admin-toolbar label{width:min(400px,65%)}.admin-page label{display:flex;flex-direction:column;gap:8px;font-size:13px}.admin-page input,.admin-page select,.admin-page textarea{font:inherit;padding:11px;border:1px solid #cbdaf1;border-radius:8px;min-width:0;color:#17366e;background:white}.admin-page textarea{min-height:90px;resize:vertical}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:18px}.admin-card,.admin-empty{background:white;border:1px solid #e0e9f7;border-radius:15px;padding:22px;margin-bottom:16px;min-width:0;overflow-wrap:anywhere}.admin-card h2{font-size:18px;margin:8px 0}.admin-card h3{font-size:14px;margin:18px 0 8px}.admin-card small{color:#7385a0}.admin-id{display:block;font-size:10px;margin:8px 0}.admin-state{background:#eaf3ff;border-radius:14px;padding:6px 10px;font-size:11px;white-space:nowrap}.admin-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:16px}.admin-site{padding:12px 0;border-top:1px solid #edf2fb}.admin-site small{display:block;margin-top:5px}.admin-notice,.admin-error{padding:14px 18px;background:#eaf3ff;border-radius:10px;line-height:1.6}.admin-error{background:#fff0ef;color:#a52626}.admin-card dl{display:grid;grid-template-columns:110px 1fr;gap:10px;font-size:13px}.admin-card dd{margin:0}.admin-modal-backdrop{position:fixed;inset:0;background:#10224c66;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px}.admin-dialog{background:white;border-radius:18px;padding:26px;width:540px;max-width:100%;max-height:90dvh;overflow:auto;box-shadow:0 25px 70px #15274d40}.admin-dialog h2{font-size:22px;margin:0 0 20px}.admin-dialog label{margin:16px 0}.admin-dialog p{font-size:13px;line-height:1.7}.admin-dialog .admin-actions{justify-content:flex-end}.admin-card details p{font-size:12px}.admin-card code{font-size:12px}@media(max-width:700px){.admin-page{padding:18px}.admin-heading{align-items:flex-start}.admin-heading h1{font-size:22px}.admin-heading p{font-size:12px}.admin-dialog{padding:20px}.admin-toolbar{align-items:flex-end}.admin-actions button{font-size:12px}.admin-tabs{margin:0 0 10px}.admin-card{padding:17px}}
@media(max-width:700px){.admin-heading>button{white-space:nowrap;flex-shrink:0}}
.mqtt-publish{margin:18px 0}.mqtt-publish label{display:flex;flex-direction:column;gap:8px;margin:14px 0}.mqtt-publish select,.mqtt-publish textarea{padding:12px;border:1px solid #cbdaf1;border-radius:9px;max-width:100%;font:inherit}.mqtt-publish p{font-size:13px;overflow-wrap:anywhere}
.login-context{margin:18px 0;font-size:13px}.login-context summary{cursor:pointer;color:#2563eb}.login-context p{font-size:12px;margin:10px 0}
body:has(.auth-loading-overlay){overflow:hidden}
.auth-loading-overlay{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:rgba(13,34,76,.5);backdrop-filter:blur(3px);cursor:wait;touch-action:none;overscroll-behavior:contain}
.auth-loading-card{display:flex;flex-direction:column;align-items:center;gap:14px;width:min(360px,100%);padding:32px 24px;background:#fff;border-radius:18px;box-shadow:0 20px 60px #071c4e44;text-align:center;color:var(--text)}
.auth-loading-card strong{font-size:18px}.auth-loading-card p{font-size:14px;color:var(--muted);line-height:1.5}
.auth-loading-spinner{width:44px;height:44px;border:4px solid #e7f1ff;border-top-color:var(--blue);border-radius:50%;animation:auth-loading-spin .8s linear infinite}
@keyframes auth-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.auth-loading-spinner{animation:none}}
.studio-project-heading{width:100%;height:auto;min-height:60px;align-items:center;flex-wrap:wrap;overflow:visible}
.studio-project-heading>[data-name='Heading text']{width:auto;height:auto;min-width:0;flex:1 1 300px;overflow:visible}
.studio-project-actions{width:auto;height:auto;gap:10px;flex-wrap:wrap;overflow:visible}
@media(max-width:600px){.studio-project-heading>[data-name='Heading text']{flex:0 0 auto}}
.studio-launch-error{flex-basis:100%;max-width:480px;color:#b42318;background:#fff0ec;border-radius:9px;padding:12px;line-height:1.6;overflow-wrap:anywhere}.studio-launch-error a{display:block;color:#2563eb;text-decoration:underline;margin-top:6px}

/* Apply the standard typeface to native controls and code/data text as well. */
html,button,input,textarea,select,option,optgroup,code,pre,kbd,samp{font-family:var(--font-ui)}

@media(min-width:901px) and (max-width:1280px){.topbar .search-box,.topbar .ai{display:none}.topbar .breadcrumb{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.topbar .account-fullname{max-width:140px}}

/* Extensible language selector; also available before authentication. */
.language-switcher{display:flex;align-items:center;gap:4px;flex-shrink:0}.language-option{display:flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:8px;background:transparent;padding:7px;color:var(--ink,#17366c);font-size:12px;cursor:pointer}.language-option img{display:block;width:26px;height:18px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px #0002}.language-option.selected{background:#e7f0ff;border-color:#7ba6f8}.language-option:focus-visible{outline:3px solid #255ff4;outline-offset:2px}.auth-language{position:fixed;right:24px;top:18px;z-index:40;background:#fff;border-radius:10px;box-shadow:0 2px 12px #183b6812}.topbar{gap:12px}.topbar .search-box{min-width:120px}.topbar .breadcrumb{white-space:nowrap}@media(max-width:1100px){.topbar .language-option span{display:none}.topbar .search-box{max-width:250px}}@media(max-width:600px){.auth-language{right:12px;top:10px}.topbar{gap:6px}.topbar .language-option{padding:5px}.topbar .language-option img{width:23px;height:16px}.topbar .breadcrumb{max-width:100px;overflow:hidden;text-overflow:ellipsis}.auth-form-panel{padding-top:70px}}
