#peer-terminal{width:min(1180px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:94dvh;padding:0;border:1px solid #cbdbe8;border-radius:15px;color:#203e55;background:#fff;box-shadow:0 24px 80px #0c1b3055;overflow:hidden}#peer-terminal::backdrop{background:#10263899;backdrop-filter:blur(3px)}
.peer-terminal-shell{display:flex;flex-direction:column;height:min(800px,94dvh);max-height:94dvh}.peer-terminal-shell header{display:flex;align-items:flex-start;gap:12px;padding:19px 23px;border-bottom:1px solid #e1eaf2;flex:none}.peer-terminal-symbol{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:#eaf2f8;color:#386f95}.peer-terminal-symbol svg{width:23px;height:23px}.peer-terminal-shell header>div{flex:1;min-width:0}.peer-terminal-shell h2{font-size:22px;line-height:1.35;margin:0 0 5px}.peer-terminal-shell header p{font-size:12px;margin:0;color:#647f94;overflow-wrap:anywhere}.peer-terminal-shell header>button{display:grid;place-items:center;width:36px;min-height:36px;border:0;border-radius:6px;background:transparent;color:#69859a;cursor:pointer}.peer-terminal-shell header>button svg{width:18px;height:18px}
.peer-terminal-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:16px 23px 12px;overflow:auto;overscroll-behavior:contain}.peer-terminal-state{display:flex;flex-direction:column;gap:4px;padding:11px 14px;margin:0 0 13px;background:#f1f6fa;border:1px solid #dce7ef;border-radius:9px;flex:none}.peer-terminal-state strong{font-size:13px;line-height:1.5}.peer-terminal-state p{font-size:12px;line-height:1.6;color:#657e91;margin:0}.peer-terminal-state.is-active{background:#edf8f2;border-color:#d0e8da}.peer-terminal-state.is-active strong{color:#28774f}
#peer-terminal-settings{margin:0;flex:none}#peer-terminal-settings fieldset{display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,180px);gap:14px;border:0;padding:0;margin:0}#peer-terminal-settings label{display:grid;gap:6px;min-width:0;font-size:12px;line-height:1.6}#peer-terminal-settings input,#peer-terminal-settings select{font:inherit;width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #cddde9;border-radius:7px;background:#fff;color:#26485f}.peer-terminal-mode-hint{font-size:11px;line-height:1.6;color:#6c8395;margin:8px 0 12px}
.peer-terminal-screen{flex:1;min-height:200px;position:relative;background:#0c1724;color:#dce9f6;border-radius:9px;padding:12px;overflow:hidden}.peer-terminal-screen>p{font-size:13px;line-height:1.7;margin:16px;color:#91aec5}.peer-terminal-screen .xterm{height:100%;min-height:0}.peer-terminal-screen .xterm-viewport{border-radius:4px;scrollbar-width:thin;scrollbar-color:#526a81 #0c1724}.peer-terminal-error{font-size:12px;line-height:1.6;color:#b23f50;margin:10px 0 0;flex:none;overflow-wrap:anywhere}.peer-terminal-backend{font-size:11px;line-height:1.6;color:#687f91;margin:8px 0 0;flex:none}.peer-terminal-error:empty,.peer-terminal-backend:empty{display:none}
.peer-terminal-shell footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:13px 23px;border-top:1px solid #e0e9f1;flex:none;background:#fcfdff}.peer-terminal-shell footer button{font:inherit;font-size:12px;min-height:42px}.peer-terminal-shell [hidden]{display:none!important}#peer-terminal :focus-visible{outline:3px solid #77a8ca;outline-offset:3px}
@media(max-width:600px){#peer-terminal{width:calc(100vw - 14px);max-width:calc(100vw - 14px);max-height:96dvh}.peer-terminal-shell{height:96dvh;max-height:96dvh}.peer-terminal-shell header{padding:14px;gap:9px}.peer-terminal-shell h2{font-size:20px}.peer-terminal-body{padding:12px;overflow:auto}.peer-terminal-state{padding:9px 11px}.peer-terminal-screen{min-height:210px;padding:8px}.peer-terminal-shell footer{padding:10px 12px;gap:7px}.peer-terminal-shell footer button{min-height:44px;font-size:11px;padding:9px 10px}#peer-terminal-settings fieldset{grid-template-columns:minmax(0,1fr) 100px;gap:9px}#peer-terminal-settings input,#peer-terminal-settings select{font-size:16px;min-height:44px}}
.peer-card .peer-connect-extra{grid-column:1/-1;display:grid;grid-template-columns:minmax(90px,1fr) 2fr;align-items:center;gap:10px}.peer-card .peer-connect-extra .peer-connect-reason{margin:0}.peer-card .peer-connect-extra .peer-connect-button{min-height:36px}
