.cloud-shell{max-width:1060px;margin:auto;padding:0 26px 80px}.cloud-header{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:36px}.cloud-header .brand{margin-right:auto}.cloud-header nav{display:flex;gap:16px}.cloud-header nav a{color:var(--muted);font-weight:600}.cloud-header nav a[aria-current=page]{color:var(--text)}.cloud-heading{margin:36px 0 28px}.cloud-heading h1{font-size:clamp(30px,5vw,46px);letter-spacing:-1.5px;margin:10px 0}.cloud-heading p{max-width:620px;color:var(--muted);line-height:1.7}.login-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:56px;align-items:start}.login-layout .card{max-width:470px}.login-note{padding:16px 0}.login-note p{color:var(--muted);line-height:1.8}.cloud-shell .field{margin-top:18px}.cloud-shell input,.cloud-shell select{max-width:100%}.cloud-shell .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.cloud-shell .card{margin-bottom:20px}.cloud-shell .app-row{flex-wrap:wrap}.cloud-shell .app-row .actions{margin-top:0}.cloud-shell .app-text{min-width:160px}.cloud-shell .app-text p{overflow-wrap:anywhere}.cloud-shell .field small{display:block;color:var(--muted);line-height:1.6;margin-top:8px}.cloud-shell .split{display:grid;grid-template-columns:1.35fr 1fr;gap:24px;align-items:start}.cloud-shell .notice{margin:16px 0;overflow-wrap:anywhere}.cloud-shell progress{width:100%;accent-color:var(--accent);height:8px}.cloud-shell footer{padding-top:26px;color:var(--muted);font-size:12px}.cloud-shell .mono{font-size:11px;overflow-wrap:anywhere}.cloud-shell button[disabled]{opacity:.5;cursor:wait}.cloud-shell .danger{color:#c64f43}.cloud-shell .job{margin-bottom:12px}.cloud-shell .job-header{gap:12px}.cloud-shell .theme-control{margin:0}.cloud-shell .empty{text-align:center;padding:40px 20px}.cloud-shell label.check{display:flex;align-items:center;gap:10px}.cloud-shell label.check input{width:auto}.cloud-shell .signup-note{font-size:12px;color:var(--muted);line-height:1.7}.cloud-shell .badge{white-space:normal}#modal .actions{display:flex;gap:12px;margin-top:20px}.cloud-shell .inline-feedback{min-height:20px;color:#c64f43;margin-top:14px}.cloud-shell .full{width:100%;margin-top:20px}.cloud-shell .account-id{font-family:ui-monospace,monospace;font-size:11px;overflow-wrap:anywhere}
.cloud-shell button:not(.primary):not(.button-link){background:var(--surface);border:1px solid var(--line);color:var(--text)}.cloud-shell .app-text h3{font-size:14px}.cloud-shell .app-text p{font-size:12px}.cloud-shell .app-row button{font-size:13px;min-height:44px;padding:10px 13px}.cloud-shell .pairing-gallery{grid-template-columns:1fr}.cloud-shell .pairing-gallery img{max-width:300px}.cloud-shell .pairing-gallery figcaption{font-size:12px}.cloud-shell details summary{cursor:pointer;font-weight:600;margin-top:20px}.cloud-shell .upload-status{margin:12px 0;color:var(--muted)}
.cloud-shell .guide-link{font-weight:600;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}.setup-checklist{list-style:none;padding:0;margin:22px 0}.setup-checklist li{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.setup-checklist span{color:var(--muted);text-align:right}.cloud-shell .advanced-connection summary{margin-top:0}.guide-shell{max-width:820px}.guide-index{display:flex;flex-wrap:wrap;gap:8px 20px;margin:26px 0}.guide-index a,.guide-section a:not(.button){text-decoration:underline;text-underline-offset:4px}.guide-index a{padding:8px 0}.guide-section{scroll-margin-top:20px}.guide-section h2{margin:16px 0}.guide-section li{margin:14px 0;line-height:1.8}.guide-section ol{padding-left:22px}.guide-section p{line-height:1.8}.guide-section details{border-top:1px solid var(--line);padding-bottom:14px}.guide-section summary{line-height:1.7}.cloud-shell .button{min-height:44px}.cloud-shell button[disabled]{cursor:not-allowed}

.cloud-shell .ipa-open{width:100%;min-height:56px;font-size:16px}.cloud-shell #ipa{position:static;opacity:1;display:block;font-size:16px;min-height:48px}.cloud-shell .ipa-selection,.cloud-shell #ipa-picker-status{overflow-wrap:anywhere;font-size:13px;color:var(--muted)}
/* Shared layout on phones and computers: only the available width changes. */
.cloud-shell{max-width:760px;padding:0 clamp(16px,4vw,26px) 80px}
.cloud-header{flex-wrap:wrap;gap:12px;padding:18px 0;margin-bottom:24px}
.cloud-header .brand{font-size:24px}
.cloud-header nav{order:3;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid var(--line);padding-top:12px;font-size:14px}
.cloud-header nav a{display:flex;justify-content:center;align-items:center;min-height:44px;text-align:center}
.cloud-header .logout{font-size:13px;min-height:44px;padding:10px}
.cloud-header .guide-link{font-size:14px}
.cloud-heading{margin:24px 0}.cloud-heading h1{font-size:34px;line-height:1.2;letter-spacing:-1px}
.login-layout,.cloud-shell .split{grid-template-columns:minmax(0,1fr);gap:20px}
.login-layout .card{max-width:none}.login-note{padding:0}
.cloud-shell .card{padding:20px}
.cloud-shell .section-line{align-items:flex-start;flex-direction:column}
.cloud-shell .section-line .actions{margin-top:0;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.cloud-shell .app-row{gap:14px}.cloud-shell .app-row .actions{width:100%}.cloud-shell .app-row .actions button{flex:1}
.cloud-shell .app-text{min-width:0;flex:1}.cloud-shell .app-tile{width:44px;height:44px;font-size:20px;border-radius:10px}
.cloud-shell .app-row .refresh-label{display:inline}
.setup-checklist li{flex-direction:column;gap:6px}.setup-checklist span{text-align:left}
.onboarding .actions .button{width:100%}.guide-section h2{font-size:20px}
.cloud-header nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
.cloud-header nav a[aria-current=page]{background:var(--surface);border-radius:10px}
.library-toolbar{display:flex;flex-direction:column;gap:10px;margin:24px 0 18px}
.cloud-shell .ipa-upload{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;cursor:pointer;margin:0;min-height:50px}
.cloud-shell .ipa-upload #ipa{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;z-index:1}
.ipa-upload:focus-within{outline:2px solid var(--text);outline-offset:3px}
.slot-summary{border-bottom:1px solid var(--line);padding:6px 0 20px;margin-bottom:20px}
.slot-summary strong{font-size:14px}.slot-summary p{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 0}
.cloud-shell .app-text h3{font-size:17px}.cloud-shell .app-text .expiry{color:var(--text);line-height:1.6;margin-top:10px}
.cloud-shell .app-list .app-row:last-child{border-bottom:0}.cloud-shell .app-list{padding-top:8px;padding-bottom:8px}
.transfer-dock{position:fixed;z-index:30;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 28px);max-width:708px;max-height:45vh;overflow:auto;display:grid;gap:8px;filter:drop-shadow(0 6px 18px #0003)}
.transfer-dock[hidden]{display:none}.transfer{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.transfer-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:12px}.transfer-title strong{font-size:14px;overflow-wrap:anywhere;min-width:0}.transfer-title span{flex-shrink:0;color:var(--muted)}
.transfer progress{display:block;width:100%;height:6px;accent-color:var(--accent);margin-top:10px}.transfer p{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0 0}.transfer-error{border-color:#c64f43}.transfer-error p{color:#c64f43}

.cloud-shell .app-icon{width:56px;height:56px;object-fit:cover;border-radius:13px;flex-shrink:0;background:var(--soft)}
.installed-filter{display:flex;align-items:center;gap:10px;margin:20px 0 16px;font-weight:600;font-size:14px;cursor:pointer;min-height:44px}.cloud-shell .installed-filter input{width:20px;height:20px;margin:0;accent-color:var(--accent)}

.cloud-shell .app-list .app-row{position:relative}
.cloud-shell .app-list .app-text{padding-right:30px}
.cloud-shell .app-list .app-settings{position:absolute;top:12px;right:12px;width:34px;height:34px;min-height:34px;padding:7px;border-radius:50%;background:transparent;border:0;color:var(--muted);z-index:1}
.app-settings svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.cloud-shell .app-list .app-settings:hover{background:var(--raised);color:var(--text)}
#rename-app .field{margin-top:18px}#rename-name{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--text);margin-top:8px}#rename-error{color:var(--error)}

.button-spinner{display:inline-block;width:19px;height:19px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:button-spin .75s linear infinite;flex-shrink:0}
@keyframes button-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.button-spinner{animation:none}}
/* Home Screen onboarding stays readable at phone width and respects both themes. */
.home-install{max-width:1100px;margin:0 auto}
.home-install .cloud-heading{max-width:760px}
.home-install-steps{list-style:none;padding:0;margin:28px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.home-install-steps li{min-width:0}
.home-install-steps h2{font-size:1.2rem;display:flex;align-items:center;gap:10px;line-height:1.35}
.home-install-steps h2 span{display:grid;place-items:center;flex-shrink:0;border:1px solid currentColor;border-radius:50%;width:30px;height:30px;font-size:1rem}
.home-install-steps p{line-height:1.6;min-height:7em}
.home-install-steps a{display:block;width:100%;max-width:340px;margin:16px auto}
.home-install-steps img{display:block;width:100%;height:auto;border-radius:18px;border:1px solid #80808055}
.home-install-finish p,.home-install-caption{line-height:1.65}
.home-install-caption{font-size:.9rem;opacity:.8}
@media(max-width:680px){.home-install-steps{grid-template-columns:1fr;gap:32px}.home-install-steps p{min-height:0}.home-install-steps a{max-width:300px}.home-install .cloud-heading h1{font-size:clamp(2rem,9vw,3rem)}}
