/* SNT V5.6 TECH: extracted from index.php without visual redesign. */
*{margin:0;padding:0;box-sizing:border-box;}
:root{--bg-color:#ffffff;--text-color:#000000;--header-opacity:0.8;--footer-opacity:0.6;--live-bg:rgba(255,255,255,0.9);--live-color:#ff4444;--video-bg:#000000;--button-bg:#10b981;--button-hover:#059669;--error-color:#ef4444;--success-color:#10b981;--border-color:#e2e8f0;--border-focus:#3b82f6;--bg-primary: #ffffff;--bg-secondary: #f8fafc;--bg-card: #ffffff;--text-primary: #1e293b;--text-secondary: #64748b;--text-muted: #94a3b8;--shadow: 0 4px 20px rgba(0,0,0,0.1);--shadow-hover: 0 8px 25px rgba(0,0,0,0.15);--gradient-primary: linear-gradient(135deg, #10b981, #059669);--gradient-hover: linear-gradient(135deg, #059669, #047857);--warning-color: #f59e0b;--info-color: #3b82f6;}
@media (prefers-color-scheme: dark){:root{--bg-color:#000000;--text-color:#ffffff;--header-opacity:0.7;--footer-opacity:0.6;--live-bg:rgba(0,0,0,0.7);--live-color:#ff4444;--video-bg:#000000;--button-bg:#059669;--button-hover:#047857;--error-color:#ef4444;--success-color:#10b981;--border-color:#334155;--border-focus:#60a5fa;--bg-primary: #0f172a;--bg-secondary: #1e293b;--bg-card: #1e293b;--text-primary: #f1f5f9;--text-secondary: #cbd5e1;--text-muted: #64748b;--shadow: 0 4px 20px rgba(0,0,0,0.3);--shadow-hover: 0 8px 25px rgba(0,0,0,0.4);--gradient-primary: linear-gradient(135deg, #059669, #047857);--gradient-hover: linear-gradient(135deg, #047857, #065f46);}}
body{background-color:var(--bg-color);color:var(--text-color);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;min-height:100vh;overflow-x:hidden;transition:background-color 0.3s ease,color 0.3s ease;}
.header{padding:0.5rem;text-align:center;opacity:var(--header-opacity);}
.header h1{font-size:clamp(1rem,3vw,1.5rem);font-weight:400;margin:0;}
.auth-container{max-width:500px;margin:2rem auto;padding:0 20px;}
.auth-card{background:var(--bg-color);border-radius:12px;padding:2rem;box-shadow:0 4px 20px rgba(0,0,0,0.1);border:1px solid var(--border-color);}
.auth-title{text-align:center;margin-bottom:1rem;font-size:1.5rem;font-weight:600;}
.auth-subtitle{text-align:center;margin-bottom:2rem;color:var(--text-color);opacity:0.8;}
.form-group{margin-bottom:1.5rem;}
label{display:block;margin-bottom:0.5rem;font-weight:600;}
.phone-input{width:100%;padding:12px 16px;border:2px solid var(--border-color);border-radius:8px;font-size:16px;background:var(--bg-color);color:var(--text-color);transition:all 0.2s ease;}
.phone-input:focus{outline:none;border-color:var(--border-focus);box-shadow:0 0 0 3px rgba(59,130,246,0.1);}
.phone-input.error{border-color:var(--error-color);background-color:rgba(239,68,68,0.05);}
.error-message{color:var(--error-color);font-size:14px;margin-top:0.5rem;display:block;}
.submit-btn{width:100%;background:var(--button-bg);color:white;border:none;padding:14px;text-align:center;font-size:16px;font-weight:600;border-radius:8px;cursor:pointer;transition:all 0.2s ease;}
.submit-btn:hover{background:var(--button-hover);transform:translateY(-1px);}
.submit-btn:disabled{opacity:0.6;cursor:not-allowed;transform:none;}
.access-denied{background:linear-gradient(135deg,#f8d7da 0%,#f5c6cb 100%);border:1px solid #f5c6cb;border-radius:8px;padding:1rem;margin-top:1rem;display:flex;align-items:flex-start;gap:12px;}
.access-denied-content{flex:1;}
.access-denied-title{font-weight:600;margin-bottom:4px;}
.access-denied-line{margin-bottom:2px;font-size:14px;}
@media (prefers-color-scheme: dark){.access-denied{background:linear-gradient(135deg,#2d1b1f 0%,#3a2327 100%);border-color:#3a2327;color:#f8d7da;}}
.main-container{max-width:1200px;margin:0 auto;padding:0 10px;}
.video-container{display:flex;flex-direction:column;gap:10px;}
.video-wrapper{position:relative;width:100%;aspect-ratio:16/9;background-color:var(--video-bg);}
.video-js{width:100%!important;height:100%!important;background-color:var(--video-bg);}
.video-controls{position:absolute;bottom:12px;right:12px;display:flex;align-items:center;gap:8px;z-index:100;}
.fullscreen-btn{background:var(--live-bg);color:var(--text-color);border:none;padding:6px;border-radius:4px;font-size:0.7rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.2s ease;width:28px;height:28px;}
.fullscreen-btn:hover{background:var(--text-color);color:var(--bg-color);}
.quality-btn{background:var(--live-bg);color:var(--text-color);border:none;padding:6px;border-radius:4px;font-size:0.68rem;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.2s ease;min-width:34px;height:28px;line-height:1;}
.quality-btn:hover{background:var(--text-color);color:var(--bg-color);}
.quality-btn.active{background:var(--gradient-primary);color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 3px 12px rgba(16,185,129,.32);}
.quality-btn:disabled{opacity:.65;cursor:wait;}
.live-indicator{background:var(--live-bg);color:var(--live-color);padding:6px 10px;border-radius:4px;font-size:0.7rem;font-weight:600;display:flex;align-items:center;gap:4px;height:28px;line-height:1;}
.live-dot{width:6px;height:6px;background:var(--live-color);border-radius:50%;animation:pulse 2s infinite;}
@keyframes pulse{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}
.video-js .vjs-control-bar,.video-js .vjs-big-play-button,.video-js .vjs-loading-spinner{display:none!important;}
.request-btn-container{text-align:center;margin:20px 0;}
.request-btn{background:linear-gradient(135deg,var(--button-bg),var(--button-hover));color:white;border:none;padding:12px 24px;text-align:center;font-size:16px;font-weight:600;border-radius:12px;cursor:pointer;transition:all 0.2s ease;text-decoration:none;display:inline-block;box-shadow:0 4px 20px rgba(0,0,0,0.1);}
.request-btn:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(0,0,0,0.15);background:linear-gradient(135deg,var(--button-hover),var(--button-bg));}
.footer{padding:0.5rem;text-align:center;opacity:var(--footer-opacity);font-size:0.7rem;margin-top:20px;}
.video-wrapper.camera-fullscreen-fallback{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    aspect-ratio:auto!important;
    z-index:99999!important;
    background:#000!important;
    border-radius:0!important;
    overflow:hidden!important;
}
.video-wrapper.camera-fullscreen-fallback .video-js,
.video-wrapper:fullscreen .video-js,
.video-wrapper:-webkit-full-screen .video-js{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    padding-top:0!important;
    object-fit:contain!important;
    background:#000!important;
}
.video-wrapper.camera-fullscreen-fallback .video-js.vjs-fluid,
.video-wrapper:fullscreen .video-js.vjs-fluid,
.video-wrapper:-webkit-full-screen .video-js.vjs-fluid{
    padding-top:0!important;
}
.video-wrapper.camera-fullscreen-fallback .video-controls,
.video-wrapper:fullscreen .video-controls,
.video-wrapper:-webkit-full-screen .video-controls{
    position:absolute!important;
    right:max(14px,env(safe-area-inset-right))!important;
    bottom:max(14px,env(safe-area-inset-bottom))!important;
    z-index:100000!important;
}
.video-wrapper:fullscreen,
.video-wrapper:-webkit-full-screen{
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    aspect-ratio:auto!important;
    border-radius:0!important;
    background:#000!important;
    overflow:hidden!important;
}
body.camera-fullscreen-open{
    overflow:hidden!important;
}
.container {max-width: 100%;margin: 0 auto;padding: 20px;min-height: 100vh;display: flex;flex-direction: column;background-color: var(--bg-primary);}
@media (min-width: 768px) {.container {max-width: 600px;padding: 40px 20px;}}
@media (min-width: 1024px) {.container {max-width: 700px;padding: 60px 20px;}}
.form-card {background: var(--bg-card);border-radius: 16px;padding: 24px;box-shadow: var(--shadow);margin-bottom: 24px;flex: 1;border: 1px solid var(--border-color);transition: all 0.3s ease;}
@media (min-width: 768px) {.form-card {padding: 32px;border-radius: 20px;}}
.form-title {text-align: center;color: var(--text-primary);margin-bottom: 12px;font-size: 24px;font-weight: 700;}
@media (min-width: 768px) {.form-title {font-size: 28px;margin-bottom: 16px;}}
.form-group {margin-bottom: 24px;}
@media (min-width: 768px) {.form-group {margin-bottom: 28px;}}
label {display: block;margin-bottom: 8px;font-weight: 600;color: var(--text-primary);font-size: 16px;}
@media (min-width: 768px) {label {font-size: 17px;margin-bottom: 10px;}}
input {width: 100%;padding: 16px;border: 2px solid var(--border-color);border-radius: 12px;font-size: 16px;transition: all 0.2s ease;background: var(--bg-card);color: var(--text-primary);}
@media (min-width: 768px) {input {padding: 18px;font-size: 17px;border-radius: 14px;}}
input:focus {outline: none;border-color: var(--border-focus);box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);}
input.error-field {border-color: var(--error-color);background-color: rgba(239, 68, 68, 0.05);}
.error-message {color: var(--error-color);font-size: 14px;margin-top: 6px;display: block;}
@media (min-width: 768px) {.error-message {font-size: 15px;margin-top: 8px;}}
.submit-btn-form {width: 100%;background: var(--gradient-primary);color: white;border: none;padding: 18px;text-align: center;font-size: 18px;font-weight: 600;border-radius: 14px;cursor: pointer;transition: all 0.2s ease;margin: 32px 0 16px;}
@media (min-width: 768px) {.submit-btn-form {padding: 20px;font-size: 19px;border-radius: 16px;margin: 40px 0 20px;}}
.submit-btn-form:hover {transform: translateY(-2px);box-shadow: var(--shadow-hover);background: var(--gradient-hover);}
.submit-btn-form:active {transform: translateY(0);}
.submit-btn-form:disabled {background: var(--text-muted);cursor: not-allowed;transform: none;box-shadow: none;opacity: 0.6;}
.status {padding: 16px;margin: 16px 0;border-radius: 12px;text-align: center;font-size: 16px;font-weight: 500;border: 1px solid;}
@media (min-width: 768px) {.status {padding: 20px;margin: 20px 0;border-radius: 14px;font-size: 17px;}}
.success {background-color: rgba(16, 185, 129, 0.1);color: var(--success-color);border-color: rgba(16, 185, 129, 0.3);}
.error {background-color: rgba(239, 68, 68, 0.1);color: var(--error-color);border-color: rgba(239, 68, 68, 0.3);}
.loading {background-color: rgba(59, 130, 246, 0.1);color: var(--info-color);border-color: rgba(59, 130, 246, 0.3);}
.auth-status {text-align: left;padding: 20px;}
.auth-status-content {display: flex;align-items: center;gap: 16px;}
.lock-icon {display: flex;align-items: center;justify-content: center;width: 48px;height: 48px;border-radius: 12px;flex-shrink: 0;}
.lock-icon.success {background: rgba(16, 185, 129, 0.1);border: 2px solid rgba(16, 185, 129, 0.3);color: var(--success-color);}
.lock-icon.error {background: rgba(239, 68, 68, 0.1);border: 2px solid rgba(239, 68, 68, 0.3);color: var(--error-color);}
.auth-text {flex: 1;text-align: left;}
.auth-line-1 {font-size: 18px;font-weight: 600;margin-bottom: 4px;}
.auth-status.success .auth-line-1 {color: var(--success-color);}
.auth-status.error .auth-line-1 {color: var(--error-color);}
.auth-line-2 {font-size: 16px;color: var(--text-secondary);line-height: 1.4;}
@media (min-width: 768px) {.auth-status {padding: 24px;}.auth-status-content {gap: 20px;}.lock-icon {width: 56px;height: 56px;border-radius: 14px;}.auth-line-1 {font-size: 20px;}.auth-line-2 {font-size: 17px;}}
.result-info {background: rgba(16, 185, 129, 0.1);border: 2px solid var(--success-color);padding: 20px;border-radius: 16px;margin: 24px 0;color: var(--text-primary);}
.result-info.error {background: rgba(239, 68, 68, 0.1);border: 2px solid var(--error-color);}
@media (min-width: 768px) {.result-info {padding: 24px;border-radius: 20px;margin: 32px 0;}}
.result-info h4 {color: var(--success-color);margin-bottom: 16px;font-size: 20px;text-align: center;}
.result-info.error h4 {color: var(--error-color);}
@media (min-width: 768px) {.result-info h4 {font-size: 22px;margin-bottom: 20px;}}
.result-item {margin: 12px 0;font-size: 16px;line-height: 1.5;}
@media (min-width: 768px) {.result-item {margin: 14px 0;font-size: 17px;}}
.result-item strong {color: var(--text-primary);}

.status-badge {display: inline-block;padding: 6px 12px;border-radius: 20px;font-size: 14px;font-weight: 600;margin-left: 8px;}
@media (min-width: 768px) {.status-badge {padding: 8px 16px;font-size: 15px;}}
.status-approved {background-color: rgba(16, 185, 129, 0.2);color: var(--success-color);}
.status-pending {background-color: rgba(245, 158, 11, 0.2);color: var(--warning-color);}
.status-rejected {background-color: rgba(239, 68, 68, 0.2);color: var(--error-color);}
.status-issued {background-color: rgba(59, 130, 246, 0.2);color: var(--info-color);}
.required::after {content: " *";color: var(--error-color);}
.form-section {transition: all 0.3s ease;overflow: hidden;}
.form-section.hidden {opacity: 0;transform: translateY(-20px);pointer-events: none;height: 0;margin: 0;padding: 0;}
.new-request-btn {background: var(--gradient-primary);color: white;border: none;padding: 18px;text-align: center;font-size: 18px;font-weight: 600;border-radius: 14px;cursor: pointer;transition: all 0.2s ease;margin: 20px 0;text-decoration: none;display: inline-block;flex: 1;}
.new-request-btn:hover {transform: translateY(-2px);box-shadow: var(--shadow-hover);background: var(--gradient-hover);}
.back-btn {background: var(--info-color);color: white;border: none;padding: 18px;text-align: center;font-size: 18px;font-weight: 600;border-radius: 14px;cursor: pointer;transition: all 0.2s ease;margin: 20px 0;text-decoration: none;display: inline-block;flex: 1;}
.back-btn:hover {transform: translateY(-2px);box-shadow: var(--shadow-hover);background: #2563eb;}
.buttons-container {display: flex;gap: 16px;width: 100%;}
@media (max-width: 768px) {.buttons-container {flex-direction: column;}}
.error-notice {margin-top: 20px;padding: 12px;background: rgba(239, 68, 68, 0.1);border-radius: 8px;border-left: 4px solid var(--error-color);font-size: 14px;color: var(--text-primary);}
.error-notice a {color: var(--error-color);font-weight: 600;text-decoration: none;}
.error-notice a:hover {text-decoration: underline;}
@media (max-width: 360px) {.container {padding: 16px;}.form-card {padding: 20px;}.form-title {font-size: 22px;}input {padding: 14px;}.submit-btn-form {padding: 16px;font-size: 17px;}.auth-status-content {gap: 12px;}.lock-icon {width: 40px;height: 40px;}.auth-line-1 {font-size: 16px;}.auth-line-2 {font-size: 14px;}.new-request-btn, .back-btn {padding: 16px;font-size: 17px;}}
@media (max-height: 500px) and (orientation: landscape) {.container {padding: 16px;}.form-card {padding: 20px;}.form-group {margin-bottom: 16px;}.submit-btn-form {margin: 20px 0 10px;}}
@media (max-width: 768px){.video-wrapper{aspect-ratio:16/9;}.video-controls{bottom:8px;right:8px;gap:6px;}.fullscreen-btn{font-size:0.6rem;padding:4px;width:24px;height:24px;}.quality-btn{font-size:0.58rem;padding:4px;min-width:30px;height:24px;}.live-indicator{font-size:0.6rem;padding:5px 8px;height:24px;}.live-dot{width:5px;height:5px;}.request-btn{padding:10px 20px;font-size:14px;}.auth-container{margin:1rem auto;padding:0 15px;}.auth-card{padding:1.5rem;}}
@media (prefers-reduced-motion:reduce){.live-dot{animation:none;}}
.hidden{display:none!important;}

.access-info{margin:0 0 20px;padding:16px;border-radius:12px;background:rgba(16,185,129,.12);border:1px solid rgba(16,185,129,.3);line-height:1.6}
.camera-label{padding:10px 4px;font-size:18px;font-weight:700}
[data-theme="dark"]{
--bg-primary:#000000!important;
--bg-color:#000000!important;
--bg-card:#0a0a0a!important;
}

/* ===== Illustrated authorization landing page ===== */
body.auth-mode{
    background:#021b1d;
    color:#f7f5eb;
}

.auth-page{
    --auth-accent:#10b981;
    --auth-accent-dark:#059669;
    position:relative;
    isolation:isolate;
    min-height:100vh;
    min-height:100svh;
    width:100%;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:clamp(28px,5vh,58px) 20px 22px;
    color:#f7f5eb;
    background-color:#021b1d;
    background-image:
        linear-gradient(180deg,rgba(1,23,26,.12) 0%,rgba(1,23,26,.10) 48%,rgba(1,18,19,.28) 100%),
        url("/assets/snt-auth-mobile.webp");
    background-repeat:no-repeat;
    background-position:center bottom;
    background-size:cover;
}
.auth-page::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:
        radial-gradient(circle at 50% 16%,rgba(22,108,89,.12),transparent 34%),
        linear-gradient(180deg,rgba(0,14,16,.06) 0%,transparent 58%,rgba(0,0,0,.14) 100%);
}
.auth-page .header{display:none;}

.auth-brand{
    width:min(100%,760px);
    text-align:center;
    z-index:1;
    text-shadow:0 2px 16px rgba(0,0,0,.42);
}
.auth-brand-mark{
    display:flex;
    justify-content:center;
    height:48px;
    margin-bottom:8px;
    color:#4fd083;
    filter:drop-shadow(0 3px 10px rgba(0,0,0,.28));
}
.auth-brand-mark svg{width:58px;height:48px;display:block;}
.auth-brand-title{
    margin:0;
    font-size:clamp(2rem,5vw,4.1rem);
    line-height:1.04;
    letter-spacing:.01em;
    font-weight:750;
    color:#f5f2e8;
}
.auth-brand-subtitle{
    margin-top:12px;
    font-size:clamp(1rem,2vw,1.45rem);
    font-weight:400;
    color:rgba(235,241,236,.67);
}
.auth-brand-keywords{
    margin-top:18px;
    font-size:clamp(.76rem,1.3vw,1rem);
    font-weight:600;
    letter-spacing:.25em;
    color:rgba(38,184,132,.72);
    text-transform:uppercase;
}

.auth-page .auth-container{
    width:min(100%,680px);
    max-width:none;
    margin:clamp(30px,5vh,56px) auto 0;
    padding:0;
    z-index:1;
}
.auth-page .auth-card{
    position:relative;
    overflow:hidden;
    padding:clamp(28px,3.4vw,42px);
    border-radius:24px;
    background:linear-gradient(145deg,rgba(3,38,38,.82),rgba(2,30,32,.70));
    border:1px solid rgba(111,195,173,.34);
    box-shadow:0 24px 70px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.04);
    -webkit-backdrop-filter:blur(14px) saturate(110%);
    backdrop-filter:blur(14px) saturate(110%);
    color:#f7f5eb;
}
.auth-page .auth-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(255,255,255,.025),transparent 42%);
}
.auth-card-heading{
    position:relative;
    display:grid;
    grid-template-columns:64px 1fr;
    gap:20px;
    align-items:start;
    margin-bottom:30px;
}
.auth-lock{
    width:58px;
    height:58px;
    border-radius:18px;
    display:grid;
    place-items:center;
    color:#31d69b;
    background:rgba(0,132,91,.28);
    border:1px solid rgba(61,221,167,.12);
    box-shadow:inset 0 0 24px rgba(22,187,135,.09);
}
.auth-lock svg{width:30px;height:30px;}
.auth-page .auth-title{
    margin:2px 0 10px;
    text-align:left;
    font-size:clamp(1.55rem,3vw,2.25rem);
    line-height:1.1;
    font-weight:750;
    color:#f7f5eb;
}
.auth-page .auth-subtitle{
    margin:0;
    text-align:left;
    color:rgba(235,241,236,.74);
    font-size:clamp(.96rem,1.5vw,1.08rem);
    line-height:1.55;
}
.auth-page .form-group{margin:0 0 22px;}
.auth-page label{
    margin-bottom:10px;
    color:#f6f4eb;
    font-size:clamp(.98rem,1.4vw,1.08rem);
    font-weight:700;
}
.auth-phone-wrap{position:relative;}
.auth-phone-icon{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    width:25px;
    height:25px;
    color:#71b8ff;
    pointer-events:none;
    z-index:2;
}
.auth-page .phone-input{
    width:100%;
    height:62px;
    padding:0 18px 0 60px;
    border:1.5px solid rgba(143,177,197,.62);
    border-radius:13px;
    background:rgba(0,24,29,.46);
    color:#f8fafc;
    font-size:clamp(1rem,1.7vw,1.2rem);
    box-shadow:inset 0 1px 8px rgba(0,0,0,.14);
    transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.auth-page .phone-input::placeholder{color:rgba(216,226,229,.48);}
.auth-page .phone-input:focus{
    outline:none;
    border-color:rgba(69,203,162,.95);
    box-shadow:0 0 0 3px rgba(16,185,129,.13),inset 0 1px 8px rgba(0,0,0,.14);
    background:rgba(0,28,32,.62);
}
.auth-page .phone-input.error{border-color:#ef6d6d;background:rgba(74,18,23,.36);}
.auth-page .error-message{color:#ff8f8f;font-size:.9rem;margin-top:8px;}
.auth-page .submit-btn{
    width:100%;
    min-height:62px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    border:1px solid rgba(48,226,166,.38);
    border-radius:13px;
    background:linear-gradient(135deg,#0bab7c 0%,#069a70 100%);
    color:#fff;
    padding:14px 22px;
    font-size:clamp(1.05rem,1.8vw,1.25rem);
    font-weight:750;
    cursor:pointer;
    box-shadow:0 11px 28px rgba(0,118,83,.20),inset 0 1px 0 rgba(255,255,255,.10);
    transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
.auth-page .submit-btn svg{width:25px;height:25px;}
.auth-page .submit-btn:hover{transform:translateY(-1px);filter:brightness(1.08);box-shadow:0 14px 32px rgba(0,118,83,.28);}
.auth-page .submit-btn:active{transform:translateY(0);}
.auth-page .submit-btn:disabled{opacity:.54;cursor:not-allowed;transform:none;filter:none;}
.auth-page .access-denied{
    margin-top:18px;
    background:rgba(90,20,28,.62);
    border:1px solid rgba(248,113,113,.48);
    color:#ffe4e6;
    box-shadow:none;
}
.auth-page .access-denied-title{color:#fecaca;}
.auth-page .access-denied-line{color:#ffe4e6;}
.auth-page .footer{
    position:relative;
    z-index:1;
    margin-top:auto;
    padding:22px 0 0;
    color:rgba(235,241,236,.58);
    opacity:1;
    font-size:.86rem;
    letter-spacing:.02em;
    text-shadow:0 2px 8px rgba(0,0,0,.55);
}

/* ===== Request form page with shared night background ===== */



















@media (min-width:700px){
    
}

@media (min-width:1100px){
    
    
    
}

@media (min-width:700px){
    .auth-page{
        background-image:
            linear-gradient(180deg,rgba(1,23,26,.12) 0%,rgba(1,23,26,.08) 48%,rgba(1,18,19,.26) 100%),
            url("/assets/snt-auth-tablet.webp");
    }
    .auth-page .auth-container{width:min(82vw,690px);}
}

@media (min-width:1100px){
    .auth-page{
        padding-top:clamp(28px,4.5vh,54px);
        background-image:
            linear-gradient(180deg,rgba(0,19,22,.12) 0%,rgba(0,18,20,.10) 55%,rgba(0,0,0,.20) 100%),
            url("/assets/snt-auth-desktop.webp");
        background-position:center center;
    }
    .auth-brand-mark{height:40px;margin-bottom:4px;}
    .auth-brand-mark svg{width:50px;height:40px;}
    .auth-brand-title{font-size:clamp(2.4rem,3.3vw,3.7rem);}
    .auth-brand-subtitle{margin-top:8px;font-size:1.15rem;}
    .auth-brand-keywords{margin-top:12px;font-size:.82rem;}
    .auth-page .auth-container{margin-top:24px;width:min(44vw,620px);}
    .auth-page .auth-card{padding:30px 34px;border-radius:20px;background:linear-gradient(145deg,rgba(3,35,36,.80),rgba(2,29,31,.68));}
    .auth-card-heading{grid-template-columns:52px 1fr;gap:16px;margin-bottom:23px;}
    .auth-lock{width:48px;height:48px;border-radius:15px;}
    .auth-lock svg{width:25px;height:25px;}
    .auth-page .auth-title{font-size:1.72rem;margin-top:1px;}
    .auth-page .auth-subtitle{font-size:.96rem;line-height:1.45;}
    .auth-page .form-group{margin-bottom:17px;}
    .auth-page .phone-input{height:54px;font-size:1rem;}
    .auth-page .submit-btn{min-height:54px;font-size:1.05rem;}
    .auth-page .footer{padding-top:12px;font-size:.76rem;}
}

@media (max-width:699px){
    .auth-page{padding:34px 18px 18px;}
    .auth-brand-mark{height:42px;margin-bottom:5px;}
    .auth-brand-mark svg{width:52px;height:42px;}
    .auth-brand-title{font-size:clamp(2rem,8vw,2.8rem);}
    .auth-brand-subtitle{margin-top:8px;font-size:1rem;}
    .auth-brand-keywords{margin-top:14px;font-size:.72rem;letter-spacing:.18em;}
    .auth-page .auth-container{margin-top:28px;}
    .auth-page .auth-card{padding:24px 20px;border-radius:22px;}
    .auth-card-heading{grid-template-columns:50px 1fr;gap:14px;margin-bottom:24px;}
    .auth-lock{width:46px;height:46px;border-radius:14px;}
    .auth-lock svg{width:25px;height:25px;}
    .auth-page .auth-title{font-size:1.5rem;margin:0 0 8px;}
    .auth-page .auth-subtitle{font-size:.92rem;line-height:1.45;}
    .auth-page label{font-size:.98rem;}
    .auth-page .phone-input{height:58px;padding-left:55px;font-size:1.02rem;}
    .auth-phone-icon{left:16px;width:23px;height:23px;}
    .auth-page .submit-btn{min-height:58px;font-size:1.08rem;}
    .auth-page .footer{font-size:.78rem;padding-top:18px;}
}

@media (max-width:699px){
    /* Compact mobile layout: leaves the original COOPERATOR sign above the wicket visible */
    .auth-page{
        padding:18px 16px 12px;
        background-position:center bottom;
    }
    .auth-brand-mark{height:30px;margin-bottom:2px;}
    .auth-brand-mark svg{width:40px;height:30px;}
    .auth-brand-title{font-size:clamp(1.9rem,7.2vw,2.35rem);line-height:1;}
    .auth-brand-subtitle{margin-top:6px;font-size:.86rem;}
    .auth-brand-keywords{margin-top:8px;font-size:.60rem;letter-spacing:.14em;}
    .auth-page .auth-container{margin-top:15px;}
    .auth-page .auth-card{padding:17px 18px;border-radius:20px;}
    .auth-card-heading{grid-template-columns:42px 1fr;gap:12px;margin-bottom:15px;}
    .auth-lock{width:40px;height:40px;border-radius:12px;}
    .auth-lock svg{width:22px;height:22px;}
    .auth-page .auth-title{font-size:1.34rem;margin:0 0 5px;}
    .auth-page .auth-subtitle{font-size:.81rem;line-height:1.34;}
    .auth-page .form-group{margin-bottom:13px;}
    .auth-page label{margin-bottom:6px;font-size:.90rem;}
    .auth-page .phone-input{height:50px;padding-left:50px;font-size:.96rem;border-radius:12px;}
    .auth-phone-icon{left:15px;width:21px;height:21px;}
    .auth-page .submit-btn{min-height:50px;padding:10px 18px;font-size:1rem;border-radius:12px;}
    .auth-page .submit-btn svg{width:21px;height:21px;}
    .auth-page .footer{font-size:.72rem;padding-top:9px;}
}

@media (max-width:420px){
    .auth-page{padding-left:12px;padding-right:12px;}
    .auth-brand-title{font-size:1.9rem;}
    .auth-brand-subtitle{font-size:.80rem;}
    .auth-brand-keywords{font-size:.54rem;letter-spacing:.10em;}
    .auth-page .auth-card{padding:16px 15px;}
    .auth-card-heading{grid-template-columns:38px 1fr;gap:10px;}
    .auth-lock{width:37px;height:37px;}
    .auth-page .auth-title{font-size:1.24rem;}
    .auth-page .auth-subtitle{font-size:.76rem;}
}

@media (max-height:720px) and (min-width:700px){
    .auth-page{padding-top:20px;padding-bottom:12px;}
    .auth-brand-mark{display:none;}
    .auth-brand-subtitle,.auth-brand-keywords{display:none;}
    .auth-brand-title{font-size:2.2rem;}
    .auth-page .auth-container{margin-top:16px;}
    .auth-page .auth-card{padding:24px 28px;}
    .auth-page .footer{padding-top:8px;}
}

/* ===== FINAL responsive single-background fixes ===== */






/* one shared scene, device-specific crops */
body.auth-mode .auth-page{
    background-image:linear-gradient(180deg,rgba(1,23,26,.10),rgba(1,18,19,.24)),url("/assets/snt-auth-mobile.webp")!important;
}

@media (min-width:700px){
  body.auth-mode .auth-page{
    background-image:linear-gradient(180deg,rgba(1,23,26,.10),rgba(1,18,19,.24)),url("/assets/snt-auth-tablet.webp")!important;
  }
  
  
}

@media (min-width:1100px){
  body.auth-mode .auth-page{
    background-image:linear-gradient(180deg,rgba(0,19,22,.10),rgba(0,0,0,.18)),url("/assets/snt-auth-desktop.webp")!important;
  }
  
  
  
}

@media (max-width:699px){
  
  
}

/* ===== UNIFIED CAMERA PAGE — same visual language as auth/request ===== */
body.camera-mode{
    min-height:100vh;
    min-height:100svh;
    background:#021b1d;
    color:#f7f5eb;
}
body.camera-mode .cameras-page{
    position:relative;
    isolation:isolate;
    min-height:100vh;
    min-height:100svh;
    width:100%;
    overflow:hidden;
    padding:clamp(18px,3vh,34px) 14px 20px;
    color:#f7f5eb;
    background:transparent;
}
body.camera-mode .cameras-page::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-2;
    background-color:#021b1d;
    background-image:url("/assets/snt-auth-mobile.webp");
    background-repeat:no-repeat;
    background-position:center center;
    background-size:cover;
}
body.camera-mode .cameras-page::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:
      radial-gradient(circle at 50% 8%,rgba(15,71,84,.16),transparent 30%),
      linear-gradient(180deg,rgba(0,15,18,.26) 0%,rgba(0,12,15,.34) 55%,rgba(0,5,8,.52) 100%);
}

.camera-brand{
    width:min(100%,760px);
    margin:0 auto clamp(18px,2.8vh,30px);
    text-align:center;
    text-shadow:0 2px 16px rgba(0,0,0,.48);
}
.camera-brand .auth-brand-mark{
    height:34px;
    margin-bottom:4px;
}
.camera-brand .auth-brand-mark svg{width:44px;height:34px;}
.camera-brand .auth-brand-title{
    font-size:clamp(1.9rem,4vw,3rem);
}
.camera-brand .auth-brand-subtitle{
    margin-top:6px;
    font-size:clamp(.86rem,1.35vw,1.05rem);
}
.camera-brand .auth-brand-keywords{
    margin-top:9px;
    font-size:clamp(.58rem,.9vw,.76rem);
    letter-spacing:.20em;
}

body.camera-mode .main-container{
    width:min(100%,930px);
    max-width:none;
    margin:0 auto;
    padding:0;
}
body.camera-mode .video-container{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}
.camera-panel{
    overflow:hidden;
    border-radius:18px;
    background:linear-gradient(145deg,rgba(3,38,38,.84),rgba(2,29,31,.76));
    border:1px solid rgba(111,195,173,.30);
    box-shadow:0 18px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
    -webkit-backdrop-filter:blur(12px) saturate(108%);
    backdrop-filter:blur(12px) saturate(108%);
}
.camera-panel-head{
    min-height:48px;
    padding:10px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    color:#f7f5eb;
}
.camera-panel-title{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    font-size:clamp(.94rem,1.4vw,1.06rem);
    font-weight:750;
    line-height:1.2;
}
.camera-panel-title svg{width:20px;height:20px;flex:0 0 auto;opacity:.92;}
.camera-online-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(0,111,78,.48);
    border:1px solid rgba(52,211,153,.24);
    color:#65e7b1;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.03em;
    text-transform:uppercase;
}
.camera-online-badge::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:#34d399;
    box-shadow:0 0 10px rgba(52,211,153,.72);
}

.camera-online-badge.checking{
    background:rgba(100,116,139,.20);
    border-color:rgba(148,163,184,.18);
    color:#aebbc8;
}
.camera-online-badge.checking::before{
    background:#94a3b8;
    box-shadow:none;
}
.camera-online-badge.offline{
    background:rgba(127,29,29,.28);
    border-color:rgba(248,113,113,.20);
    color:#f59a9a;
}
.camera-online-badge.offline::before{
    background:#ef4444;
    box-shadow:0 0 9px rgba(239,68,68,.48);
}
body.camera-mode .video-wrapper{
    aspect-ratio:16/9;
    border-radius:0 0 16px 16px;
    overflow:hidden;
    background:#000;
}

/* Keep the complete native camera frame inside the 16:9 window. */
body.camera-mode .video-wrapper .video-js .vjs-tech{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    background:#000!important;
}

/* The same rule in native and fallback fullscreen modes. */
.video-wrapper.camera-fullscreen-fallback .video-js .vjs-tech,
.video-wrapper:fullscreen .video-js .vjs-tech,
.video-wrapper:-webkit-full-screen .video-js .vjs-tech{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    background:#000!important;
}
body.camera-mode .camera-label{display:none;}
body.camera-mode .video-controls{bottom:8px;right:8px;}
body.camera-mode .live-indicator{display:none!important;}
body.camera-mode .fullscreen-btn,
body.camera-mode .quality-btn{
    height:32px;
    border-radius:9px;
    background:rgba(3,20,24,.72);
    color:#f8fafc;
    border:1px solid rgba(255,255,255,.16);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
}
body.camera-mode .fullscreen-btn{width:32px;}
body.camera-mode .quality-btn{min-width:40px;padding:0 8px;}
body.camera-mode .quality-btn.active{
    background:linear-gradient(135deg,#10b981,#059669);
    color:#fff;
    border-color:rgba(52,211,153,.72);
}

body.camera-mode .services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin:14px 0;
}
body.camera-mode .service-card{
    min-height:72px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:12px 10px;
    border-radius:14px;
    background:linear-gradient(145deg,rgba(3,38,38,.82),rgba(2,29,31,.72));
    border:1px solid rgba(111,195,173,.28);
    box-shadow:0 12px 34px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.03);
    color:#f7f5eb;
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
}
body.camera-mode .service-title{
    margin:0;
    color:rgba(235,241,236,.68);
    font-size:.76rem;
}
body.camera-mode .service-value{
    color:#f7f5eb;
    font-size:.96rem;
    font-weight:750;
}
body.camera-mode .service-value .ok-dot{
    display:inline-block;
    width:8px;
    height:8px;
    margin-right:6px;
    vertical-align:1px;
    border-radius:50%;
    background:#34d399;
    box-shadow:0 0 9px rgba(52,211,153,.55);
}
body.camera-mode .request-btn-container{margin:12px 0 0;text-align:center;}
body.camera-mode .request-btn{
    width:min(100%,650px);
    min-height:54px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:13px 18px;
    border-radius:13px;
    border:1px solid rgba(48,226,166,.34);
    background:linear-gradient(135deg,#0bab7c 0%,#069a70 100%);
    color:#fff;
    font-size:clamp(.90rem,1.35vw,1rem);
    font-weight:750;
    text-decoration:none;
    box-shadow:0 11px 28px rgba(0,118,83,.20),inset 0 1px 0 rgba(255,255,255,.10);
}
body.camera-mode .request-btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.07);
    box-shadow:0 14px 32px rgba(0,118,83,.28);
}
body.camera-mode .cameras-page>.footer{
    margin:14px auto 0;
    padding:0;
    color:rgba(235,241,236,.60);
    opacity:1;
    font-size:.72rem;
    text-shadow:0 2px 8px rgba(0,0,0,.55);
}

@media (min-width:700px){
    body.camera-mode .cameras-page::before{background-image:url("/assets/snt-auth-tablet.webp");}
    body.camera-mode .video-container{gap:16px;}
}

@media (min-width:1100px){
    body.camera-mode .cameras-page{
        padding-top:clamp(18px,2.7vh,30px);
    }
    body.camera-mode .cameras-page::before{background-image:url("/assets/snt-auth-desktop.webp");}
    body.camera-mode .main-container{width:min(72vw,900px);}
    .camera-brand{margin-bottom:16px;}
    .camera-brand .auth-brand-mark{height:30px;margin-bottom:2px;}
    .camera-brand .auth-brand-mark svg{width:40px;height:30px;}
    .camera-brand .auth-brand-title{font-size:2.25rem;}
    .camera-brand .auth-brand-subtitle{font-size:.92rem;}
    .camera-brand .auth-brand-keywords{font-size:.66rem;margin-top:7px;}
    body.camera-mode .video-container{gap:12px;}
    .camera-panel{border-radius:16px;}
    .camera-panel-head{min-height:42px;padding:8px 11px;}
    body.camera-mode .video-wrapper{border-radius:0 0 14px 14px;}
}

@media (max-width:699px){
    body.camera-mode .cameras-page{padding:14px 10px 18px;overflow:visible;}
    body.camera-mode .cameras-page::before{
        background-position:center top;
        background-attachment:scroll;
    }
    .camera-brand{margin-bottom:13px;}
    .camera-brand .auth-brand-mark{height:29px;margin-bottom:2px;}
    .camera-brand .auth-brand-mark svg{width:38px;height:29px;}
    .camera-brand .auth-brand-title{font-size:1.66rem;line-height:1.05;}
    .camera-brand .auth-brand-subtitle{font-size:.76rem;margin-top:4px;}
    .camera-brand .auth-brand-keywords{font-size:.50rem;margin-top:6px;letter-spacing:.13em;}
    body.camera-mode .video-container{gap:10px;}
    .camera-panel{border-radius:15px;}
    .camera-panel-head{min-height:42px;padding:8px 9px;}
    .camera-panel-title{font-size:.86rem;gap:6px;}
    .camera-panel-title svg{width:18px;height:18px;}
    .camera-online-badge{padding:5px 8px;font-size:.62rem;}
    body.camera-mode .request-btn-container{margin-top:9px;}
    body.camera-mode .request-btn{min-height:52px;padding:11px 12px;font-size:.78rem;border-radius:12px;}
    body.camera-mode .cameras-page>.footer{margin-top:11px;font-size:.66rem;}
}

/* Desktop decorative captions from the approved camera mockup */
.camera-desktop-caption{display:none;}
@media (min-width:1200px){
    body.auth-mode .camera-desktop-caption,
body.camera-mode .camera-desktop-caption{
        display:block;
        position:fixed;
        z-index:0;
        bottom:clamp(60px,8vh,105px);
        pointer-events:none;
        color:rgba(235,241,236,.72);
        text-shadow:0 2px 12px rgba(0,0,0,.72);
    }
    body.auth-mode .camera-desktop-caption-left,
body.camera-mode .camera-desktop-caption-left{
        left:clamp(28px,4vw,86px);
        width:clamp(170px,15vw,250px);
        font-family:"Segoe Script","Brush Script MT","Comic Sans MS",cursive;
        font-size:clamp(1.08rem,1.35vw,1.55rem);
        line-height:1.45;
        font-style:italic;
        transform:rotate(-4deg);
        color:rgba(237,239,231,.72);
    }
    body.auth-mode .camera-desktop-caption-left .caption-leaf,
body.camera-mode .camera-desktop-caption-left .caption-leaf{
        display:block;
        margin-top:8px;
        color:#34d399;
        font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
        font-size:1.2rem;
        font-style:normal;
        transform:rotate(4deg);
    }
    body.auth-mode .camera-desktop-caption-right,
body.camera-mode .camera-desktop-caption-right{
        right:clamp(30px,4.3vw,92px);
        width:clamp(145px,12vw,205px);
        text-align:right;
        font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
        font-size:clamp(.68rem,.78vw,.90rem);
        line-height:1.75;
        font-weight:650;
        letter-spacing:.34em;
        text-transform:uppercase;
        color:rgba(227,238,236,.70);
    }
}

/* ===== MOBILE AUTH BACKGROUND COMPOSITION =====
   Keep the original uploaded image. Show the full vertical composition:
   sky/moon above the form and the road in front of the gates below it. */
@media (max-width:699px){
  body.auth-mode .auth-page{
    /* Shift slightly to the right so the moon and the full COOPERATOR sign stay visible. */
    background-position:65% bottom!important;
    background-size:auto 100%!important;
    background-repeat:no-repeat!important;
  }
}

/* ===== MOBILE AUTH VIEWPORT FIX: no vertical scroll on Android ===== */
@media (max-width:699px){
  html, body.auth-mode{
    height:100%;
    min-height:0;
  }
  body.auth-mode{
    overflow:hidden;
  }
  body.auth-mode .auth-page{
    /* --app-height is set from window.innerHeight for Android browser chrome. */
    height:var(--app-height, 100dvh);
    min-height:var(--app-height, 100dvh);
    max-height:var(--app-height, 100dvh);
    overflow:hidden;
    padding-top:max(10px, env(safe-area-inset-top));
    padding-bottom:max(8px, env(safe-area-inset-bottom));
  }
  body.auth-mode .auth-brand-mark{height:26px;margin-bottom:1px;}
  body.auth-mode .auth-brand-mark svg{width:36px;height:26px;}
  body.auth-mode .auth-brand-title{font-size:clamp(1.72rem,7vw,2.05rem);line-height:1;}
  body.auth-mode .auth-brand-subtitle{margin-top:3px;font-size:.73rem;line-height:1.12;}
  body.auth-mode .auth-brand-keywords{margin-top:3px;font-size:.47rem;letter-spacing:.09em;line-height:1.1;}
  body.auth-mode .auth-container{margin-top:14px;}
  body.auth-mode .auth-card{padding:11px 14px;border-radius:18px;}
  body.auth-mode .auth-card-heading{grid-template-columns:36px 1fr;gap:9px;margin-bottom:7px;}
  body.auth-mode .auth-lock{width:34px;height:34px;border-radius:10px;}
  body.auth-mode .auth-lock svg{width:19px;height:19px;}
  body.auth-mode .auth-title{font-size:1.14rem;margin:0 0 2px;line-height:1.03;}
  body.auth-mode .auth-subtitle{font-size:.69rem;line-height:1.2;}
  body.auth-mode .form-group{margin-bottom:7px;}
  body.auth-mode label{margin-bottom:4px;font-size:.81rem;line-height:1.1;}
  body.auth-mode .phone-input{height:44px;padding-left:45px;font-size:.91rem;border-radius:11px;}
  body.auth-mode .auth-phone-icon{left:13px;width:19px;height:19px;}
  body.auth-mode .submit-btn{min-height:44px;padding:8px 15px;font-size:.93rem;border-radius:11px;}
  body.auth-mode .submit-btn svg{width:19px;height:19px;}
  body.auth-mode .footer{padding-top:1px;font-size:.64rem;line-height:1;}
}

/* Very short Android viewports: preserve the form without scrolling. */
@media (max-width:699px) and (max-height:650px){
  body.auth-mode .auth-brand-mark{display:none;}
  body.auth-mode .auth-brand-keywords{display:none;}
  body.auth-mode .auth-brand-title{font-size:1.62rem;}
  body.auth-mode .auth-brand-subtitle{font-size:.70rem;margin-top:3px;}
  body.auth-mode .auth-container{margin-top:10px;}
  body.auth-mode .auth-card{padding:9px 12px;}
  body.auth-mode .auth-card-heading{margin-bottom:6px;}
  body.auth-mode .phone-input{height:40px;}
  body.auth-mode .submit-btn{min-height:40px;}
  body.auth-mode .footer{padding-top:1px;}
  body.auth-mode .auth-page{
    background-position:65% bottom!important;
    background-size:auto 100%!important;
  }
}

/* ===== MOBILE AUTH — VARIANT 2 COMPOSITION =====
   The uploaded background file is NOT modified.
   The main layer keeps the gate/sign/road; a soft top layer reuses the same file
   to bring the moon and clouds above the login card. */
@media (max-width:699px){
  body.auth-mode .auth-page{
    background-position:65% bottom!important;
    background-size:auto 100%!important;
    background-repeat:no-repeat!important;
  }

  body.auth-mode .auth-page::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:0;
    height:43%;
    z-index:0;
    pointer-events:none;
    background-image:url("/assets/snt-auth-mobile.webp");
    background-repeat:no-repeat;
    /* Separate top crop of the SAME photo: moon sits above/right of the form. */
    background-size:auto calc(var(--auth-stable-height, 100svh) * 1.18);
    background-position:68% calc(var(--auth-stable-height, 100svh) * -0.14);
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 72%,rgba(0,0,0,.72) 84%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0%,#000 72%,rgba(0,0,0,.72) 84%,transparent 100%);
  }

  body.auth-mode .auth-brand,
  body.auth-mode .auth-container,
  body.auth-mode .footer{
    position:relative;
    z-index:2;
  }

  /* A little more air between the slogan block and the card, as in variant 2. */
  body.auth-mode .auth-container{margin-top:20px;}
  body.auth-mode .auth-card{padding:10px 14px 11px;}
  body.auth-mode .auth-card-heading{margin-bottom:7px;}
  body.auth-mode .form-group{margin-bottom:7px;}
}

@media (max-width:699px) and (max-height:650px){
  body.auth-mode .auth-container{margin-top:12px;}
  body.auth-mode .auth-page::before{
    height:40%;
    background-size:auto calc(var(--auth-stable-height, 100svh) * 1.20);
    background-position:69% calc(var(--auth-stable-height, 100svh) * -0.16);
  }
}

/* ===== PRIMARY NAVIGATION: cameras / automobile / map / logout ===== */
.site-nav{
    width:min(94vw,900px);
    margin:10px auto 14px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    padding:7px;
    border:1px solid rgba(105,209,173,.25);
    border-radius:18px;
    background:linear-gradient(145deg,rgba(3,38,38,.86),rgba(2,30,32,.76));
    box-shadow:0 14px 36px rgba(0,0,0,.22);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    position:relative;
    z-index:20;
}
.site-nav-item{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:8px 10px;
    border-radius:12px;
    border:1px solid transparent;
    color:rgba(240,247,244,.92);
    text-decoration:none;
    font-size:.86rem;
    font-weight:700;
    transition:.18s ease;
}
.site-nav-item svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex:0 0 auto;
}
.site-nav-item:hover{background:rgba(10,78,72,.48);border-color:rgba(89,211,169,.16);}
.site-nav-item.active{
    color:#fff;
    background:linear-gradient(135deg,rgba(5,174,124,.98),rgba(7,131,100,.96));
    border-color:rgba(115,240,196,.28);
    box-shadow:0 6px 18px rgba(5,174,124,.22);
}
.site-nav-item.logout{border-left:1px solid rgba(215,231,226,.12);}
.site-nav-logout-form{margin:0;padding:0;min-width:0;}
.site-nav-logout-form .site-nav-item{width:100%;height:100%;font:inherit;background:transparent;cursor:pointer;}
.request-brand{margin:0 auto;flex:0 0 auto;}



/* ===== INTEGRATED MAP PAGE ===== */
body.map-mode{
    min-height:100vh;
    min-height:100svh;
    background:#021b1d;
    color:#f7f5eb;
}
.integrated-map-page{
    position:relative;
    isolation:isolate;
    min-height:100vh;
    min-height:100svh;
    width:100%;
    overflow:hidden;
    padding:14px 12px 18px;
    color:#f7f5eb;
}
.integrated-map-page::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-2;
    background-color:#021b1d;
    background-image:url("/assets/snt-auth-mobile.webp");
    background-position:center center;
    background-repeat:no-repeat;
    background-size:cover;
}
.integrated-map-page::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(0,18,20,.12),rgba(0,10,12,.22) 58%,rgba(0,0,0,.30));
}
.map-brand{margin:0 auto;}
.map-main{width:min(96vw,1180px);margin:0 auto;position:relative;z-index:4;}
.map-card{
    overflow:hidden;
    border-radius:20px;
    border:1px solid rgba(105,209,173,.28);
    background:rgba(3,34,35,.88);
    box-shadow:0 20px 60px rgba(0,0,0,.30);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
}
.map-toolbar{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    min-height:52px;
    border-bottom:1px solid rgba(105,209,173,.16);
    background:rgba(4,30,31,.95);
}
.map-search-tool{
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:0 13px;
    border:1px solid rgba(133,204,184,.28);
    border-radius:11px;
    background:#0a3134;
    color:#dff7ed;
    font-weight:800;
    cursor:pointer;
}
.map-search-icon{font-size:18px;line-height:1;}
.map-toolbar-spacer{flex:1;}
.map-tabs{display:flex;gap:5px;}
.map-tab{
    height:38px;
    padding:0 13px;
    border:1px solid rgba(133,204,184,.28);
    border-radius:11px;
    background:#0a3134;
    color:#dff7ed;
    font-weight:800;
    cursor:pointer;
}
.map-tab.active{
    background:#10ae7d;
    border-color:#30d6a0;
    color:#fff;
    box-shadow:0 4px 14px rgba(16,174,125,.22);
}
.map-tab-short{display:none;}
.map-stage{
    position:relative;
    overflow:hidden;
    width:100%;
    height:min(68vh,780px);
    min-height:520px;
    background:#fff;
    touch-action:none;
    user-select:none;
}
.map-content{
    position:absolute;
    left:0;
    top:0;
    transform-origin:0 0;
    will-change:transform;
    width:2048px;
    height:1467px;
}
.map-content img{
    display:block;
    position:absolute;
    inset:0;
    width:2048px;
    height:1467px;
    pointer-events:none;
    -webkit-user-drag:none;
    object-fit:fill;
}
.plot-svg{
    position:absolute;
    inset:0;
    width:2048px;
    height:1467px;
    overflow:visible;
}
.plot-area{
    fill:rgba(0,0,0,.001);
    stroke:transparent;
    stroke-width:3;
    vector-effect:non-scaling-stroke;
    pointer-events:all;
    cursor:pointer;
    transition:fill .15s ease,stroke .15s ease,filter .15s ease;
}
@media(hover:hover){
    .plot-area:hover{
        fill:rgba(0,230,160,.12);
        stroke:rgba(0,214,150,.78);
        stroke-width:3.2;
        filter:drop-shadow(0 0 4px rgba(0,214,150,.45));
    }
}

.plot-svg .plot-area.active{
    fill:rgba(0,230,160,.34)!important;
    stroke:#00f0a8!important;
    stroke-width:6!important;
    filter:drop-shadow(0 0 9px rgba(0,240,168,.98))!important;
}
.plot-area.pulse{animation:mapPulsePlot .85s ease 2;}
@keyframes mapPulsePlot{
    50%{
        fill:rgba(0,230,160,.42);
        stroke:#e5fff7;
        stroke-width:7.5;
        filter:drop-shadow(0 0 10px rgba(0,230,160,1));
    }
}
.map-zoom{
    position:absolute!important;
    left:10px!important;
    top:12px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:7px!important;
    z-index:90!important;
    transform:none!important;
    pointer-events:auto!important;
    touch-action:none!important;
    visibility:visible!important;
}
.map-zoom button{
    display:block!important;
    width:42px!important;
    height:42px!important;
    margin:0!important;
    border:1px solid rgba(0,0,0,.15);
    border-radius:11px;
    background:rgba(6,42,43,.96);
    color:#fff;
    font-size:22px;
    box-shadow:0 4px 15px rgba(0,0,0,.22);
    cursor:pointer;
}
.map-search-modal{
    position:fixed;
    inset:0;
    z-index:1000;
    display:none;
    align-items:flex-start;
    justify-content:center;
    padding:max(76px,12vh) 14px 20px;
    background:rgba(0,8,10,.64);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
}
.map-search-modal.open{display:flex;}
.map-search-panel{
    width:min(520px,100%);
    border:1px solid rgba(102,219,178,.32);
    border-radius:20px;
    background:#06282b;
    box-shadow:0 24px 80px rgba(0,0,0,.48);
    padding:14px;
}
.map-search-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.map-search-title{font-size:1.06rem;font-weight:800;}
.map-modal-close{width:36px;height:36px;border:0;border-radius:10px;background:#0b3538;color:#cce4de;font-size:23px;cursor:pointer;}
.map-search-row{display:grid;grid-template-columns:1fr 46px;gap:8px;}
.map-search-row input{
    height:48px;
    border-radius:13px;
    border:1px solid rgba(133,204,184,.34);
    background:#031e21;
    color:#fff;
    padding:0 14px;
    font-size:16px;
    outline:none;
}
.map-search-row input:focus{border-color:#2bc58f;box-shadow:0 0 0 3px rgba(43,197,143,.12);}
.map-search-go{height:48px;border:0;border-radius:13px;background:#10ae7d;color:#fff;font-size:21px;font-weight:900;cursor:pointer;}
.map-search-error{display:none;margin-top:9px;color:#ffb0b0;font-size:.82rem;}
.map-search-error.show{display:block;}
.results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px;max-height:260px;overflow:auto;}
.result-btn{height:38px;border:1px solid rgba(116,207,178,.22);border-radius:10px;background:#0a3437;color:#e7f6f1;font-weight:750;cursor:pointer;}
.result-btn:hover{border-color:#24c38e;background:#0c4341;}
.search-empty{grid-column:1/-1;color:#92aaa5;padding:8px 2px;font-size:.82rem;}
.map-footer{text-align:center;margin-top:9px;font-size:.68rem;color:rgba(235,241,236,.62);}

@media(min-width:700px){
    .integrated-map-page::before{background-image:url("/assets/snt-auth-tablet.webp");}
}
@media(min-width:1100px){
    .integrated-map-page::before{background-image:url("/assets/snt-auth-desktop.webp");}
}
@media(max-width:699px){
    .site-nav{
        width:calc(100% - 16px);
        margin:6px auto 8px;
        padding:5px;
        gap:5px;
        border-radius:14px;
    }
    .site-nav-item{
        min-height:42px;
        padding:5px;
        border-radius:10px;
    }
    .site-nav-item svg{width:21px;height:21px;}
    .site-nav-label{display:none;}

    
    
    
    
    

    .integrated-map-page{
        padding:7px 0 0;
        overflow:visible;
    }
    .map-brand .auth-brand-subtitle,
    .map-brand .auth-brand-keywords{display:none;}
    .map-brand .auth-brand-mark{height:22px;margin-bottom:0;}
    .map-brand .auth-brand-mark svg{width:30px;height:22px;}
    .map-brand .auth-brand-title{font-size:1.38rem;line-height:1;}
    body.map-mode .site-nav{margin-top:5px;margin-bottom:6px;}
    .map-main{width:100%;}
    .map-card{border-radius:0;border-left:0;border-right:0;}
    .map-toolbar{padding:5px 7px;min-height:44px;}
    .map-search-tool{
        width:40px;
        min-width:40px;
        height:36px;
        padding:0;
        border-radius:10px;
    }
    .map-search-label{display:none;}
    .map-tabs{gap:4px;}
    .map-tab{
        height:36px;
        padding:0 8px;
        font-size:.68rem;
        white-space:nowrap;
    }
    .map-tab-long{display:inline;}
    .map-tab-short{display:none;}
    .map-stage{
        height:calc(100dvh - 128px);
        min-height:460px;
    }
.map-zoom{
        left:8px!important;
        top:10px!important;
        gap:6px!important;
    }
    .map-zoom button{
        width:38px!important;
        height:38px!important;
        font-size:20px!important;
    }
    .results{grid-template-columns:repeat(3,minmax(0,1fr));max-height:44vh;}
    .camera-desktop-caption{display:none!important;}
}

/* ===== REQUEST PAGE COMPACT MOBILE LAYOUT ===== */










@media(max-width:699px){
    

    
    
    
    

    
    
    

    
    

    
    
    
    

    

    

    
    
    
    
    

    

    /* Fits common 360x740 / 390x844 phones without requiring page scrolling
       in the normal no-error form state. */
    @media(max-height:760px){
        
        
        
        
        
        
        
    }
}

/* ===== REQUEST PAGE SPACING / TYPOGRAPHY REFINEMENT v5 ===== */





@media(max-width:699px){
    
    
    
    
    
    
    
    
    

    
    
    

    @media(max-height:760px){
        
        
        
        
        
        
        
        
        
    }
}

/* ===== REQUEST PAGE READABILITY / TOUCH SPACING v6 ===== */

/* Desktop / tablet */










/* Mobile */
@media(max-width:699px){
    
    
    
    
    
    
    
    
    

    /* On short phones remain compact, but keep touch targets and text legible. */
    @media(max-height:760px){
        
        
        
        
        
        
        
    }
}

/* ===== MOBILE UNIFIED PANEL WIDTH / SPACING v7 ===== */
@media(max-width:699px){
    :root{
        --snt-mobile-panel-width: calc(100% - 12px);
        --snt-mobile-panel-radius: 14px;
        --snt-mobile-panel-gap: 7px;
    }

    /* Navigation: same width as functional panels, tighter outer/inner margins */
    .site-nav{
        width:var(--snt-mobile-panel-width)!important;
        max-width:500px!important;
        margin:5px auto var(--snt-mobile-panel-gap)!important;
        padding:3px!important;
        gap:3px!important;
        border-radius:var(--snt-mobile-panel-radius)!important;
    }
    .site-nav-item{
        min-height:36px!important;
        padding:3px!important;
        border-radius:10px!important;
    }
    .site-nav-item svg{
        width:18px!important;
        height:18px!important;
    }

    /* Automobile page: nav, input card and result card have exactly the same width */
    
    
    
    
    

    /* Map: the map/card itself becomes a glass panel matching the nav,
       with a small margin around it instead of touching screen edges. */
    body.map-mode .site-nav{
        width:var(--snt-mobile-panel-width)!important;
        max-width:none!important;
        margin:4px auto var(--snt-mobile-panel-gap)!important;
    }
    .map-main{
        width:100%!important;
        max-width:none!important;
        padding:0!important;
    }
    .map-card{
        width:var(--snt-mobile-panel-width)!important;
        max-width:none!important;
        margin:0 auto!important;
        border-radius:var(--snt-mobile-panel-radius)!important;
        border:1px solid rgba(105,209,173,.25)!important;
        overflow:hidden!important;
        background:linear-gradient(145deg,rgba(3,38,38,.88),rgba(2,30,32,.80))!important;
        box-shadow:0 14px 36px rgba(0,0,0,.22)!important;
        -webkit-backdrop-filter:blur(12px)!important;
        backdrop-filter:blur(12px)!important;
    }
    .map-toolbar{
        min-height:40px!important;
        padding:4px 5px!important;
        gap:4px!important;
        border-bottom:1px solid rgba(105,209,173,.16)!important;
        background:transparent!important;
    }
    .map-search-tool{
        height:34px!important;
        min-width:36px!important;
        width:36px!important;
        padding:0!important;
        border-radius:9px!important;
    }
    .map-tabs{
        gap:3px!important;
    }
    .map-tab{
        height:34px!important;
        padding:0 7px!important;
        font-size:.66rem!important;
        border-radius:9px!important;
    }

    /* More actual map area on small screens */
    .map-stage{
        height:calc(100dvh - 118px)!important;
        min-height:470px!important;
    }

    /* Search popup follows the same visual language and side margins */
    .map-search-modal{
        padding-left:6px!important;
        padding-right:6px!important;
    }
    .map-search-panel{
        width:var(--snt-mobile-panel-width)!important;
        max-width:500px!important;
        border-radius:var(--snt-mobile-panel-radius)!important;
        padding:11px!important;
        background:linear-gradient(145deg,rgba(3,38,38,.97),rgba(2,30,32,.95))!important;
        border:1px solid rgba(105,209,173,.28)!important;
    }
}

/* Slightly more breathing room on medium / tablet screens while keeping alignment */
@media(min-width:700px) and (max-width:1099px){
    
    body.map-mode .site-nav,
    .map-main{
        width:min(94vw,980px)!important;
    }
}

/* ===== RESPONSIVE REFINEMENT v8 ===== */

/* ---------- MOBILE: shared widths for camera page ---------- */
@media(max-width:699px){
    /* Camera navigation and all camera/content cards use the same adaptive width. */
    body.camera-mode .cameras-page{
        padding-left:0!important;
        padding-right:0!important;
    }
    body.camera-mode .site-nav,
    body.camera-mode .main-container{
        width:var(--snt-mobile-panel-width)!important;
        max-width:500px!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    body.camera-mode .site-nav{
        margin-top:5px!important;
        margin-bottom:7px!important;
    }
    body.camera-mode .main-container{
        padding:0!important;
    }
    body.camera-mode .video-container,
    body.camera-mode .camera-panel{
        width:100%!important;
    }

    /* Automobile page: show subtitle/keywords on ordinary phones. */
    
    

    /* Small/short screens: hide the two descriptive lines to preserve space. */
    @media(max-height:700px), (max-width:350px){
        
    }
}

/* ---------- DESKTOP CAMERAS ---------- */
@media(min-width:1100px){
    /*
       Responsive width follows the browser width, but is also capped by viewport
       height so at least one complete 16:9 camera card can fit on screen.
       122vh is the height-based cap; 1280px prevents over-expansion on large monitors.
    */
    body.camera-mode{
        --camera-desktop-width:min(calc(100vw - 40px), 1280px, 122vh);
    }
    body.camera-mode .site-nav,
    body.camera-mode .main-container{
        width:var(--camera-desktop-width)!important;
        max-width:none!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    body.camera-mode .site-nav{
        margin-top:8px!important;
        margin-bottom:12px!important;
    }
    body.camera-mode .video-container{
        width:100%!important;
    }
    body.camera-mode .camera-panel{
        width:100%!important;
    }
}

/* ---------- DESKTOP MAP: use almost the full browser width ---------- */
@media(min-width:1100px){
    body.map-mode .map-main{
        width:calc(100vw - 24px)!important;
        max-width:none!important;
        margin-left:auto!important;
        margin-right:auto!important;
        padding:0!important;
    }
    body.map-mode .map-card{
        width:100%!important;
        max-width:none!important;
    }
    body.map-mode .map-stage{
        height:min(72vh,820px)!important;
    }
}

/* ===== DESKTOP VIEWPORT-FILLING MEDIA v10 ===== */
@media(min-width:1100px){
    /*
      JS sets these from the real browser viewport.
      Fallbacks keep the page sensible before JS runs.
    */
    body.camera-mode{
        --camera-live-width:clamp(930px, calc(100vw - 170px), 1500px);
    }
    body.camera-mode .site-nav,
    body.camera-mode .main-container{
        width:var(--camera-live-width)!important;
        max-width:none!important;
    }

    body.map-mode .map-main{
        width:calc(100vw - 20px)!important;
        max-width:none!important;
    }
    body.map-mode .map-card{
        width:100%!important;
        max-width:none!important;
    }
    body.map-mode .map-stage{
        height:calc(100vh - 210px)!important;
        min-height:520px!important;
        max-height:none!important;
    }
}

/* ===== CAMERA FULLSCREEN v12 ===== */
@media(max-width:899px){
    body.camera-fullscreen-open .camera-desktop-caption{
        display:none!important;
    }

    .video-wrapper.camera-fullscreen-fallback{
        width:100vw!important;
        height:100dvh!important;
    }

    /* When the browser successfully rotates to landscape, use every pixel. */
    @media(orientation:landscape){
        .video-wrapper.camera-fullscreen-fallback,
        .video-wrapper:fullscreen,
        .video-wrapper:-webkit-full-screen{
            width:100vw!important;
            height:100dvh!important;
        }
    }
}

/* ===== CAMERA DESKTOP CAPTIONS: NEVER OVERLAP CAMERA PANELS v13 ===== */
@media(min-width:1100px){
    body.camera-mode .camera-desktop-caption{
        z-index:3!important;
        box-sizing:border-box!important;
    }
    body.camera-mode .camera-desktop-caption-left,
    body.camera-mode .camera-desktop-caption-right{
        transition:opacity .16s ease!important;
    }
}

/* Невидимые зоны-пасхалки на мультяшной карте. */
.secret-camera-hotspot{
    fill:rgba(0,0,0,0.001);
    stroke:none;
    pointer-events:all;
    cursor:default;
}

/* ===== EASTER-EGG CAMERA PREVIEW ===== */
.camera-preview-popover{
    position:fixed;
    z-index:200500;
    width:280px;
    max-width:calc(100vw - 24px);
    overflow:hidden;
    border-radius:15px;
    border:1px solid rgba(115,240,196,.24);
    background:linear-gradient(145deg,rgba(3,38,38,.97),rgba(2,28,30,.97));
    box-shadow:0 18px 46px rgba(0,0,0,.42);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    opacity:0;
    visibility:hidden;
    transform:translateY(6px) scale(.985);
    transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
    pointer-events:none;
}
.camera-preview-popover.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
}
.camera-preview-media{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#071313;
}
.camera-preview-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    background:#071313;
}
.camera-preview-loading{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px;
    text-align:center;
    color:rgba(226,241,236,.72);
    font-size:12px;
    background:linear-gradient(135deg,rgba(3,38,38,.74),rgba(2,28,30,.68));
    pointer-events:none;
}
.camera-preview-loading.ready{
    opacity:0;
}
.camera-preview-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 11px 10px;
}
.camera-preview-title{
    color:#f5fbf8;
    font-size:13px;
    font-weight:750;
}
.camera-preview-state{
    color:rgba(196,221,213,.68);
    font-size:10px;
    white-space:nowrap;
}

.camera-preview-mobile{
    position:fixed;
    z-index:200600;
    left:50%;
    bottom:max(12px,env(safe-area-inset-bottom));
    width:min(420px,calc(100vw - 20px));
    overflow:hidden;
    border-radius:18px;
    border:1px solid rgba(115,240,196,.25);
    background:linear-gradient(145deg,rgba(3,38,38,.985),rgba(2,28,30,.985));
    box-shadow:0 20px 54px rgba(0,0,0,.48);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    opacity:0;
    visibility:hidden;
    transform:translate(-50%,calc(100% + 28px));
    transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
    pointer-events:none;
}
.camera-preview-mobile.show{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
    pointer-events:auto;
}
.camera-preview-mobile-head{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 10px 7px 13px;
}
.camera-preview-mobile-title{
    color:#f5fbf8;
    font-size:14px;
    font-weight:800;
}
.camera-preview-mobile-close{
    width:30px;
    height:30px;
    border:0;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.06);
    color:rgba(239,248,245,.82);
    font-size:20px;
    line-height:1;
    cursor:pointer;
}
.camera-preview-mobile .camera-preview-media{
    aspect-ratio:16/9;
    border-top:1px solid rgba(255,255,255,.055);
    border-bottom:1px solid rgba(255,255,255,.055);
}
.camera-preview-mobile-foot{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
}
.camera-preview-mobile-hint{
    flex:1 1 auto;
    min-width:0;
    color:rgba(196,221,213,.66);
    font-size:10px;
    line-height:1.25;
}
.camera-preview-open{
    flex:0 0 auto;
    min-height:38px;
    padding:0 15px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:11px;
    background:linear-gradient(135deg,#10b981,#059669);
    color:#fff;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 7px 18px rgba(5,174,124,.18);
}

/*
 * Тип указателя определяем по реальному PointerEvent:
 * mouse -> desktop preview
 * touch/pen -> mobile long-press preview
 */

.stream-session-expired{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;text-align:center;background:rgba(0,0,0,.86);color:#fff;padding:24px;font-size:16px;line-height:1.45}.stream-session-expired strong{font-size:20px}.stream-session-expired span{opacity:.82}.video-wrapper{position:relative}



/* SNT54_MOBILE_NAV_GLASS_V5_BEGIN */

@media(max-width:699px){

    /*
     * Место внизу страницы, чтобы последний контент
     * можно было полностью прокрутить выше панели.
     */
    body.camera-mode .cameras-page,
body.map-mode .integrated-map-page{
        padding-bottom:
            calc(96px + env(safe-area-inset-bottom,0px))
            !important;
    }

    /*
     * Плавающая стеклянная нижняя панель.
     */
    .site-nav{
        position:fixed!important;

        left:50%!important;
        right:auto!important;
        top:auto!important;

        bottom:
            calc(7px + env(safe-area-inset-bottom,0px))
            !important;

        transform:translateX(-50%)!important;

        width:calc(100% - 16px)!important;
        max-width:500px!important;

        height:82px!important;
        min-height:82px!important;

        margin:0!important;
        padding:13px 6px 5px!important;

        display:grid!important;
        grid-template-columns:
            repeat(4,minmax(0,1fr))
            !important;

        gap:2px!important;

        border-radius:23px!important;

        overflow:hidden!important;

        z-index:10050!important;

        background:
            linear-gradient(
                180deg,
                rgba(7,52,50,.94) 0%,
                rgba(4,32,34,.97) 100%
            )
            !important;

        border:
            1px solid rgba(79,218,176,.23)
            !important;

        box-shadow:
            0 14px 38px rgba(0,0,0,.40),
            0 0 22px rgba(20,180,135,.07),
            inset 0 1px 0 rgba(255,255,255,.055)
            !important;

        -webkit-backdrop-filter:
            blur(22px) saturate(140%)
            !important;

        backdrop-filter:
            blur(22px) saturate(140%)
            !important;
    }

    /*
     * Маленькая ручка сверху.
     */
    .site-nav::before{
        content:""!important;

        position:absolute!important;

        top:5px!important;
        left:50%!important;

        transform:translateX(-50%)!important;

        width:29px!important;
        height:3px!important;

        border-radius:999px!important;

        background:
            rgba(190,220,214,.24)
            !important;

        pointer-events:none!important;
    }

    /*
     * Пункт меню.
     */
    .site-nav-item{
        position:relative!important;

        width:100%!important;
        height:62px!important;
        min-height:62px!important;

        padding:8px 2px 3px!important;

        display:flex!important;
        flex-direction:column!important;
        align-items:center!important;
        justify-content:center!important;

        gap:4px!important;

        border:0!important;
        border-radius:15px!important;

        background:transparent!important;

        color:
            rgba(225,237,234,.73)
            !important;

        box-shadow:none!important;

        text-decoration:none!important;

        -webkit-tap-highlight-color:
            transparent!important;

        transition:
            transform .12s ease,
            color .18s ease
            !important;
    }

    .site-nav-item:hover{
        background:transparent!important;
        border-color:transparent!important;
    }

    .site-nav-item:active{
        transform:scale(.95)!important;
    }

    /*
     * Иконки.
     */
    .site-nav-item svg{
        position:relative!important;
        z-index:2!important;

        width:25px!important;
        height:25px!important;

        flex:0 0 auto!important;

        fill:none!important;
        stroke:currentColor!important;

        color:
            rgba(235,245,242,.91)
            !important;

        filter:none!important;
    }

    /*
     * Подписи.
     */
    .site-nav-label{
        position:relative!important;
        z-index:2!important;

        display:block!important;

        margin:0!important;

        max-width:100%!important;

        overflow:hidden!important;
        text-overflow:ellipsis!important;
        white-space:nowrap!important;

        font-size:11.5px!important;
        line-height:14px!important;

        font-weight:550!important;

        color:
            rgba(205,222,218,.68)
            !important;
    }

    /*
     * Мобильные короткие названия.
     */
    .site-nav-item[aria-label="Автомобиль"]
    .site-nav-label,

    .site-nav-item[aria-label="Карта СНТ"]
    .site-nav-label,

    .site-nav-item[aria-label="Выйти"]
    .site-nav-label{
        font-size:0!important;
    }

    .site-nav-item[aria-label="Автомобиль"]
    .site-nav-label::after{
        content:"Въезд";
        font-size:11.5px;
    }

    .site-nav-item[aria-label="Карта СНТ"]
    .site-nav-label::after{
        content:"Карта";
        font-size:11.5px;
    }

    .site-nav-item[aria-label="Выйти"]
    .site-nav-label::after{
        content:"Выход";
        font-size:11.5px;
    }

    /*
     * Убираем прежнюю зелёную плитку active.
     */
    .site-nav-item.active{
        color:#6ff0c3!important;

        background:transparent!important;

        border-color:transparent!important;

        box-shadow:none!important;
    }

    /*
     * Активная иконка — отдельный зелёный круг.
     */
    .site-nav-item.active::before{
        content:""!important;

        display:block!important;

        position:absolute!important;

        z-index:1!important;

        top:3px!important;
        left:50%!important;

        transform:translateX(-50%)!important;

        width:42px!important;
        height:42px!important;

        border-radius:50%!important;

        background:
            linear-gradient(
                145deg,
                rgba(20,201,146,.88),
                rgba(8,102,79,.84)
            )
            !important;

        border:
            1px solid rgba(90,246,197,.34)
            !important;

        box-shadow:
            0 0 17px rgba(38,221,165,.18),
            inset 0 1px 0 rgba(255,255,255,.15)
            !important;

        pointer-events:none!important;
    }

    .site-nav-item.active svg{
        color:#f0fff9!important;

        filter:
            drop-shadow(
                0 0 5px rgba(80,245,196,.34)
            )
            !important;
    }

    .site-nav-item.active .site-nav-label{
        color:#42edaf!important;
        font-weight:700!important;
    }

    /*
     * Убираем точку от предыдущего варианта.
     */
    .site-nav-item.active::after{
        display:none!important;
        content:none!important;
    }

    /*
     * Штатный защищённый выход остаётся без изменений.
     */
    .site-nav-item.logout{
        border:0!important;
    }

    .site-nav-logout-form{
        margin:0!important;
        padding:0!important;

        width:100%!important;
        height:62px!important;

        min-width:0!important;
    }

    .site-nav-logout-form .site-nav-item{
        width:100%!important;
        height:62px!important;
        min-height:62px!important;

        font:inherit!important;

        background:transparent!important;
    }

    /*
     * Очень узкие телефоны.
     */
    @media(max-width:360px){

        body.camera-mode .cameras-page,
body.map-mode .integrated-map-page{
            padding-bottom:
                calc(89px + env(safe-area-inset-bottom,0px))
                !important;
        }

        .site-nav{
            width:calc(100% - 10px)!important;

            height:76px!important;
            min-height:76px!important;

            padding:12px 4px 4px!important;

            border-radius:20px!important;
        }

        .site-nav-item,
        .site-nav-logout-form,
        .site-nav-logout-form .site-nav-item{
            height:57px!important;
            min-height:57px!important;
        }

        .site-nav-item svg{
            width:23px!important;
            height:23px!important;
        }

        .site-nav-item.active::before{
            width:39px!important;
            height:39px!important;
        }

        .site-nav-label,
        .site-nav-item[aria-label="Автомобиль"]
        .site-nav-label::after,
        .site-nav-item[aria-label="Карта СНТ"]
        .site-nav-label::after,
        .site-nav-item[aria-label="Выйти"]
        .site-nav-label::after{
            font-size:10.5px!important;
        }
    }
}

/* SNT54_MOBILE_NAV_GLASS_V5_END */

