/* ===== Терминал сервера ===== */
#term { position: fixed; inset: 0; z-index: 2500; background: #000; display: none; flex-direction: column; font-family: 'Courier New', monospace; }
#term.on { display: flex; }
#term button { margin: 0; width: auto; }
.t-top { background: #444; display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
.t-spacer { flex: 1; }
#term .t-ico { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; padding: 0; line-height: 1; color: #3a3a3a; font-size: 24px; font-weight: bold; background: linear-gradient(#c4c4c4, #9a9a9a); border: 2px solid #111; border-radius: 8px; box-shadow: inset 0 2px 0 #e2e2e2, inset 0 -3px 0 #808080; }
.t-ico:active { filter: brightness(.85); }
.t-status { background: #2f2f2f; color: #9ad; font-size: 12px; padding: 4px 10px; white-space: nowrap; overflow-x: auto; }
.t-body { position: relative; flex: 1; min-height: 0; }
.t-out { position: absolute; inset: 0; overflow-y: auto; padding: 6px 6px 10px; font-size: 13px; line-height: 1.28; font-weight: bold; white-space: pre-wrap; word-break: break-all; }
.t-out div { margin: 0; }
.l-I { color: #19e619; } .l-N { color: #8a8aff; } .l-W { color: #ffe600; } .l-E { color: #ff3030; } .l-X { color: #fff; }
.t-side { display: none; position: absolute; top: 0; right: 0; width: 48%; background: #444; padding: 8px 0 16px; text-align: center; z-index: 3; }
.t-side.on { display: block; }
#term .t-side button { display: block; width: 100%; text-align: center; background: none; border: none; border-radius: 0; color: #fff; font-family: 'Roboto Condensed', 'Arial Narrow', Impact, sans-serif; font-stretch: condensed; font-size: 20px; font-weight: 900; letter-spacing: 1px; padding: 10px 0; text-transform: uppercase; }
.t-in { background: #444; display: flex; align-items: center; gap: 8px; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.t-in input { flex: 1; min-width: 0; background: #3b3b3b; border: none; border-bottom: 3px solid #7aa7ff; border-radius: 0; color: #fff; font-family: inherit; font-size: 16px; padding: 12px 8px; margin: 0; outline: none; }
#term .t-send { background: none; border: none; color: #bdbdbd; font-size: 38px; width: 62px; padding: 0; }
.t-modal { display: none; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); align-items: flex-start; justify-content: center; padding-top: 10%; z-index: 5; }
.t-modal.on { display: flex; }
.t-panel { width: 90%; max-height: 84%; overflow-y: auto; background: #2b2b2b; color: #fff; padding: 12px 16px 16px; box-sizing: border-box; font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif; }
.t-panel.info { background: #6f6f6f; }
.t-h { font-size: 28px; font-weight: 900; text-align: center; text-transform: uppercase; font-stretch: condensed; margin: 0 0 8px; }
.t-h2 { font-size: 20px; text-align: center; margin: 14px 0 4px; } .t-h2.blue { color: #00aaff; } .t-h2.orange { color: #ffb300; }
.t-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; font-size: 15px; }
.t-row.r { justify-content: flex-end; }
.t-row input, .t-row select { background: transparent; border: none; border-bottom: 2px solid #fff; border-radius: 0; color: #fff; font-size: 15px; width: 52%; padding: 6px 2px; margin: 0; }
.t-row select option { background: #2b2b2b; }
#term .t-gray { background: #9e9e9e; color: #fff; border: none; border-radius: 0; padding: 8px 14px; font-size: 15px; font-family: inherit; margin-left: 8px !important; }
.t-hint { font-size: 12px; color: #bbb; line-height: 1.5; margin: 6px 0; }
.t-sw { position: relative; display: inline-block; flex: none; width: 96px; height: 40px; border-radius: 30px; border: 3px solid #fff; box-sizing: border-box; }
.t-sw::before { position: absolute; top: 7px; font: 900 18px Arial, sans-serif; }
.t-sw::after { content: ''; position: absolute; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(#fff, #c8c8c8); }
.t-sw.on { background: #000; } .t-sw.on::before { content: 'ON'; color: #fff; left: 14px; } .t-sw.on::after { right: 4px; }
.t-sw.off { background: #eee; } .t-sw.off::before { content: 'OFF'; color: #000; right: 10px; } .t-sw.off::after { left: 4px; }
.info-text { font-size: 17px; text-align: center; line-height: 1.3; margin: 30px 0 40px; }
