/* Light document workspace. Shared controls, tables and forms. */
:root{color-scheme:dark;font-family:Inter,'Segoe UI','Malgun Gothic',sans-serif;font-size:16px;line-height:1.5;background:#191919;color:#ededeb;--bg:#191919;--surface:#191919;--raised:#292929;--line:#383838;--muted:#a5a5a0;--accent:#2383e2;--focus:#90c7f4}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
html{scrollbar-gutter:stable}
h1,h2,h3,p{margin:0}
button,input,select,textarea{font:inherit}
button,summary{cursor:pointer;-webkit-tap-highlight-color:transparent}
button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:var(--raised);color:#ededeb;font-size:14px;font-weight:600;line-height:1.4;transition:background .15s,border-color .15s}
button:hover{background:#292929;border-color:#383838}
button:disabled{opacity:.45;cursor:not-allowed}
button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
button svg{width:18px;height:18px;flex-shrink:0}
.primary{background:var(--accent);border-color:var(--accent);color:#ededeb}
.primary:hover{background:#0073cf;border-color:#0073cf}
.danger{color:#f0a5a5}
.muted{color:var(--muted)}
.loading{padding:80px 24px;text-align:center;color:var(--muted)}
[hidden]{display:none!important}
.app-header{background:#202020;border-bottom:1px solid var(--line)}
.header-inner{max-width:1200px;margin:auto;min-height:96px;padding:20px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:13px;min-width:0}
.brand-mark{display:grid;place-items:center;width:42px;height:46px;color:var(--accent);border:1px solid #383838;border-radius:10px;background:#292929;flex-shrink:0}
.brand-mark svg{width:26px;height:26px}
.brand strong{display:block;font-size:21px;letter-spacing:-.7px;font-weight:700;line-height:1.3}
.brand small{display:block;margin-top:5px;color:var(--muted);font-size:12px;letter-spacing:-.2px}
.header-actions{display:flex;align-items:center;gap:16px}
.preview-badge{font-size:12px;font-weight:600;color:var(--accent);border:1px solid #233345;border-radius:5px;padding:4px 8px;white-space:nowrap}
.account-menu{position:relative}
.account-menu summary{display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:8px;padding:5px;list-style:none;min-height:44px}
.account-menu summary::-webkit-details-marker{display:none}
.account-menu summary:hover,.account-menu[open] summary{background:var(--raised)}
.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#292929;color:#ededeb;font-size:13px;font-weight:700}
.account-name{font-size:14px}
.chevron{color:var(--muted);padding:0 3px}
.account-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:232px;padding:7px;background:#292929;border:1px solid #383838;border-radius:10px;box-shadow:0 12px 40px #0001;z-index:10}
.account-info{padding:10px 11px 15px;margin-bottom:5px;border-bottom:1px solid #383838;display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:12px}
.account-info span{color:var(--muted);font-size:12px}
.account-dropdown button{display:flex;justify-content:flex-start;width:100%;border:0;background:none;min-height:44px;font-weight:400}
.account-dropdown button:hover{background:#292929}
.workspace{max-width:1200px;margin:auto;padding:0 32px 48px}
.tabbar{display:flex;gap:26px;border-bottom:1px solid var(--line);min-height:70px;align-items:stretch}
.tabbar button{position:relative;gap:9px;min-height:70px;padding:0 2px;background:none;border:0;border-radius:0;color:#a5a5a0;font-size:14px;white-space:nowrap}
.tabbar button:hover{color:#ededeb;background:none}
.tabbar button.active{color:var(--accent)}
.tabbar button.active:after{content:'';position:absolute;height:2px;background:var(--accent);bottom:-1px;left:0;right:0;border-radius:2px}
.tabbar svg{width:18px;height:18px}
main{padding-top:34px}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:44px;margin-bottom:26px}
h1{font-size:28px;letter-spacing:-1px;line-height:1.3;font-weight:650}
h2{font-size:16px;font-weight:600;letter-spacing:-.3px}
h3{font-size:16px;font-weight:600}
.panel{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;margin-bottom:24px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid #383838;min-height:65px}
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:174px;padding:35px 24px}
.empty-icon{width:40px;height:40px;display:grid;place-items:center;color:#a5a5a0}
.empty-icon svg{width:30px;height:30px}
.empty h3{font-size:14px;font-weight:400;color:var(--muted)}
.badge{display:inline-block;white-space:nowrap;border-radius:5px;padding:4px 8px;line-height:1.5;font-size:12px;font-weight:500;color:#a5a5a0;background:#292929}
.badge.pending,.badge.awaiting_template{background:#403727;color:#e0c18a}
.badge.approved{background:#2c3c31;color:#a6cbb0}
.badge.rejected{background:#442e2e;color:#f0a5a5}
.badge.cancelled{background:#333333;color:#a5a5a0}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}
th{padding:13px 24px;background:#202020;color:#a5a5a0;font-size:12px;font-weight:500;white-space:nowrap}
td{padding:20px 24px;border-top:1px solid #383838;vertical-align:middle}
.cell-content{min-width:0;overflow-wrap:anywhere;line-height:1.6}
.cell-content small{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
.cell-content .badge{vertical-align:middle}
.cell-content .actions{display:flex;flex-wrap:wrap;gap:8px}
.cell-content button{font-size:12px;min-height:38px;padding:8px 11px}
.purpose{max-width:300px}
tbody tr:hover{background:#202020}
.vm-grid{padding:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.vm{border:1px solid #383838;border-radius:9px;padding:20px;background:#191919}
.vm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.vm h3{overflow-wrap:anywhere}
.vm>p{color:var(--muted);font-size:13px;margin:9px 0 22px}
.vm-spec{display:flex;flex-wrap:wrap;gap:12px 23px;font-size:13px;margin-bottom:17px;color:#a5a5a0}
.vm-spec b{color:#ededeb;font-size:17px;font-weight:600}
.vm-note{font-size:12px;color:var(--muted);padding:13px 0;border-top:1px solid var(--line)}
.vm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}
.vm-actions button{font-size:12px;min-height:38px}
.event{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:19px 24px;border-bottom:1px solid #383838;font-size:14px}
.event:last-child{border:0}
.event span{overflow-wrap:anywhere}
.event time{color:var(--muted);font-size:12px;white-space:nowrap}
dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #383838;border-radius:14px;background:#191919;color:#ededeb;box-shadow:0 30px 100px #0002}
dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 24px;border-bottom:1px solid #383838}
.dialog-head h2{font-size:20px;letter-spacing:-.5px}
.dialog-head button{width:38px;padding:0;background:none;border:0;font-size:25px;color:var(--muted)}
.dialog-body{padding:25px 24px 10px}
.dialog-body p{font-size:14px;line-height:1.8;margin-bottom:18px;color:#a5a5a0}
.dialog-foot{display:flex;justify-content:flex-end;gap:9px;position:sticky;bottom:0;background:#191919;border-top:1px solid #383838;padding:17px 24px}
label{display:block;font-size:14px;font-weight:500;margin-bottom:20px;color:#ededeb}
input,select,textarea{display:block;width:100%;margin-top:9px;padding:12px 13px;font-size:16px;color:#ededeb;background:#191919;border:1px solid #383838;border-radius:7px;min-height:46px}
input::placeholder,textarea::placeholder{color:#a5a5a0;opacity:1}
input:focus,textarea:focus,select:focus{border-color:#2383e2}
label small{display:block;margin-top:7px;font-size:12px;font-weight:400;color:#a5a5a0;line-height:1.6}
textarea{min-height:100px;resize:none;line-height:1.6}
.form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.error,.dialog-body p.error{color:#f0a5a5;font-size:13px;line-height:1.7;margin:10px 0}
.error:empty{display:none}
.auth{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 20px 60px}
.auth-brand{margin-bottom:32px}
.auth-card{width:min(420px,calc(100vw - 40px));padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.auth-card h2{font-size:23px;margin-bottom:25px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#202020;border-radius:8px;margin-bottom:26px}
.auth-tabs button{background:none;border:0;color:#a5a5a0}
.auth-tabs .selected{background:#292929;color:#ededeb}
.auth-card .primary{width:100%;margin-top:4px}
#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 20px;max-width:calc(100vw - 32px);background:#233345;border:1px solid #233345;border-radius:9px;color:#c4d7eb;box-shadow:0 6px 30px #0001;font-size:14px;z-index:30}
::selection{background:#233345;color:#191919}
@media(max-width:850px){.header-inner{padding:18px 24px}.workspace{padding:0 24px 32px}.vm-grid{grid-template-columns:1fr}.tabbar{gap:22px}}
@media(max-width:600px){
 html{scrollbar-gutter:auto}
 .header-inner{min-height:85px;padding:18px 20px;gap:12px}
 .brand{gap:10px}.brand-mark{width:34px;height:39px;border-radius:8px}.brand-mark svg{width:22px;height:22px}
 .brand strong{font-size:19px}.brand small{font-size:10px;margin-top:4px}
 .header-actions{gap:8px}.account-name,.chevron{display:none}.account-menu summary{padding:0;min-width:36px}
 .preview-badge{font-size:10px;padding:3px 6px}.account-dropdown{right:0;width:220px}
 .workspace{padding:0 20px 30px}
 .tabbar{gap:0;justify-content:space-between;min-height:64px}
 .tabbar button{min-width:0;padding:0 6px;min-height:64px;gap:6px;font-size:13px}
 .tabbar svg{display:none}
 main{padding-top:27px}.page-head{margin-bottom:21px;min-height:44px}h1{font-size:24px}
 .page-head>.primary{font-size:13px;min-height:44px;padding:10px 13px}
 .panel{margin-bottom:19px;border-radius:10px}.panel-head{padding:17px 18px;min-height:59px}
 .empty{min-height:155px;padding:26px 18px;gap:10px}.empty-icon svg{width:27px;height:27px}
 .table-wrap{overflow:visible}table,tbody{display:block;width:100%}
 thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 tbody tr{display:block;padding:12px 18px;border-top:1px solid #383838}tbody tr:first-child{border-top:0}
 td{display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px;padding:9px 0;border:0;font-size:13px}
 td:before{content:attr(data-label);color:#a5a5a0;font-size:12px;line-height:1.6;padding-top:2px}
 .cell-content{grid-column:2;grid-row:1}.cell-content button{min-height:44px}.purpose{max-width:none}
 .event{padding:17px 18px;flex-direction:column;gap:6px}.event time{font-size:12px}
 .vm-grid{padding:15px}.vm{padding:17px}.vm-actions button{min-height:44px}
 dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:12px}
 .dialog-head{padding:16px 18px}.dialog-head h2{font-size:19px}.dialog-head button{min-height:44px;width:44px}
 .dialog-body{padding:21px 18px 5px}.dialog-foot{padding:15px 18px;flex-wrap:wrap}.dialog-foot button{flex:1;min-height:44px}
 .form-row{gap:9px}.form-row label{font-size:12px}.form-row input{padding:12px 9px}
 .auth{padding-top:35px}.auth-card{padding:26px}.auth-brand .brand small{font-size:12px}.auth-brand .brand strong{font-size:23px}
}
@media(max-width:360px){.header-inner{padding:16px}.workspace{padding-left:16px;padding-right:16px}.brand small{font-size:9px}.header-actions{gap:5px}.tabbar button{font-size:12px;padding:0 4px}.preview-badge{font-size:9px}}
@media(prefers-reduced-motion:reduce){button{transition:none}dialog::backdrop{backdrop-filter:none}}

/* Document layout: quiet sidebar, open page and database-style sections. */
button{border-radius:5px;font-weight:500}
.primary{color:white;background:#2383e2;border-color:#2383e2}
.primary:hover{color:white;background:#0073cf;border-color:#0073cf}
.notebook-sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#202020;border-right:1px solid #383838;padding:28px 14px}
.notebook-sidebar .brand{gap:9px;padding:0 8px 30px}
.brand-mark{width:29px;height:31px;border:1px solid #383838;border-radius:4px;background:#191919;color:#ededeb}
.brand-mark svg{width:21px;height:21px}
.brand strong{font-size:17px;letter-spacing:-.5px}
.brand small{font-size:11px;color:#a5a5a0}
.pages-menu>summary{display:none}
.pages-menu:not([open])>nav{display:flex}
.tabbar{display:flex;flex-direction:column;gap:3px;border:0;min-height:0;align-items:stretch}
.tabbar button{min-height:40px;justify-content:flex-start;padding:9px 11px;gap:10px;border-radius:5px;color:#a5a5a0;font-size:14px;white-space:normal}
.tabbar button.active{color:#ededeb;background:#333333;font-weight:600;box-shadow:inset 2px 0 #65655f}
.tabbar button.active:after{display:none}
.tabbar button:hover{background:#333333;color:#ededeb}
.tabbar svg{display:block;width:17px;height:17px;color:#a5a5a0}
.workspace{margin:0 0 0 240px;padding:0 0 60px;max-width:none}
.app-header{height:60px;min-height:60px;border:0;background:#191919;padding:12px 30px;display:flex;justify-content:flex-end;align-items:center}
.header-actions{gap:12px}
.preview-badge{background:#292929;color:#a5a5a0;border:0}
.avatar{background:#292929;color:#c9c9c5;border-radius:5px}
.account-dropdown{box-shadow:0 8px 30px #00000012,0 2px 6px #00000008;background:#191919;border-color:#383838;border-radius:7px}
.account-info{border-color:#383838}
.account-dropdown button:hover{background:#292929}
main{max-width:1000px;margin:auto;padding:35px 55px 0}
.page-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:18px;color:#c9c9c5;background:#292929;border:1px solid #383838;border-radius:10px}
.page-icon svg{width:29px;height:29px;stroke-width:1.5}
.page-head{margin-bottom:30px;min-height:47px}
h1{font-size:34px;font-weight:700;letter-spacing:-1.2px;line-height:1.35}
.page-head .primary{min-height:40px;padding:9px 14px;font-size:14px;box-shadow:0 1px 2px #0000000d}
.panel{border:0;border-radius:0;margin-bottom:30px;overflow:visible;background:#191919}
.panel-head{min-height:49px;padding:10px 0;border-bottom:1px solid #383838}
.panel-head h2{font-size:16px;font-weight:600}
.badge{border-radius:3px;padding:2px 7px}
.empty{min-height:98px;padding:24px;gap:12px;flex-direction:row;background:#202020;border-bottom:1px solid #383838}
.empty-icon{display:grid;width:28px;height:28px;color:#a5a5a0}.empty-icon svg{width:23px;height:23px}
.empty h3{font-size:14px;color:#a5a5a0}
th{padding:10px 16px;background:#202020;border-bottom:1px solid #383838}
td{padding:15px 16px;border-top:0;border-bottom:1px solid #383838}
.cell-content button{background:#191919}
.cell-content button:hover{background:#292929}
.cell-content button.primary{background:#2383e2;color:white}
.vm-grid{padding:18px 0;gap:16px}
.vm{background:#191919;border-color:#383838;border-radius:5px}
.vm-spec b{color:#ededeb}
.event{padding:16px 0}
.auth{background:#191919}
.auth-brand .brand strong{font-size:23px}
.auth-brand .brand small{font-size:12px}
.auth-card{background:#191919;border:1px solid #383838;box-shadow:0 8px 32px #00000008;border-radius:10px}
.auth-tabs{border:1px solid #383838;background:#202020;border-radius:5px}
.auth-tabs .selected{background:#191919;color:#ededeb;box-shadow:0 1px 4px #0001}
dialog{background:#191919;border-color:#383838;border-radius:12px}
.dialog-head,.dialog-foot{background:#191919;border-color:#383838}
input,select,textarea{background:#191919;border-color:#383838;border-radius:6px}
.dialog-head h2{font-weight:650}
@media(max-width:1000px) and (min-width:701px){.notebook-sidebar{width:215px;padding-left:10px;padding-right:10px}.workspace{margin-left:215px}main{padding:30px 32px 0}.brand strong{font-size:16px}}
@media(max-width:700px){
 .notebook-sidebar{position:relative;width:auto;inset:auto;padding:18px 20px 0;border-right:0;border-bottom:1px solid #383838}
 .notebook-sidebar .brand{padding:0 70px 16px 0}.brand strong{font-size:18px}.brand small{font-size:10px}
 .pages-menu>summary{display:flex;position:absolute;right:20px;top:15px;gap:8px;align-items:center;justify-content:center;min-height:44px;padding:8px 11px;font-size:13px;border-radius:4px;background:#292929;list-style:none}
 .pages-menu>summary::-webkit-details-marker{display:none}
 .pages-menu:not([open])>nav{display:none}
 .tabbar{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:0 0 13px}
 .tabbar button{min-height:44px;padding:10px 8px;font-size:13px}.tabbar svg{display:block}
 .workspace{margin:0;padding:0 0 30px}
 .app-header{height:52px;min-height:52px;padding:6px 20px}
 main{padding:16px 22px 0}
 .page-icon{width:41px;height:41px;margin-bottom:15px;border-radius:8px}.page-icon svg{width:25px;height:25px}
 h1{font-size:28px;letter-spacing:-.9px}.page-head{margin-bottom:27px;min-height:44px;gap:10px}
 .page-head .primary{min-height:44px;padding:10px 12px;font-size:13px}
 .panel{margin-bottom:28px}.panel-head{padding:10px 0;min-height:47px}
 .empty{min-height:91px;padding:21px 16px}.panel-head h2{font-size:15px}
 tbody tr{padding:12px 0;border-color:#383838}td{border:0;padding:9px 0}
 td:before{color:#a5a5a0}.event{padding:15px 0}
 .vm-grid{padding:15px 0}.vm{padding:17px}
 .account-name,.chevron{display:none}.account-menu summary{min-width:36px}
}

/* Finishing details shared across pages and dialogs. */
:root{--focus:#2383e2}
.tabbar button:focus-visible{outline-offset:1px}
.tabbar button.active svg{color:#c9c9c5}
.page-head .primary:hover{box-shadow:0 2px 4px #00000012}
.preview-badge{border:1px solid #383838;font-weight:400}
.account-menu summary{border-radius:6px}
.avatar{border:1px solid #383838}
.panel-head .badge{font-size:12px;min-width:25px;text-align:center}
.panel-head h2{letter-spacing:-.25px}
.cell-content small{line-height:1.7}
.cell-content .badge{margin-left:3px}
.vm{box-shadow:0 1px 3px #00000005}
.vm-note{color:#a5a5a0}
.dialog-head{padding:18px 24px}
.dialog-foot{background:#202020}
.dialog-body label{color:#c9c9c5}
input::placeholder,textarea::placeholder{color:#a5a5a0}
input:hover,select:hover,textarea:hover{border-color:#65655f}
input:focus,select:focus,textarea:focus{border-color:#2383e2;box-shadow:0 0 0 2px #2383e210}
.auth-tabs button{font-size:14px}
.auth-card h2{font-weight:650}
@media(max-width:700px){.tabbar button.active{box-shadow:none}.dialog-head{padding:16px 18px}.notebook-sidebar .brand small{font-size:11px}.account-dropdown{max-width:calc(100vw - 40px)}.empty h3{font-size:13px}}

/* One shared section frame and empty-state component. */
main{padding-top:30px}
.page-head{margin-bottom:26px}
.panel{border:1px solid #383838;border-radius:8px;overflow:hidden;background:#191919;margin-bottom:24px}
.panel-head{padding:16px 20px;min-height:57px;border-bottom:1px solid #383838;background:#202020}
.panel-head h2{font-size:15px;line-height:24px;color:#ededeb}
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:132px;padding:25px 20px;gap:10px;background:#191919;border:0}
.empty-icon{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;color:#a5a5a0;overflow:visible}
.empty-icon svg{display:block;width:22px;height:22px;min-width:22px;min-height:22px;overflow:visible}
.empty h3{margin:0;font-size:14px;font-weight:400;line-height:22px;text-align:center;color:#a5a5a0}
.brand-mark{display:grid;place-items:center;flex:0 0 30px;width:30px;height:32px;padding:0;overflow:visible}
.brand-mark svg{display:block;width:20px;height:20px;min-width:20px;overflow:visible}
.tabbar svg,button svg{display:block;flex:0 0 18px;width:18px;height:18px;min-width:18px;overflow:visible}
svg{vertical-align:middle}
.vm-grid{padding:18px;gap:16px}
.event{padding:16px 20px}
.table-wrap th{border-top:0}
tbody tr:last-child td{border-bottom:0}
@media(max-width:700px){
 main{padding-top:19px}
 .page-head{margin-bottom:24px}
 .panel{border-radius:8px;margin-bottom:20px}
 .panel-head{padding:14px 17px;min-height:53px}
 .empty{min-height:124px;padding:23px 17px;gap:10px}
 .empty h3{font-size:14px;line-height:22px}
 .vm-grid{padding:14px}
 .event{padding:15px 17px}
 tbody tr{padding:12px 17px}
}

/* Dark document surfaces, with profile beside the mobile menu. */
body{background:#191919;color:#ededeb}
.primary,.primary:hover,.cell-content button.primary{color:#fff}
.notebook-sidebar{background:#202020;border-color:#303030}
.tabbar button.active{background:#333333;color:#f0f0ed}
.tabbar button:hover{background:#2c2c2c;color:#e6e6e2}
.panel-head{background:#222222}
.empty{background:#191919}
.avatar{background:#353535;color:#e1e1dc}
.brand-mark{background:#292929;color:#dadad5}
.auth-tabs .selected{background:#353535;color:#ededeb}
input,select,textarea{background:#222222;color:#ededeb}
input:focus,select:focus,textarea:focus{background:#242424}
.account-dropdown{background:#252525;border-color:#454545}
.account-dropdown button:hover{background:#353535}
.preview-badge{background:#292929;color:#b7b7b2}
.dialog-head,.dialog-foot{background:#222222}
.dialog-body p{color:#bcbcb7}
@media(max-width:700px){
 .console{position:relative}
 .notebook-sidebar .brand{padding-right:120px}
 .pages-menu>summary{right:65px;top:15px;background:#303030}
 .app-header{height:34px;min-height:34px;padding:3px 20px}
 .app-header:not(:has(.preview-badge)){height:0;min-height:0;padding:0}
 .header-actions>.account-menu{position:absolute;right:16px;top:15px;z-index:12}
 .account-menu summary{min-width:38px;min-height:44px;justify-content:center}
 .account-dropdown{top:calc(100% + 7px)}
 .brand strong{font-size:17px}
 .notebook-sidebar .brand small{font-size:10px;white-space:nowrap}
}

.admin-navigation{border-top:1px solid #383838;margin-top:12px;padding-top:10px}
.admin-navigation>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:44px;padding:9px 11px;color:#aaa;font-size:13px;border-radius:5px}
.admin-navigation>summary::-webkit-details-marker{display:none}
.admin-navigation>summary:after{content:'›';font-size:19px;transform:rotate(0deg)}
.admin-navigation[open]>summary:after{transform:rotate(90deg)}
.admin-navigation>summary:hover{background:#2c2c2c}
.admin-navigation>div{padding-left:9px;display:grid;gap:3px}
.notification-count{margin-left:auto;min-width:20px;padding:1px 5px;background:#30465a;color:#c3def7;font-size:11px;line-height:18px;border-radius:4px;text-align:center}
.notification-bell{position:relative;width:38px;min-height:40px;padding:8px;background:transparent;border-color:transparent;color:#bcbcb7}
.notification-dot{position:absolute;right:7px;top:6px;width:6px;height:6px;border-radius:50%;background:#529ee7}
.notification{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #333}
.notification:last-child{border-bottom:0}
.notification.unread{background:#20262b;box-shadow:inset 3px 0 #438bd1}
.notification>div{min-width:0}
.notification p{font-size:14px;line-height:1.8;overflow-wrap:anywhere;margin:0 0 5px}
.notification time{font-size:12px;color:#aaa}
.notification button{flex-shrink:0;min-height:38px;font-size:12px}
@media(max-width:700px){.tabbar .admin-navigation{grid-column:1 / -1}.admin-navigation>div{grid-template-columns:1fr 1fr;padding-left:0}.app-header,.app-header:not(:has(.preview-badge)){height:38px;min-height:38px;padding:0 20px}.notification-bell{width:34px;min-height:34px}.notification{padding:16px 17px;gap:10px}.notification button{min-height:44px}}

@media(max-width:700px){.pages-menu:not([open]) .admin-navigation{display:none}}

/* Compact, aligned header controls. */
.pages-menu>summary svg{display:block;width:20px;height:20px;flex:none}
.notification-bell{border:0;border-radius:6px;background:transparent;color:#bdbdb8}
.notification-bell:hover{background:#303030}
@media(max-width:700px){
 .notebook-sidebar .brand{padding-right:128px}
 .pages-menu>summary{right:100px;top:15px;width:40px;height:44px;padding:0;min-height:44px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:6px;color:#bdbdb8}
 .pages-menu>summary:hover,.pages-menu[open]>summary{background:#303030;color:#eee}
 .header-actions>.notification-bell{position:absolute;right:58px;top:15px;width:40px;height:44px;min-height:44px;padding:10px;z-index:11}
 .header-actions>.account-menu{right:16px;top:15px}
 .account-menu summary{width:40px;height:44px;padding:0}
 .app-header,.app-header:not(:has(.preview-badge)){height:0;min-height:0;padding:0}
 .notification-dot{right:8px;top:8px}
 main{padding-top:26px}
}
@media(max-width:360px){.notebook-sidebar{padding-left:14px;padding-right:14px}.notebook-sidebar .brand{gap:7px;padding-right:124px}.notebook-sidebar .brand strong{font-size:16px}.notebook-sidebar .brand small{font-size:9px}.notebook-sidebar .brand-mark{flex-basis:26px;width:26px;height:29px}}

.resource-sliders{display:grid;gap:8px}
.slider-field{padding:14px 0;margin-bottom:8px;border-bottom:1px solid #333}
.slider-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.slider-title output{font-size:14px;color:#d5e7f9;white-space:nowrap}
input[type=range]{appearance:auto;-webkit-appearance:auto;accent-color:#438ed8;height:30px;min-height:30px;padding:0;border:0;margin:13px 0 4px;background:transparent;box-shadow:none;cursor:pointer}
.slider-bounds{display:flex;justify-content:space-between;font-size:11px;color:#a5a5a0}
.host-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:22px}
.host-grid h3{font-size:14px;color:#aaa;font-weight:500}
.host-grid strong{display:block;font-size:25px;margin:12px 0}
.host-grid progress{display:block;appearance:auto;width:100%;height:7px;accent-color:#438ed8}
.host-grid p,.resource-note{font-size:12px;color:#a5a5a0;margin-top:12px}
.resource-note{padding:0 22px 18px;margin:0}
.resource-summary{padding:20px 22px;font-size:14px;line-height:1.9}
.resource-summary p{display:flex;justify-content:space-between;gap:15px;margin:5px 0}
.resource-summary b{font-weight:500;color:#d0e0ef}
@media(max-width:700px){.host-grid{grid-template-columns:1fr;gap:22px;padding:20px}.host-grid strong{font-size:23px}.slider-title output{font-size:12px}.resource-summary{padding:18px}.vm-spec{gap:10px}}

/* Explicit track styling replaces the OS-native light slider and focus fill. */
input[type=range],input[type=range]:hover,input[type=range]:focus{appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;background:transparent!important;border:0;box-shadow:none!important;height:32px;min-height:32px;padding:0;outline:none}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:#424a52;border:0}
input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border:2px solid #b2d6fa;border-radius:50%;background:#438ed8;box-shadow:0 1px 3px #0005}
input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:#424a52;border:0}
input[type=range]::-moz-range-progress{height:6px;border-radius:999px;background:#438ed8}
input[type=range]::-moz-range-thumb{width:14px;height:14px;border:2px solid #b2d6fa;border-radius:50%;background:#438ed8}
input[type=range]:focus-visible{outline:2px solid #74b4ed;outline-offset:4px;border-radius:5px}
input[type=range]:active::-webkit-slider-thumb{background:#70afe8}
input[type=range]:active::-moz-range-thumb{background:#70afe8}

/* Named account menu, shared across desktop and mobile. */
.account-menu>summary{gap:10px;width:auto;min-height:44px;padding:6px 10px;cursor:pointer}
.account-name{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu-icon{display:block;width:20px;height:20px;flex:none;color:var(--muted)}
.account-menu>summary:focus-visible{outline:2px solid #529ee7;outline-offset:2px}
@media(max-width:700px){
 .notebook-sidebar .brand{padding-right:48px}
 .pages-menu>summary{right:16px}
 .app-header,.app-header:not(:has(.preview-badge)){height:auto;min-height:52px;padding:4px 16px;display:flex;justify-content:flex-end}
 .header-actions{display:flex;align-items:center;gap:6px;max-width:100%}
 .header-actions>.notification-bell,.header-actions>.account-menu{position:relative;right:auto;top:auto}
 .account-menu>summary{width:auto;height:44px;padding:6px 8px}
 .account-name{display:block;max-width:min(200px,55vw);font-size:13px}
 main{padding-top:16px}
}
/* Keep identity separate from the two aligned header actions. */
.header-actions{display:flex;align-items:center;gap:6px}
.header-user-name{font-size:14px;line-height:1.4;color:var(--text);margin-right:10px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-actions>.notification-bell,.account-menu>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:10px;border:0;border-radius:6px}
.header-actions>.notification-bell svg,.account-menu-icon{display:block;width:20px;height:20px;flex:none}
@media(max-width:700px){
 .header-user-name{font-size:13px;max-width:calc(100vw - 146px);margin-right:6px}
 .header-actions>.notification-bell,.account-menu>summary{width:44px;height:44px;min-height:44px}
}
/* Desktop notifications remain accessible in the sidebar. */
@media(min-width:701px){.header-actions>.notification-bell{display:none}}

/* One navigation menu on mobile, including account actions. */
.mobile-account-actions{display:none}
@media(max-width:700px){
 .header-actions>.account-menu{display:none}
 .tabbar>[data-tab="notifications"]{display:none}
 .mobile-account-actions{display:grid;grid-column:1 / -1;gap:3px;border-top:1px solid #383838;margin-top:10px;padding-top:10px}
 .mobile-account-actions button{width:100%;min-height:44px;text-align:left;justify-content:flex-start;border:0;background:transparent;font-weight:400}
 .mobile-account-actions button:hover{background:#303030}
 .pages-menu:not([open]) .mobile-account-actions{display:none}
}
/* Align mobile identity and actions with the navigation toggle. */
@media(max-width:700px){
 .app-header,.app-header:not(:has(.preview-badge)){position:absolute;top:15px;right:62px;height:44px;min-height:44px;padding:0;z-index:11}
 .header-actions{gap:4px}
 .header-user-name{max-width:110px;margin-right:2px}
 .notebook-sidebar .brand{padding-right:0;max-width:calc(100% - 206px);min-height:44px}
 .notebook-sidebar .brand>span:last-child{min-width:0}
 .notebook-sidebar .brand strong,.notebook-sidebar .brand small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 main{padding-top:24px}
}
@media(max-width:480px){
 .notebook-sidebar .brand{max-width:calc(100% - 186px);gap:7px}
 .notebook-sidebar .brand-mark{display:none}
 .notebook-sidebar .brand strong{font-size:14px}
 .notebook-sidebar .brand small{font-size:9px}
 .header-user-name{max-width:90px;font-size:12px}
}
@media(max-width:700px){.app-header,.app-header:not(:has(.preview-badge)){background:transparent;border:0;box-shadow:none}}

/* Compact notification popover shared by both layouts. */
.header-actions>.notification-bell{display:flex}
#notification-popup{position:fixed;inset:62px 24px auto auto;margin:0;padding:0;width:350px;max-width:calc(100vw - 32px);color:#e5e5e2;background:#252525;border:1px solid #414141;border-radius:10px;box-shadow:0 12px 36px #0006;overflow:hidden}
#notification-popup::backdrop{background:transparent}
.inbox-head{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #383838}
.inbox-head h2{margin:0 auto 0 0;font-size:15px}
.inbox-head button{font-size:12px;padding:5px 8px;min-height:32px;background:transparent;border:0}
.inbox-head button[aria-label]{font-size:22px;width:32px}
.inbox-list{max-height:min(420px,calc(100dvh - 160px));overflow:auto;overscroll-behavior:contain}
.inbox-list .notification{padding:14px;gap:10px}
.inbox-list .notification p{font-size:13px;overflow-wrap:anywhere}
.inbox-list .notification time{font-size:11px}
.inbox-empty{margin:0;padding:34px 16px;text-align:center;color:#aaa;font-size:13px}
@media(max-width:700px){#notification-popup{inset:68px 16px auto auto;width:350px}.inbox-head button{min-height:40px}.inbox-list .notification button{min-height:44px}}
.computer-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-bottom:1px solid #383838}
.computer-row:last-child{border-bottom:0}
.computer-description{min-width:0}
.computer-description h2{font-size:16px;margin:0 0 8px;overflow-wrap:anywhere}
.computer-description p{font-size:13px;color:#aaa;margin:5px 0;line-height:1.6}
.computer-state{display:flex;flex-direction:column;align-items:flex-end;gap:12px;flex-shrink:0}
.badge.running{background:#1e3a2b;color:#8fd3a7}
.computer-running{font-size:12px;color:#8fd3a7}
.usage-history{margin-top:24px}
@media(max-width:700px){.computer-row{padding:18px;align-items:flex-start;gap:12px}.computer-state button{min-height:44px}.computer-description h2{font-size:15px}.computer-description p{font-size:12px}.usage-history .event{flex-wrap:wrap;gap:6px}.usage-history .event span{overflow-wrap:anywhere}}
.account-dropdown>.admin-navigation{border-top:0;margin-top:0;padding-top:0;margin-bottom:8px;border-bottom:1px solid #383838;padding-bottom:8px}

.admin-navigation button{display:flex;align-items:center;gap:9px}.admin-navigation button svg{width:18px;height:18px;flex:none}.account-dropdown .admin-navigation>summary{width:auto;justify-content:space-between}

/* Full-width content with a single shared top bar. */
.console{position:relative;min-height:100vh}
.workspace{width:100%;max-width:none;margin:0;padding:0 0 40px}
.app-header,.app-header:not(:has(.preview-badge)){position:relative;inset:auto;display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%;height:76px;min-height:76px;padding:12px 28px;background:#202020;border:0;border-bottom:1px solid #303030;box-sizing:border-box;z-index:12}
.app-header>.brand{padding:0;flex:1;min-width:0;gap:10px}
.app-header>.brand>span:last-child{min-width:0}
.app-header .brand strong,.app-header .brand small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-actions{flex:none}
.header-actions>.account-menu{display:block;position:relative;inset:auto}
.account-menu .admin-navigation{display:block}
main{width:100%;max-width:none;margin:0;padding:28px 28px 0;box-sizing:border-box}
@media(max-width:700px){
 .app-header,.app-header:not(:has(.preview-badge)){height:70px;min-height:70px;padding:10px 16px;gap:12px}
 .app-header .brand-mark{display:none}
 .app-header .brand strong{font-size:14px}
 .app-header .brand small{font-size:9px}
 .header-user-name{max-width:90px;font-size:12px}
 .header-actions{gap:2px}
 .account-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:240px;max-width:calc(100vw - 32px)}
 .account-menu .admin-navigation>summary{width:auto;height:auto;min-height:44px;padding:9px 11px;justify-content:space-between}
 .account-menu .admin-navigation>div{display:grid;grid-template-columns:1fr;padding-left:6px}
 main{padding:22px 16px 0}
}
/* Balanced page heading size. */
.page-head h1{font-size:24px;font-weight:600;line-height:1.4;letter-spacing:-0.5px}
@media(max-width:700px){.page-head h1{font-size:20px}}

.page-head h1,.usage-history .panel-head h2{font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.25px}
.history-total{font-size:12px;color:#aaa}
.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid #383838;font-size:12px;color:#aaa}
.history-pagination>div{display:flex;gap:6px}
.history-pagination button{min-height:34px;padding:5px 10px;font-size:12px}
.usage-history .event span{min-width:0;overflow-wrap:anywhere}
.usage-history .event time{flex-shrink:0}
@media(max-width:700px){.page-head h1,.usage-history .panel-head h2{font-size:15px}.history-pagination{flex-wrap:wrap;padding:12px 16px}.history-pagination button{min-height:44px}.history-pagination>div{margin-left:auto}}
.history-pagination{justify-content:center;flex-wrap:nowrap;gap:6px;padding:14px 16px}
.history-pagination button{min-width:34px;min-height:34px;padding:5px 10px;border:1px solid transparent;background:transparent;color:#aaa}
.history-pagination button:hover:not(:disabled){background:#303030;color:#eee}
.history-pagination button[aria-current="page"]{background:#353535;border-color:#494949;color:#fff;font-weight:600}
.history-pagination button:disabled{opacity:.35;cursor:default}
@media(max-width:700px){.history-pagination{gap:2px;padding:12px 8px}.history-pagination button{min-width:34px;min-height:44px;padding:5px 8px}}
.computer-panel-title{margin:0;font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.25px}.panel-head>button[data-new]{display:flex;align-items:center;gap:6px;min-height:36px;font-size:13px;padding:7px 12px}.panel-head>button[data-new] svg{width:16px;height:16px;flex:none}@media(max-width:700px){.computer-panel-title{font-size:15px}.panel-head>button[data-new]{min-height:44px}}

/* Application-styled resource controls. */
.resource-sliders{gap:10px}
.slider-field{padding:14px 16px;margin:0;border:1px solid #393939;border-radius:7px;background:#242424}
.slider-title{font-size:13px;color:#ddd}
.slider-title output{font-size:12px;font-weight:500;color:#ddd;background:#303030;padding:3px 8px;border-radius:4px}
.slider-bounds{font-size:11px;color:#929292}
input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:3px;background:#484848}
input[type=range]::-webkit-slider-thumb{width:16px;height:16px;margin-top:-5.5px;border:1px solid #999;border-radius:4px;background:#ddd;box-shadow:0 1px 3px #0006}
input[type=range]:active::-webkit-slider-thumb{background:#fff;border-color:#ddd}
input[type=range]::-moz-range-track{height:5px;border-radius:3px;background:#484848}
input[type=range]::-moz-range-progress{height:5px;background:#888}
input[type=range]::-moz-range-thumb{width:14px;height:14px;border:1px solid #999;border-radius:4px;background:#ddd}
input[type=range]:active::-moz-range-thumb{background:#fff}
input[type=range]:focus-visible{outline:2px solid #777;outline-offset:3px}
@media(max-width:700px){.slider-field{padding:12px}.slider-title output{font-size:11px}.slider-title{gap:8px}}
/* Consistent dark scrollbars for the page and scrollable panels. */
:root{color-scheme:dark}
*{scrollbar-width:thin;scrollbar-color:#555 #202020}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:#202020;border-radius:8px}
::-webkit-scrollbar-thumb{background:#555;border:2px solid #202020;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:#737373}
::-webkit-scrollbar-thumb:active{background:#888}
::-webkit-scrollbar-corner{background:#202020}
@media(forced-colors:active){*{scrollbar-color:auto}}
.dashboard-links{display:flex;flex-wrap:wrap;gap:10px;padding:18px}.dashboard-links button{min-height:44px;flex:1;min-width:130px}.account-dropdown{padding:7px}

.admin-dashboard{margin-bottom:24px}.admin-dashboard .dashboard-links{margin:0;border:0;border-radius:0;background:transparent}.dashboard-links button[aria-current=page]{background:#353535;border-color:#555;color:#fff}

.users-panel th,.users-panel td{padding:8px 14px;font-size:13px;line-height:1.4}
.users-panel td button{min-height:30px;padding:4px 9px;font-size:12px}
.users-panel .cell-content{gap:4px}
@media(max-width:700px){.users-panel tbody tr{padding:8px 0}.users-panel td{padding:4px 0;gap:8px}.users-panel td button{min-height:44px}.users-panel .table-wrap{padding:0 14px}}
/* A single neutral focus border for dropdowns. */
select:focus{border-color:#858585;box-shadow:none;outline:none;background:#242424}
select:focus-visible{border-color:#aaa;outline:1px solid #aaa;outline-offset:1px;box-shadow:none}
@media(forced-colors:active){select:focus-visible{outline:2px solid Highlight}}
/* Keep dropdown borders unchanged during pointer interaction. */
select,select:hover,select:focus,select:focus-visible,select:active{border-color:#383838;outline:none;box-shadow:none;background:#222222}
html.keyboard-navigation select:focus-visible{outline:1px dashed #888;outline-offset:3px}
.role-picker-field{font-size:14px}
.role-picker{margin-top:9px}
.role-picker>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 13px;border:1px solid #383838;border-radius:6px;background:#222;color:#ededeb;list-style:none;cursor:pointer;font-size:16px}
.role-picker>summary::-webkit-details-marker{display:none}
.role-picker>summary:focus-visible{outline:none}
html.keyboard-navigation .role-picker>summary:focus-visible{outline:1px dashed #888;outline-offset:3px}
.role-options{margin-top:6px;padding:5px;border:1px solid #383838;border-radius:6px;background:#252525}
.role-option{display:flex;align-items:center;position:relative;gap:10px;min-height:42px;margin:0;padding:9px 11px;border-radius:4px;cursor:pointer;font-size:14px}
.role-option:hover,.role-option:has(input:checked){background:#333}
.role-option input[type=radio]{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;opacity:0}
.role-check{margin-left:auto;visibility:hidden;color:#ddd}
.role-option:has(input:checked) .role-check{visibility:visible}
.role-option:has(input:focus-visible){outline:1px dashed #888;outline-offset:-2px}
@media(max-width:700px){.role-option{min-height:44px}}
/* Overlay role choices without resizing or recentering the dialog. */
.role-picker{position:relative}
.role-picker .role-options{position:absolute;top:calc(100% + 6px);left:0;right:0;margin:0;z-index:30;box-shadow:0 8px 20px #0005}
.role-check{display:none}
#modal:has(.role-picker) .dialog-body{overflow:visible}
#modal:has(.role-picker) .dialog-foot{position:relative;z-index:1}
#modal:has(.role-picker) .dialog-body{padding-bottom:120px}

/* Compact hosting-style computer inventory. */
.computer-columns,.computer-list .computer-row{display:grid;grid-template-columns:minmax(120px,1.3fr) minmax(100px,.8fr) minmax(240px,1.8fr) minmax(80px,.7fr) 108px 92px;align-items:center;gap:16px}
.computer-columns{padding:12px 24px;background:#ffffff03;border-bottom:1px solid #383838;color:#939393;font-size:12px}
.computer-list .computer-row{padding:18px 24px;min-height:76px;transition:background .15s}
.computer-list .computer-row:hover{background:#ffffff03}
.computer-row>div{min-width:0}
.computer-identity h2{font-size:14px;font-weight:600;line-height:1.5;margin:0;overflow-wrap:anywhere;color:#ededed}
.computer-os,.computer-gpu{font-size:12px;color:#b5b5b5;line-height:1.6}
.computer-resources{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:#b5b5b5;line-height:1.7}
.computer-resources>span{white-space:nowrap}
.computer-status-label{display:inline-flex;align-items:center;gap:7px;color:#aaa;font-size:12px;line-height:1.5;white-space:nowrap}
.computer-status-label i{width:6px;height:6px;border-radius:50%;background:#777;flex:none}
.computer-status-label.is-pending{color:#d4b67c}.computer-status-label.is-pending i{background:#c4a466}
.computer-status-label.is-running{color:#92c9a2}.computer-status-label.is-running i{background:#78b88c}
.computer-actions{display:flex;justify-content:flex-end}
.computer-actions button{font-size:12px;min-height:32px;padding:6px 11px;border:1px solid #464646;border-radius:6px;white-space:nowrap;background:transparent;color:#bdbdbd;box-shadow:none}
.computer-actions button:hover{background:#ffffff08;color:#eee;border-color:#606060}
@media(max-width:1050px){
 .computer-columns{display:none}
 .computer-list .computer-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding:18px 20px}
 .computer-identity{grid-column:1;grid-row:1}.computer-status{grid-column:2;grid-row:1;justify-self:end}
 .computer-os{grid-column:1;grid-row:2}.computer-resources{grid-column:1;grid-row:3}
 .computer-gpu{grid-column:1;grid-row:4}.computer-gpu:before{content:'GPU · ';color:#858585}
 .computer-actions{grid-column:2;grid-row:2 / 5;align-self:center}
}
@media(max-width:540px){
 .computer-list .computer-row{padding:16px;gap:8px 12px}
 .computer-identity h2{font-size:14px}.computer-resources{gap:2px 10px}
 .computer-actions{grid-column:2;grid-row:4;align-self:end}
 .computer-actions button{min-height:40px;padding:8px 10px}
 .computer-resources{grid-column:1 / -1}
}
/* Self-hosted Naver Nanum Gothic: no external font requests. */
@font-face{font-family:'Nanum Gothic';font-style:normal;font-weight:400;src:url('/fonts/NanumGothic-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Nanum Gothic';font-style:normal;font-weight:600 900;src:url('/fonts/NanumGothic-Bold.ttf') format('truetype');font-display:swap}
html body,body button,body input,body select,body textarea,body code,body pre{font-family:'Nanum Gothic',sans-serif}
.computer-columns,.computer-list .computer-row{grid-template-columns:minmax(120px,1.2fr) minmax(100px,.8fr) minmax(220px,1.6fr) minmax(85px,.8fr) 110px 150px}
.computer-actions{gap:8px;align-items:center}
.computer-more{position:relative;font-size:12px}
.computer-more>summary{list-style:none;cursor:pointer;border:1px solid #464646;border-radius:6px;padding:7px 10px;line-height:16px;color:#bdbdbd}
.computer-more>summary::-webkit-details-marker{display:none}
.computer-more-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:132px;padding:5px;background:#262626;border:1px solid #444;border-radius:8px;box-shadow:0 8px 24px #0006;z-index:20}
.computer-more-menu button{display:block;width:100%;text-align:left;border:0;padding:10px;border-radius:4px}
.computer-more-menu button:disabled{opacity:.35;cursor:not-allowed}
.computer-list{overflow:visible}.computer-list .computer-row{position:relative}
.computer-list .computer-row:has(.computer-more[open]){z-index:21}
.computer-connection{grid-column:1 / -1;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding-top:2px;font-size:12px;color:#858585;line-height:1.7}
.computer-connection strong{color:#bdbdbd;font-weight:400;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rdp-guide{font-size:13px;line-height:1.9}.rdp-guide ol{padding-left:22px}.rdp-guide li{margin:12px 0}.rdp-address{padding:12px;background:#202020;border:1px solid #444;border-radius:6px;overflow-wrap:anywhere}
@media(max-width:1150px){.computer-columns{display:none}.computer-list .computer-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}.computer-identity{grid-column:1;grid-row:1}.computer-status{grid-column:2;grid-row:1;justify-self:end}.computer-os{grid-column:1;grid-row:2}.computer-resources{grid-column:1 / -1;grid-row:3}.computer-gpu{grid-column:1;grid-row:4}.computer-actions{grid-column:2;grid-row:4;align-self:center}.computer-connection{grid-column:1 / -1;grid-row:5;border-top:1px solid #333;padding-top:12px;margin-top:4px}}
@media(max-width:540px){.computer-actions button,.computer-more>summary{min-height:40px}.computer-more>summary{padding:11px 10px}.computer-connection{gap:4px 10px}.computer-connection>span:last-child{flex-basis:100%}}

.panel:has(.computer-list){overflow:visible}.computer-more-menu button:disabled:hover{background:transparent}

/* Keep status text centered with the other cells, without inline baseline space. */
.computer-status{display:flex;align-items:center;align-self:center;min-height:24px}
.computer-status-label{display:flex;align-items:center;line-height:20px}
.computer-identity{display:flex;align-items:center;min-height:24px}
@media(max-width:1150px){.computer-status{justify-content:flex-end}}
.computer-identity{flex-wrap:wrap;gap:6px 14px;align-content:center}
.computer-identity .computer-connection{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;grid-column:auto;grid-row:auto;margin:0;padding:0;border:0;font-size:11px;line-height:1.6}
.computer-identity .computer-connection>span:last-child{display:none}
.computer-identity .computer-connection strong{font-size:12px}
@media(min-width:1151px){.computer-columns,.computer-list .computer-row{grid-template-columns:minmax(220px,1.5fr) minmax(100px,.8fr) minmax(220px,1.6fr) minmax(85px,.8fr) 110px 150px}}
@media(max-width:1150px){.computer-identity{align-self:center}.computer-status{align-self:start;padding-top:2px}}
/* Connection address is an independent inventory column. */
.computer-columns,.computer-list .computer-row{grid-template-columns:minmax(120px,1fr) 100px minmax(165px,1.1fr) minmax(220px,1.5fr) minmax(85px,.7fr) 105px 150px;gap:12px}
.computer-address{font-size:12px;line-height:1.6;color:#bdbdbd;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
@media(min-width:1281px){.computer-columns{display:grid}.computer-status{align-self:center;padding-top:0}}
@media(max-width:1280px){
 .computer-columns{display:none}.computer-list .computer-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}
 .computer-identity{grid-column:1;grid-row:1}.computer-status{grid-column:2;grid-row:1;justify-self:end;align-self:center;padding:0}
 .computer-os{grid-column:1;grid-row:2}.computer-address{grid-column:1 / -1;grid-row:3}.computer-address:before{content:'접속 주소';color:#858585;margin-right:10px}
 .computer-resources{grid-column:1 / -1;grid-row:4}.computer-gpu{grid-column:1;grid-row:5}.computer-actions{grid-column:2;grid-row:5;align-self:center}
}
/* Size each desktop column for its supported values. */
@media(min-width:1281px){
 .computer-columns,.computer-list .computer-row{grid-template-columns:150px 100px 172px minmax(220px,1fr) 104px 116px 150px;column-gap:12px}
 .computer-identity h2{font-size:14px;line-height:22px;max-width:100%;overflow-wrap:anywhere}
 .computer-address{white-space:nowrap}
 .computer-os,.computer-gpu,.computer-status-label{white-space:nowrap}
}
/* Names may wrap to multiple lines without widening the inventory. */
.computer-identity h2{white-space:normal;word-break:normal;overflow-wrap:anywhere;line-height:1.6;margin:0;min-width:0}
.computer-identity{min-width:0;align-self:center}
.computer-list .computer-row{height:auto}
@media(min-width:1281px){.computer-columns,.computer-list .computer-row{grid-template-columns:180px 100px 172px minmax(190px,1fr) 104px 116px 150px}}
@media(max-width:1280px){.computer-status{align-self:start;min-height:24px;padding-top:0}.computer-identity{align-self:start}}
/* Reserve enough horizontal room for a 20-character desktop name. */
@media(min-width:1281px){
 .computer-columns,.computer-list .computer-row{grid-template-columns:300px 100px 166px minmax(100px,1fr) 100px 112px 146px;column-gap:10px;padding-left:20px;padding-right:20px}
 .computer-identity h2{white-space:nowrap;font-size:14px;line-height:24px}
 .computer-resources{gap:3px 10px}
}@media(min-width:1200px){
 .computer-columns{display:grid}
 .computer-columns,.computer-list .computer-row{grid-template-columns:300px 90px 160px minmax(64px,1fr) 90px 105px 140px;column-gap:8px;padding-left:16px;padding-right:16px}
 .computer-list .computer-row>div{grid-column:auto;grid-row:auto;align-self:center}
 .computer-identity h2{white-space:nowrap;font-size:14px;line-height:24px}
 .computer-address{white-space:nowrap}.computer-address:before{display:none}
 .computer-status{justify-self:start}.computer-resources{gap:3px 10px}
}
/* Keep metadata grouped; place remaining space before the actions. */
@media(min-width:1200px){
 .computer-columns,.computer-list .computer-row{grid-template-columns:clamp(282px,20vw,300px) 96px 154px 300px 94px 106px minmax(140px,1fr);column-gap:14px;padding-left:20px;padding-right:20px}
 .computer-resources{flex-wrap:nowrap;gap:10px}
 .computer-actions{justify-self:end}
 .computer-address{font-size:12px}
}
@media(min-width:1200px) and (max-width:1399px){
 .computer-columns,.computer-list .computer-row{grid-template-columns:282px 88px 146px 210px 90px 102px minmax(140px,1fr);column-gap:8px;padding-left:16px;padding-right:16px}
 .computer-resources{flex-wrap:wrap;gap:3px 8px}
}
button[data-cancel].cancel-confirm{background:#8e3030;border-color:#b04b4b;color:#fff}
button[data-cancel].cancel-confirm:hover{background:#a63b3b;border-color:#c55b5b;color:#fff}
button[data-cancel].cancel-confirm:disabled{opacity:.65;cursor:wait}
textarea.reapply-purpose{display:block;width:100%;min-height:180px;resize:none;line-height:1.7}
@media(max-width:540px){textarea.reapply-purpose{min-height:200px}}
/* Fixed text fields; long content scrolls inside the field. */
textarea{resize:none;height:120px;min-height:120px;max-height:120px;overflow-y:auto}
textarea.reapply-purpose{resize:none;height:180px;min-height:180px;max-height:180px;margin-top:0}
form[data-kind="reapply"] .dialog-body{padding:24px}
@media(max-width:700px){form[data-kind="reapply"] .dialog-body{padding:18px}}
/* Keep form controls visually unchanged when focused or clicked. */
html body input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=hidden]),
html body textarea,html body select{border-color:#383838;background:#222222;outline:none;box-shadow:none}
html body :is(input,textarea,select,button,summary,[tabindex]):is(:focus,:focus-visible,:active){outline:none!important;box-shadow:none!important}
html body .role-option:has(input:focus-visible){outline:none!important}
html body input[type=range]:focus-visible{outline:none!important}html body input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=hidden]):is(:hover,:focus,:focus-visible,:active),
html body textarea:is(:hover,:focus,:focus-visible,:active),html body select:is(:hover,:focus,:focus-visible,:active){border-color:#383838!important;background:#222222!important}#server-resources>.panel+.panel{margin-top:24px}
.host-grid .metric-reading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-variant-numeric:tabular-nums}
.host-grid .metric-reading strong{font-size:22px;min-width:0;overflow-wrap:anywhere}
.host-grid .metric-reading>span{font-size:15px;color:#aaa;white-space:nowrap}
.host-grid article{min-width:0}
.host-grid progress{appearance:none;border:0;border-radius:4px;overflow:hidden;background:#343434}
.host-grid progress::-webkit-progress-bar{background:#343434;border-radius:4px}
.host-grid progress::-webkit-progress-value{background:#829bb3;border-radius:4px}
.host-grid progress::-moz-progress-bar{background:#829bb3;border-radius:4px}
.running-server-count{font-size:13px;color:#aaa}
@media(max-width:700px){.host-grid .metric-reading strong{font-size:21px}}
.temperature-details{font-size:12px;color:#aaa;margin-top:12px}
.temperature-details summary{cursor:pointer;line-height:1.7}
.temperature-details>div{display:flex;justify-content:space-between;gap:12px;padding-top:10px;font-variant-numeric:tabular-nums}
.metric-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.metric-title h3{margin:0}
.host-temperature{font-size:13px;font-weight:400;color:#aaa;white-space:nowrap;font-variant-numeric:tabular-nums}
.account-dropdown [data-dashboard-toggle]{display:flex;align-items:center;justify-content:space-between;gap:16px;white-space:nowrap}
.dashboard-switch{width:30px;height:18px;border-radius:10px;background:#444;position:relative;flex:none}
.dashboard-switch:after{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#ccc}
[aria-checked=true]>.dashboard-switch{background:#70889d}
[aria-checked=true]>.dashboard-switch:after{left:15px;background:#fff}
.account-dropdown button[data-dashboard-toggle]{display:flex;align-items:center;justify-content:space-between;min-height:44px;line-height:20px;padding:12px;gap:14px}
[data-dashboard-toggle]>span:first-child{display:block;line-height:20px;margin:0;padding:0}
[data-dashboard-toggle]>.dashboard-switch{display:block;align-self:center;margin:0;padding:0;width:30px;height:18px;min-height:18px;line-height:0;box-sizing:border-box}
[data-dashboard-toggle]>.dashboard-switch:after{top:50%;transform:translateY(-50%)}
.request-review-table td{vertical-align:middle}
.request-review-table td .cell-content{min-height:24px}
.request-review-table td:last-child .cell-content{display:flex;align-items:center;min-height:24px}
.request-review-table .badge{display:inline-flex;align-items:center;justify-content:center;line-height:20px;margin:0;vertical-align:middle}
.request-history-link{padding:0;border:0;background:transparent;font-weight:600;text-align:left;min-height:24px;text-decoration:underline;text-underline-offset:3px}
.request-history-details h3{font-size:13px;margin-top:22px;color:#aaa}
.request-history-details p{line-height:1.7;overflow-wrap:anywhere}
.preserve-lines{white-space:pre-wrap}
.computer-status:has(.rejection-reason){flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}
.computer-status .rejection-reason{font-size:12px;line-height:18px;min-height:24px;padding:0;border:0;background:transparent;color:#aaa;text-decoration:underline;text-underline-offset:3px}
.review-inline-note{margin-top:10px;font-size:12px;line-height:1.7;max-width:560px}
.review-inline-note>span{color:#999}
.review-inline-note p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#ccc}
.request-review-table td:first-child{min-width:180px}
.request-review-table .review-action-heading,.request-review-table .review-action-cell{width:90px;text-align:right}
.request-review-table .review-action-cell .cell-content{display:flex;justify-content:flex-end;align-items:center}
@media(max-width:700px){.request-review-table .review-action-cell{width:auto}.request-review-table .review-action-cell:before{display:none}.request-review-table .review-action-cell .cell-content{width:100%}}
.resource-number-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px;color:#aaa;font-size:12px}
.resource-number-row input[type=number]{width:100px;min-width:0;padding:6px 8px;background:#242424;border:1px solid #414141;border-radius:5px;color:inherit;font:inherit;text-align:right;box-shadow:none;outline:none}
.usage-term{display:grid;grid-template-columns:1fr 1fr;gap:12px}.usage-term label[hidden]{display:none}
.computer-lease{display:block;color:#999;font-size:11px;margin-top:5px}
.support-list{display:grid;gap:6px}.support-list>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:12px;gap:5px;overflow-wrap:anywhere}.support-list small{color:#999}
.support-pages{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:16px}.support-thread{max-height:340px;overflow:auto;margin-bottom:16px}.support-thread article{padding:12px 0;border-bottom:1px solid #393939}.support-thread time{display:block;color:#999;font-size:12px;margin-top:4px}.support-thread p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:500px){.usage-term{grid-template-columns:1fr}.support-thread{max-height:260px}}
.computer-row>.vm-usage,.vm>.vm-usage{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:16px;padding:14px 0 0;margin:10px 0 0;border-top:1px solid #353535;min-width:0;width:100%;box-sizing:border-box}
.vm-usage>div{display:flex;flex-direction:column;gap:5px;min-width:0;text-align:left}
.vm-usage span,.vm-usage small{font-size:11px;font-weight:400;color:#999;line-height:1.5;overflow-wrap:anywhere}
.vm-usage strong{font-size:13px;font-weight:500;color:#ddd;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.computer-row>.vm-usage-unavailable{display:block;color:#999;font-size:12px}
@media(max-width:700px){.computer-row>.vm-usage,.vm>.vm-usage{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:12px}.computer-row>.vm-usage:before{display:none}.vm-usage strong{font-size:12px}}
