*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--green)}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}input,select,textarea{border:1px solid var(--border);border-radius:8px;padding:10px 12px;background:var(--surface);color:var(--ink);font-size:13px;max-width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--good);box-shadow:0 0 0 3px var(--green-soft)}input::placeholder,textarea::placeholder{color:var(--subtle)}textarea{resize:vertical}select{min-height:41px}code{font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.4;font-weight:650;letter-spacing:-.6px;margin-bottom:7px}h2{font-size:16px;font-weight:600;line-height:1.5;margin:0}h3{font-size:14px;font-weight:600;margin:0}.muted{color:var(--muted);font-size:12px;margin:0}.note{color:var(--muted);font-size:12px;line-height:1.8}.eyebrow{color:var(--muted);font-size:10px;font-weight:550;letter-spacing:1.4px;margin:0 0 9px}.skip-link{position:fixed;top:10px;left:10px;z-index:100;transform:translateY(-150%);padding:10px 20px;background:var(--surface);border-radius:8px}.skip-link:focus{transform:translateY(0)}
.sidebar{position:fixed;inset:0 auto 0 0;width:228px;border-right:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;padding:32px 20px;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;padding:0 11px;font-weight:650;font-size:22px;letter-spacing:-.5px}.brand img{flex:none;border-radius:11px}.brand-subtitle{display:block;color:var(--muted);font-size:10px;font-weight:400;letter-spacing:1px;margin-top:2px}.nav-caption{font-size:10px;letter-spacing:1px;color:var(--subtle);margin:47px 13px 11px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;background:transparent;border:0;border-radius:9px;padding:12px 14px;color:var(--muted);font-size:12px;text-align:left;margin:5px 0;min-height:45px}.nav-item svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}.nav-item.selected{background:var(--green-soft);color:var(--green);font-weight:550}.nav-item:hover{background:var(--surface-soft)}.nav-item.selected:hover{background:var(--green-soft)}.nav-item b{font-size:10px;margin-left:auto;font-weight:500;padding:0 5px;background:var(--surface-soft);border:1px solid var(--line);border-radius:4px;min-width:20px;text-align:center}.sidebar-footer{margin-top:auto;padding:17px 10px 0;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.sidebar-footer small{display:block;font-size:10px;color:var(--subtle);margin-top:6px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--good);margin-right:7px;vertical-align:middle}.main{margin-left:228px;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:var(--surface);padding:0 38px;display:flex;justify-content:space-between;align-items:center;gap:16px}.breadcrumb{font-size:11px;color:var(--subtle);min-width:0}.breadcrumb strong{font-weight:500;color:var(--ink)}.breadcrumb-divider{margin:0 13px;color:var(--border)}.top-actions{display:flex;align-items:center;gap:23px;flex-shrink:0}.connection-status{font-size:10px;color:var(--muted)}.connection-status.offline .status-dot{background:var(--amber)}.text-button{border:0;background:transparent;color:var(--muted);padding:5px 0;font-size:11px;white-space:nowrap}.text-button:hover{color:var(--green)}.content{max-width:1560px;margin:auto;padding:33px 38px 22px;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.heading-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:8px 13px;text-decoration:none;white-space:nowrap;line-height:21px;font-weight:500;font-size:12px;min-height:38px}.primary{background:var(--green);color:var(--button-text);box-shadow:var(--shadow)}.primary:hover{background:var(--green-hover)}.secondary{background:var(--surface);color:var(--ink);border-color:var(--border)}.secondary:hover{background:var(--surface-soft);border-color:var(--border-strong)}.danger{background:var(--red);color:var(--button-text)}.danger:hover{background:var(--red)}.danger-text{color:var(--red)}.icon-button{border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--muted);width:30px;height:30px;font-size:20px;line-height:1;flex:none}.icon-button:hover{border-color:var(--green);color:var(--green)}.banner{padding:15px 18px;margin-bottom:23px;border:1px solid var(--border);border-radius:9px;font-size:12px}.auth-banner{display:flex;gap:14px;align-items:center;background:var(--green-soft);border-color:var(--border)}.banner-icon{flex:none;background:var(--green-soft);color:var(--green);width:33px;height:33px;border-radius:9px;display:grid;place-items:center;font-size:18px}.auth-banner strong{font-size:12px;font-weight:550}.auth-banner p{margin:3px 0 0;font-size:11px;color:var(--muted)}.auth-banner .button{margin-left:auto;font-size:11px;background:var(--surface);flex:none}.error-banner{background:var(--red-soft);border-color:var(--red-line);color:var(--red);overflow-wrap:anywhere}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.metric{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:20px 21px 18px;min-width:0}.metric>div{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px}.metric-icon{width:25px;height:25px;display:grid;place-items:center;background:var(--surface-soft);border-radius:7px;color:var(--good);font-size:14px;flex:none}.metric strong{display:block;font-size:30px;line-height:1.3;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:-.8px;margin:8px 0 7px}.metric small{display:block;font-size:10px;color:var(--subtle);line-height:1.6}.overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:22px;margin-bottom:23px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:11px;overflow:hidden;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 24px 19px}.panel-heading p{color:var(--muted);font-size:10px;margin:5px 0 0;line-height:1.8}.count{display:inline-block;font-size:10px;padding:1px 6px;background:var(--surface-soft);border:1px solid var(--line);border-radius:4px;color:var(--muted);vertical-align:middle;margin-left:5px;font-variant-numeric:tabular-nums;font-weight:500}.overview-instance-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-top:1px solid var(--line);margin:0 24px}.runtime-icon{width:39px;height:39px;flex:none;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface-soft);color:var(--green);border-radius:10px;font:10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:550}.overview-instance-row .row-main{flex:1;min-width:0}.row-title{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere;text-align:left;border:0;background:none;padding:0;color:var(--ink)}button.row-title:hover{color:var(--green)}.row-subtitle{font-size:10px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere;line-height:1.6}.overview-instance-row .badge{flex:none}.overview-accounts{padding:0 24px}.overview-account-row{display:flex;align-items:center;gap:11px;padding:16px 0;border-top:1px solid var(--line)}.avatar{flex:none;width:33px;height:33px;border-radius:50%;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-size:13px;font-weight:600}.overview-account-row .row-main{flex:1;min-width:0}.overview-account-row .row-title{font-size:11px;word-break:break-all}.overview-account-row .row-subtitle{font-size:10px}.panel-bottom{border-top:1px solid var(--line);padding:12px 24px;background:var(--surface-soft)}.panel-bottom .text-button{color:var(--green)}.empty{padding:39px 22px 43px;text-align:center}.empty-icon{display:grid;place-items:center;width:46px;height:46px;background:var(--surface-soft);border:1px solid var(--line);border-radius:13px;margin:0 auto 15px;color:var(--good);font-size:23px}.empty h3{font-size:13px;font-weight:500;margin:0 0 6px}.empty p{font-size:11px;color:var(--muted);max-width:350px;margin:0 auto 17px;line-height:1.8}.empty .button{font-size:11px}.empty.compact{padding:30px 20px}.empty.compact .empty-icon{width:36px;height:36px;font-size:18px;border-radius:10px;margin-bottom:11px}.empty.compact p{margin-bottom:12px}
.table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;color:var(--muted);font-weight:500;background:var(--surface-soft);padding:12px 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap}td{padding:20px 18px;border-bottom:1px solid var(--line);vertical-align:middle}th:first-child,td:first-child{padding-left:24px}th:last-child,td:last-child{padding-right:24px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface-soft)}.accounts-table{min-width:830px}.account-cell{display:flex;align-items:center;gap:12px}.account-email{font-size:12px;font-weight:550;overflow-wrap:anywhere;max-width:330px}.account-note{font-size:10px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere;max-width:330px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:17px;padding:3px 7px;border-radius:5px;background:var(--surface-soft);color:var(--muted);white-space:nowrap;border:1px solid var(--line)}.badge::before{content:"";width:4px;height:4px;flex:none;border-radius:50%;background:currentColor}.badge.good{color:var(--good);background:var(--good-soft);border-color:var(--good-line)}.badge.pending{color:var(--amber);background:var(--amber-soft);border-color:var(--amber-line)}.badge.bad{color:var(--red);background:var(--red-soft);border-color:var(--red-line)}.badge.quiet{color:var(--muted);background:var(--surface-soft)}.cell-number{font-variant-numeric:tabular-nums;font-size:13px}.cell-date{font-size:10px;color:var(--muted);white-space:nowrap}.row-actions{display:flex;align-items:center;gap:11px}.row-actions button{border:0;background:none;font-size:11px;color:var(--muted);padding:4px 0;white-space:nowrap}.row-actions button:hover{color:var(--green)}.row-actions button.danger-text{color:var(--red)}.inline-error{color:var(--red);font-size:10px;line-height:1.6;max-width:360px;margin:6px 0 0;overflow-wrap:anywhere}.instance-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:21px}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.filters input{width:270px;font-size:12px}.filters select{font-size:12px;max-width:240px}.instance-toolbar>.muted{flex:none;font-size:11px}.instance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.instance-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:11px;overflow:visible;min-width:0}.instance-card-top{padding:21px 22px 14px;display:flex;align-items:flex-start;gap:11px}.instance-card-top>.runtime-icon{width:38px;height:38px;border-radius:9px}.instance-card-heading{min-width:0;flex:1}.instance-card-heading .row-title{font-size:13px;line-height:1.7}.instance-card-heading .row-subtitle{font-size:10px;word-break:break-all;margin-top:4px}.instance-menu{position:relative;flex:none}.instance-menu summary{list-style:none;cursor:pointer;font-size:18px;letter-spacing:1px;color:var(--muted);padding:0 3px;line-height:26px}.instance-menu summary::-webkit-details-marker{display:none}.instance-menu[open] summary{color:var(--green)}.menu-items{position:absolute;top:29px;right:0;width:146px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:0 9px 22px #23372618;z-index:5}.menu-items button{display:block;width:100%;border:0;border-radius:5px;text-align:left;background:var(--surface);color:var(--ink);padding:8px 10px;font-size:11px}.menu-items button:hover{background:var(--surface-soft)}.menu-items button.danger-text{color:var(--red)}.menu-separator{height:1px;background:var(--line);margin:5px}.instance-specs{display:flex;gap:6px;flex-wrap:wrap;padding:0 22px 15px}.hardware-tag{font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface-soft);border:1px solid var(--line);border-radius:5px;padding:3px 6px;color:var(--muted)}.instance-card-state{margin:0 22px;padding:16px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:9px}.drive-state{font-size:10px;color:var(--muted);white-space:nowrap}.drive-state.mounted{color:var(--good)}.drive-state svg{width:13px;height:13px;vertical-align:-2px;margin-right:5px}.instance-card .inline-error{margin:0 22px 14px;max-width:none}.instance-card-bottom{padding:12px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);background:var(--surface-soft);border-radius:0 0 11px 11px}.instance-card-bottom .text-button{font-size:10px}.instance-card-bottom>span{font-size:10px;color:var(--subtle)}.instance-grid>.empty{grid-column:1/-1;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:65px 25px}.jobs-table{min-width:750px}.job-kind{font-size:12px;font-weight:500}.job-context{font-size:10px;color:var(--muted);margin-top:5px;max-width:220px;overflow-wrap:anywhere}.job-message{font-size:11px;color:var(--muted);max-width:370px;overflow-wrap:anywhere}.job-message.error{color:var(--red)}.job-record{display:flex;align-items:center;gap:13px;margin:0 24px;padding:16px 0;border-top:1px solid var(--line)}.job-record .job-record-icon{width:30px;height:30px;display:grid;place-items:center;background:var(--surface-soft);border-radius:8px;color:var(--muted);font-size:13px;flex:none}.job-record-main{min-width:0;flex:1}.job-record .job-kind{font-size:11px}.job-record .job-context{max-width:none;font-size:10px;line-height:1.7}.job-record .job-record-date{font-size:10px;color:var(--subtle);flex:none;white-space:nowrap}.job-record .text-button{font-size:10px}.page-footer{display:flex;justify-content:space-between;gap:15px;color:var(--subtle);font-size:9px;padding:24px 1px 0}.page-footer span:last-child{letter-spacing:1px;font-size:8px;text-align:right}
dialog{width:510px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);border:1px solid var(--line);border-radius:15px;padding:25px 27px;background:var(--surface);color:var(--ink);box-shadow:0 25px 80px #1c322e26;overflow:auto}dialog::backdrop{background:var(--backdrop);backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.dialog-heading h2{font-size:19px}.dialog-heading .eyebrow{font-size:9px;margin-bottom:5px}.close-dialog:not(.button){flex:none;border:0;background:transparent;font-size:24px;line-height:24px;color:var(--muted);padding:0 2px}.dialog-heading .close-dialog:hover{color:var(--ink)}dialog label,dialog .field-label{display:block;font-size:12px;font-weight:500;margin:18px 0 7px}dialog input:not([type="checkbox"]),dialog select,dialog textarea{width:100%}dialog input[type="checkbox"]{width:15px;height:15px;accent-color:var(--green);margin:0;flex:none}dialog .checkbox-field{display:flex;align-items:center;gap:9px;min-height:41px;margin:18px 0 0;font-size:12px;font-weight:400}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.memory-field .checkbox-field{margin:0}.identity-strip{background:var(--surface-soft);border:1px solid var(--line);padding:12px;border-radius:8px;font-size:12px;overflow-wrap:anywhere}.info-note{margin:22px 0 0;border:1px solid var(--line);border-radius:8px;padding:13px 14px;background:var(--green-soft)}.info-note strong{font-size:11px;font-weight:500;line-height:1.8}.info-note p{font-size:11px;color:var(--muted);margin:4px 0 0;line-height:1.8}.warning-note{background:var(--amber-soft);border-color:var(--amber-line)}.warning-note strong{color:var(--amber)}.warning-note p{color:var(--amber)}.form-error{font-size:12px;color:var(--red);margin:14px 0 0;overflow-wrap:anywhere;line-height:1.75}.form-error:empty{display:none}.dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:27px;padding-top:17px;border-top:1px solid var(--line)}.job-status-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 11px}.job-status-line .note{font-size:10px}.job-progress{display:flex;align-items:flex-start;gap:11px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;padding:14px;margin-top:20px}.job-progress p{font-size:12px;margin:0;overflow-wrap:anywhere;flex:1}.progress-dot{height:7px;width:7px;border-radius:50%;background:var(--good);flex:none;margin-top:6px}.job-progress.active .progress-dot{animation:breathe 1.5s ease infinite}.job-progress.failed .progress-dot{background:var(--red)}@keyframes breathe{0%,100%{opacity:1}50%{opacity:.35}}.authorization-section{margin-top:25px}.authorization-step{display:flex;gap:12px;margin:22px 0}.step-number{flex:none;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:11px}.authorization-step>div{flex:1;min-width:0}.authorization-step strong{font-size:12px;font-weight:550;display:block}.authorization-step .note{font-size:11px;margin:7px 0 11px;overflow-wrap:anywhere}.authorization-step .button{font-size:11px}.authorization-step label{font-weight:400;font-size:11px;margin-top:9px}.job-dialog-footer{justify-content:space-between;gap:10px}.job-dialog-footer>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.job-dialog-footer .text-button{font-size:11px}.detail-list{margin:0;display:grid;grid-template-columns:86px minmax(0,1fr);gap:13px 16px;font-size:12px}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;overflow-wrap:anywhere}.detail-endpoint{display:flex;align-items:flex-start;gap:8px}.detail-endpoint code{flex:1;min-width:0;overflow-wrap:anywhere}.detail-endpoint .text-button{padding:0;flex:none}.detail-paths{margin-top:25px}.detail-paths p{font-size:11px;color:var(--muted);margin:5px 0}.detail-paths code{font-size:11px}.detail-paths strong{font-size:12px;font-weight:500}.detail-paths .path-row{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}.detail-paths .path-row span{font-size:11px;color:var(--muted);width:88px}.detail-paths .info-note{margin-top:15px}#toast{position:fixed;inset:auto;margin:0;border:0;width:max-content;pointer-events:none;bottom:24px;left:calc(50% + 114px);transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 19px;border-radius:9px;box-shadow:0 7px 22px #263e2d20;background:var(--green);color:var(--button-text);font-size:12px;z-index:50;overflow-wrap:anywhere}#toast.error{background:var(--red)}
.login-page{min-height:100dvh;background:var(--canvas)}.login-shell{width:min(1030px,calc(100% - 72px));min-height:660px;margin:clamp(35px,8vh,100px) auto;display:grid;grid-template-columns:1.14fr 1fr;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 15px 60px #34453506}.login-story{background:var(--login-story);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:39px 40px;min-height:660px}.login-story .brand{padding:0;font-size:24px}.login-story .brand-subtitle{font-size:10px}.login-intro{position:relative;z-index:1;margin-top:57px}.login-intro .eyebrow{font-size:8px;letter-spacing:1.2px;color:var(--muted);margin-bottom:13px}.login-intro h1{font-size:40px;line-height:1.42;font-weight:550;letter-spacing:-1.8px;color:var(--login-heading);margin:0 0 14px}.login-intro>p:last-child{font-size:12px;line-height:1.9;color:var(--muted);margin:0}.login-cloud{height:250px;position:relative;margin:-10px 0 0 30px}.login-cloud>img{position:absolute;left:62px;top:23px;width:200px;height:200px;z-index:3;filter:drop-shadow(0 16px 22px #2a513b2e)}.cloud-orbit{position:absolute;width:300px;height:180px;left:12px;top:33px;border:1px solid var(--orbit);border-radius:50%;transform:rotate(-21deg)}.orbit-two{width:226px;height:240px;left:49px;top:3px;transform:rotate(43deg);border-style:dashed;border-color:var(--orbit)}.floating-chip{position:absolute;white-space:nowrap;font-size:10px;background:var(--surface);box-shadow:0 6px 20px #3d563808;border:1px solid var(--line);border-radius:7px;padding:8px 11px;color:var(--muted);z-index:2}.chip-gpu{left:-4px;top:58px;transform:rotate(-5deg);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.chip-drive{left:232px;top:130px;transform:rotate(5deg)}.chip-account{left:100px;top:206px;transform:rotate(-3deg)}.login-footnote{font-size:8px;color:var(--subtle);letter-spacing:1.5px;margin:auto 0 0;padding-top:24px}.login-card{padding:139px 48px 45px;display:flex;flex-direction:column;justify-content:center}.login-card h2{font-size:24px;font-weight:550;letter-spacing:-.5px;margin:0 0 30px}.login-card label{display:block;font-size:12px;font-weight:500;margin:0 0 9px}.login-card input{display:block;width:100%;min-height:45px}.login-submit{margin-top:22px;width:100%;height:44px;justify-content:space-between;padding-left:17px;padding-right:17px}.login-mobile-brand{display:none}
@media(min-width:1500px){.instance-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1200px){.instance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:28px}.topbar{padding:0 28px}.metric{padding:17px}.metrics{gap:12px}.overview-grid{grid-template-columns:minmax(0,1.3fr) minmax(265px,1fr)}.login-shell{width:calc(100% - 60px)}}@media(max-width:1000px){.sidebar{width:196px;padding:29px 15px}.brand{font-size:20px;gap:10px;padding:0 8px}.nav-item{padding:12px 11px;gap:10px}.main{margin-left:196px}.content{padding:26px 23px}.topbar{padding:0 23px}.overview-grid{grid-template-columns:1fr}.overview-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 23px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.metric{padding:17px 20px}.metric strong{font-size:29px}.instance-toolbar{align-items:flex-start}.filters input{width:100%;flex-basis:100%}.filters{flex:1}.filters select{flex:1;max-width:50%}.instance-toolbar>.muted{padding-top:11px}.login-story{padding:35px 30px}.login-card{padding:80px 32px 40px}.login-intro h1{font-size:35px}.login-cloud{margin-left:0;transform:scale(.92);transform-origin:left center}.login-shell{min-height:610px}.login-story{min-height:610px}#toast{left:calc(50% + 98px)}}@media(max-width:760px){.sidebar{position:relative;width:100%;padding:18px 20px 11px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.brand{padding:0;font-size:20px}.sidebar .brand img{width:34px;height:34px;border-radius:9px}.brand-subtitle{font-size:9px}.nav-caption,.sidebar-footer{display:none}.sidebar nav{display:flex;gap:6px;margin-top:17px}.nav-item{padding:10px 11px;justify-content:center;gap:7px;margin:0;font-size:11px;min-height:38px}.nav-item svg{width:16px;height:16px}.nav-item b{display:none!important}.main{margin-left:0}.topbar{height:53px;padding:0 21px;background:var(--canvas)}.top-actions{gap:17px}.connection-status{font-size:9px}.breadcrumb{font-size:10px}.breadcrumb-divider{margin:0 9px}.content{padding:24px 20px}.page-heading{align-items:flex-start;margin-bottom:23px;gap:12px}.page-heading h1{font-size:25px}.page-heading .muted{font-size:11px;line-height:1.8;max-width:270px}.heading-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:130px}.heading-actions .button{font-size:11px;min-height:33px;padding:5px 10px}.heading-actions .secondary{order:2}.eyebrow{font-size:8px;letter-spacing:1.1px}.metrics{gap:12px;margin-bottom:19px}.metric{padding:15px}.metric small{font-size:9px}.metric strong{font-size:27px;margin:7px 0 6px}.metric>div{font-size:10px}.overview-grid{gap:18px;margin-bottom:18px}.panel-heading{padding:20px 19px 17px}.panel-heading h2{font-size:14px}.panel-heading p{font-size:10px}.overview-instance-row{margin:0 19px;padding:15px 0;gap:11px}.runtime-icon{width:34px;height:34px}.overview-instances .badge{font-size:9px;padding:2px 5px}.overview-accounts{padding:0 19px;gap:0 15px}.overview-account-row .avatar{width:29px;height:29px;font-size:11px}.overview-account-row{gap:9px}.overview-account-row .row-title{font-size:10px}.overview-account-row .row-subtitle{font-size:9px}.panel-bottom{padding:11px 19px}.job-record{margin:0 19px;gap:10px}.job-record-date{display:none}.job-record .badge{font-size:9px;padding:2px 5px}.job-record .job-context{font-size:9px}.job-record .job-kind{font-size:10px}.job-record .text-button{font-size:9px}.auth-banner{padding:13px;gap:10px;align-items:flex-start}.auth-banner strong{font-size:11px}.auth-banner p{font-size:10px;line-height:1.8}.auth-banner .button{padding:5px 9px;min-height:31px;font-size:10px}.banner-icon{width:27px;height:27px;font-size:16px}.instance-grid{gap:15px}.instance-card-top{padding:17px 17px 12px;gap:9px}.instance-card-top>.runtime-icon{width:31px;height:31px;font-size:9px}.instance-card-heading .row-title{font-size:12px}.instance-specs{padding:0 17px 12px}.instance-card-state{margin:0 17px;padding:13px 0;flex-wrap:wrap}.instance-card-bottom{padding:11px 17px}.instance-card .inline-error{margin:0 17px 12px}.filters{gap:8px}.filters input{font-size:11px}.filters select{font-size:11px;padding-left:9px}.instance-toolbar>.muted{font-size:10px}.job-status-line .note{font-size:9px}.page-footer{font-size:8px;gap:20px;padding-top:20px}.page-footer span:last-child{font-size:7px}#toast{left:50%;bottom:18px}.login-shell{width:calc(100% - 40px);max-width:450px;min-height:0;margin:60px auto;display:block;border-radius:17px}.login-story{display:none}.login-card{padding:36px 30px 37px}.login-mobile-brand{display:flex;align-items:center;gap:11px;font-size:18px;font-weight:550;margin-bottom:39px}.login-mobile-brand img{border-radius:11px}.login-card h2{font-size:23px;margin-bottom:28px}}@media(max-width:480px){.sidebar{padding:16px 16px 10px}.nav-item{padding:9px 6px;gap:5px;font-size:10px}.nav-item svg{width:15px;height:15px}.topbar{padding:0 17px}.connection-status{display:none}.content{padding:22px 16px}.page-heading h1{font-size:23px}.page-heading .muted{max-width:205px;font-size:10px}.heading-actions{max-width:110px}.heading-actions .button{font-size:10px}.metric{padding:13px}.metric-icon{width:21px;height:21px;font-size:12px}.metric small{font-size:8px;min-height:25px;display:flex;align-items:center}.metric strong{font-size:26px}.metrics{gap:10px}.auth-banner{flex-wrap:wrap}.auth-banner>div:nth-child(2){flex:1}.auth-banner .button{margin-left:37px}.overview-accounts{display:block}.instance-grid{grid-template-columns:1fr}.instance-card-state{flex-wrap:nowrap}.instance-card-top{padding:20px 21px 13px}.instance-specs{padding:0 21px 15px}.instance-card-state{margin:0 21px;padding:15px 0}.instance-card-bottom{padding:12px 21px}.instance-card-heading .row-title{font-size:13px}.instance-card-top>.runtime-icon{width:36px;height:36px}.instance-card .inline-error{margin:0 21px 14px}.job-record{gap:9px;flex-wrap:wrap}.job-record .job-record-icon{display:none}.job-record-main{flex-basis:60%}.job-record .text-button{margin-left:auto}.page-footer{align-items:flex-start}.page-footer span:last-child{max-width:120px;line-height:1.9}.dialog-heading{margin-bottom:20px}dialog{padding:23px 21px}.dialog-heading h2{font-size:17px}.form-columns{gap:15px}.job-dialog-footer{align-items:flex-start}.job-dialog-footer .button{font-size:10px;padding:7px 9px}.job-dialog-footer>div{gap:6px;max-width:245px}.detail-list{grid-template-columns:71px minmax(0,1fr);gap:12px;font-size:11px}.login-shell{width:calc(100% - 32px);margin:40px auto}.login-card{padding:30px 24px}.login-card h2{font-size:21px}.login-mobile-brand{margin-bottom:35px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
.status-dot.disabled{background:var(--subtle)}
.login-page{display:flow-root}
.nav-item{white-space:nowrap}
@media(max-width:760px){.sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.nav-item{flex-direction:column;gap:4px;text-align:center;padding:8px 3px;line-height:1.4}}
@media(max-width:360px){.nav-item svg{display:none}}

/* Credit information remains visible without triggering a Google request. */
.accounts-table{min-width:1060px}.account-usage{min-width:160px}.credit-balance{font-size:21px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}.credit-unit{font-size:10px;margin-left:7px;color:var(--muted)}.account-usage small{display:block;font-size:10px;color:var(--muted);line-height:1.8}.overview-credit{color:var(--green)!important;font-variant-numeric:tabular-nums}.row-actions{flex-wrap:wrap;gap:5px 13px;min-width:205px}.instance-menu .menu-items{width:176px}.instance-menu .menu-items button{font-size:11px;line-height:1.6}.menu-items button,.menu-items{background:var(--surface-raised)}.primary,.danger,#toast{color:var(--button-text)}.login-card>.login-settings{z-index:30}.login-card .settings-panel label{margin:0;font-size:12px}.login-card .settings-panel select{min-height:39px}.topbar .settings-menu summary{line-height:1.6}
@media(max-width:760px){.accounts-table,.jobs-table{display:block;min-width:0;width:100%}.accounts-table thead,.jobs-table thead{display:none}.accounts-table tbody,.jobs-table tbody{display:block;padding:0 19px 18px}.accounts-table tr,.jobs-table tr{display:block;padding:18px 0;border-top:1px solid var(--line)}.accounts-table td,.jobs-table td{display:grid;grid-template-columns:85px minmax(0,1fr);align-items:start;gap:12px;padding:8px 0;border-bottom:0;font-size:12px;white-space:normal}.accounts-table td::before,.jobs-table td::before{content:attr(data-label);color:var(--muted);font-size:10px;line-height:1.8}.accounts-table td:first-child{display:block;margin-bottom:10px;padding:0}.accounts-table td:first-child::before{display:none}.account-email,.account-note{max-width:none;overflow-wrap:anywhere}.account-usage{min-width:0}.account-cell>div{min-width:0;flex:1}.row-actions{min-width:0;gap:8px 13px}.row-actions button{padding:4px 0;min-height:30px}.table-scroll{overflow:visible}.jobs-table .job-context,.jobs-table .job-message{max-width:none}.jobs-table td .badge,.accounts-table td .badge{justify-self:start}.accounts-table tr:hover,.jobs-table tr:hover{background:transparent}.overview-account-row{min-width:0}.settings-panel select{font-size:16px}.login-intro h1{letter-spacing:-.8px}}
@media(max-width:480px){.topbar{gap:9px}.top-actions{gap:8px}.breadcrumb{font-size:10px}.breadcrumb-divider{margin:0 7px}.page-heading{gap:10px}.page-heading>div:first-child{min-width:0}.page-heading .muted{max-width:none}.heading-actions{max-width:140px}.heading-actions .button{font-size:10px}.nav-item{white-space:normal;line-height:1.4;min-height:42px}.nav-item>span{min-width:0}.nav-item svg{display:none}.panel-heading{gap:10px;align-items:flex-start}.panel-heading .button{font-size:10px;padding:7px 10px}.panel-heading .text-button{font-size:10px}.auth-banner .button{margin-left:37px}.accounts-table td,.jobs-table td{grid-template-columns:78px minmax(0,1fr);gap:10px}.overview-instance-row{gap:9px}.overview-instance-row .badge{max-width:89px;white-space:normal;line-height:1.4}.overview-instance-row .runtime-icon{width:31px;height:31px}.overview-instance-row .row-subtitle{font-size:9px}.page-footer>span:first-child{min-width:0}.login-mobile-brand{font-size:16px;gap:9px}.login-card>.login-settings{top:30px;right:24px}.dialog-heading h2{overflow-wrap:anywhere}.form-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}dialog input,dialog select,dialog textarea,.login-card input{font-size:16px}.job-dialog-footer{flex-wrap:wrap}.job-dialog-footer>div{max-width:none}.settings-panel{max-width:calc(100vw - 40px)}}
@supports(padding:max(0px)){.sidebar{padding-left:max(20px,env(safe-area-inset-left))}.page-footer{padding-bottom:env(safe-area-inset-bottom)}.login-page{padding-bottom:env(safe-area-inset-bottom)}}


/* iOS Safari zooms focused controls when text is smaller than 16px. */
@media(max-width:760px){body input,body select,body textarea{font-size:16px!important;min-height:44px}.filters select{max-width:none}.filters{width:100%}.instance-toolbar{flex-wrap:wrap}.instance-toolbar>.muted{padding-top:0;width:100%}.settings-panel select{min-height:44px}.job-auth-value{font-size:16px}}

@media(max-width:760px){.credit-balance{overflow-wrap:anywhere}.credit-unit{display:block;margin-left:0}}

/* Preferences belong to the whole page, outside cards and individual views. */
.global-settings{position:absolute;top:20px;right:38px;z-index:40}.topbar{padding-right:152px}.login-page>.global-settings{top:24px;right:28px}.login-mobile-brand{padding-right:0}.login-page .login-shell{margin-top:max(80px,8vh)}
@media(max-width:1200px){.global-settings{right:28px}.topbar{padding-right:140px}}
@media(max-width:760px){.global-settings{top:18px;right:20px}.sidebar>.brand{padding-right:100px}.topbar{padding-right:23px}.login-page>.global-settings{top:18px;right:20px}.login-mobile-brand{padding-right:0}.login-page .login-shell{margin-top:78px}.login-page .settings-panel{right:0}.global-settings .settings-panel select{min-height:44px}}
@media(max-width:480px){.global-settings{top:16px;right:16px}.topbar{padding-right:17px}.login-page>.global-settings{top:16px;right:16px}.sidebar>.brand{padding-right:90px}.global-settings .settings-panel{max-width:calc(100vw - 32px)}}

@media(max-width:760px){.checkbox-field input[type="checkbox"]{min-height:15px;align-self:center}}

.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 24px;border-top:1px solid var(--line);background:var(--surface-soft)}.history-pagination>div{display:flex;gap:8px;flex:none}.history-pagination>.muted{font-size:10px;min-width:0}.history-pagination .button{font-size:11px}
@media(max-width:760px){.history-pagination{padding:15px 19px;flex-wrap:wrap}.history-pagination>.muted{flex-basis:100%}.history-pagination>div{margin-left:auto}.history-pagination .button{min-height:38px}}
@media(max-width:480px){#instance-dialog .form-columns{grid-template-columns:minmax(0,1fr);gap:0}#instance-dialog .memory-field .field-label{margin-top:18px}#instance-dialog .memory-field .checkbox-field{min-height:32px}}
.instance-ssh{margin-top:25px;padding-top:22px;border-top:1px solid var(--line);min-width:0}.instance-ssh-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.instance-ssh-heading h3{font-size:14px;font-weight:550;margin:0}.ssh-command{margin:0;padding:12px 14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;max-height:12em;overflow:auto;min-width:0}.ssh-command code{font:inherit}.ssh-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}.ssh-actions .button{max-width:100%;white-space:normal;text-align:center;min-height:44px}.ssh-password{margin-top:19px;min-width:0}.ssh-password-label{display:block;font-size:12px;font-weight:550;color:var(--muted);margin-bottom:8px}.ssh-password-value{width:100%;min-height:44px;font-size:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.03em}.instance-ssh .ssh-note{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 0;overflow-wrap:anywhere}.instance-ssh .form-error{margin-top:12px}.ssh-status{margin:0;font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.ssh-fingerprints{margin-top:14px}.ssh-fingerprints code{font-size:11px;overflow-wrap:anywhere;word-break:break-word}.ssh-fingerprint-disclosure{margin-top:14px}.ssh-fingerprint-disclosure>summary{font-size:12px;color:var(--muted);cursor:pointer;min-height:44px;display:list-item;padding:10px 0}
@media(max-width:760px){.instance-ssh-heading h3,.ssh-command,.ssh-status,.instance-ssh .ssh-note,.ssh-actions .button,.ssh-password-label,.ssh-password-value,.ssh-fingerprints,.ssh-fingerprints code,.ssh-fingerprint-disclosure>summary{font-size:16px}.ssh-command{padding:11px 12px}.ssh-fingerprints{display:block}.ssh-fingerprints dt{margin-top:10px;overflow-wrap:anywhere}.ssh-fingerprints dd{margin:4px 0 12px}}

.ssh-password-row{display:flex;align-items:center;gap:10px;min-width:0}
.ssh-password-row .ssh-password-value{flex:1;min-width:0;height:64px;resize:none;line-height:1.5;overflow-wrap:anywhere;letter-spacing:0}
.ssh-password-row .button{flex:none;min-height:44px}
#ssh-examples-dialog{width:min(680px,calc(100% - 32px))}
#ssh-examples-instance{margin:7px 0 0;overflow-wrap:anywhere}
.ssh-example-section{min-width:0}
.ssh-example-section+.ssh-example-section{margin-top:25px;padding-top:22px;border-top:1px solid var(--line)}
.ssh-example-section h3{font-size:16px;margin:0 0 12px;font-weight:600}
.ssh-example-section h4{font-size:13px;margin:20px 0 10px;font-weight:550}
.ssh-example-section .note,.ssh-example-traffic{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.ssh-example-section a{color:var(--green);overflow-wrap:anywhere}
.ssh-example-command{min-width:0;margin:12px 0}
.ssh-example-command>.button{margin-top:9px;min-height:44px}
.ssh-remote-settings{grid-template-columns:minmax(110px,auto) minmax(0,1fr);margin:18px 0;font-size:13px}
.ssh-remote-settings code{font:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.ssh-example-traffic{margin:22px 0 0;padding-top:17px;border-top:1px solid var(--line)}
@media(max-width:760px){.ssh-password-row{align-items:flex-start;flex-wrap:wrap}.ssh-password-row .ssh-password-value{flex-basis:100%;height:72px}.ssh-password-row .button{margin-left:auto}.ssh-password-row .button{font-size:16px;padding:9px 12px}.ssh-example-section h3,.ssh-example-section h4,.ssh-example-section .note,.ssh-example-traffic,.ssh-example-command>.button,.ssh-remote-settings,#ssh-examples-dialog .dialog-footer .button{font-size:16px}.ssh-remote-settings{display:block}.ssh-remote-settings dt{margin-top:12px}.ssh-remote-settings dd{margin:4px 0 0}}

.gpu-observation{margin:0 22px 14px;font-size:10px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}.instance-card-state{min-width:0}@media(max-width:760px){.gpu-observation{margin:0 17px 13px}}@media(max-width:480px){.gpu-observation{margin:0 21px 14px}}

/* Shared data presentation for accounts, runtimes and tasks. */

.data-table { font-size: 14px; line-height: 1.55; }
.data-table th { padding: 13px 20px; font-size: 12px; font-weight: 550; }
.data-table td { padding: 17px 20px; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { padding-left: 24px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 24px; }
.data-table tbody tr { transition: background-color .15s ease; }
.data-table .cell-primary, .data-table .row-title, .data-table .account-email,
.data-table .job-kind, .data-table .gpu-observation { font-size: 14px; font-weight: 550; line-height: 1.55; }
.cell-primary { display: block; font-size: 14px; font-weight: 550; line-height: 1.55; overflow-wrap: anywhere; }
.cell-secondary { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 3px; overflow-wrap: anywhere; }
.data-table .account-note { font-size: 12px; max-width: none; }
.data-table .badge { font-size: 11px; padding: 3px 9px; border-radius: 6px; }
.data-table .cell-number { font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; }
.table-link { border: 0; background: none; color: var(--ink); padding: 0; text-align: left; text-decoration: none; overflow-wrap: anywhere; }
.table-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.account-email { display: inline-block; text-decoration: none; }
.account-detail-link { text-decoration: none; color: var(--ink); }
.account-detail-link:hover { color: var(--green); text-decoration: underline; }
.account-cell, .instance-cell { display: flex; align-items: center; gap: 12px; }
.account-cell > div, .instance-cell > div { min-width: 0; }
.table-email { display: block; font-size: 14px; overflow-wrap: anywhere; }
.table-date { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-date .cell-primary { font-weight: 450; }
.table-date .cell-secondary { margin-top: 1px; }
.error-text { color: var(--red); }
.accounts-table { min-width: 660px; }
.accounts-table th:first-child { width: 38%; }
.data-table .account-usage { min-width: 0; }
.data-table .credit-balance { font-size: 15px; line-height: 1.55; font-weight: 600; font-variant-numeric: tabular-nums; }
.instances-table { min-width: 920px; }
.instances-table th:first-child { width: 23%; }
.instances-table th:nth-child(2) { width: 23%; }
.table-hardware { max-width: 250px; }
.table-hardware .gpu-observation { margin: 0; color: var(--ink); }
.data-table .drive-state { font-size: 12px; white-space: normal; }
.jobs-table { min-width: 830px; }
.jobs-table th:first-child { width: 25%; }
.jobs-table th:nth-child(2) { width: 9%; }
.jobs-table th:nth-child(3) { width: 20%; }
.jobs-table th:nth-child(4) { width: 34%; }
.data-table .job-message { font-size: 13px; line-height: 1.65; max-width: none; }
.task-resume { color: var(--green); font-size: 12px; margin-top: 5px; }
.panel-heading p, .history-pagination > .muted { font-size: 12px; }
.page-heading .muted { font-size: 13px; }

/* Native dialogs share a fixed page lock, including nested confirmations. */
html { scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; overscroll-behavior: none; }
body.modal-open { position: fixed; top: var(--dialog-scroll-offset); left: 0; width: var(--dialog-body-width); overflow: hidden; }
dialog { position: fixed; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.detail-dialog, #job-dialog, #instance-detail-dialog { width: 620px; }
.detail-list { font-size: 13px; line-height: 1.65; }
.detail-list dd { min-width: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }
.detail-actions:empty { display: none; }
.detail-actions .button { font-size: 13px; min-height: 40px; white-space: normal; }
.detail-actions .danger-text { color: var(--red); }
.detail-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.detail-section-heading h3 { font-size: 14px; }
.detail-section-heading .text-button { font-size: 12px; }
.detail-section .overview-instance-row { margin: 0; }
.detail-section .empty { padding: 20px 8px 10px; }
.account-detail-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.account-detail-identity > div { flex: 1; min-width: 0; }
.account-detail-identity .avatar { width: 40px; height: 40px; }
.account-detail-identity .badge { flex: none; }
.account-detail-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 23px; }
.account-detail-metrics > div { padding: 15px 17px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.account-detail-metrics span { display: block; color: var(--muted); font-size: 12px; }
.account-detail-metrics strong { display: block; font-size: 26px; line-height: 1.4; margin-top: 6px; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-detail-list, .job-detail-list { grid-template-columns: 106px minmax(0,1fr); }
.job-diagnostics { margin-top: 21px; padding-top: 20px; border-top: 1px solid var(--line); }
.job-diagnostics code { font-size: 12px; }

@media (max-width: 760px) {
  .filters > input, .filters > select { width: 100%; min-width: 0; max-width: 100%; }
  .data-table { display: block; width: 100%; min-width: 0; }
  .data-table thead { display: none; }
  .data-table tbody { display: block; padding: 0 19px 14px; }
  .data-table tr { display: block; padding: 20px 0; border-top: 1px solid var(--line); }
  .data-table tr:hover { background: transparent; }
  .data-table td, .data-table td:first-child, .data-table td:last-child { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: start; gap: 12px; padding: 7px 0; margin: 0; border: 0; white-space: normal; }
  .data-table td::before { content: attr(data-label); font-size: 12px; line-height: 1.8; color: var(--muted); }
  .data-table td:first-child { display: block; padding: 0 0 14px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
  .data-table td:first-child::before { display: none; }
  .data-table .badge { justify-self: start; }
  .data-table .table-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
  .data-table .table-date .cell-secondary { margin: 0; }
  .table-scroll { overflow: visible; }
  .data-table .table-link { min-height: 28px; }
  .table-hardware { max-width: none; }
  .detail-actions .button { min-height: 44px; font-size: 14px; }
  .detail-list { grid-template-columns: 88px minmax(0,1fr); font-size: 13px; gap: 12px; }
  .account-detail-identity { flex-wrap: wrap; }
  .account-detail-metrics > div { padding: 13px; }
  .account-detail-metrics strong { font-size: 24px; }
  .job-diagnostics code { font-size: 12px; }
  .dialog-heading h2 { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .data-table td, .data-table td:first-child, .data-table td:last-child { grid-template-columns: 72px minmax(0,1fr); gap: 10px; }
  .account-detail-metrics { gap: 9px; }
  .account-detail-identity .badge { margin-left: 52px; }
  .account-detail-metrics strong { font-size: 22px; }
  .detail-section-heading .text-button { white-space: normal; text-align: left; }
}

/* Native dialogs and notifications share the browser top layer. */
dialog #toast{left:50%}#toast::backdrop{background:transparent;pointer-events:none}
.history-error:empty{display:none}.history-error{margin:-9px 0 14px}

.badge.drive-authorization-status.good { color: var(--green-hover); background: var(--green-soft); border-color: var(--border-strong); }
.drive-authorization { margin: 0 0 22px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.drive-authorization-heading, .drive-authorization-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.drive-authorization-heading { justify-content: space-between; }
.drive-authorization .note, .drive-authorization .inline-error { margin: 10px 0; }
.drive-authorization-actions { margin-top: 12px; }
.drive-setup { margin: 10px 0; font-size: 13px; }
.drive-setup code { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.drive-callback-shell { width: min(600px, calc(100% - 32px)); margin: 12vh auto; }
.drive-callback-shell h1 { font-size: 22px; }
.drive-callback-shell p { margin: 22px 0; overflow-wrap: anywhere; }

.drive-explorer { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: min(900px, calc(100dvh - 170px)); min-height: 540px; }
.drive-sidebar { background: var(--surface-soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.drive-sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 14px 13px; gap: 8px; font-size: 12px; }
.drive-sidebar-heading .icon-button { background: transparent; }
.drive-tree { overflow: auto; overscroll-behavior: contain; padding: 4px 7px 16px; flex: 1; }
.drive-tree-row { display: flex; gap: 6px; align-items: center; min-height: 37px; padding: 4px 6px; border-radius: 6px; }
.drive-tree-row:hover { background: var(--surface-hover); }
.drive-tree-row.selected { background: var(--green-soft); color: var(--green); }
.drive-tree [role="group"] { padding-left: 16px; }
.drive-tree-toggle { border: 0; background: transparent; color: var(--muted); flex: 0 0 20px; height: 28px; padding: 0; display: grid; place-items: center; }
.drive-tree-toggle::before { content: ''; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.drive-tree-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.drive-tree-label { color: inherit; background: transparent; border: 0; padding: 4px 0; font-size: 11px; text-align: left; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.drive-tree-row .badge { font-size: 9px; padding: 1px 4px; flex: none; }
.drive-tree-folder, .drive-folder-symbol { display: inline-block; background: var(--green); border-radius: 2px 3px 3px; width: 19px; height: 13px; position: relative; flex: 0 0 19px; opacity: .8; }
.drive-tree-folder::before, .drive-folder-symbol::before { content: ''; position: absolute; width: 9px; height: 4px; top: -3px; left: 0; border-radius: 2px 2px 0 0; background: inherit; }
.drive-tree-folder { width: 15px; height: 10px; flex-basis: 15px; opacity: .7; }
.drive-tree-folder::before { width: 7px; height: 3px; top: -2px; }
.drive-tree-note { display: block; font-size: 10px; color: var(--muted); margin: 5px 12px 7px 34px; white-space: normal; text-align: left; }
.drive-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 18px 20px; }
.drive-toolbar, .drive-tools, .drive-navigation, .drive-breadcrumb, .drive-paging { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.drive-toolbar { margin-bottom: 20px; gap: 10px; }
.drive-navigation { gap: 3px; flex-wrap: nowrap; }
.drive-toolbar select { max-width: 100%; width: auto; min-height: 36px; padding: 7px 9px; font-size: 12px; }
.drive-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.drive-icon-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.drive-icon-button:hover:not(:disabled) { color: var(--ink); background: var(--surface-soft); border-color: var(--line); }
.drive-icon-button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.drive-icon-button:disabled { color: var(--subtle); opacity: .42; cursor: default; }
.drive-icon-button.drive-danger:hover:not(:disabled) { color: var(--red); }
.drive-icon-button.drive-tree-switch { display: none; }
.drive-search { display: flex; flex: 1; min-width: 165px; align-items: center; gap: 2px; padding-right: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.drive-search input { min-width: 0; flex: 1; width: 100%; }
.drive-search .button { flex-shrink: 0; }
.drive-search input { padding: 7px 10px; border: 0; background: transparent; }
.drive-search input:focus { outline: none; box-shadow: none; }
.drive-search:focus-within { border-color: var(--focus-ring); box-shadow: 0 0 0 1px var(--focus-ring); }
.drive-location-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.drive-location-heading > div { min-width: 0; }
.drive-location-heading h2 { font-size: 20px; overflow-wrap: anywhere; }
.drive-location-identity { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.drive-bulk-button { font-size: 12px; min-height: 36px; gap: 7px; }
.drive-breadcrumb { margin: 14px 0 9px; max-height: 72px; overflow: auto; flex-shrink: 0; }
.drive-breadcrumb .text-button { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.drive-breadcrumb button + button::before { content: '/'; color: var(--subtle); margin-right: 8px; }
.drive-actionbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; flex-shrink: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.drive-tools, .drive-selection-actions { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
.drive-selection-actions { padding-left: 12px; border-left: 1px solid var(--line); }
.drive-selection-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 28px; line-height: 28px; font-size: 11px; color: var(--muted); flex-shrink: 0; }
.drive-main > .form-error { margin: 6px 0; font-size: 12px; flex-shrink: 0; }
.drive-main > .form-error:empty { display: none; }
.drive-list { flex: 1; min-height: 120px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 7px; }
.drive-list > .button { margin: 16px; }
.drive-list-heading, .drive-file { display: grid; grid-template-columns: minmax(0, 1fr) 126px 66px 62px; gap: 12px; padding: 11px 12px; align-items: center; font-size: 11px; }
.drive-list-heading { position: sticky; top: 0; background: var(--surface-soft); color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); z-index: 1; }
.drive-file { border-bottom: 1px solid var(--line); min-height: 48px; cursor: default; }
.drive-file:last-child { border-bottom: 0; }
.drive-file:hover { background: var(--surface-soft); }
.drive-file.selected { background: var(--green-soft); }
.drive-file:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.drive-file-info { display: flex; gap: 11px; align-items: center; min-width: 0; }
.drive-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; min-width: 0; }
.drive-file-date, .drive-file-size, .drive-file-type { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.drive-document-symbol { display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface); color: var(--subtle); width: 19px; height: 24px; flex: 0 0 19px; font-size: 6px; }
.drive-transfer-panel { margin-top: 10px; font-size: 11px; flex-shrink: 0; }
.drive-transfer-panel summary { color: var(--muted); cursor: pointer; }
.drive-transfer-panel > .note { margin: 7px 0 0; font-size: 10px; }
.drive-transfers { max-height: 130px; overflow: auto; overscroll-behavior: contain; }
.drive-transfer { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.drive-transfer > span:first-child { flex: 1; min-width: 100px; }
.drive-transfer .note { margin: 0; }
.drive-paging { justify-content: flex-end; margin-top: 10px; }
.drive-paging .button { font-size: 11px; min-height: 31px; padding: 4px 10px; }
#drive-edit-dialog input { width: 100%; }
#drive-rclone-dialog { width: 660px; }
@media(max-width:760px){.drive-direct-examples>.button{font-size:16px}}
.drive-rclone-identity { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.drive-rclone-identity span { font-size: 11px; color: var(--muted); }
.drive-rclone-identity strong { font-size: 14px; font-weight: 550; }
#drive-rclone-content .note { font-size: 12px; line-height: 1.8; margin: 10px 0; }
#drive-rclone-content a { color: var(--green); }
.drive-rclone-steps { list-style: none; counter-reset: transfer-step; padding: 0; margin: 22px 0 18px; }
.drive-rclone-steps > li { counter-increment: transfer-step; position: relative; padding-left: 35px; margin-bottom: 24px; }
.drive-rclone-steps > li::before { content: counter(transfer-step); position: absolute; top: 0; left: 0; width: 23px; height: 23px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 11px; }
.drive-rclone-steps h3 { font-size: 14px; line-height: 23px; margin: 0; font-weight: 550; }
.drive-rclone-example h4 { font-size: 12px; font-weight: 500; color: var(--muted); margin: 15px 0 7px; }
.drive-rclone-command { display: flex; align-items: flex-start; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.drive-rclone-command pre { flex: 1; min-width: 0; max-height: 14em; overflow: auto; padding: 4px; margin: 0; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.drive-rclone-command code { font: inherit; }
.drive-rclone-details { border-top: 1px solid var(--line); padding-top: 15px; font-size: 12px; color: var(--muted); }
.drive-rclone-details summary { cursor: pointer; }
@media (max-width: 1200px) {
  .drive-explorer { grid-template-columns: 215px minmax(0, 1fr); }
  .drive-list-heading, .drive-file { grid-template-columns: minmax(0, 1fr) 110px 57px; gap: 8px; }
  .drive-file-type, .drive-list-heading > :nth-child(4) { display: none; }
}
@media (max-width: 900px) {
  .drive-explorer { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .drive-sidebar { display: flex; border-right: 0; border-bottom: 1px solid var(--line); max-height: 340px; }
  .drive-tree { display: none; max-height: 270px; }
  .drive-explorer.tree-visible .drive-tree { display: block; }
  .drive-icon-button.drive-tree-switch { display: inline-flex; }
  .drive-list { flex: auto; min-height: 230px; max-height: 55dvh; }
  .drive-main { padding: 14px; }
}
@media (max-width: 600px) {
  .drive-toolbar { align-items: stretch; gap: 8px; margin-bottom: 16px; }
  .drive-toolbar select { flex: 1; width: 100px; }
  .drive-search { flex-basis: 100%; min-width: 0; }
  .drive-list-heading, .drive-file { grid-template-columns: minmax(0, 1fr) 57px; gap: 8px; padding: 11px 9px; }
  .drive-file-date, .drive-list-heading > :nth-child(2) { display: none; }
  .drive-location-heading h2 { font-size: 18px; }
  .drive-tools, .drive-selection-actions { gap: 3px; }
  .drive-selection-actions { padding-left: 0; border-left: 0; }
  .drive-actionbar { column-gap: 9px; }
  .drive-icon-button { width: 36px; height: 36px; flex-basis: 36px; }
  .drive-navigation .drive-icon-button { width: 32px; flex-basis: 32px; }
  .drive-bulk-button { font-size: 14px; }
  .drive-rclone-steps > li { padding-left: 0; }
  .drive-rclone-steps h3 { padding-left: 34px; font-size: 16px; }
  #drive-rclone-content .note, .drive-rclone-example h4, .drive-rclone-details { font-size: 13px; }
  #drive-rclone-content .button { font-size: 16px; }
  .drive-rclone-command pre { font-size: 13px; }
  .drive-explorer input, .drive-explorer select, #drive-edit-dialog input { font-size: 16px; }
}

/* Workspace controls stay with navigation, leaving more room for content. */
.sidebar nav { min-height: 0; overflow-y: auto; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; padding: 17px 0 0; }
.sidebar-footer .global-settings { position: relative; inset: auto; z-index: 40; }
.sidebar-footer .connection-status { display: inline-flex; align-items: center; white-space: nowrap; }
.drive-sidebar-heading select { width: 100%; min-width: 0; padding: 8px; font-size: 12px; text-overflow: ellipsis; }
.drive-sidebar-heading { padding: 14px 10px; }
#drive-mount-identity { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .sidebar-footer { margin-top: 10px; padding: 10px 0 0; }
  .sidebar > .brand { padding-right: 0; }
}
.runtime-countdown { display: block; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.runtime-countdown.pending { color: var(--amber); font-weight: 550; }
.runtime-countdown.bad { color: var(--red); font-weight: 550; }
