.sr-remote{--sr-bg:#090c18;--sr-panel:#141824;--sr-panel2:#1b202d;--sr-line:#343947;--sr-red:#ed102d;--sr-red2:#ff2944;--sr-text:#f6f7fb;--sr-muted:#aab0bd;font-family:Arial,Helvetica,sans-serif;color:var(--sr-text);background:linear-gradient(180deg,#0b0f1c 0%,#090c18 100%);border-top:2px solid var(--sr-red);border-bottom:1px solid #262b37}
.sr-shell{max-width:1180px;margin:0 auto;padding:34px 22px 28px}
.sr-head{display:flex;gap:18px;align-items:center;margin-bottom:24px}.sr-mark{width:68px;height:68px;border:1px solid #454b58;border-radius:50%;display:grid;place-items:center;background:#0f1320;box-shadow:0 0 0 5px rgba(237,16,45,.05)}.sr-mark svg{width:40px;height:40px;fill:none;stroke:var(--sr-red);stroke-width:3}
.sr-eyebrow{font-size:12px;letter-spacing:.16em;color:var(--sr-red2);font-weight:700}.sr-head h2{font-size:30px;line-height:1.12;margin:5px 0 7px}.sr-head p{margin:0;color:var(--sr-muted);font-size:14px}
.sr-tabs{display:flex;gap:8px;margin:0 0 14px}.sr-tab{appearance:none;border:1px solid #3b414f;background:#171c29;color:#c6cbd5;padding:13px 18px;font-weight:700;cursor:pointer}.sr-tab:hover,.sr-tab.is-active{border-color:var(--sr-red);color:#fff;background:linear-gradient(180deg,#21151c,#17131a)}
.sr-panel{display:none}.sr-panel.is-active{display:block}.sr-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sr-card,.sr-screen-card{background:linear-gradient(180deg,var(--sr-panel2),var(--sr-panel));border:1px solid var(--sr-line);box-shadow:0 14px 36px rgba(0,0,0,.2)}.sr-card{padding:22px}.sr-step{display:inline-block;color:var(--sr-red2);font-size:12px;font-weight:700;letter-spacing:.12em;margin-bottom:9px}.sr-card h3{font-size:20px;margin:0 0 8px}.sr-card p{color:var(--sr-muted);font-size:14px;line-height:1.55;margin:0 0 18px}
.sr-btn{appearance:none;border:1px solid #4a5160;background:#2b303d;color:#fff;padding:12px 17px;font-weight:700;letter-spacing:.035em;cursor:pointer;transition:.16s ease}.sr-btn:hover:not(:disabled){transform:translateY(-1px);border-color:#737b8a}.sr-btn:disabled{opacity:.45;cursor:not-allowed}.sr-btn-primary{background:var(--sr-red);border-color:var(--sr-red);color:#fff}.sr-btn-primary:hover:not(:disabled){background:var(--sr-red2);border-color:var(--sr-red2)}.sr-btn-ghost{background:#10141f}
.sr-credentials{margin-top:18px;padding:15px;border:1px solid #414755;background:#0d111c}.sr-credentials>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border-bottom:1px solid #282e3a}.sr-credentials>div:last-of-type{margin-bottom:12px}.sr-credentials span{font-size:11px;color:#9299a7;letter-spacing:.1em}.sr-credentials strong{font-size:21px;letter-spacing:.08em}.sr-status{margin-top:14px;font-size:13px;color:#b9bfca}.sr-status.is-ok{color:#a5e8b6}.sr-status.is-error{color:#ff7a8d}
.sr-preview-wrap{position:relative;margin-top:14px;background:#080b13;border:1px solid var(--sr-line);padding:10px}.sr-preview-title{font-size:12px;color:#b6bdc9;padding:3px 3px 10px}.sr-video{width:100%;display:block;background:#05070d;min-height:260px;object-fit:contain}.sr-remote-pointer{position:absolute;width:22px;height:22px;border:2px solid var(--sr-red);border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);box-shadow:0 0 0 3px rgba(237,16,45,.2)}
.sr-connect-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:14px}.sr-connect-form label{display:block;color:#c7ccd6;font-size:13px;font-weight:700;margin:0 0 14px}.sr-connect-form input{display:block;width:100%;box-sizing:border-box;margin-top:7px;background:#0b0f18;color:#fff;border:1px solid #404654;padding:12px 13px;outline:none}.sr-connect-form input:focus{border-color:var(--sr-red)}
.sr-screen-card{min-width:0}.sr-screen-head{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid #363c49;font-size:12px;font-weight:700;letter-spacing:.08em}.sr-live{color:#858c99}.sr-live.is-on{color:#a5e8b6}.sr-screen-stage{position:relative;min-height:420px;background:#05070d;display:grid;place-items:center;overflow:hidden}.sr-screen-stage .sr-video{min-height:420px}.sr-screen-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#9da4b0;text-align:center;padding:25px}.sr-screen-placeholder strong{color:#d9dde5}.sr-toolbar{display:flex;align-items:center;gap:14px;padding:12px 14px;border-top:1px solid #363c49}.sr-control-note{font-size:12px;color:#8f96a4}
.sr-security{margin-top:14px;border:1px solid #333947;background:#10141f;display:flex;gap:13px;align-items:flex-start;padding:14px}.sr-shield{flex:0 0 32px;height:32px;border:1px solid var(--sr-red);border-radius:50%;display:grid;place-items:center;color:var(--sr-red);font-weight:700}.sr-security strong,.sr-security span{display:block}.sr-security strong{font-size:13px}.sr-security span{margin-top:3px;color:#979eab;font-size:12px;line-height:1.45}.sr-message{min-height:18px;margin-top:12px;font-size:13px;color:#d7dbe3}
@media(max-width:800px){.sr-shell{padding:24px 14px}.sr-head{align-items:flex-start}.sr-mark{width:54px;height:54px;flex-basis:54px}.sr-head h2{font-size:24px}.sr-tabs{display:grid;grid-template-columns:1fr 1fr}.sr-grid,.sr-connect-layout{grid-template-columns:1fr}.sr-screen-stage,.sr-screen-stage .sr-video{min-height:260px}.sr-toolbar{align-items:flex-start;flex-direction:column}}

.sr-code-row strong{font-size:28px!important;letter-spacing:.12em}.sr-code-help{margin-top:-4px!important;margin-bottom:16px!important;color:#aab0bd!important;font-size:12px!important}

/* v0.3.3 — упрощённый сценарий подтверждения */
.sr-host-flow{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.sr-code-card{max-width:720px}
.sr-host-main-status{font-size:14px;margin-top:16px}
.sr-accept-card{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:18px;align-items:center;padding:22px;background:linear-gradient(180deg,#18261d,#131b16);border:2px solid #53c878;box-shadow:0 14px 34px rgba(0,0,0,.24)}
.sr-accept-card[hidden]{display:none!important}
.sr-accept-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#53c878;color:#07120a;font-size:30px;font-weight:900}
.sr-accept-eyebrow{display:block;color:#8ae7a8;font-size:11px;font-weight:800;letter-spacing:.12em;margin-bottom:5px}
.sr-accept-copy h3{font-size:22px;margin:0 0 7px;color:#fff}.sr-accept-copy p{margin:0;color:#c7d4ca;font-size:14px;line-height:1.55}.sr-accept-copy p strong{color:#fff}
.sr-btn-accept{min-width:170px;padding:16px 25px;background:#53c878;border-color:#53c878;color:#061108;font-size:17px;box-shadow:0 0 0 5px rgba(83,200,120,.09)}
.sr-btn-accept:hover:not(:disabled){background:#69db8b;border-color:#69db8b;color:#061108}
@media(max-width:800px){.sr-code-card{max-width:none}.sr-accept-card{grid-template-columns:46px 1fr}.sr-accept-icon{width:44px;height:44px;font-size:24px}.sr-btn-accept{grid-column:1/-1;width:100%}}
.sr-agent-hint{margin-top:14px;padding:12px 14px;border:1px solid #505767;background:#0d111c;color:#cfd4dd;font-size:12px;line-height:1.5}.sr-agent-hint strong{color:#fff}.sr-control-note.is-on{color:#a5e8b6;font-weight:700}.sr-control-note.is-wait{color:#ffc24a}.sr-screen-stage .sr-video{outline:none}.sr-screen-stage .sr-video.is-control-ready{cursor:default;box-shadow:inset 0 0 0 2px rgba(165,232,182,.45)}
.sr-agent-download{display:inline-block;margin-top:10px;padding:9px 12px;border:1px solid #ed102d;background:#1a1117;color:#fff!important;text-decoration:none;font-weight:700;font-size:11px;letter-spacing:.04em}.sr-agent-download:hover{background:#ed102d;color:#fff!important}

/* FREE MOUSE v1.1 */
.sr-agent-download{font-size:13px!important;padding:12px 16px!important}.sr-control-note.is-on{font-size:13px;color:#75e394!important}.sr-screen-stage .sr-video.is-control-ready{cursor:default}

/* FREE MOUSE v1.7: host preview disabled to prevent recursive screen feedback */
.sr-host-preview-video{display:none!important}
.sr-host-share-state{padding:14px!important}
.sr-share-active{display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid #3e4655;background:#0d111b}
.sr-share-active strong{color:#75e394;font-size:14px;letter-spacing:.04em}
.sr-share-active span{color:#c0c6d1;font-size:12px;line-height:1.5}


/* FREE MOUSE v1.8: stable cursor + click mode */
.sr-screen-stage{cursor:default}
.sr-screen-stage .sr-video.sr-hide-native-cursor{cursor:none!important}
.sr-local-pointer{position:absolute;z-index:20;pointer-events:none;transform:translate(-2px,-4px);font-family:Arial,sans-serif;font-size:28px;line-height:1;color:#fff;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,0 2px 4px rgba(0,0,0,.8)}
.sr-local-pointer[hidden]{display:none!important}

/* FREE MOUSE v1.9: понятное разрешение мыши и клавиатуры */
.sr-agent-hint{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:center;margin-top:16px;padding:16px 18px;border:2px solid #53c878;background:linear-gradient(180deg,#18261d,#131b16);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.sr-agent-hint[hidden]{display:none!important}
.sr-agent-permission-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#53c878;color:#07120a;font-size:25px;font-weight:900}
.sr-agent-permission-copy{min-width:0}.sr-agent-permission-copy strong{display:block;color:#fff;font-size:15px;margin-bottom:5px}.sr-agent-permission-copy span{display:block;color:#c7d4ca;font-size:12px;line-height:1.5}
.sr-agent-download{display:inline-flex!important;align-items:center;justify-content:center;margin-top:12px!important;padding:14px 20px!important;border:1px solid #53c878!important;background:#53c878!important;color:#061108!important;text-decoration:none!important;font-size:14px!important;font-weight:900!important;letter-spacing:.035em!important;box-shadow:0 0 0 5px rgba(83,200,120,.09)}
.sr-agent-download:hover{background:#69db8b!important;border-color:#69db8b!important;color:#061108!important;transform:translateY(-1px)}
.sr-agent-hint.is-ready{border-color:#75e394;background:linear-gradient(180deg,#16271d,#101a14)}
@media(max-width:650px){.sr-agent-hint{grid-template-columns:1fr}.sr-agent-permission-icon{margin-bottom:2px}.sr-agent-download{width:100%;box-sizing:border-box;text-align:center}}

/* FREE MOUSE v1.10: встроенная инструкция */
.sr-head-copy{min-width:0}
.sr-instruction-btn{margin-left:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:9px;padding:11px 16px;border:1px solid #5a6170;background:#141927;color:#fff;font:700 12px/1 Arial,Helvetica,sans-serif;letter-spacing:.06em;cursor:pointer;transition:.16s ease;white-space:nowrap}
.sr-instruction-btn:hover{border-color:var(--sr-red);background:#1b1320;transform:translateY(-1px)}
.sr-instruction-btn-icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--sr-red);color:#fff;font-size:14px;font-weight:900}
.sr-instruction-modal[hidden]{display:none!important}
.sr-instruction-modal{position:fixed;z-index:2147483000;inset:0;background:rgba(2,5,12,.82);backdrop-filter:blur(4px);display:grid;place-items:center;padding:22px;overflow:auto}
.sr-instruction-dialog{width:min(820px,100%);max-height:calc(100vh - 44px);overflow:auto;background:#0e1320;border:1px solid #495160;border-top:3px solid var(--sr-red);box-shadow:0 28px 80px rgba(0,0,0,.55);padding:24px}
.sr-instruction-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid #303746}
.sr-instruction-kicker{display:block;color:var(--sr-red2);font-size:11px;font-weight:800;letter-spacing:.14em;margin-bottom:5px}
.sr-instruction-head h3{margin:0;color:#fff;font-size:26px;line-height:1.15}
.sr-instruction-close{flex:0 0 38px;width:38px;height:38px;border:1px solid #454d5c;background:#171c29;color:#fff;font-size:28px;line-height:34px;cursor:pointer}
.sr-instruction-close:hover{border-color:var(--sr-red);color:var(--sr-red2)}
.sr-instruction-steps{display:grid;gap:0;margin-top:8px}
.sr-instruction-step{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid #2c3341}
.sr-instruction-step>b{width:34px;height:34px;display:grid;place-items:center;background:var(--sr-red);color:#fff;font-size:16px}
.sr-instruction-step strong,.sr-instruction-step span{display:block}.sr-instruction-step strong{color:#fff;font-size:15px;margin-bottom:4px}.sr-instruction-step span{color:#bdc4d0;font-size:13px;line-height:1.55}
.sr-instruction-note{margin-top:16px;padding:12px 14px;border:1px solid #3b7f4e;background:#122219;color:#c7d9cc;font-size:12px;line-height:1.5}.sr-instruction-note strong{color:#8ce5a6}
.sr-instruction-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.sr-instruction-action{appearance:none;display:inline-flex;align-items:center;gap:9px;padding:11px 14px;border:1px solid #4c5464;background:#171c29;color:#fff!important;text-decoration:none!important;font:700 11px/1 Arial,Helvetica,sans-serif;letter-spacing:.04em;cursor:pointer}
.sr-instruction-action:hover{border-color:var(--sr-red);background:#21151c;color:#fff!important}
.sr-instruction-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.sr-instruction-open{overflow:hidden}
@media(max-width:800px){.sr-head{flex-wrap:wrap}.sr-instruction-btn{margin-left:0;width:100%;justify-content:center}.sr-instruction-dialog{padding:18px}.sr-instruction-head h3{font-size:21px}.sr-instruction-step{grid-template-columns:36px 1fr;gap:10px}.sr-instruction-actions{display:grid;grid-template-columns:1fr}.sr-instruction-action{justify-content:center}}
@media print{
  body *{visibility:hidden!important}
  .sr-instruction-modal,.sr-instruction-modal *{visibility:visible!important}
  .sr-instruction-modal{display:block!important;position:absolute!important;inset:0!important;background:#fff!important;padding:0!important;overflow:visible!important}
  .sr-instruction-dialog{width:100%!important;max-height:none!important;overflow:visible!important;background:#fff!important;color:#111!important;border:0!important;border-top:3px solid #ed102d!important;box-shadow:none!important;padding:12mm!important}
  .sr-instruction-head{border-color:#ddd!important}.sr-instruction-head h3,.sr-instruction-step strong{color:#111!important}.sr-instruction-kicker{color:#ed102d!important}.sr-instruction-step span{color:#444!important}.sr-instruction-step{border-color:#ddd!important}.sr-instruction-note{background:#f3fff5!important;color:#333!important;border-color:#66a776!important}
  .sr-instruction-close,.sr-instruction-actions{display:none!important}
}


/* FREE MOUSE v1.13: весь удалённый экран всегда целиком в окне */
.sr-screen-stage{
  --sr-remote-stage-height:420px;
  width:100%;
  height:var(--sr-remote-stage-height);
  min-height:0!important;
  max-height:min(76dvh,900px);
  box-sizing:border-box;
  overflow:hidden;
  background:#05070d;
}
.sr-screen-stage .sr-video{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#05070d;
}
.sr-screen-stage:fullscreen,
.sr-screen-stage:-webkit-full-screen{
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  min-height:0!important;
  background:#000!important;
}
.sr-screen-stage:fullscreen .sr-video,
.sr-screen-stage:-webkit-full-screen .sr-video{
  width:100vw!important;
  height:100dvh!important;
  max-width:100vw!important;
  max-height:100dvh!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#000!important;
}
@media(max-width:800px){
  .sr-screen-stage{
    min-height:0!important;
    max-height:68dvh;
  }
  .sr-screen-stage .sr-video{min-height:0!important}
}
@media(max-width:520px){
  .sr-screen-stage{max-height:62dvh}
}
