/* CAMSEC · Cameras. Shared production theme for the portal, Android and mobile Safari. */
.camera-theme{--blue:#2459e0;--text:#15293c;--muted:#596b7c;--bg:#eef2f8;--line:#dce4ef;--camera-surface:#162b43;--camera-muted:#b6c6da;--camera-line:#ffffff26;--camera-radius:18px;color-scheme:light;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.camera-theme button,.camera-theme a,.camera-theme input,.camera-theme select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.camera-theme :is(button,a,input,select,textarea):focus-visible{outline:3px solid #84a9ff;outline-offset:3px}
.camera-theme .button{min-height:44px;border-radius:10px;font-size:14px}
.camera-theme .button.primary{background:var(--blue);border-color:var(--blue);box-shadow:none}
.camera-theme .button.primary:hover:not(:disabled){background:#194bc8;border-color:#194bc8}
.camera-theme .button.secondary{background:#fff;border-color:var(--line);color:var(--text)}
.camera-theme .button:disabled{opacity:.52;cursor:not-allowed}
.camera-theme .link{color:var(--blue)}
.camera-theme .panel{border-radius:var(--camera-radius);border-color:var(--line);box-shadow:none}
.camera-theme .page-heading h1{font-size:26px;line-height:1.25;letter-spacing:-.6px}
.camera-theme .page-heading{gap:16px;align-items:center}
.camera-theme .page-heading>div{min-width:0}
.camera-theme .page-heading .actions{flex-wrap:wrap}
.camera-theme .sidebar{padding:26px 14px;background:#fff}
.camera-theme .brand{padding-inline:10px}
.camera-theme .nav-item{min-height:44px;margin-block:4px;border-radius:10px}
.camera-theme .nav-item.active{background:#edf2ff;color:var(--blue)}
.camera-theme .topbar{min-height:76px;height:auto;padding-block:12px}
.camera-theme .top-actions{flex-wrap:wrap;justify-content:flex-end;gap:12px}
.camera-theme .avatar{background:#edf2ff;color:var(--blue)}
.camera-theme .site-switch{border-radius:12px;padding:14px 12px}
.camera-theme .site-switch strong{font-size:14px}
.camera-theme .site-switch small{font-size:12px;margin-top:4px}
.camera-theme main#content{max-width:1280px}
.camera-theme .camera-overview-heading{margin-bottom:16px}
.camera-theme .camera-overview-heading h1{font-size:23px;line-height:1.3}
.camera-theme .camera-overview-heading .link{display:flex;align-items:center;gap:4px;min-height:44px;white-space:nowrap}
.camera-theme .camera-overview-heading .icon{width:16px;height:16px}
.camera-theme .gate-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.camera-theme .gate-card{background:var(--camera-surface);color:#edf3ff;border:0;padding:22px;border-radius:var(--camera-radius)}
.camera-theme .gate-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.camera-theme .gate-card-head h2{margin:0;font-size:18px;font-weight:650;line-height:1.35;overflow-wrap:anywhere;min-width:0}
.camera-theme .gate-card .connection-state{display:inline-flex;align-items:center;gap:6px;color:var(--camera-muted);font-size:12px;flex-shrink:0;max-width:50%;line-height:1.4}
.camera-theme .gate-card .connection-state:before{display:none}
.camera-theme .gate-card .connection-state.online{color:#c3d4ff}
.camera-theme .gate-card .connection-state .icon{width:17px;height:17px;background:transparent;color:inherit}
.camera-theme .gate-directions{gap:20px}
.camera-theme .gate-direction{border-top:1px solid var(--camera-line);gap:10px;padding-top:16px}
.camera-theme .gate-direction-head h3{font-size:14px;font-weight:600;line-height:1.4}
.camera-theme .gate-direction-head .small{color:var(--camera-muted);font-size:12px}
.camera-theme .gate-camera-grid{gap:10px}
.camera-theme .gate-camera-tile{position:relative;background:#213850;color:#fff;border:0;border-radius:10px;isolation:isolate}
.camera-theme button.gate-camera-tile:hover:not(:disabled){outline:2px solid #9bbdff;outline-offset:2px}
.camera-theme .gate-camera-picture{aspect-ratio:16/10;background:#243a53}
.camera-theme .gate-camera-picture img{background:#102337;object-fit:contain}
.camera-theme .frame-placeholder{color:#9bb2cf}
.camera-theme .frame-placeholder .icon{width:26px;height:26px}
.camera-theme .gate-camera-picture [data-frame-status]{top:0;bottom:auto;background:#102337db;color:#f1f5fc;font-size:11px;line-height:1.4;padding:5px 7px}
.camera-theme .frame-pending [data-frame-status],.camera-theme .gate-camera-picture:not([data-camera-frame]) [data-frame-status]{background:#263f5c;color:#e0e9f6}
.camera-theme .gate-card .gate-camera-caption{position:absolute;z-index:3;left:0;right:0;bottom:0;padding:20px 9px 8px;background:linear-gradient(transparent,#102337ed);pointer-events:none}
.camera-theme .gate-card .gate-camera-caption strong{font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
.camera-theme .gate-card .gate-camera-caption small{display:none}
.camera-theme .gate-camera-tile:only-child{max-width:440px;justify-self:center}
.camera-theme .gate-direction-control{display:flex;flex-direction:column;gap:7px;min-height:48px;margin:0}
.camera-theme .gate-direction-control .button{width:100%;min-height:48px;gap:8px;border-radius:10px;justify-content:center}
.camera-theme .gate-direction-control .button .icon{width:19px;height:19px}
.camera-theme .gate-direction-control .gate-open-exit{background:#2b4364;border-color:#2b4364;color:#eef4ff}
.camera-theme .gate-direction-control .gate-open-exit:hover:not(:disabled){background:#36537d;border-color:#36537d}
.camera-theme .gate-direction-control small{font-size:12px;color:var(--camera-muted);text-align:center}
.camera-theme .gate-camera-empty{border:1px dashed #536a85;background:#203750;color:#c3d0e2;padding:26px 12px;font-size:13px}
.camera-theme .gate-camera-warning{background:#fdf0d8;border-color:#f3d9aa;color:#6e4815;font-size:13px}
.camera-theme .gate-card-tools{display:flex;justify-content:flex-end;gap:20px;padding-top:12px;margin:16px 0 -8px;border-top:1px solid var(--camera-line)}
.camera-theme .gate-card-tools .link{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:4px 0;color:#c3d4ff;font-size:12px;max-width:none;text-align:left}
.camera-theme .gate-card-tools .icon{width:17px;height:17px}
.camera-theme .overview-secondary{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:20px;margin-top:20px}
.camera-theme .overview-invite{display:flex;align-items:center;gap:14px;width:100%;min-height:78px;background:#fff;border:1px solid var(--line);border-radius:var(--camera-radius);color:var(--text);padding:16px;text-align:left;cursor:pointer;font:inherit}
.camera-theme .overview-invite-icon{background:#edf2ff;color:var(--blue);border-radius:12px;width:42px;height:42px;display:grid;place-items:center;flex-shrink:0}
.camera-theme .overview-invite>span:nth-child(2){flex:1;min-width:0}
.camera-theme .overview-invite strong{display:block;font-size:15px;line-height:1.3;font-weight:650}
.camera-theme .overview-invite small{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.camera-theme .overview-invite>.icon{color:var(--muted);width:17px;height:17px}
.camera-theme .overview-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.camera-theme .overview-counts button{display:flex;align-items:center;gap:10px;min-width:0;min-height:60px;padding:10px 0;border:0;background:none;border-radius:0;color:var(--muted);font-size:13px;text-align:left}
.camera-theme .overview-counts button+button{border-left:1px solid #d8e1ec;padding-left:16px}
.camera-theme .overview-counts strong{font-size:21px;line-height:1.2;margin:0 4px 4px 0;display:inline-block;font-weight:650;color:var(--text)}
.camera-theme .overview-counts .icon{width:21px;height:21px;flex-shrink:0;color:var(--muted)}
.camera-theme .overview-pending{display:flex;align-items:center;gap:10px;min-height:48px;width:100%;padding:10px 14px;margin-bottom:16px;border:1px solid #d8e3ff;border-radius:12px;background:#edf2ff;color:#1843b5;text-align:left;font:inherit;cursor:pointer}
.camera-theme .overview-pending span{margin-left:auto;font-weight:650}
.camera-theme .overview-pending .icon{width:18px;height:18px}
.camera-theme .camera-gallery-dialog .gate-camera-picture{aspect-ratio:16/9}
.camera-theme .camera-gallery-dialog .gate-camera-caption{background:#f3f6fb;color:var(--text);padding:12px}
.camera-theme .camera-gallery-dialog .gate-camera-caption small{color:var(--muted);font-size:12px}
.camera-theme dialog{border:1px solid var(--line);box-shadow:0 24px 90px #15293c30;border-radius:20px}
.camera-theme dialog::backdrop{background:#0b1d3b75;backdrop-filter:blur(3px)}
.camera-theme .dialog-head{gap:14px}
.camera-theme .dialog-head h2{overflow-wrap:anywhere;font-size:21px;line-height:1.3;letter-spacing:-.35px}
.camera-theme .close{min-width:44px;min-height:44px;border-radius:50%;background:#f1f4fa;color:#526780}
.camera-theme input:not([type=checkbox]):not([type=radio]),.camera-theme select,.camera-theme textarea{border-color:#d9e2ef;background:#fbfcff;border-radius:9px;color:var(--text)}
.camera-theme .badge.green,.camera-theme .status-toggle.on{background:#edf2ff;color:#194bc8;border-color:#d5e1ff}
.camera-theme .auth-card{border-radius:22px;box-shadow:0 16px 60px #15293c0b}
.camera-theme.brand-login{background:#eef2f8;padding:max(28px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
.camera-theme .auth-card input:not([type=checkbox]){min-height:50px;font-size:16px}
.camera-theme .auth-card .button{min-height:50px}
.camera-theme .auth-help{font-size:12px}
.camera-theme.mobile-app #app{max-width:640px;min-height:100vh;min-height:100dvh;background:var(--bg)}
.camera-theme .m-chrome{background:#fff;padding:max(6px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 14px max(16px,env(safe-area-inset-left));border-bottom:1px solid var(--line)}
.camera-theme .m-brandbar{display:flex;align-items:center;gap:9px;padding:0;min-height:56px;background:transparent}
.camera-theme .m-brandbar img{width:124px;height:auto}
.camera-theme .m-brandbar>span{font-size:10px;letter-spacing:2px;color:var(--blue)}
.camera-theme .m-profile{width:48px;height:48px;margin-left:auto;border:0;border-radius:50%;display:grid;place-items:center;background:#edf2ff;color:#284f9d;font:600 14px system-ui;cursor:pointer}
.camera-theme .m-header{position:static;display:block;background:transparent;border:0;padding:10px 0 0;backdrop-filter:none}
.camera-theme .m-object{width:100%;min-height:48px;padding:0;gap:12px}
.camera-theme .m-object-context{flex:1;min-width:0}
.camera-theme .m-object small{font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0;margin-bottom:5px}
.camera-theme .m-object strong{font-size:23px;line-height:1.25;letter-spacing:-.6px;font-weight:650;white-space:normal;overflow-wrap:anywhere}
.camera-theme .m-chevron{flex:0 0 20px!important;display:grid;place-items:center;color:#647993}
.camera-theme .m-chevron .icon{width:17px;height:17px}
.camera-theme.mobile-app #content.m-content{padding:16px max(16px,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-width:640px}
.camera-theme.mobile-app .camera-overview-heading{margin-bottom:12px;align-items:center;gap:8px}
.camera-theme.mobile-app .camera-overview-heading h1{font-size:20px;letter-spacing:-.4px}
.camera-theme.mobile-app .camera-overview-heading .link{font-size:12px;min-height:48px}
.camera-theme.mobile-app .gate-cards{gap:16px}
.camera-theme.mobile-app .gate-card{padding:16px}
.camera-theme.mobile-app .gate-card-head{margin-bottom:14px;gap:12px}
.camera-theme.mobile-app .gate-card-head h2{font-size:16px}
.camera-theme.mobile-app .gate-card .connection-state{font-size:11px;gap:5px}
.camera-theme.mobile-app .gate-directions{grid-template-columns:minmax(0,1fr);gap:16px}
.camera-theme.mobile-app .gate-direction{padding-top:14px;gap:8px}
.camera-theme.mobile-app .gate-direction:first-child{border:0;padding-top:0}
.camera-theme.mobile-app .gate-camera-grid{gap:8px}
.camera-theme.mobile-app .gate-direction-head h3{font-size:14px}
.camera-theme.mobile-app .gate-direction-head .small{font-size:11px}
.camera-theme.mobile-app .gate-direction .button{font-size:14px;padding:10px 12px}
.camera-theme.mobile-app .gate-card .gate-camera-caption strong{font-size:11px}
.camera-theme.mobile-app .overview-secondary{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin-top:16px}
.camera-theme.mobile-app .overview-invite{min-height:70px;padding:13px;gap:12px}
.camera-theme.mobile-app .overview-invite strong{font-size:14px}
.camera-theme.mobile-app .overview-invite small{font-size:11px}
.camera-theme.mobile-app .overview-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.camera-theme.mobile-app .overview-counts button{display:flex;gap:8px;min-width:0;padding:12px 2px;font-size:12px}
.camera-theme.mobile-app .overview-counts button+button{padding-left:12px}
.camera-theme.mobile-app .overview-counts strong{display:block;margin:0 0 2px;font-size:20px}
.camera-theme.mobile-app .overview-counts .icon{width:18px;height:18px}
.camera-theme .m-tabs{box-sizing:border-box;max-width:640px;padding:8px max(8px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:2px;background:#fff;border-color:var(--line);box-shadow:0 -6px 22px #15293c05}
.camera-theme .m-tabs button{position:relative;font-size:11px;line-height:1.4;min-height:52px;padding:6px 2px;gap:4px;color:#586c82;border-radius:12px}
.camera-theme .m-tabs button.selected{background:#edf2ff;color:#194bc8}
.camera-theme .m-tabs .icon{width:22px;height:22px}
.camera-theme .m-tab-count{position:absolute;right:10px;top:0;border-radius:8px;background:var(--blue);color:#fff;min-width:16px;padding:1px 3px;font-size:10px;line-height:1.3}
.camera-theme .profile-summary{display:flex;align-items:center;gap:14px;background:#e5edff;border-radius:16px;padding:20px 16px;margin-bottom:16px}
.camera-theme .profile-summary strong{display:block;font-size:18px;overflow-wrap:anywhere}
.camera-theme .profile-summary small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.camera-theme .profile-summary-icon{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;background:#fff;border-radius:12px;color:var(--blue)}
.camera-theme .m-menu{padding:4px 16px}
.camera-theme .m-menu button{min-height:58px;padding:14px 0;color:var(--text);gap:12px}
.camera-theme .m-menu button:last-child{color:#a03544}
.camera-theme .m-menu .icon{color:#5d7492;width:21px;height:21px;flex-shrink:0}
.camera-theme .m-site{min-height:72px;border-radius:12px;margin-bottom:10px;padding:14px;font-size:14px}
.camera-theme .m-site.selected{background:#edf2ff;border-color:var(--blue)}
.camera-theme .m-site strong{font-size:15px}
.camera-theme .m-site small{font-size:12px}
.camera-theme.mobile-app dialog{width:calc(100% - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;border-radius:20px;overscroll-behavior:contain}
.camera-theme.mobile-app .dialog-head{padding:18px 16px}
.camera-theme.mobile-app .dialog-head h2{font-size:20px}
.camera-theme.mobile-app .dialog-body{padding:16px}
.camera-theme.mobile-app .dialog-foot{padding:14px 16px max(16px,env(safe-area-inset-bottom));flex-wrap:wrap;gap:10px}
.camera-theme.mobile-app .dialog-foot .button{min-height:48px}
.camera-theme.mobile-app .close{min-width:48px;min-height:48px}
.camera-theme.mobile-app input:not([type=checkbox]):not([type=radio]),.camera-theme.mobile-app select,.camera-theme.mobile-app textarea{font-size:16px;min-height:48px}
.camera-theme.mobile-app .button{min-height:48px}
.camera-theme.mobile-app .page-heading{flex-wrap:wrap;gap:12px}
.camera-theme.mobile-app .page-heading h1{font-size:23px}
.camera-theme.mobile-app .camera-overview-heading{flex-wrap:nowrap}
.camera-theme.mobile-app .registry-toolbar{padding:16px}
.camera-theme.mobile-app .registry-filter-button,.camera-theme.mobile-app .registry-reset{min-height:48px}
.camera-theme.mobile-app #toast{bottom:calc(90px + env(safe-area-inset-bottom));font-size:13px}
@media(min-width:1500px){.camera-theme:not(.mobile-app) .gate-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.camera-theme:not(.mobile-app) .gate-directions{grid-template-columns:minmax(0,1fr)}.camera-theme:not(.mobile-app) .gate-card:only-child{grid-column:1/-1}.camera-theme:not(.mobile-app) .gate-card:only-child .gate-directions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.camera-theme.mobile-app #content.m-content{padding-inline:12px}.camera-theme.mobile-app .gate-card{padding:13px}.camera-theme .m-chrome{padding-inline:14px}.camera-theme .m-object strong{font-size:21px}.camera-theme.mobile-app .camera-overview-heading h1{font-size:18px}.camera-theme.mobile-app .gate-card-head{gap:8px}.camera-theme.mobile-app .gate-card-head h2{font-size:15px}.camera-theme .gate-card-tools{gap:12px}.camera-theme .gate-card-tools .link{font-size:11px}}
@media(orientation:landscape) and (min-width:700px){.camera-theme.mobile-app .gate-directions{grid-template-columns:repeat(2,minmax(0,1fr))}.camera-theme.mobile-app .gate-direction:first-child{border-top:1px solid var(--camera-line);padding-top:14px}.camera-theme.mobile-app .m-chrome{padding-top:max(6px,env(safe-area-inset-top))}}
@media(prefers-reduced-motion:reduce){.camera-theme *{scroll-behavior:auto!important;transition:none!important}}
