:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #202124; color: #e8eaed; font: 16px/1.45 "Segoe UI", Roboto, sans-serif; }
button, input, select { font: inherit; color: inherit; }
.top { position: relative; z-index: 40; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #3c4043; }
.brand { font-size: 22px; font-weight: 500; }
.brand span { color: #7fdbda; font-weight: 700; }
.spacer { flex: 1; }
.icon, .avatar { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.avatar { background: #5f6368; font-weight: 600; }
.account { position: relative; }
.account-menu { position: absolute; top: 48px; right: 0; min-width: 240px; background: #292a2d; border: 1px solid #5f6368; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 50; padding: 8px 0; }
.account-id { padding: 8px 16px 10px; border-bottom: 1px solid #3c4043; }
.account-id b { display: block; font-weight: 500; }
.account-id span { display: block; color: #9aa0a6; font-size: 13px; word-break: break-all; }
#logoutBtn { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 16px; cursor: pointer; }
#logoutBtn:hover, #logoutBtn:focus { background: #3c4043; outline: none; }
.login { max-width: 460px; margin: 48px auto; padding: 0 16px; }
.login h1 { font-weight: 500; }
label { display: block; margin: 14px 0 6px; color: #9aa0a6; }
input, select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #8ab4f8; padding: 8px 0; outline: none; }
input.pin { max-width: 220px; font-size: 22px; letter-spacing: 0.35em; }
.blue { margin-top: 18px; background: #8ab4f8; color: #202124; border: 0; border-radius: 4px; padding: 10px 22px; font-weight: 600; cursor: pointer; }
.blue:disabled { background: #3c4043; color: #9aa0a6; cursor: default; }
a.dl { display: inline-block; margin: 8px 0 4px; background: #8ab4f8; color: #202124; border-radius: 4px; padding: 10px 22px; font-weight: 600; text-decoration: none; }
.black { background: #000; color: #fff; border: 0; border-radius: 8px; padding: 12px 16px; cursor: pointer; text-align: left; }
.err { color: #f28b82; min-height: 1.2em; }
#app { display: flex; min-height: calc(100% - 64px); min-width: 0; }
main { min-width: 0; }
nav { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 16px; }
nav button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
nav button.on { background: #8ab4f8; }
nav button svg { width: 24px; height: 24px; fill: none; stroke: #e8eaed; stroke-width: 1.7; }
nav button.on svg { stroke: #202124; }
main { flex: 1; padding: 28px 32px 48px; overflow: auto; }
h1 { font-size: 28px; font-weight: 500; margin: 0 0 8px; }
.lead { color: #bdc1c6; max-width: 720px; }
.card { border: 1px solid #5f6368; border-radius: 12px; margin-top: 18px; overflow: hidden; }
.device { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid #3c4043; }
.device:first-child { border-top: 0; }
.mark { width: 40px; height: 40px; border-radius: 50%; background: #f9ab00; color: #202124; display: grid; place-items: center; flex: 0 0 auto; }
.device b { display: block; font-weight: 500; }
.device em { color: #9aa0a6; font-style: normal; font-size: 14px; }
.this-pc { margin-top: 28px; }
.this-pc-label { color: #9aa0a6; font-size: 13px; margin: 0 0 8px; }
.setup-easy { position: relative; display: flex; align-items: stretch; border: 1px solid #5f6368; border-radius: 12px; overflow: hidden; background: #292a2d; max-width: 100%; min-width: 0; }
.setup-art { width: 220px; flex: 0 0 auto; background: #000; display: grid; place-items: center; }
.setup-copy { flex: 1; min-width: 0; padding: 22px 22px 16px; }
.setup-copy h2 { margin: 0 0 8px; font-size: 26px; font-weight: 500; overflow-wrap: break-word; }
.setup-copy p, .setup-copy li { color: #bdc1c6; margin: 0; }
.setup-copy input.plain { max-width: none; margin-top: 16px; font-size: 16px; letter-spacing: normal; }
.setup-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; background: #3c4043; }
.setup-progress span { display: block; height: 100%; width: 42%; background: #1e8e3e; animation: setup-slide 1.6s ease-in-out infinite; }
@keyframes setup-slide { 0% { margin-left: -42%; } 100% { margin-left: 100%; } }
.setup-copy ol { margin: 8px 0 0; padding-left: 18px; }
.setup-copy li { margin: 6px 0; }
.grow { flex: 1; cursor: pointer; }
.mini { border: 0; background: transparent; color: #e8eaed; cursor: pointer; font-size: 18px; }
.row { display: flex; justify-content: flex-end; margin-top: 24px; }
pre { white-space: pre-wrap; background: #292a2d; padding: 12px; border-radius: 8px; position: relative; }
.copy { position: absolute; right: 8px; top: 8px; }
#session { position: fixed; inset: 64px 0 0 0; background: #000; touch-action: none; }
#stage { position: relative; width: 100%; height: calc(100% - 52px); overflow: hidden; background: #111; touch-action: none; }
#remoteScreen { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: fill; background: transparent; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
#remoteScreen.crisp { image-rendering: pixelated; }
.picture-wait { position: absolute; left: 16px; right: 16px; top: 20px; margin: 0; color: #e8eaed; font-size: 16px; line-height: 1.45; z-index: 2; }
#osk { display: flex; gap: 8px; padding: 8px; background: #202124; }
#osk input { flex: 1; border: 1px solid #5f6368; border-radius: 8px; padding: 8px; }
#pad { position: absolute; left: 12px; right: 12px; bottom: 64px; height: 42%; border: 1px dashed #5f6368; border-radius: 12px; }
#cursor { display: none; position: absolute; z-index: 4; width: 22px; height: 22px; margin: -2px 0 0 -2px; pointer-events: none; filter: drop-shadow(0 1px 1px #000); }
#zoombar { display: none; position: absolute; right: 10px; top: 10px; z-index: 5; gap: 8px; }
#zoombar button { width: 44px; height: 44px; border: 0; border-radius: 22px; background: rgba(32,33,36,.88); color: #fff; font-size: 26px; line-height: 1; touch-action: none; }
#mousebar { display: none; }
#session.phone #stage { height: calc(100% - 108px); }
#session.phone #cursor { display: block; }
#session.phone #zoombar { display: flex; }
#session.phone #mousebar { display: flex; gap: 8px; padding: 8px; background: #202124; }
#mousebar button { flex: 1; height: 40px; border: 0; border-radius: 10px; background: #3c4043; color: #fff; font-size: 16px; touch-action: none; }
#mousebar button:active { background: #1a73e8; }
#sheet, #files { position: absolute; top: 0; right: 0; bottom: 52px; z-index: 20; width: min(420px, 100%); background: #292a2d; overflow-x: hidden; overflow-y: auto; padding: 8px 16px 28px; box-shadow: -8px 0 24px rgba(0,0,0,.35); touch-action: pan-y; }
#session.phone #sheet, #session.phone #files { left: 0; right: 0; width: auto; bottom: 108px; }
#sheet { padding: 0; }
.sheet-body { padding: 8px 16px 28px; }
.sheet-top { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 1; background: #292a2d; }
.sheet-top .mini { width: 40px; height: 40px; font-size: 22px; }
.sheet-actions { display: flex; gap: 12px; margin: 0 0 8px; max-width: 100%; }
.sheet-act { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 92px; padding: 10px 6px; border: 1px solid #9aa0a6; border-radius: 4px; background: transparent; color: #fff; cursor: pointer; overflow: hidden; }
.sheet-act:active { background: #3c4043; }
#sheet .sec { border-top: 1px solid #3c4043; padding: 16px 0 8px; }
#sheet .sec h2 { font-size: 16px; font-weight: 500; margin: 0; }
#sheet .opt { display: block; margin: 16px 0 0; font-size: 20px; font-weight: 500; }
#sheet .check { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
#sheet .check input { width: 20px; height: 20px; flex: 0 0 auto; margin: 2px 0 0; padding: 0; border: 0; accent-color: #8ab4f8; }
#sheet .check-copy { flex: 1; min-width: 0; display: block; }
#sheet .check-copy b { display: block; font-size: 16px; font-weight: 600; }
#sheet .black { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 10px; }
#sheet .black kbd { border: 1px solid #9aa0a6; border-radius: 4px; padding: 0 6px; font: inherit; }
#sheet .hint, #sheet .check .hint { color: #9aa0a6; font-size: 14px; font-weight: 400; margin: 4px 0 0; }
.sec { border-top: 1px solid #3c4043; padding: 14px 0; }
.sec h2 { font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.hint { color: #9aa0a6; font-size: 14px; margin: 4px 0 0; }
#stats { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.65); padding: 6px 8px; font-size: 12px; }
a { color: #8ab4f8; }
@media (max-width: 720px) {
  nav { width: 56px; }
  main { padding: 18px 14px 32px; }
  .setup-easy { flex-direction: column; }
  .setup-art { width: 100%; height: 140px; }
  .setup-copy { padding: 16px; }
  .setup-copy h2 { font-size: 22px; }
  .setup-copy .row { justify-content: flex-start; }
}
