:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#182f46;background:#eef2f5;font-synthesis:none;font-size:14px;--navy: #182f46;--blue: #2865d5;--line: #dbe2e9;--muted: #647487}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.44}button,input,textarea{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid #86aff4;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}button{transition:background-color .15s,border-color .15s}input,textarea{width:100%;min-width:0;color:var(--navy);background:#fff;border:1px solid #cdd6df;border-radius:7px;padding:10px 11px;line-height:1.3}input:hover,textarea:hover{border-color:#a1b0bf}input::placeholder,textarea::placeholder{color:#8793a0}label{display:block;font-size:12px;font-weight:550;margin:15px 0 7px}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled{opacity:.7}.skip-link{position:absolute;left:16px;top:-80px;z-index:30;padding:12px;background:#fff;color:var(--blue)}.skip-link:focus{top:12px}.app-shell{display:grid;grid-template-columns:296px minmax(0,1fr);grid-template-rows:84px minmax(0,1fr);height:100vh;height:100dvh;min-height:660px}.app-header{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;padding:0 30px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center}.brand svg{width:32px;height:32px;stroke:var(--navy);fill:none;stroke-width:1.8}.brand h1{font-size:18px;font-weight:650;letter-spacing:-.4px}.brand span{display:block;font-size:11px;color:var(--muted);margin-top:3px}.header-actions{display:flex;gap:26px;align-items:center}.privacy-note{color:var(--muted);font-size:12px}.lock-icon{margin-right:4px;color:#628077}.text-button{color:#425a73;background:transparent;border:0;border-radius:6px;padding:8px 9px;font-size:12px;white-space:nowrap}.text-button:hover:not(:disabled){background:#e7edf4;color:var(--blue)}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:7px;padding:11px 16px;font-weight:550;line-height:1.35;border:1px solid transparent}.primary-button{background:var(--blue);color:#fff}.primary-button:hover:not(:disabled){background:#2055b6}.secondary-button{background:#fff;color:#334c66;border-color:#ccd6e1}.secondary-button:hover:not(:disabled){background:#f1f5fb;border-color:#9caec4}.compact{padding:7px 14px;font-size:12px}.connection-rail{display:flex;flex-direction:column;padding:20px 22px 0;border-right:1px solid var(--line);overflow:auto;background:#f7f9fb}.section-title{display:flex;align-items:center;justify-content:space-between;min-height:30px}h2{font-size:13px;font-weight:650}.muted{color:var(--muted);font-size:11px;line-height:1.7}.saved-section{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:19px}#profiles-empty{margin-top:9px}.profile-list{display:grid;gap:5px;max-height:230px;overflow:auto}.profile-item{display:flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:7px}.profile-item.selected{background:#e8effa;border-color:#d4e1f5}.profile-select{flex:1;display:grid;min-width:0;text-align:left;gap:4px;border:0;border-radius:6px;background:transparent;color:var(--navy);padding:11px 9px}.profile-select strong{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-select span{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-quick{margin-right:3px}.target-fields{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:9px}.optional{font-size:10px;font-weight:400;color:var(--muted);margin-left:4px}.field-divider{height:1px;background:var(--line);margin:22px 0 18px}.field-hint{color:var(--muted);font-size:10px;line-height:1.75;margin:8px 0 0}#connection-form>.primary-button{width:100%;margin-top:20px}.profile-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:11px}.profile-actions .secondary-button{flex:1;font-size:12px;padding:9px 10px}.danger{color:#a94747}.form-error{margin-top:14px;border-left:2px solid #bf5555;color:#a63838;padding:6px 9px;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.rail-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding:24px 0 16px;font-size:10px;color:var(--muted)}.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;padding:24px 28px 0}.desktop-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.desktop-identity{display:flex;align-items:center;gap:10px;min-width:0}.desktop-identity>div{min-width:0}.desktop-identity h2{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#target-label{display:block;font-size:11px;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#9cabb8;flex-shrink:0}[data-state=connected] #status-dot{background:#398568;box-shadow:0 0 0 4px #39856814}[data-state=connecting] #status-dot,[data-state=reconnecting] #status-dot,[data-state=authenticating] #status-dot,[data-state=credentials] #status-dot{background:#bb8e40}[data-state=error] #status-dot,[data-state=auth-failed] #status-dot{background:#b94e4e}.desktop-area{position:relative;flex:1;min-height:280px;overflow:hidden;display:flex;flex-direction:column;background:var(--navy);border-radius:10px;border:1px solid #162a3f;box-shadow:0 3px 8px #142c4310}.empty-state{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;padding:38px 24px;text-align:center;color:#edf3f8}.empty-state svg{width:87px;height:73px;margin-bottom:25px;stroke:#8ca2b8;stroke-width:1.5;fill:none}.empty-state .screen-arrow{stroke:#b8c9da;stroke-width:2}.empty-state h3{font-size:22px;font-weight:500;letter-spacing:-.5px}.empty-state p{font-size:12px;line-height:1.9;margin-top:14px;color:#aabccf;max-width:390px;overflow-wrap:anywhere}.empty-state button{margin-top:25px;background:#ffffff0d;border-color:#6e849b;color:#e8f0f8}.empty-state button:hover:not(:disabled){background:#ffffff17;border-color:#a2b7cd}.vnc-screen{flex:1;width:100%;min-height:0;overflow:auto;outline-offset:-3px}.vnc-screen canvas{touch-action:none}.desktop-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}.view-controls,.tool-actions{display:flex;align-items:center;gap:13px}.tool-actions{gap:1px}.toggle-label{display:inline-flex;gap:6px;align-items:center;margin:0;font-size:11px;font-weight:400;white-space:nowrap;color:#516377}.toggle-label input{width:13px;height:13px;accent-color:var(--blue);padding:0;margin:0}.status-bar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);gap:14px;min-height:42px;font-size:10px;color:var(--muted);padding:9px 0}.status-bar p{line-height:1.6;overflow-wrap:anywhere}#view-hint{white-space:nowrap}.keyboard-panel{background:#f7f9fb;padding:9px 14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.keyboard-panel label{margin:0}.keyboard-panel .virtual-keyboard-input{position:absolute;bottom:0;left:0;width:1px;height:1px;padding:0;opacity:0;border:0;font-size:16px}.keyboard-panel span{color:var(--muted);font-size:10px}.workspace:fullscreen{background:#eef2f5;padding:16px 20px 0;height:100dvh}dialog{width:min(520px,calc(100% - 32px));padding:27px;border:1px solid #ccd7e2;border-radius:13px;color:var(--navy);box-shadow:0 20px 90px #0d233d38;max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:#11283e70;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.dialog-heading h2{font-size:18px}dialog h3{font-size:13px;margin:21px 0 7px}dialog p{color:#5c6f83;line-height:1.8;font-size:12px}dialog textarea{resize:vertical}dialog>.primary-button{margin-top:10px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#clipboard-status{margin-top:8px;color:var(--blue)}@media(min-width:1600px){.app-shell{grid-template-columns:320px minmax(0,1fr)}.connection-rail{padding-left:28px;padding-right:28px}.workspace{padding:30px 36px 0}}@media(max-width:1000px){.app-shell{grid-template-columns:270px minmax(0,1fr)}.connection-rail{padding-left:17px;padding-right:17px}.workspace{padding:20px 18px 0}.desktop-controls{align-items:flex-start;flex-direction:column;gap:7px}.tool-actions{width:100%;justify-content:space-between}}@media(max-width:700px){.app-shell{display:flex;flex-direction:column;height:auto;min-height:100dvh}.app-header{min-height:75px;padding:0 18px}.brand h1{font-size:17px}.header-actions{gap:0}.privacy-note{display:none}.connection-rail{padding:16px 20px;border-right:0;overflow:visible;order:2}.saved-section{margin-bottom:14px}.workspace{padding:18px 14px 0;min-height:440px;height:61dvh;order:1;border-bottom:1px solid var(--line)}.desktop-area{min-height:240px}.desktop-toolbar{margin-bottom:13px}.empty-state{padding:24px 18px}.empty-state svg{width:62px;height:51px;margin-bottom:17px}.empty-state h3{font-size:19px}.empty-state p{font-size:11px;margin-top:10px}.desktop-controls{gap:9px;padding:12px 0 6px}.tool-actions .text-button{min-height:38px;padding:7px 10px}.status-bar{min-height:33px;font-size:9px}#view-hint{display:none}.connection-rail input{font-size:16px}.profile-list{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.profile-actions .secondary-button{flex:initial;padding-left:24px;padding-right:24px}.rail-bottom{padding-bottom:0}dialog input,dialog textarea,#mobile-keyboard{font-size:16px}.keyboard-panel input{flex:1}.workspace:fullscreen{height:100dvh}}@media(prefers-reduced-motion:reduce){button{transition:none}}
