:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#192538;background:#f5f7fa;font-synthesis:none;--blue:#1761f5;--muted:#64748b;--border:#e3e8ef;--navy:#101d30;--radius:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8cb5ff;outline-offset:3px}.shell{display:flex;min-height:100vh}.sidebar{width:244px;flex-shrink:0;background:var(--navy);color:#b7c4d6;display:flex;flex-direction:column;padding:30px 20px 18px;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:12px;color:#fff;font-size:29px;font-weight:650;letter-spacing:-1px;padding:0 7px 38px}.brand-mark{width:37px;height:43px;border:2px solid #679aff;border-radius:10px;font-size:33px;line-height:33px;text-align:center;color:#83afff;font-weight:500;position:relative}.brand-mark span{font-size:20px;color:#50dcb0;position:absolute;right:-5px;top:-9px}.brand-by{display:block;font-size:9px;letter-spacing:1.6px;color:#8d9db4;margin-top:5px}.workspace-label{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#8292a9;margin:0 12px 10px}.client-select{background:#1c2b40;border:1px solid #31415a;color:white;padding:12px;border-radius:9px;width:100%;font-weight:600;font-size:14px;margin-bottom:30px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 15px;margin:4px 0;border-radius:9px;font-size:14px;transition:.15s}.nav-item:hover{color:#fff;background:#1b2c44}.nav-item.active{color:#fff;background:#254477}.nav-item.active svg{color:#8db4ff}.nav-item svg{width:20px;height:20px;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding-top:34px}.add-client{background:none;border:0;color:#afbed2;font-size:13px;padding:12px 8px}.local-badge{font-size:11px;line-height:1.6;color:#98a8bf;margin:12px 8px 25px;display:flex;gap:7px;align-items:center}.local-badge span{width:6px;height:6px;background:#9eafc5;border-radius:50%;flex-shrink:0}.profile{display:flex;gap:12px;align-items:center;border-top:1px solid #2a384d;padding-top:22px;color:#e4ebf5;font-size:13px}.profile small{display:block;color:#8194af;margin-top:4px;font-size:11px}.avatar{display:inline-flex;align-items:center;justify-content:center;background:#283e5f;color:#bfd6fc;width:37px;height:37px;border-radius:50%;font-size:12px;font-weight:700}.avatar.small{width:32px;height:32px;background:#e9eef7;color:#314a70}.workspace{margin-left:244px;min-width:0;width:calc(100% - 244px)}.topbar{height:76px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{font-size:13px;color:#718097}.breadcrumb span{padding:0 15px;color:#c2cbd7}.breadcrumb strong{font-weight:600;color:#22314b}.topbar-right{display:flex;align-items:center;gap:15px}.live-label{font-size:12px;color:var(--muted)}.icon-button{border:1px solid var(--border);background:white;color:#61728b;border-radius:8px;width:32px;height:32px;font-size:20px}main{padding:35px 38px 48px;max-width:1700px;margin:auto;min-height:calc(100vh - 125px)}.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:700;color:var(--blue);margin-bottom:10px}h1{font-size:29px;font-weight:650;letter-spacing:-.8px;line-height:1.2;margin:0 0 10px}h2{font-size:18px;font-weight:650;margin:0;letter-spacing:-.3px}h3{font-size:15px;margin:0;font-weight:600}p{line-height:1.6}.subtitle{color:var(--muted);font-size:14px;margin:0}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 16px;background:white;border:1px solid #dce3ed;border-radius:8px;color:#31415b;font-size:13px;font-weight:600;min-height:40px}.btn svg{width:16px;height:16px}.btn:hover{background:#f4f7fb}.btn.primary{background:var(--blue);color:white;border-color:var(--blue);box-shadow:0 2px 3px #1761f519}.btn.primary:hover{background:#0d50d6}.btn.small{padding:7px 11px;min-height:32px;font-size:12px}.btn.ghost{background:transparent;border:0;color:var(--blue);padding:6px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:28px}.stat{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px 22px;position:relative}.stat-label{font-size:12px;color:#62738a;font-weight:500}.stat-value{font-size:29px;letter-spacing:-1px;font-weight:650;margin:9px 0 7px}.stat-foot{font-size:11px;color:#8591a3}.stat-symbol{position:absolute;right:19px;top:21px;color:#718bad;background:#f1f5fb;border-radius:8px;padding:7px;display:flex}.stat-symbol svg{width:17px;height:17px}.stat-value.green{color:#128069}.section-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:15px}.section-bar p{margin:5px 0 0;color:var(--muted);font-size:12px}.badge{display:inline-flex;gap:5px;align-items:center;padding:5px 9px;font-size:11px;font-weight:600;border-radius:6px;background:#f0f3f8;color:#738099;white-space:nowrap}.badge.green{background:#e6f5ef;color:#117859}.badge.amber{background:#fff4df;color:#946010}.badge.blue{background:#eaf1ff;color:#235ad0}.badge.red{background:#ffecec;color:#b43d3d}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1fr) 278px;gap:24px}.screen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.screen-grid.full{grid-template-columns:repeat(3,minmax(0,1fr))}.screen-card{border:1px solid var(--border);border-radius:12px;background:white;overflow:hidden;transition:box-shadow .18s,border-color .18s}.screen-card:hover{border-color:#c7d4e6;box-shadow:0 5px 22px #17294308}.screen-card-top{display:flex;justify-content:space-between;gap:8px;padding:16px 17px 0;align-items:center}.screen-card-top label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.screen-preview{height:190px;display:flex;align-items:center;justify-content:center;background:#f5f7fa;margin:15px 16px 0;border:1px solid #edf0f5;border-radius:8px;position:relative}.monitor{width:79px;height:139px;border:4px solid #3c4c64;background:#15243a;border-radius:5px;box-shadow:7px 8px 14px #18314e16;display:flex;align-items:center;justify-content:center;overflow:hidden}.monitor.landscape{width:185px;height:105px}.monitor img,.monitor video{width:100%;height:100%;object-fit:contain}.monitor-placeholder{color:#68809f;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:8px;letter-spacing:1px}.monitor-placeholder svg{width:22px;height:22px;opacity:.6}.preview-orientation{position:absolute;bottom:10px;right:10px;color:#7b8b9f;font-size:10px}.screen-body{padding:17px}.screen-site{font-size:12px;color:#65758c;margin:6px 0 17px;min-height:16px}.screen-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#7b8799;border-top:1px solid #eef1f5;padding:12px 0 0}.screen-row strong{font-size:11px;font-weight:500;color:#465872;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.screen-card-actions{display:flex;justify-content:space-between;padding-top:14px;gap:7px}.panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:21px}.panel+.panel{margin-top:18px}.panel h2{font-size:15px}.progress-list{display:flex;flex-direction:column;gap:21px;margin-top:24px}.progress-step{display:flex;gap:11px;align-items:flex-start}.step-number{border-radius:50%;background:#eef3fd;color:#3862a2;font-size:11px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.progress-step strong{font-size:12px;font-weight:600;display:block;padding-top:4px}.progress-step p{color:#8190a3;font-size:11px;line-height:1.6;margin:5px 0 0}.activity{padding:16px 0;border-bottom:1px solid #edf0f5}.activity:last-child{border:0;padding-bottom:0}.activity p{font-size:12px;line-height:1.6;margin:0;color:#52637b}.activity time{font-size:10px;color:#97a2b1;display:block;margin-top:5px}.quiet-banner{display:flex;gap:13px;align-items:center;background:#eaf1ff;border:1px solid #d7e5fe;padding:16px 20px;border-radius:10px;margin-bottom:26px;font-size:13px;color:#3d5f97}.quiet-banner svg{width:20px;height:20px;flex-shrink:0}.toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px}.search{width:270px;max-width:100%;border:1px solid var(--border);background:#fff;border-radius:8px;padding:11px 14px;font-size:13px;color:#33445e}.toolbar select{border:1px solid var(--border);border-radius:8px;padding:9px 12px;color:#53647d;background:#fff;font-size:13px}.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.media-card{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}.media-cover{height:210px;display:flex;align-items:center;justify-content:center;background:#e9edf3;position:relative}.media-cover img,.media-cover video{width:100%;height:100%;object-fit:contain}.media-cover .badge{position:absolute;top:12px;left:12px;background:#ffffffec}.media-card-info{padding:16px}.media-card-info h3{font-size:13px;line-height:1.5;margin-bottom:6px}.meta{font-size:11px;color:#8390a3}.empty{border:1px dashed #cfd8e6;border-radius:14px;background:#fff;text-align:center;padding:55px 25px;color:#718199;grid-column:1/-1}.empty svg{width:34px;height:34px;color:#8ba5cf;margin-bottom:15px}.empty h2{color:#364960;margin-bottom:8px}.empty p{font-size:14px;margin:8px 0 20px}.playlist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.playlist-card{background:white;border:1px solid var(--border);border-radius:12px;padding:22px}.playlist-art{height:120px;background:#eef3fc;border-radius:8px;display:flex;gap:8px;align-items:center;justify-content:center;margin-bottom:19px;overflow:hidden}.playlist-art img{height:88px;max-width:80px;object-fit:cover;border-radius:4px;box-shadow:2px 4px 8px #16345813}.playlist-art svg{width:35px;height:35px;color:#7295cb}.playlist-card p{font-size:12px;color:var(--muted);margin:7px 0 20px}.table-wrap{background:white;border:1px solid var(--border);border-radius:12px;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#8591a2;background:#fbfcfe;padding:15px 20px;font-weight:600}td{padding:19px 20px;border-top:1px solid #edf0f5;font-size:13px}td small{display:block;color:#8995a6;font-size:11px;margin-top:5px}.schedule-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:22px;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:20px}.days{display:flex;gap:6px}.day{height:30px;width:30px;border-radius:6px;background:#f0f3f7;color:#a4adbb;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600}.day.on{background:#e8f0ff;color:#2d63c3}.hours{font-size:14px;font-weight:600}.schedule-name{min-width:155px}.schedule-name small{display:block;font-size:11px;color:#8190a4;margin-top:5px}footer{padding:0 38px 21px;color:#8e9aac;font-size:10px;display:flex;justify-content:space-between}dialog{border:0;border-radius:16px;padding:0;width:min(640px,calc(100vw - 32px));max-height:90vh;box-shadow:0 25px 100px #07162c4a;color:#203149}dialog::backdrop{background:#0d1a2f7a;backdrop-filter:blur(3px)}.dialog-head{padding:25px 28px 21px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.dialog-head h2{font-size:22px}.dialog-head p{font-size:13px;margin:7px 0 0;color:#7b899c}.dialog-body{padding:24px 28px}.dialog-foot{display:flex;justify-content:flex-end;gap:10px;padding:20px 28px;border-top:1px solid var(--border);background:#fafbfd}.close{border:0;background:#f0f3f8;border-radius:7px;width:29px;height:29px;font-size:20px;color:#6b7b91}.field{display:block;margin-bottom:20px}.field>span,.field>label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.field input,.field select{width:100%;padding:11px 12px;border:1px solid #d7dfea;border-radius:8px;background:white;color:#2d405e;font-size:14px}.field small{display:block;color:#7d8ba0;font-size:12px;margin-top:8px;line-height:1.5}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field-row .field{min-width:0}.check-days{display:flex;gap:6px;flex-wrap:wrap}.check-days label{font-size:12px;border:1px solid var(--border);padding:8px;border-radius:6px;display:flex;gap:4px;align-items:center}.check-days input{accent-color:var(--blue)}input[type=checkbox]{accent-color:var(--blue);width:15px;height:15px;margin:0}.note{padding:12px 15px;border-radius:8px;background:#f1f5fb;color:#627590;font-size:12px;line-height:1.7;margin:0 0 20px}.error{background:#fff0f0;color:#a83434;font-size:13px;border-radius:8px;padding:12px 15px;margin-bottom:15px}.form-error:empty{display:none}.pick-screen{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--border);border-radius:8px;margin-bottom:9px;font-size:13px}.pick-screen small{display:block;color:#7e8ca0;margin-top:4px;font-size:11px}.pick-screen .badge{margin-left:auto}.playlist-item{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:8px;padding:11px;margin-bottom:9px}.playlist-item img{width:32px;height:43px;object-fit:cover;background:#dfe7f3;border-radius:3px}.playlist-item-main{flex:1;min-width:0;font-size:12px}.playlist-item input{width:62px;border:1px solid var(--border);border-radius:5px;padding:6px;font-size:12px}.playlist-item button{border:0;background:#f0f4f9;color:#536c8f;border-radius:5px;padding:6px}.playlist-item .meta{margin-top:5px}.upload-zone{border:2px dashed #ccdaef;border-radius:12px;background:#f7faff;padding:38px 20px;text-align:center;cursor:pointer;display:block;color:#2c5b9a}.upload-zone:hover,.upload-zone.drag{border-color:var(--blue);background:#edf4ff}.upload-zone svg{width:34px;height:34px;margin-bottom:13px}.upload-zone strong{display:block;font-size:15px}.upload-zone small{font-size:12px;color:#7c90af;display:block;margin-top:9px}.upload-progress{margin-top:16px;font-size:13px;color:#58708e}.upload-progress progress{width:100%;accent-color:var(--blue);margin-top:10px}.preview-stage{background:#101d30;border-radius:10px;height:440px;display:flex;justify-content:center;align-items:center;overflow:hidden}.preview-stage img,.preview-stage video{height:100%;max-width:100%;object-fit:contain}.preview-caption{text-align:center;font-size:13px;color:#6c7d95;margin:15px 0 0}.secret{padding:14px;background:#edf2fa;border:1px solid var(--border);border-radius:8px;overflow-wrap:anywhere;font-family:monospace;font-size:13px}.loading{padding:60px;text-align:center;color:#8090a6}#toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%) translateY(100px);background:#142940;color:white;padding:14px 22px;border-radius:10px;box-shadow:0 8px 35px #10243826;font-size:13px;max-width:80vw;opacity:0;transition:.2s;z-index:5}#toast.show{transform:translateX(-50%) translateY(0);opacity:1}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}code{font-size:12px;overflow-wrap:anywhere}
@media(min-width:1500px){.screen-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-columns{grid-template-columns:minmax(0,1fr) 300px}.screen-grid.full{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.dashboard-columns{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel+.panel{margin-top:0}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.screen-grid.full{grid-template-columns:repeat(2,minmax(0,1fr))}.playlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-card{flex-wrap:wrap}.stat{padding:18px 15px}.stat-symbol{display:none}}
@media(max-width:850px){.sidebar{width:190px;padding:25px 12px 15px}.workspace{margin-left:190px;width:calc(100% - 190px)}main{padding:27px 23px}.topbar{padding:0 23px}.live-label{display:none}.brand{font-size:25px;padding-left:3px}.brand-mark{width:32px;height:38px}.stats{grid-template-columns:repeat(2,1fr)}.page-title{flex-direction:column}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-side{grid-template-columns:1fr}.local-badge{font-size:10px}.screen-card-actions{flex-wrap:wrap}footer span{display:none}}
@media(max-width:580px){.shell{display:block}.sidebar{position:static;width:100%;padding:16px 16px 0}.brand{padding:0;font-size:23px}.brand-by{font-size:8px}.brand-mark{height:34px;font-size:28px;line-height:28px}.workspace-label,.sidebar-bottom{display:none}.client-select{position:absolute;right:16px;top:16px;width:130px;padding:9px;margin:0}.sidebar nav{display:flex;overflow-x:auto;gap:3px;padding:12px 0 8px}.nav-item{font-size:12px;padding:9px;gap:6px;white-space:nowrap}.nav-item svg{width:16px;height:16px}.workspace{margin:0;width:100%}.topbar{height:55px;padding:0 18px}main{padding:25px 18px}.page-title{gap:15px}h1{font-size:25px}.stats{gap:10px}.stat-value{font-size:25px}.screen-grid,.screen-grid.full,.playlist-grid{grid-template-columns:1fr}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.media-cover{height:170px}.media-card-info{padding:12px}.toolbar{flex-wrap:wrap}.screen-preview{height:200px}.dialog-head,.dialog-body{padding:20px}.dialog-foot{padding:16px 20px}.field-row{grid-template-columns:1fr;gap:0}.preview-stage{height:360px}#toast{left:50%;width:max-content}.schedule-card{padding:18px}.quiet-banner{font-size:12px}.section-bar{align-items:flex-start}footer{padding:0 18px 20px}}
.preview-display{height:100%;max-width:100%;display:flex;align-items:center;justify-content:center;background:#080d16}.preview-display.portrait{aspect-ratio:9/16}.preview-display.landscape{aspect-ratio:16/9;height:auto;width:100%;max-height:100%}.preview-display.natural{width:100%}.preview-display img,.preview-display video{width:100%;height:100%;object-fit:contain}.preview-display.cover img,.preview-display.cover video{object-fit:cover}.playlist-item>svg{width:28px;height:32px;flex-shrink:0;color:#6688b8}.monitor-placeholder{text-align:center;font-size:7px}.subtitle,.btn,.nav-item,.field>span,.field>label,.screen-card-top label,td{font-size:14px}.stat-label,.screen-site,.screen-row,.playlist-card p,.note{font-size:13px}

/* Montana: contexte revendeur et navigation du module Signage. */
.brand{font-size:25px;gap:9px}.brand-mark{font-size:27px;min-width:37px}.module-label{margin-top:22px;margin-bottom:8px}.sidebar{overflow-y:auto}.profile{font-size:12px}.brand-by{font-size:8px;letter-spacing:1px}

/* Equipment supervision */
.device-pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0;padding:12px;background:#f4f7fb;border-radius:10px}.device-pillars span{font-size:11px;color:#64748b}.device-pillars strong{display:block;margin-top:5px;font-size:12px;color:#182c46}.equipment-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.diagnostic-grid{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:10px 18px;font-size:13px}.diagnostic-grid dt{color:#64748b}.diagnostic-grid dd{margin:0;overflow-wrap:anywhere}.asset-card{border:1px solid #dce4ef;border-radius:12px;padding:18px;margin:15px 0}.asset-card h3{margin:0 0 8px}.capture-figure{margin:0;text-align:center}.capture-figure img{display:block;max-width:100%;max-height:60vh;margin:auto;object-fit:contain;background:#101a2b}.capture-figure figcaption{font-size:12px;color:#64748b;margin-top:12px}.screen-card-actions{flex-wrap:wrap}

.optional-details{margin:12px 0;font-size:13px}.optional-details summary{cursor:pointer;color:#4b6380;padding:10px 0}.optional-details[open]>summary{margin-bottom:12px}.capture-dialog{width:min(1100px,94vw);max-width:94vw}.capture-toolbar{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.capture-toolbar .field{flex:1;min-width:230px;margin:0}.capture-viewport{overflow:auto;max-height:max(180px,calc(94vh - 410px));background:#101a2b;border-radius:8px}.capture-viewport img{max-width:100%;max-height:max(180px,calc(94vh - 410px));width:auto;height:auto;margin:auto;display:block}.capture-viewport.native-size img{max-width:none;max-height:none}.capture-figure+.actions{margin-top:14px}#capture-error{color:#b42318}

/* Disposition : l’écran entier reste visible, sans recadrage de la capture. */
.display-stage{display:flex;justify-content:center;align-items:center;background:#edf1f6;border-radius:12px;padding:18px;min-height:220px}.display-frame{background:#080d16;border:7px solid #253247;border-radius:9px;box-shadow:0 8px 20px #17294320;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#cbd5e1}.display-frame.landscape{width:min(100%,640px);aspect-ratio:16/9}.display-frame.portrait{height: min(46vh,460px);aspect-ratio:9/16;max-width:100%}.display-frame img,.display-frame video{display:block;width:100%;height:100%;min-height:0;object-fit:contain}.display-summary{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;font-size:13px;margin-top:14px}.display-summary span{color:#64748b}.display-check>.note{text-align:center}.display-check>.actions{justify-content:center}.capture-viewport:not(.native-size){display:flex;justify-content:center;align-items:center}.capture-viewport:not(.native-size) img{width:100%;height:max(180px,calc(94vh - 410px));object-fit:contain}

/* Fiche centrée sur la vérification visuelle et le contexte de diffusion. */
.display-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);gap:26px;align-items:start}.display-context{padding:18px;border:1px solid var(--border);border-radius:12px;background:#fff}.display-context .diagnostic-grid{grid-template-columns:110px minmax(0,1fr);line-height:1.5;margin:20px 0}.display-context .device-pillars{grid-template-columns:1fr;gap:12px}.display-context .device-pillars span{display:flex;align-items:center;justify-content:space-between;gap:12px}.display-context .device-pillars strong{margin:0}.display-layout .display-stage{min-height:280px}.display-layout .display-frame.portrait{height:min(44vh,430px)}.display-context>.meta{line-height:1.6}.display-layout .display-summary{gap:6px 14px}@media(max-width:760px){.display-layout{grid-template-columns:1fr}.display-layout .display-stage{min-height:200px}.display-context .device-pillars{grid-template-columns:repeat(3,minmax(0,1fr))}.display-context .device-pillars span{display:block}.display-context .device-pillars strong{margin-top:5px}}

/* Authentication */
.login-page{min-height:100vh;display:grid;place-items:center;background:#f1f5fb;padding:24px}
.login-card{width:min(100%,440px);padding:36px;background:white;border:1px solid #dce4f0;border-radius:20px;box-shadow:0 16px 60px #18366012}
.login-card .brand{color:#163b72;margin-bottom:32px}.login-card h1{font-size:26px}.login-card p{line-height:1.6}.login-card .field{margin:18px 0}.login-card button{width:100%}#login-error{color:#b42318}

.login-card{min-height:0}.login-card .brand{padding-bottom:0}

/* Montana official kit 1.0 — wordmark files are used without modification. */
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--navy:#071B3B;--blue:#2454D6;--signature:#1683F8;--muted:#596579;--border:#dce3ed;--radius:12px;color:#18243B;background:#F5F7FB}
body{background:#F5F7FB;color:#18243B}
.brand{display:flex;align-items:center;padding:16px 14px;margin:0 0 24px;min-height:58px;letter-spacing:normal}
.brand-logo{display:block;width:176px;max-width:100%;height:auto;flex-shrink:1}
.sidebar{background:#eef2f9;color:#18243B;border-right:1px solid var(--border)}
.workspace-label{color:var(--muted)}
.client-select{background:#fff;color:#18243B;border-color:var(--border);border-radius:8px}
.nav-item{color:var(--muted);border-radius:8px}
.nav-item:hover{background:#e4ebf7;color:var(--navy)}
.nav-item.active{background:#e1e9fc;color:var(--blue)}
.nav-item.active svg{color:var(--blue)}
.add-client{color:var(--blue)}
.local-badge,.profile small{color:var(--muted)}
.profile{border-color:var(--border);color:#18243B;overflow-wrap:anywhere}
.btn{border-radius:8px}.btn.primary{background:var(--blue);border-color:var(--blue);box-shadow:none}.btn.primary:hover{background:#1c43ad;border-color:#1c43ad}
.badge.green{color:#176445}.badge.amber{color:#805000}.badge.red{color:#B42318}.badge.blue{color:var(--blue)}
.subtitle,.note{color:var(--muted)}
.login-page{background:#F5F7FB}
.login-card{border-radius:12px;box-shadow:0 12px 40px #071b3b08;padding:32px;min-height:0}
.login-card .brand{padding:16px 14px;margin:0 0 24px;width:204px}
.login-card h1{font-size:28px;color:var(--navy);line-height:1.2}
.login-card .note{font-size:13px;border-radius:8px;background:#F5F7FB}
.login-card input{border-radius:8px}.login-card button{min-height:44px}
@media(max-width:700px){.sidebar .brand{width:176px;margin-bottom:8px;padding:12px}.sidebar .client-select{position:static;width:100%;margin:0}.login-page{padding:16px}.login-card{padding:24px}.login-card h1{font-size:25px}}
@media(max-width:700px){.workspace{min-width:0;width:100%}.topbar{height:auto;min-height:64px;padding:12px 16px;gap:12px;flex-wrap:wrap}.topbar-right{gap:8px;min-width:0}.topbar #logout{font-size:13px;padding:8px}.breadcrumb{min-width:0}.sidebar nav{max-width:100%}}
#logout{width:auto;min-width:96px;flex-shrink:0;padding:8px 12px;font-size:13px}
.login-card .brand{margin-left:auto;margin-right:auto}
.access-panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:24px;margin:24px 0}.access-panel h2{font-size:20px;margin-top:0}.access-table-wrap{overflow:auto}.access-table{width:100%;border-collapse:collapse;text-align:left}.access-table th{font-size:12px;color:var(--muted);padding:12px;border-bottom:1px solid var(--border)}.access-table td{padding:16px 12px;border-bottom:1px solid var(--border);vertical-align:top}.access-table small{display:block;color:var(--muted);margin-top:6px;max-width:300px}.access-actions{display:flex;gap:8px;flex-wrap:wrap}.access-check{display:flex;gap:8px;margin:12px 0}#client-choice{border:1px solid var(--border);border-radius:8px;padding:16px;max-height:240px;overflow:auto}#access-error,#activate-error{color:#B42318}.dialog-footer{padding:20px 24px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--border)}[hidden]{display:none!important}
