:root{--bg:#07111f;--panel:#0f1d2e;--panel2:#13253a;--line:#263a52;--text:#f3f7fb;--muted:#9fb0c4;--accent:#27c2ff;--accent2:#00e0a4;--danger:#ff5f6d;--warning:#f7b955;--shadow:0 20px 60px rgba(0,0,0,.28);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{font-size:16px}a{color:inherit}button,.button-link{border:0;border-radius:9px;padding:.78rem 1.1rem;background:linear-gradient(135deg,var(--accent),#5286ff);color:#03111b;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button.secondary,.button-link.secondary{background:#20354d;color:var(--text);border:1px solid var(--line)}button.small{padding:.5rem .7rem;font-size:.85rem}input,select,textarea{width:100%;background:#091524;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:.78rem .85rem;font:inherit}label{display:grid;gap:.4rem;color:var(--muted);font-size:.9rem}.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;font-weight:800}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#041521;font-weight:950}.brand-large{display:flex;align-items:center;gap:1rem;font-weight:900;font-size:1.3rem}.brand-large .brand-mark{width:48px;height:48px;font-size:1.4rem}.public-body{background:radial-gradient(circle at 20% 20%,#113a52,transparent 36%),radial-gradient(circle at 80% 80%,#0e3d34,transparent 30%),#050b14}.landing{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:5vw;align-items:center;padding:7vw}.hero h1{font-size:clamp(3.2rem,7vw,7rem);line-height:.92;max-width:11ch;margin:.7rem 0 1.5rem;letter-spacing:-.06em}.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:var(--accent);font-size:.75rem;font-weight:900}.lead{font-size:clamp(1.1rem,1.8vw,1.5rem);line-height:1.6;color:#c0ccda;max-width:720px}.feature-row{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2rem}.feature-row span{border:1px solid rgba(255,255,255,.16);padding:.55rem .75rem;border-radius:999px;background:rgba(255,255,255,.05)}.login-panel,.auth-card{background:rgba(11,24,39,.88);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:2.2rem;box-shadow:var(--shadow);backdrop-filter:blur(20px)}.login-panel form,.auth-card form{display:grid;gap:1rem;margin:1.5rem 0}.subtle-link{color:var(--muted)}.auth-body{min-height:100vh;display:grid;place-items:center;padding:2rem;background:radial-gradient(circle at top,#12324a,#050b14 60%)}.auth-card{width:min(440px,100%)}.topbar{position:sticky;top:0;z-index:50;height:64px;background:#091422;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 1.25rem}.topbar-actions{display:flex;align-items:center;gap:1.2rem;color:var(--muted);font-size:.9rem}.admin-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 64px)}.sidebar{padding:1rem;background:#091422;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:.25rem}.sidebar a{text-decoration:none;color:#b9c6d5;padding:.72rem .85rem;border-radius:8px}.sidebar a:hover{background:#14263a;color:#fff}.admin-main{padding:2rem;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:1.6rem}.page-heading h1{font-size:2rem;margin:.2rem 0}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:1.25rem;margin-bottom:1.25rem;box-shadow:0 8px 30px rgba(0,0,0,.12)}.panel.narrow{max-width:800px}.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}.stat-grid article{background:linear-gradient(145deg,var(--panel),var(--panel2));border:1px solid var(--line);border-radius:14px;padding:1.4rem}.stat-grid strong{display:block;font-size:2.6rem}.stat-grid span{color:var(--muted)}.workflow{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.workflow span{padding:.7rem 1rem;border:1px solid var(--line);border-radius:8px;background:#0a1726}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:end}.inline-form{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap}.inline-form>*{width:auto;min-width:180px}.inline-form button{min-width:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.85rem;border-bottom:1px solid var(--line);white-space:nowrap}th{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.badge{display:inline-flex;padding:.25rem .55rem;border-radius:999px;background:#27384c}.badge.active{background:rgba(0,224,164,.14);color:#54f2c3}.alert{border-radius:10px;padding:1rem;margin-bottom:1rem}.alert.success{background:rgba(0,224,164,.12);border:1px solid rgba(0,224,164,.35)}.alert.error{background:rgba(255,95,109,.12);border:1px solid rgba(255,95,109,.35)}.secret-reveal{display:block;background:#02070c;border:1px dashed var(--accent);padding:1rem;margin-top:.8rem;overflow-wrap:anywhere;font-size:1rem}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.display-card,.content-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:1.2rem;display:flex;gap:1rem;text-decoration:none}.display-number{flex:0 0 54px;height:54px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#03131c;font-size:1.7rem;font-weight:950}.content-card{display:block}.slide-thumb{aspect-ratio:16/9;border-radius:8px;background:linear-gradient(135deg,#162b43,#0b1421);display:grid;place-items:center;color:var(--muted)}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}.asset-grid article{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:1rem;min-width:0}.asset-preview{aspect-ratio:16/9;background:#050b12;border-radius:8px;display:grid;place-items:center;overflow:hidden}.asset-preview img{width:100%;height:100%;object-fit:cover}.asset-grid code{display:block;white-space:normal;overflow-wrap:anywhere;color:var(--muted)}.help{color:var(--muted)}
.editor-shell{display:grid;grid-template-columns:150px minmax(0,1fr) 260px;gap:1rem;min-height:calc(100vh - 160px)}.editor-tools,.property-panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:1rem}.editor-tools{display:flex;flex-direction:column;gap:.45rem}.editor-tools button{background:#162a40;color:var(--text);padding:.6rem}.editor-workspace{min-width:0}.editor-toolbar{display:flex;gap:1rem;align-items:end;background:var(--panel);padding:.75rem;border:1px solid var(--line);border-radius:12px 12px 0 0}.editor-toolbar label:first-child{flex:1}.canvas-viewport{height:calc(100vh - 245px);overflow:auto;background:#03070c;padding:2rem;display:grid;place-items:start center}.canvas{position:relative;width:960px;height:540px;transform-origin:top center;background:#0b1220;box-shadow:0 20px 80px #000;overflow:hidden}.canvas.grid{background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:20px 20px}.editor-element{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;user-select:none;border:1px solid transparent}.editor-element.selected{outline:3px solid var(--accent);outline-offset:1px}.editor-element .resize-handle{position:absolute;right:-1px;bottom:-1px;width:16px;height:16px;background:var(--accent);cursor:nwse-resize}.property-panel input,.property-panel textarea{margin-bottom:.65rem}.property-panel textarea{min-height:100px}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,1fr)}.editor-shell{grid-template-columns:120px minmax(0,1fr)}.property-panel{grid-column:1/-1}.form-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.landing{grid-template-columns:1fr;padding:2rem}.hero h1{font-size:3.5rem}.admin-shell{grid-template-columns:1fr}.sidebar{flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.admin-main{padding:1rem}.topbar-actions span{display:none}.stat-grid,.form-grid{grid-template-columns:1fr}.editor-shell{display:block}.editor-tools{flex-direction:row;overflow:auto}.property-panel{margin-top:1rem}}
.editor-background-media,.editor-background-overlay{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}.editor-background-media{z-index:0;object-fit:cover}.editor-background-overlay{z-index:1}.editor-ticker-preview{white-space:nowrap;min-width:max-content}.property-panel select{width:100%;margin-bottom:.65rem;padding:.65rem;border-radius:8px;border:1px solid var(--line);background:#0b1623;color:var(--text)}.property-panel input[type="checkbox"]{width:auto;margin-right:.45rem}.property-panel output{display:inline-block;margin-left:.5rem}.muted{color:var(--muted);font-size:.9rem;line-height:1.4}

/* Neutral offentlig inloggningssida */
.signage-login-body{min-height:100vh;display:grid;place-items:center;padding:2rem;background:#0b1118;color:#edf2f7}
.signage-login-shell{width:min(440px,100%)}
.signage-login-card{background:#111922;border:1px solid #273240;border-radius:16px;padding:2rem;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.signage-login-identity{display:flex;align-items:center;gap:.9rem;margin-bottom:1.8rem}
.signage-login-symbol{display:grid;place-items:center;width:42px;height:42px;border:1px solid #3a4655;border-radius:10px;background:#18222e;color:#f7fafc;font-weight:800;font-size:1.1rem}
.signage-login-product{margin:0;font-size:1.05rem;font-weight:700;letter-spacing:.01em}
.signage-login-organisation{margin:.18rem 0 0;color:#8e9bab;font-size:.82rem}
.signage-login-card h1{margin:0 0 .45rem;font-size:1.55rem;letter-spacing:-.02em}
.signage-login-intro{margin:0;color:#9eabb9;line-height:1.55}
.signage-login-form{display:grid;gap:1rem;margin:1.65rem 0 1rem}
.signage-login-form label{color:#b8c2ce}
.signage-login-form input{background:#0b121a;border-color:#344150;border-radius:9px;padding:.82rem .9rem}
.signage-login-form input:focus{outline:2px solid #64748b;outline-offset:1px;border-color:#64748b}
.signage-login-submit{width:100%;margin-top:.15rem;background:#e8edf2;color:#111820;border-radius:9px;box-shadow:none}
.signage-login-submit:hover{background:#fff}
.signage-login-meta{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.15rem;padding-top:1.15rem;border-top:1px solid #273240;color:#7f8b98;font-size:.78rem}
.signage-login-meta a{color:#aeb9c5;text-decoration:none}
.signage-login-meta a:hover{text-decoration:underline}
.signage-login-status{display:inline-flex;align-items:center;gap:.45rem}
.signage-login-status::before{content:"";width:.45rem;height:.45rem;border-radius:50%;background:#5f9f78;box-shadow:0 0 0 3px rgba(95,159,120,.12)}
@media(max-width:520px){.signage-login-body{padding:1rem}.signage-login-card{padding:1.4rem}.signage-login-meta{align-items:flex-start;flex-direction:column}}


/* Signage editor v0.2.2 */
.editor-view-switch{display:inline-flex;gap:.35rem;padding:.25rem;border:1px solid #314158;border-radius:.7rem;background:#0b1624}
.editor-view-switch button{min-width:5.7rem}
.editor-view-switch button.active{background:#4ca6ff;color:#04111e;border-color:#4ca6ff}
.editor-live-open{display:inline-flex;align-items:center;gap:.45rem}
.editor-live-open select{min-width:18rem;max-width:28rem}
.editor-mode-pane[hidden]{display:none!important}
.editor-html-header{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;margin:1rem 0}
.editor-html-header h2{margin:.2rem 0 .35rem}
.editor-html-header p{max-width:60rem;margin:0;color:#9eacbd}
.editor-html-source{display:block;width:100%;min-height:65vh;padding:1rem 1.15rem;border:1px solid #304258;border-radius:.8rem;background:#06101b;color:#dce9f7;font:15px/1.55 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;tab-size:2;resize:vertical}
.editor-html-source:focus{outline:2px solid #4ca6ff;outline-offset:2px}
.editor-html-warning{margin:.8rem 0;color:#d8ad63;font-size:.85rem}
.editor-custom-html{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}
.editor-custom-html>*{pointer-events:none}
@media(max-width:1180px){.editor-live-open{width:100%}.editor-live-open select{flex:1;min-width:12rem}.editor-html-header{flex-direction:column}}

/* Signage editor v0.2.4 – displaycentrerat arbetsflöde */
.editor-shell-v024{grid-template-columns:150px minmax(0,1fr) 280px;align-items:start}
.editor-shell-v024 .editor-workspace{min-width:0}
.editor-display-context{margin-bottom:1rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,#101f31,#0d1928);box-shadow:0 10px 30px rgba(0,0,0,.16)}
.editor-display-context-main{display:flex;justify-content:space-between;align-items:center;gap:1.5rem}
.editor-context-kicker{display:block;margin-bottom:.25rem;color:var(--accent);font-size:.72rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.editor-display-context h2{margin:0;font-size:1.25rem}
.editor-display-context p{margin:.35rem 0 0;color:var(--muted)}
.editor-display-picker{min-width:min(420px,42vw);margin:0}
.editor-display-picker>span{display:block;margin-bottom:.35rem;color:#aebdd0;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.editor-display-picker select{margin:0;background:#091522;border-color:#3b536e;font-weight:700}
.editor-display-status-row{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.08)}
.editor-status-chip{display:inline-flex;align-items:center;min-height:30px;padding:.34rem .65rem;border:1px solid #34465c;border-radius:999px;background:#0b1624;color:#aebdd0;font-size:.78rem;font-weight:800}
.editor-status-chip.ok{border-color:rgba(0,224,164,.38);background:rgba(0,224,164,.11);color:#68efc6}
.editor-status-chip.warning{border-color:rgba(255,186,77,.42);background:rgba(255,186,77,.11);color:#ffd08a}
.editor-status-chip.live{border-color:rgba(76,166,255,.5);background:rgba(76,166,255,.14);color:#8ec8ff}
.editor-display-actions{display:flex;align-items:center;gap:.55rem;margin-left:auto}
.editor-publish-button{background:linear-gradient(135deg,#5fd2ff,#5d8dff);color:#03101d;font-weight:900;box-shadow:0 8px 22px rgba(76,166,255,.22)}
.editor-publish-button:hover{filter:brightness(1.08)}
.editor-toolbar-v024{position:relative;display:grid;grid-template-columns:minmax(170px,1fr) auto minmax(150px,220px) auto minmax(120px,150px) auto auto;gap:.75rem;align-items:end;border-radius:12px 12px 0 0}
.editor-page-name-field{min-width:0}
.editor-page-name-field input{margin:0}
.editor-zoom-field,.editor-grid-size-field{margin:0}
.editor-inline-control{display:flex;align-items:center;gap:.55rem}
.editor-inline-control input[type="range"]{min-width:110px;margin:0}
.editor-inline-control input[type="number"]{width:72px;margin:0}
.editor-snap-toggle{display:flex;align-items:center;gap:.45rem;min-height:42px;margin:0;padding:.65rem .75rem;border:1px solid var(--line);border-radius:8px;background:#0b1623;white-space:nowrap}
.editor-snap-toggle input{width:auto;margin:0}
.editor-grid-size-field select{margin:0}
.editor-save-status{grid-column:1/-1;min-height:1.2rem;color:var(--muted);font-size:.82rem}
.editor-save-status.ok{color:#68efc6}
.editor-save-status.error{color:#ff8993}
.editor-save-status.dirty{color:#ffd08a}
.editor-shell-v024 .canvas-viewport{height:calc(100vh - 390px);min-height:470px;padding:2rem;background:#02060b}
.editor-shell-v024 .canvas{--editor-grid-size:7.5px;background-color:#0b1220}
.editor-shell-v024 .canvas.grid{background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-size:var(--editor-grid-size) var(--editor-grid-size)}
.editor-element.locked{cursor:not-allowed}
.editor-lock-indicator{position:absolute;right:4px;top:4px;padding:2px 5px;border-radius:4px;background:rgba(0,0,0,.74);color:#ffd08a;font-size:9px;font-weight:900;letter-spacing:.06em}
.editor-slide-navigator{display:grid;grid-template-columns:auto minmax(180px,1fr) auto auto;align-items:center;gap:1rem;padding:.85rem 1rem;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;background:#0d1928}
.editor-slide-nav-buttons{display:flex;gap:.4rem}
.editor-nav-icon{min-width:46px;padding:.62rem .7rem;font-size:1.05rem}
.editor-slide-position{text-align:center;min-width:0}
.editor-slide-position strong{display:block;font-size:1rem;color:#fff}
.editor-slide-position span{display:block;margin-top:.2rem;color:var(--muted);font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.editor-slide-duration{display:flex;align-items:end;gap:.45rem;padding-left:1rem;border-left:1px solid var(--line)}
.editor-slide-duration label{margin:0;color:#aebdd0;font-size:.78rem}
.editor-slide-duration .editor-inline-control{margin-top:.25rem}
.property-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
.property-grid-two label{min-width:0}
.property-checkbox{display:flex;align-items:center;gap:.45rem;margin:.35rem 0 .8rem;color:#c7d3df}
.property-checkbox input{width:auto!important;margin:0!important}
.property-align-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem;margin:.15rem 0 .85rem}
.property-align-grid button{min-width:0;padding:.48rem .35rem;font-size:.72rem}
.property-action-stack{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin-top:.75rem}
.property-action-stack button{min-width:0}
button.danger{border-color:rgba(255,95,109,.45);color:#ff9aa3}
@media(max-width:1500px){.editor-toolbar-v024{grid-template-columns:minmax(180px,1fr) auto minmax(150px,220px) auto minmax(120px,150px);}.editor-toolbar-v024 #previewBtn,.editor-toolbar-v024 #saveBtn{min-width:150px}.editor-display-actions{width:100%;margin-left:0}}
@media(max-width:1220px){.editor-shell-v024{grid-template-columns:130px minmax(0,1fr)}.editor-shell-v024 .property-panel{grid-column:1/-1}.editor-toolbar-v024{grid-template-columns:1fr 1fr 1fr}.editor-display-context-main{align-items:stretch;flex-direction:column}.editor-display-picker{min-width:0;width:100%}.editor-slide-navigator{grid-template-columns:auto 1fr auto}.editor-slide-duration{grid-column:1/-1;justify-content:center;padding: .75rem 0 0;border-left:0;border-top:1px solid var(--line)}}
@media(max-width:780px){.editor-toolbar-v024{grid-template-columns:1fr}.editor-display-actions{align-items:stretch;flex-direction:column}.editor-display-actions button{width:100%}.editor-slide-navigator{grid-template-columns:1fr}.editor-slide-nav-buttons{justify-content:center}.editor-slide-duration{justify-content:center}.editor-shell-v024 .canvas-viewport{height:60vh;min-height:380px}}
.editor-grid-overlay{position:absolute;inset:0;z-index:2;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-repeat:repeat}

/* Signage admin UX v0.2.5 – tydligare samband, länkar och vägledning */
.page-description{max-width:880px;margin:.5rem 0 0;color:var(--muted);font-size:1rem;line-height:1.6}
.sidebar-section-label{margin:1rem .85rem .25rem;color:#70839a;font-size:.66rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.sidebar-section-label:first-child{margin-top:.2rem}
.sidebar a.active{background:linear-gradient(135deg,rgba(39,194,255,.18),rgba(82,134,255,.12));color:#fff;border:1px solid rgba(76,166,255,.28)}
.section-kicker{display:block;margin-bottom:.35rem;color:var(--accent);font-size:.7rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.section-description{max-width:820px;margin:.35rem 0 0;color:var(--muted);line-height:1.6}
.section-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1.1rem}
.section-heading-row h2{margin:.1rem 0 .25rem}
.standalone-heading{margin:2rem 0 1rem}
.stat-grid-links .stat-card{display:block;padding:1.4rem;background:linear-gradient(145deg,var(--panel),var(--panel2));border:1px solid var(--line);border-radius:14px;text-decoration:none;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.stat-grid-links .stat-card:hover{transform:translateY(-2px);border-color:#3f6386;box-shadow:0 14px 36px rgba(0,0,0,.22)}
.stat-grid-links .stat-card strong{display:block;font-size:2.6rem}
.stat-grid-links .stat-card span{display:block;color:#fff;font-weight:800}
.stat-grid-links .stat-card small{display:block;margin-top:.45rem;color:var(--muted);line-height:1.45}
.admin-guide-panel{padding:1.5rem}
.workflow-linked{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);gap:.75rem}
.workflow-linked>a{display:block;min-width:0;padding:1rem;border:1px solid var(--line);border-radius:12px;background:#0a1726;text-decoration:none;transition:border-color .16s ease,transform .16s ease}
.workflow-linked>a:hover{transform:translateY(-2px);border-color:#3f6386}
.workflow-linked>a strong{display:grid;place-items:center;width:28px;height:28px;margin-bottom:.7rem;border-radius:50%;background:rgba(39,194,255,.16);color:var(--accent)}
.workflow-linked>a span{display:block;color:#fff;font-weight:900}
.workflow-linked>a small{display:block;margin-top:.4rem;color:var(--muted);line-height:1.45}
.workflow-linked>b{align-self:center;color:#5e738b}
.admin-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}
.admin-info-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.info-card{min-width:0;padding:1.25rem;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#0f1d2e,#102238)}
.info-card h2{margin:.15rem 0 .55rem;font-size:1.12rem}
.info-card p{margin:0;color:var(--muted);line-height:1.6}
.info-card>a,.info-card .inline-link-row{display:flex;margin-top:.9rem;color:#8ec8ff;font-weight:800;text-decoration:none}
.inline-link-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.inline-link-row a,.text-link{color:#8ec8ff;text-decoration:none;font-weight:800}
.inline-link-row a:hover,.text-link:hover{text-decoration:underline}
.admin-two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.stacked-form{display:grid;gap:1rem}
.stacked-form small,label small{color:#7f92a9;line-height:1.45}
.input-with-suffix{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--line);border-radius:8px;background:#091524;overflow:hidden}
.input-with-suffix input{border:0;border-radius:0}
.input-with-suffix>span{padding:0 .85rem;color:var(--muted)}
.wide-inline-form input[type="text"],.wide-inline-form input:not([type]){min-width:min(520px,70vw)}
.table-primary-link{color:#fff;font-weight:900;text-decoration:none}
.table-primary-link:hover{color:#8ec8ff;text-decoration:underline}
.table-actions,.card-action-row{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.table-actions form{margin:0}
.status-value{font-weight:800;color:#dce7f3}
.role-badge{display:inline-flex;padding:.3rem .6rem;border:1px solid #38506b;border-radius:999px;background:#12263b;color:#cce2f7;font-weight:800}
.badge.inactive,.badge.blocked,.badge.archived{background:rgba(255,95,109,.12);color:#ff9aa3}
.filter-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:.8rem 1rem;border:1px solid rgba(39,194,255,.3);border-radius:10px;background:rgba(39,194,255,.08);color:#d9efff}
.filter-banner a{color:#8ec8ff;font-weight:800;text-decoration:none}
.empty-state{padding:2rem;border:1px dashed #3a4d64;border-radius:14px;background:rgba(10,23,38,.58);text-align:center}
.empty-state.compact{padding:1.2rem;text-align:left}
.empty-state h2,.empty-state h3{margin-top:0}
.empty-state p{color:var(--muted);line-height:1.6}
.display-management-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem}
.display-management-card{padding:1.3rem;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--panel),#10243a);box-shadow:0 10px 32px rgba(0,0,0,.15)}
.display-management-card.highlighted,.highlight-row{background:rgba(39,194,255,.08);box-shadow:inset 4px 0 0 var(--accent)}
.display-card-heading{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.15rem}
.display-card-heading h2{margin:.15rem 0 .25rem;font-size:1.2rem}
.display-card-heading p{margin:0;color:var(--muted)}
.display-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}
.display-status-grid>div{min-width:0;padding:.75rem;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:#0a1726}
.display-status-grid span{display:block;color:#7f92a9;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.display-status-grid strong,.display-status-grid a{display:block;margin-top:.25rem;color:#eef6ff;font-weight:900;text-decoration:none;overflow-wrap:anywhere}
.display-status-grid a:hover{color:#8ec8ff;text-decoration:underline}
.display-playlist-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.75rem;margin-bottom:1rem}
.display-playlist-form label{margin:0}
.display-playlist-form select{margin:0}
.context-nav{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;margin:-.5rem 0 1rem}
.context-nav a{padding:.45rem .7rem;border:1px solid var(--line);border-radius:999px;background:#0d1928;color:#bcd0e4;text-decoration:none;font-size:.84rem;font-weight:800}
.context-nav a:hover{border-color:#3f6386;color:#fff}
.playlist-hero{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin-bottom:1.25rem;padding:1.4rem;border:1px solid var(--line);border-radius:15px;background:linear-gradient(135deg,#11263b,#0c1928)}
.playlist-hero h2{margin:.15rem 0 .4rem;font-size:1.55rem}
.playlist-hero p{margin:0;color:var(--muted)}
.compact-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem}
.compact-link-card{padding:1rem;border:1px solid var(--line);border-radius:12px;background:#0b1725}
.compact-link-card h3{margin:.15rem 0 .3rem}
.compact-link-card p{margin:0 0 .8rem;color:var(--muted)}
.compact-card-status{margin-bottom:.8rem}
.position-badge{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#193450;color:#8ec8ff;font-weight:900}
.create-content-panel{padding:1.4rem}
.content-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}
.content-library-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.content-card-main{display:block;padding:1rem;text-decoration:none}
.content-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-top:.9rem}
.content-card-title-row h2{margin:0;font-size:1.15rem}
.content-card-main p{margin:.5rem 0;color:var(--muted)}
.content-card-main small{color:#74869c}
.content-card-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:58px;padding:.75rem 1rem;border-top:1px solid var(--line);background:#0b1725}
.asset-grid-v025 article{display:flex;flex-direction:column}
.asset-meta{color:var(--muted)}
.asset-url{margin:.4rem 0 .85rem;padding:.65rem;border:1px solid #2b4058;border-radius:7px;background:#07111c}
.video-placeholder{display:grid;place-items:center;gap:.25rem;color:#8ec8ff}
.video-placeholder span{color:var(--muted);font-size:.78rem}
.copy-success{border-color:rgba(0,224,164,.55)!important;color:#68efc6!important}
.copy-error{border-color:rgba(255,95,109,.55)!important;color:#ff9aa3!important}
.publish-panel{background:linear-gradient(145deg,#10233a,#0f1d2e)}
.publish-form label{min-width:min(640px,65vw)}
.audit-action{color:#9fd4ff}
.feature-status-banner{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-bottom:1.25rem;padding:1.4rem;border:1px solid var(--line);border-radius:15px;background:#0f1d2e}
.feature-status-banner.warning{border-color:rgba(247,185,85,.38);background:rgba(247,185,85,.08)}
.feature-status-banner h2{margin:.15rem 0 .4rem}
.feature-status-banner p{max-width:880px;margin:0;color:var(--muted);line-height:1.6}
.status-pill{display:inline-flex;padding:.45rem .75rem;border-radius:999px;font-weight:900;white-space:nowrap}
.status-pill.warning{background:rgba(247,185,85,.16);color:#ffd08a}
.check-list{display:grid;gap:.65rem;padding-left:1.2rem;color:#c9d7e5}
.editor-status-chip{text-decoration:none}
.editor-status-chip[aria-disabled="true"]{pointer-events:none}
.editor-context-link{margin-right:auto;color:#8ec8ff;font-size:.8rem;font-weight:800;text-decoration:none}
.editor-context-link:hover{text-decoration:underline}
@media(max-width:1450px){.workflow-linked{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-linked>b{display:none}.admin-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.display-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.admin-two-column,.admin-info-grid,.admin-info-grid-two{grid-template-columns:1fr}.section-heading-row,.playlist-hero,.feature-status-banner{align-items:stretch;flex-direction:column}.display-management-grid{grid-template-columns:1fr}.display-playlist-form{grid-template-columns:1fr}.workflow-linked{grid-template-columns:1fr}.publish-form label{min-width:100%}}
@media(max-width:680px){.display-management-grid{display:block}.display-management-card{margin-bottom:1rem}.display-status-grid{grid-template-columns:1fr}.content-card-actions{align-items:flex-start;flex-direction:column}.filter-banner{align-items:flex-start;flex-direction:column}.wide-inline-form input[type="text"],.wide-inline-form input:not([type]){min-width:100%}}

/* ======================================================================
   Garpenholm Signage Studio 2026 – v0.4.0
   Sammanhållen administration, displaycentrerad editor och tydligare flöde.
   ====================================================================== */

:root {
  --bg: #06101c;
  --bg-deep: #030912;
  --panel: #0d1b2b;
  --panel2: #12253a;
  --panel3: #172e46;
  --line: #29425f;
  --line-soft: rgba(132, 174, 214, 0.16);
  --text: #f4f8fc;
  --muted: #9eb1c6;
  --muted-strong: #c4d2e1;
  --accent: #25c7ff;
  --accent2: #00dfa6;
  --accent-soft: rgba(37, 199, 255, 0.12);
  --success: #44e5b3;
  --danger: #ff6878;
  --warning: #ffc166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 15px;
  --sidebar-width: 292px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 199, 255, 0.055), transparent 30%),
    radial-gradient(circle at 18% 88%, rgba(0, 223, 166, 0.035), transparent 25%),
    var(--bg);
}

button:disabled,
.button-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  filter: saturate(0.45);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 199, 255, 0.45);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 70px;
  height: auto;
  padding: 0.65rem 1.1rem;
  background: rgba(5, 15, 27, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-actions,
.topbar-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-left {
  min-width: 280px;
}

.topbar-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.3rem;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.95rem;
}

.brand-copy small {
  margin-top: 0.28rem;
  color: #6f879f;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-badge,
.tenant-chip,
.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.62rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.release-badge {
  border-color: rgba(37, 199, 255, 0.25);
  background: rgba(37, 199, 255, 0.08);
  color: #8cddff;
}

.topbar-quick-actions {
  flex: 1;
  justify-content: center;
}

.topbar-quick-actions a {
  padding: 0.48rem 0.68rem;
  border-radius: 8px;
  color: #b8cbe0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.topbar-quick-actions a:hover {
  background: rgba(37, 199, 255, 0.08);
  color: #fff;
}

.topbar-actions > a {
  color: #9fdcff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-shell {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.sidebar {
  position: sticky;
  top: 70px;
  align-self: start;
  height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 1rem 0.85rem 1.4rem;
  background: linear-gradient(180deg, #081421, #06111d);
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.sidebar-intro {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(37, 199, 255, 0.07), rgba(0, 223, 166, 0.035));
}

.sidebar-intro-kicker,
.sidebar-section-label {
  color: #6f879f;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-intro strong {
  font-size: 0.92rem;
}

.sidebar-intro small,
.sidebar-footer-note small {
  color: var(--muted);
  line-height: 1.45;
}

.sidebar-section-label {
  display: block;
  margin: 1.05rem 0 0.42rem;
  padding: 0 0.65rem;
}

.sidebar-link {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 54px;
  margin-bottom: 0.18rem;
  padding: 0.6rem 0.7rem !important;
  border: 1px solid transparent;
  border-radius: 11px !important;
}

.sidebar-link:hover {
  border-color: var(--line-soft);
  background: #11243a !important;
}

.sidebar-link.active {
  border-color: rgba(37, 199, 255, 0.34);
  background: linear-gradient(135deg, rgba(37, 199, 255, 0.14), rgba(0, 223, 166, 0.07)) !important;
  box-shadow: inset 3px 0 0 var(--accent);
  color: #fff !important;
}

.sidebar-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #93dfff;
  font-size: 0.92rem;
  font-weight: 950;
}

.sidebar-link > span:last-child {
  min-width: 0;
}

.sidebar-link strong,
.sidebar-link small {
  display: block;
}

.sidebar-link strong {
  color: inherit;
  font-size: 0.86rem;
}

.sidebar-link small {
  margin-top: 0.14rem;
  overflow: hidden;
  color: #738aa1;
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.2rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 193, 102, 0.2);
  border-radius: 11px;
  background: rgba(255, 193, 102, 0.055);
}

.sidebar-footer-note strong {
  color: #ffd18a;
  font-size: 0.78rem;
}

.admin-main {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  padding: 1.35rem clamp(1rem, 2.4vw, 2.6rem) 2rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: #738ba4;
  font-size: 0.77rem;
  font-weight: 750;
}

.breadcrumbs a {
  color: #8fdcff;
  text-decoration: none;
}

.page-heading {
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.15rem;
}

.page-heading h1 {
  margin: 0.1rem 0 0.4rem;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  letter-spacing: -0.035em;
}

.page-description {
  max-width: 950px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.page-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.workflow-rail {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(8, 20, 33, 0.7);
}

.workflow-rail a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: max-content;
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #8ea3ba;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 850;
}

.workflow-rail a:hover,
.workflow-rail a.active {
  border-color: rgba(37, 199, 255, 0.28);
  background: rgba(37, 199, 255, 0.09);
  color: #fff;
}

.workflow-rail a b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #17314b;
  color: #8fdcff;
  font-size: 0.72rem;
}

.workflow-rail a.active b {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #03131d;
}

.workflow-rail i {
  color: #4f6780;
  font-style: normal;
}

.panel,
.info-card,
.display-management-card,
.content-library-card,
.asset-grid article {
  border-color: var(--line-soft);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.14);
}

.panel {
  padding: clamp(1rem, 1.8vw, 1.45rem);
  border-radius: var(--radius);
}

.section-kicker,
.editor-context-kicker {
  color: #55d5ff;
  font-size: 0.69rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-description,
.help,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.1rem 0.2rem 0;
  border-top: 1px solid var(--line-soft);
  color: #70869c;
  font-size: 0.75rem;
}

.admin-footer > div {
  display: grid;
  gap: 0.15rem;
}

.admin-footer strong {
  color: #a9bdd1;
}

.admin-footer nav {
  display: flex;
  gap: 1rem;
}

.admin-footer a {
  color: #8fdcff;
  text-decoration: none;
  font-weight: 800;
}

/* Driftstatus */
.runtime-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
}

.runtime-health-card {
  padding: 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: linear-gradient(145deg, #0d1d2e, #10263b);
}

.runtime-health-card.live {
  box-shadow: inset 4px 0 0 var(--success), 0 16px 42px rgba(0, 0, 0, 0.16);
}

.runtime-health-card.waiting {
  box-shadow: inset 4px 0 0 var(--warning), 0 16px 42px rgba(0, 0, 0, 0.16);
}

.runtime-health-card.offline {
  box-shadow: inset 4px 0 0 var(--danger), 0 16px 42px rgba(0, 0, 0, 0.16);
}

.runtime-health-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.runtime-health-heading h2 {
  margin: 0.18rem 0 0.25rem;
  font-size: 1.15rem;
}

.runtime-health-heading p {
  margin: 0;
  color: var(--muted);
}

.health-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.73rem;
  font-weight: 900;
  white-space: nowrap;
}

.health-state::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  content: "";
}

.health-state.live { color: var(--success); }
.health-state.waiting { color: var(--warning); }
.health-state.offline { color: var(--danger); }

.health-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.health-metrics > div {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(3, 10, 18, 0.45);
}

.health-metrics span,
.health-metrics strong {
  display: block;
}

.health-metrics span {
  color: #71889f;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.health-metrics strong {
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
  color: #edf6ff;
  font-size: 0.9rem;
}

/* Hjälp */
.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.help-topic-card {
  padding: 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(145deg, #0d1b2b, #102238);
}

.help-topic-card h2,
.help-topic-card h3 {
  margin: 0.2rem 0 0.55rem;
}

.help-topic-card p,
.help-topic-card li {
  color: var(--muted);
  line-height: 1.55;
}

.glossary-list {
  display: grid;
  gap: 0.65rem;
}

.glossary-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(4, 12, 21, 0.4);
}

.glossary-list dt {
  color: #a9e5ff;
  font-weight: 900;
}

.glossary-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Editor 0.4.0 */
.page-editor-cfm .admin-main {
  max-width: none;
  padding-right: 0.9rem;
  padding-left: 0.9rem;
}

.page-editor-cfm .page-heading {
  margin-bottom: 0.85rem;
}

.editor-shell-v030 {
  grid-template-columns: 176px minmax(660px, 1fr) 310px;
  gap: 0.85rem;
  min-height: calc(100vh - 230px);
}

.editor-tools,
.property-panel,
.editor-display-context,
.editor-toolbar-v030,
.editor-slide-navigator,
.editor-html-workspace {
  border-color: var(--line-soft);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.16);
}

.editor-tools,
.property-panel {
  position: sticky;
  top: 82px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.editor-panel-heading h2 {
  margin: 0.18rem 0 0.85rem;
}

.editor-tool-group {
  display: grid;
  gap: 0.38rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.editor-tool-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.editor-tool-group-label {
  color: #6f879f;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editor-tools button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.62rem;
  text-align: left;
}

.editor-tools button > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: rgba(37, 199, 255, 0.09);
  color: #8fdcff;
  font-size: 0.68rem;
  font-weight: 950;
}

.editor-display-context {
  margin-bottom: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(145deg, #102238, #0d1c2d);
}

.editor-display-context-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  align-items: end;
  gap: 1rem;
}

.editor-display-context h2 {
  margin: 0.15rem 0 0.28rem;
  font-size: 1.15rem;
}

.editor-display-context p {
  margin: 0;
  color: var(--muted);
}

.editor-display-picker span {
  color: #a9bad0;
  font-weight: 850;
}

.editor-display-status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.editor-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0.38rem 0.62rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #b7c8d9;
  font-size: 0.72rem;
  font-weight: 850;
}

.editor-status-chip.ok {
  border-color: rgba(68, 229, 179, 0.25);
  background: rgba(68, 229, 179, 0.08);
  color: #80f1ce;
}

.editor-status-chip.warning {
  border-color: rgba(255, 193, 102, 0.27);
  background: rgba(255, 193, 102, 0.08);
  color: #ffd18a;
}

.editor-status-chip.live {
  border-color: rgba(37, 199, 255, 0.35);
  background: rgba(37, 199, 255, 0.1);
  color: #8fdcff;
}

.editor-display-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.editor-publish-button {
  background: linear-gradient(135deg, #37d5ff, #6996ff);
}

.editor-toolbar-v030 {
  position: sticky;
  top: 76px;
  z-index: 30;
  flex-wrap: wrap;
  padding: 0.72rem;
  border-radius: 13px 13px 0 0;
  background: rgba(13, 27, 43, 0.96);
  backdrop-filter: blur(16px);
}

.editor-page-name-field {
  min-width: 220px;
  flex: 1 1 260px;
}

.editor-view-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.23rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #071320;
}

.editor-view-switch button {
  padding: 0.6rem 0.8rem;
}

.editor-view-switch button.active {
  background: linear-gradient(135deg, var(--accent), #6a8fff);
  color: #03111b;
}

.editor-zoom-field {
  min-width: 150px;
}

.editor-inline-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.editor-inline-control input[type="range"] {
  min-width: 95px;
  padding: 0;
}

.editor-inline-control output {
  min-width: 42px;
  color: #bcd0e4;
  font-size: 0.8rem;
  font-weight: 850;
}

.editor-snap-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #091524;
  white-space: nowrap;
}

.editor-snap-toggle input {
  width: auto;
}

.editor-grid-size-field {
  min-width: 125px;
}

.editor-help-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

.editor-save-status {
  flex: 1 1 100%;
  min-height: 1.1rem;
  color: #ff8a99;
  font-size: 0.77rem;
  font-weight: 800;
}

.editor-save-status.ok {
  color: #72eac4;
}

.canvas-viewport {
  position: relative;
  height: min(66vh, 760px);
  min-height: 460px;
  padding: 1.5rem;
  border-right: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.018) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.018) 75%),
    #02070c;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.canvas {
  flex: 0 0 auto;
  border: 1px solid #233c56;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.78);
}

.editor-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 185, 226, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 185, 226, 0.13) 1px, transparent 1px);
}

.editor-background-media,
.editor-background-overlay,
.editor-custom-html-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.editor-background-media,
.editor-custom-html-frame {
  z-index: 0;
}

.editor-background-overlay {
  z-index: 1;
}

.editor-element {
  border: 1px solid transparent;
  cursor: move;
}

.editor-element:hover {
  border-color: rgba(37, 199, 255, 0.42);
}

.editor-element.selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(3, 12, 20, 0.9), 0 0 28px rgba(37, 199, 255, 0.18);
}

.editor-element.locked {
  cursor: not-allowed;
}

.editor-lock-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 0.25rem 0.42rem;
  border-radius: 6px;
  background: rgba(3, 10, 17, 0.82);
  color: #ffd18a;
  font-size: 0.6rem;
  font-weight: 950;
}

.editor-canvas-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid var(--line-soft);
  background: #071321;
  color: #7890a8;
  font-size: 0.7rem;
  font-weight: 800;
}

.editor-canvas-status span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  color: #b8c9da;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-slide-navigator {
  border-radius: 0 0 13px 13px;
  background: linear-gradient(145deg, #0e1d2d, #0a1725);
}

.editor-slide-nav-buttons {
  display: flex;
  gap: 0.35rem;
}

.editor-nav-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1rem;
}

.editor-slide-position {
  min-width: 220px;
  flex: 1;
  text-align: center;
}

.editor-slide-position strong,
.editor-slide-position span {
  display: block;
}

.editor-slide-position span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.editor-slide-duration {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

.editor-slide-duration input {
  width: 78px;
}

.property-panel {
  padding: 1rem;
}

.property-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.property-align-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.35rem 0 0.8rem;
}

.property-action-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
}

button.danger,
.button-link.danger {
  border-color: rgba(255, 104, 120, 0.28) !important;
  background: rgba(255, 104, 120, 0.1) !important;
  color: #ff9da8 !important;
}

.editor-layer-section {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.editor-layer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.editor-layer-heading h3 {
  margin: 0.15rem 0 0;
}

.editor-layer-heading > span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(37, 199, 255, 0.1);
  color: #8fdcff;
  font-size: 0.75rem;
  font-weight: 900;
}

.editor-layer-list {
  display: grid;
  gap: 0.3rem;
}

.editor-layer-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.52rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #0c1a29;
  color: #b9cce0;
  text-align: left;
}

.editor-layer-row:hover,
.editor-layer-row.active {
  border-color: rgba(37, 199, 255, 0.3);
  background: rgba(37, 199, 255, 0.09);
  color: #fff;
}

.editor-layer-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #18304a;
  color: #8fdcff;
  font-size: 0.66rem;
  font-weight: 900;
}

.editor-layer-name {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-layer-lock {
  font-size: 0.7rem;
}

.editor-html-workspace {
  min-height: 680px;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 0 0 14px 14px;
  background: #07111d;
}

.editor-html-workspace.fullscreen {
  position: fixed;
  inset: 12px;
  z-index: 1000;
  min-height: 0;
  overflow: auto;
  border-radius: 16px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.88);
}

.editor-html-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.editor-html-header h2 {
  margin: 0.15rem 0 0.35rem;
}

.editor-html-header p {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.editor-html-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.editor-html-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 0.85rem;
  min-height: 560px;
}

.editor-code-panel,
.editor-html-preview-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #040b12;
}

.editor-code-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  background: #0d1c2b;
  color: #8298af;
  font-size: 0.72rem;
}

.editor-code-meta strong {
  color: #cfe1f2;
}

.editor-html-source {
  width: 100%;
  min-height: 520px;
  resize: none;
  border: 0;
  border-radius: 0;
  background: #02070d;
  color: #d8e9f8;
  font: 14px/1.55 "Cascadia Code", "Fira Code", Consolas, monospace;
  tab-size: 4;
  white-space: pre;
}

.editor-html-preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: auto;
  padding: 1rem;
  background: #010408;
}

.editor-html-preview-stage iframe {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  border: 1px solid #29425f;
  background: #0b1220;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.editor-html-notice {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(37, 199, 255, 0.2);
  border-radius: 10px;
  background: rgba(37, 199, 255, 0.06);
  color: #b8cce0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.editor-html-notice strong {
  color: #8fdcff;
}

.editor-help-dialog {
  width: min(900px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b1827;
  color: var(--text);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.8);
}

.editor-help-dialog::backdrop {
  background: rgba(0, 4, 9, 0.78);
  backdrop-filter: blur(5px);
}

.shortcut-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.shortcut-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
}

.shortcut-list dt {
  color: #8fdcff;
  font-weight: 900;
}

.shortcut-list dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1500px) {
  .editor-shell-v030 {
    grid-template-columns: 160px minmax(620px, 1fr) 280px;
  }

  .editor-display-context-main {
    grid-template-columns: 1fr;
  }

  .editor-display-picker {
    max-width: 620px;
  }
}

@media (max-width: 1220px) {
  :root { --sidebar-width: 255px; }

  .topbar-quick-actions {
    display: none;
  }

  .editor-shell-v030 {
    grid-template-columns: 145px minmax(560px, 1fr);
  }

  .property-panel {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
  }

  .editor-html-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .topbar-menu-button {
    display: grid;
    place-items: center;
  }

  .topbar-left {
    min-width: 0;
  }

  .release-badge,
  .tenant-chip,
  .user-chip {
    display: none;
  }

  .admin-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(340px, 88vw);
    height: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 25px 0 70px rgba(0, 0, 0, 0.55);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .admin-main {
    padding: 1rem;
  }

  .page-heading {
    flex-direction: column;
  }

  .page-heading-actions {
    justify-content: flex-start;
  }

  .editor-shell-v030 {
    display: block;
  }

  .editor-tools,
  .property-panel {
    position: static;
    max-height: none;
    margin-bottom: 0.85rem;
  }

  .editor-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-panel-heading {
    grid-column: 1 / -1;
  }

  .editor-tool-group {
    margin: 0;
    padding: 0.65rem;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
  }

  .editor-display-status-row,
  .editor-html-header {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-display-actions {
    margin-left: 0;
  }

  .canvas-viewport {
    min-height: 420px;
  }

  .editor-slide-navigator {
    flex-wrap: wrap;
  }

  .editor-slide-position {
    order: -1;
    flex-basis: 100%;
  }
}

@media (max-width: 680px) {
  .topbar-actions {
    gap: 0.45rem;
  }

  .brand-copy small {
    display: none;
  }

  .workflow-rail i {
    display: none;
  }

  .workflow-rail a span {
    display: none;
  }

  .workflow-rail {
    justify-content: space-between;
  }

  .editor-tools {
    grid-template-columns: 1fr;
  }

  .editor-toolbar-v030 {
    position: static;
  }

  .editor-display-actions,
  .editor-html-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .editor-display-actions button,
  .editor-html-actions button {
    width: 100%;
  }

  .health-metrics,
  .property-grid-two,
  .property-action-stack {
    grid-template-columns: 1fr;
  }

  .glossary-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .admin-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v0.4.0 stacking correction: HTML layer above media background, editor elements above both. */
.editor-background-media { z-index: 0; }
.editor-custom-html-frame { z-index: 1; }
.editor-background-overlay { z-index: 2; }
.editor-grid-overlay { z-index: 2; }

/* ======================================================================
   Garpenholm Signage v0.4.0 – Myndighets-/Office-tema
   Ljus, saklig och högkontrastmässig administration för räddningstjänst,
   offentlig verksamhet och andra organisationer med krav på tydlighet.
   ====================================================================== */

:root {
  --bg: #eef1f4;
  --bg-deep: #e3e8ed;
  --panel: #ffffff;
  --panel2: #f7f9fb;
  --panel3: #edf2f6;
  --line: #c8d1da;
  --line-soft: #dde3e9;
  --text: #202b35;
  --muted: #5d6b78;
  --muted-strong: #3f4d5a;
  --accent: #285f8f;
  --accent2: #3478ae;
  --accent-soft: #e7f0f7;
  --success: #287a4b;
  --danger: #b43a3a;
  --warning: #9a6414;
  --shadow: 0 8px 24px rgba(32, 48, 64, 0.10);
  --radius: 8px;
  --sidebar-width: 286px;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

html {
  background: var(--bg);
}

body,
body.admin-body,
body.auth-body {
  color: var(--text);
  background: var(--bg);
}

body.admin-body {
  background: linear-gradient(180deg, #f3f5f7 0, #e9edf1 100%);
}

a {
  color: #245b86;
}

.topbar {
  min-height: 68px;
  background: #18354f;
  border-bottom: 3px solid #2f6f9f;
  box-shadow: 0 2px 8px rgba(25, 45, 64, 0.20);
}

.topbar .brand,
.topbar .brand strong,
.topbar .brand small,
.topbar-actions,
.topbar-actions > a,
.topbar-quick-actions a {
  color: #ffffff;
}

.topbar .brand small {
  color: #c7d6e3;
}

.brand-mark {
  background: #ffffff;
  color: #18354f;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.release-badge {
  background: #dce8f1;
  color: #18354f;
  border: 1px solid #b9cbd9;
}

.topbar-quick-actions a {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
}

.topbar-quick-actions a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.52);
}

.topbar-actions > a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.tenant-chip,
.user-chip {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.user-chip {
  display: grid;
  gap: 1px;
}

.user-chip small {
  color: #c6d9e7;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-switcher {
  margin: 0;
}

.tenant-switcher label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #d8e4ed;
  font-size: 0.75rem;
  font-weight: 700;
}

.tenant-switcher select {
  min-width: 220px;
  margin: 0;
  padding: 0.48rem 2rem 0.48rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: #ffffff;
  color: #22313f;
  font-weight: 700;
}

.admin-shell {
  background: transparent;
}

.sidebar {
  background: #f8fafc;
  border-right: 1px solid #c8d1da;
  box-shadow: 2px 0 10px rgba(33, 49, 64, 0.05);
}

.sidebar-intro {
  background: #edf2f6;
  border: 1px solid #d4dce3;
  border-radius: 6px;
}

.sidebar-intro-kicker,
.sidebar-section-label {
  color: #5c6e7d;
}

.sidebar-intro strong {
  color: #22313e;
}

.sidebar-intro small,
.sidebar-footer-note small {
  color: #637483;
}

.sidebar-link {
  color: #314150;
  border: 1px solid transparent;
  border-radius: 5px;
}

.sidebar-link:hover {
  background: #eaf1f6;
  color: #173f60;
  border-color: #cedae4;
  transform: none;
}

.sidebar-link.active,
.sidebar a.active {
  background: #dbe9f4;
  color: #173f60;
  border: 1px solid #9fbed5;
  box-shadow: inset 4px 0 0 #2b6b9b;
}

.sidebar-link strong {
  color: inherit;
}

.sidebar-link small {
  color: #6b7986;
}

.sidebar-icon {
  background: #e9eef3;
  color: #315b7c;
  border: 1px solid #d4dce4;
  border-radius: 4px;
}

.sidebar-link.active .sidebar-icon,
.sidebar-link:hover .sidebar-icon {
  background: #ffffff;
  color: #20567f;
  border-color: #aac1d3;
}

.sidebar-link.platform-link {
  background: #f1f5f8;
}

.sidebar-link.platform-link.active {
  background: #d7e7f2;
}

.sidebar-footer-note {
  background: #eef2f5;
  border: 1px solid #d5dde4;
  border-radius: 6px;
}

.sidebar-footer-note strong {
  color: #29465d;
}

.admin-main {
  color: var(--text);
}

.breadcrumbs,
.breadcrumbs a,
.page-description,
.section-description,
.muted {
  color: var(--muted);
}

.page-heading h1,
.panel h1,
.panel h2,
.panel h3,
.info-card h2,
.stat-card strong,
.stat-card span {
  color: #23313d;
}

.eyebrow,
.section-kicker,
.editor-context-kicker {
  color: #2d6693;
}

.workflow-rail {
  background: #ffffff;
  border: 1px solid #ccd5dd;
  box-shadow: none;
}

.workflow-rail a {
  color: #556473;
}

.workflow-rail a.active {
  background: #e2edf5;
  color: #234f72;
}

.workflow-rail b {
  background: #e7edf2;
  color: #37546b;
}

.workflow-rail a.active b {
  background: #2d6792;
  color: #ffffff;
}

.panel,
.info-card,
.stat-card,
.display-management-card,
.content-library-card,
.compact-link-card,
.playlist-hero,
.feature-status-banner,
.editor-display-context,
.editor-toolbar-v030,
.editor-slide-navigator,
.editor-html-workspace {
  background: #ffffff;
  color: var(--text);
  border: 1px solid #cbd4dc;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel,
.info-card,
.stat-card,
.display-management-card,
.content-library-card,
.compact-link-card {
  background-image: none;
}

.stat-card:hover,
.content-library-card:hover,
.compact-link-card:hover {
  transform: translateY(-1px);
  border-color: #8eabc1;
  box-shadow: 0 10px 24px rgba(32, 48, 64, 0.13);
}

.stat-card small,
.info-card p,
.compact-link-card p,
.playlist-hero p,
.feature-status-banner p {
  color: #5d6c79;
}

.info-card > a,
.inline-link-row a,
.text-link,
.table-primary-link,
.editor-context-link {
  color: #255f8d;
}

.table-primary-link {
  color: #234e70;
}

.table-primary-link:hover,
.text-link:hover,
.info-card > a:hover {
  color: #173f60;
}

button,
.button-link {
  background: #2c6795;
  color: #ffffff;
  border: 1px solid #24577e;
  border-radius: 5px;
  box-shadow: none;
  font-weight: 700;
}

button:hover,
.button-link:hover {
  background: #245a84;
  color: #ffffff;
  border-color: #1d4e75;
  filter: none;
  transform: none;
}

button.secondary,
.button-link.secondary,
.secondary {
  background: #f3f6f8;
  color: #2f4b61;
  border-color: #b9c5cf;
}

button.secondary:hover,
.button-link.secondary:hover {
  background: #e4ebf0;
  color: #213d52;
  border-color: #97a9b8;
}

button.danger,
.button-link.danger,
.danger {
  background: #fff4f4;
  color: #9d2e2e;
  border-color: #d7a1a1;
}

button.danger:hover,
.button-link.danger:hover {
  background: #fbe2e2;
  color: #812323;
  border-color: #c17e7e;
}

input,
select,
textarea,
.property-panel select,
.editor-display-picker select,
.editor-snap-toggle,
.input-with-suffix {
  background: #ffffff;
  color: #24313c;
  border: 1px solid #aebbc6;
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(30, 45, 60, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: #8794a0;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.button-link:focus-visible {
  outline: 3px solid rgba(45, 103, 146, 0.22);
  outline-offset: 1px;
  border-color: #3979a8;
}

label,
.editor-display-picker > span,
.editor-slide-duration label {
  color: #374653;
}

.table-wrap {
  border: 1px solid #ccd5dd;
  border-radius: 6px;
  background: #ffffff;
}

table {
  color: #26333e;
}

thead th {
  background: #e9eef2;
  color: #354553;
  border-bottom: 1px solid #bcc8d1;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background: #f8fafb;
}

tbody tr:hover {
  background: #eef5fa;
}

td,
th {
  border-color: #dce2e7;
}

.table-subline {
  display: block;
  margin-top: 0.25rem;
  color: #667685;
  line-height: 1.35;
}

.badge,
.role-badge,
.editor-status-chip,
.context-nav a,
.status-pill,
.position-badge {
  border-radius: 4px;
  background: #edf2f6;
  color: #41515f;
  border: 1px solid #c8d3dc;
}

.badge.active,
.editor-status-chip.ok,
.status-pill.active {
  background: #e7f3eb;
  color: #236942;
  border-color: #a9cfb6;
}

.badge.inactive,
.badge.blocked,
.badge.archived,
.badge.suspended {
  background: #f8e9e9;
  color: #8d3434;
  border-color: #deb0b0;
}

.badge.neutral {
  background: #eef1f4;
  color: #566572;
}

.role-badge {
  background: #e7eef4;
  color: #2e536f;
  border-color: #b8cbd9;
}

.platform-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.62rem;
  border: 1px solid #8faec4;
  border-radius: 4px;
  background: #dcebf5;
  color: #1f567c;
  font-size: 0.78rem;
  font-weight: 800;
}

.alert {
  border-radius: 6px;
  box-shadow: none;
}

.alert.success {
  background: #e9f4ed;
  color: #245f3e;
  border: 1px solid #abd0b8;
}

.alert.error {
  background: #faeaea;
  color: #8d2e2e;
  border: 1px solid #dfb0b0;
}

.empty-state {
  background: #f7f9fb;
  border: 1px dashed #adb9c4;
  color: #42515e;
}

.filter-banner {
  background: #e8f1f7;
  border-color: #b6ccd9;
  color: #294f6b;
}

.authority-callout {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-left: 4px solid #587e9b;
  background: #f2f6f8;
  color: #3d4e5c;
}

.authority-callout strong {
  color: #294e68;
}

.authority-callout span {
  color: #61717e;
  line-height: 1.45;
}

.platform-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid #aebfcd;
  border-left: 6px solid #2d668e;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.platform-banner h2 {
  margin: 0.15rem 0 0.5rem;
  color: #233541;
}

.platform-banner p {
  max-width: 920px;
  margin: 0;
  color: #5b6b78;
  line-height: 1.6;
}

.compact-platform-banner {
  padding: 1.1rem 1.3rem;
}

.platform-security-badge {
  padding: 0.55rem 0.8rem;
  border: 1px solid #91adc2;
  border-radius: 4px;
  background: #e2edf5;
  color: #24587e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.platform-banner-badges {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.platform-permission-panel {
  border-top: 4px solid #2c6692;
}

.permission-state {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid #c6d0d8;
  border-radius: 6px;
  background: #f5f7f9;
}

.permission-state.granted {
  border-color: #a8c7b3;
  background: #ebf4ee;
}

.permission-state strong {
  color: #2c4659;
}

.permission-state span {
  color: #657582;
}

.settings-editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr) minmax(300px, 1.6fr);
  gap: 0.9rem;
  align-items: end;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  background: #f7f9fb;
}

.settings-value-field {
  grid-column: 3;
}

.settings-description-field {
  grid-column: 1 / 3;
}

.settings-submit-field {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
}

.parameter-examples {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  color: #5c6b77;
}

.parameter-examples code,
.table-code-value {
  padding: 0.2rem 0.42rem;
  border: 1px solid #ccd6de;
  border-radius: 4px;
  background: #f4f7f9;
  color: #34526a;
}

.table-code-value {
  display: block;
  max-width: 420px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.membership-editor,
.user-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.9rem;
  align-items: end;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  background: #f7f9fb;
}

.membership-editor {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.7fr) auto;
}

.user-create-submit {
  display: flex;
  align-items: end;
}

.compact-role-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.compact-role-form select {
  min-width: 155px;
  margin: 0;
}

.context-nav a {
  background: #ffffff;
  color: #315d7d;
  border-color: #c2ced8;
}

.context-nav a:hover {
  background: #eaf1f6;
  color: #1f4e70;
  border-color: #9fb6c7;
}

/* Editor: ljusa kontrollpaneler, mörk endast där presentationsytan kräver det. */
.editor-shell-v030 {
  color: #26333e;
}

.editor-tools,
.property-panel,
.editor-display-context,
.editor-toolbar-v030,
.editor-slide-navigator,
.editor-html-workspace {
  background: #ffffff;
  color: #26333e;
  border-color: #bcc8d2;
  box-shadow: 0 5px 18px rgba(32, 48, 64, 0.09);
}

.editor-tools,
.property-panel {
  background: #f7f9fb;
}

.editor-panel-heading,
.editor-layer-heading,
.editor-tool-group-label {
  color: #344654;
}

.editor-tool-group {
  border-color: #d8dfe5;
}

.editor-tools button {
  background: #e8eef3;
  color: #29445a;
  border-color: #c4d0d9;
}

.editor-tools button:hover {
  background: #d9e5ed;
  color: #1f4f72;
  border-color: #9fb7c8;
}

.editor-display-context {
  border-left: 5px solid #2d6793;
}

.editor-display-context h2,
.editor-slide-position strong,
.editor-html-header h2,
.editor-code-meta strong {
  color: #243540;
}

.editor-display-context p,
.editor-html-header p,
.editor-slide-position span,
.editor-code-meta,
.editor-save-status {
  color: #61717e;
}

.editor-display-status-row {
  border-top-color: #d6dde3;
}

.editor-status-chip {
  background: #eff3f6;
  color: #475764;
  border-color: #c5d0d8;
}

.editor-status-chip.ok {
  background: #e8f3ec;
  color: #246942;
  border-color: #a9cdb6;
}

.editor-status-chip.warning {
  background: #fff4df;
  color: #825913;
  border-color: #d8bd86;
}

.editor-status-chip.live {
  background: #e5eff7;
  color: #245c86;
  border-color: #aac3d6;
}

.editor-publish-button {
  background: #2d6896;
  color: #ffffff;
  border-color: #24577d;
  box-shadow: none;
}

.editor-view-switch {
  background: #edf1f4;
  border-color: #c4cfd7;
}

.editor-view-switch button {
  background: transparent;
  color: #42525f;
  border-color: transparent;
}

.editor-view-switch button.active {
  background: #2e6895;
  color: #ffffff;
  border-color: #265a80;
}

.editor-snap-toggle {
  background: #f4f7f9;
  color: #344754;
  border-color: #c4ced6;
}

.canvas-viewport {
  background: #cfd6dc;
  border-left: 1px solid #bac5ce;
  border-right: 1px solid #bac5ce;
}

.canvas {
  box-shadow: 0 10px 35px rgba(15, 25, 35, 0.36);
}

.editor-slide-navigator {
  border-top: 1px solid #c8d2da;
}

.editor-slide-duration {
  border-left-color: #ccd5dc;
}

.editor-layer-section {
  border-top-color: #d4dce2;
}

.editor-layer-row {
  background: #ffffff;
  color: #344552;
  border-color: #ccd5dc;
}

.editor-layer-row:hover,
.editor-layer-row.active {
  background: #e5eff6;
  border-color: #9fb9cb;
  color: #214f70;
}

.editor-layer-index {
  background: #e5ebf0;
  color: #3b5a70;
}

.editor-html-source {
  background: #f7f8fa;
  color: #1f2d38;
  border-color: #aebbc6;
  box-shadow: inset 0 1px 3px rgba(32, 48, 64, 0.07);
}

.editor-html-source:focus {
  outline-color: rgba(45, 103, 147, 0.28);
}

.editor-code-panel,
.editor-html-preview-panel {
  background: #ffffff;
  border-color: #c6d0d8;
}

.editor-html-preview-stage {
  background: #d5dbe0;
  border-color: #b4c0ca;
}

.editor-html-notice {
  background: #eaf1f6;
  color: #3a586f;
  border-color: #b8cad8;
}

.editor-help-dialog {
  background: #ffffff;
  color: #25323d;
  border-color: #aebcc7;
}

/* Auth och bootstrap */
.authority-auth-body,
.auth-body {
  background: linear-gradient(135deg, #e9edf1 0%, #f8fafb 55%, #e2e8ed 100%);
}

.authority-auth-card,
.auth-card {
  background: #ffffff;
  color: #26333d;
  border: 1px solid #bfcbd4;
  border-top: 5px solid #2d6792;
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(35, 52, 68, 0.16);
}

.auth-card .brand,
.auth-card h1,
.auth-card label {
  color: #26333d;
}

.auth-heading {
  margin: 1.3rem 0 1rem;
}

.auth-heading h1 {
  margin: 0.2rem 0 0.45rem;
}

.auth-heading p {
  margin: 0;
  color: #63717d;
  line-height: 1.55;
}

.admin-footer {
  color: #687783;
  border-top-color: #cbd4dc;
}

.admin-footer strong {
  color: #354957;
}

@media (max-width: 1180px) {
  .tenant-switcher label > span {
    display: none;
  }

  .tenant-switcher select {
    min-width: 170px;
  }

  .settings-editor-grid,
  .membership-editor,
  .user-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-value-field,
  .settings-description-field,
  .settings-submit-field {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .platform-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-editor-grid,
  .membership-editor,
  .user-create-grid {
    grid-template-columns: 1fr;
  }

  .tenant-switcher select {
    min-width: 130px;
  }

  .compact-role-form {
    align-items: stretch;
    flex-direction: column;
  }
}


/* ======================================================================
   Garpenholm Signage v0.4.1 – enhetlig ljus inloggning
   Den tidigare separata mörka startsidan ersätts visuellt av samma
   sakliga Office-/myndighetstema som administrationsgränssnittet.
   ====================================================================== */

.signage-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, #e7ebef 0%, #f8fafb 52%, #dfe6eb 100%);
  color: #26333d;
}

.signage-login-shell {
  width: min(480px, 100%);
}

.signage-login-card {
  padding: 2.25rem;
  border: 1px solid #bdc8d1;
  border-top: 5px solid #2d6792;
  border-radius: 8px;
  background: #ffffff;
  color: #26333d;
  box-shadow: 0 16px 45px rgba(35, 52, 68, 0.16);
}

.signage-login-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.signage-login-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #aac0d0;
  border-radius: 6px;
  background: #e7f0f7;
  color: #1d527a;
  font-size: 1.1rem;
  font-weight: 800;
}

.signage-login-product {
  margin: 0;
  color: #26333d;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.signage-login-organisation {
  margin: 0.18rem 0 0;
  color: #687783;
  font-size: 0.82rem;
}

.signage-login-card h1 {
  margin: 0 0 0.45rem;
  color: #233541;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.signage-login-intro {
  margin: 0;
  color: #63717d;
  line-height: 1.6;
}

.signage-login-form {
  display: grid;
  gap: 1rem;
  margin: 1.65rem 0 1rem;
}

.signage-login-form label {
  color: #354957;
  font-weight: 600;
}

.signage-login-form input {
  background: #ffffff;
  color: #202b35;
  border-color: #aebbc6;
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(32, 48, 64, 0.05);
}

.signage-login-form input:focus {
  outline: 3px solid rgba(45, 103, 146, 0.17);
  outline-offset: 1px;
  border-color: #2d6792;
}

.signage-login-submit {
  width: 100%;
  margin-top: 0.15rem;
  border: 1px solid #24577d;
  border-radius: 5px;
  background: #2d6896;
  color: #ffffff;
  box-shadow: none;
}

.signage-login-submit:hover {
  background: #245a84;
}

.signage-login-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid #d4dce2;
  color: #687783;
  font-size: 0.78rem;
}

.signage-login-meta a {
  color: #285f8f;
  text-decoration: none;
}

.signage-login-meta a:hover {
  text-decoration: underline;
}

.signage-login-status::before {
  background: #3e8a5d;
  box-shadow: 0 0 0 3px rgba(62, 138, 93, 0.13);
}

.auth-body,
.authority-auth-body {
  background: linear-gradient(135deg, #e7ebef 0%, #f8fafb 52%, #dfe6eb 100%);
}

.auth-card,
.authority-auth-card {
  width: min(480px, 100%);
  border-radius: 8px;
}

.auth-card input,
.authority-auth-card input,
.auth-card select,
.authority-auth-card select,
.auth-card textarea,
.authority-auth-card textarea {
  background: #ffffff;
  color: #202b35;
  border-color: #aebbc6;
  border-radius: 5px;
}

.auth-card input:focus,
.authority-auth-card input:focus {
  outline: 3px solid rgba(45, 103, 146, 0.17);
  outline-offset: 1px;
  border-color: #2d6792;
}

.auth-card button,
.authority-auth-card button {
  border: 1px solid #24577d;
  border-radius: 5px;
  background: #2d6896;
  color: #ffffff;
  box-shadow: none;
}

.auth-card button:hover,
.authority-auth-card button:hover {
  background: #245a84;
}

.auth-card .brand-copy {
  display: grid;
  gap: 0.12rem;
}

.auth-card .brand-copy small {
  color: #687783;
  font-weight: 500;
}

.auth-support-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #d4dce2;
  color: #687783;
  font-size: 0.82rem;
}

.auth-support-row a {
  color: #285f8f;
  text-decoration: none;
}

.auth-support-row a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .signage-login-body,
  .auth-body,
  .authority-auth-body {
    padding: 1rem;
  }

  .signage-login-card,
  .auth-card,
  .authority-auth-card {
    padding: 1.4rem;
  }

  .signage-login-meta,
  .auth-support-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ========================================================================== */
/* Garpenholm InfoChannel Studio 0.5.0                                       */
/* Neutral, Office-inspirerad WYSIWYG-arbetsyta ovanpå befintlig Signage-kärna */
/* ========================================================================== */

.page-editor-cfm .breadcrumbs,
.page-editor-cfm > .page-heading,
.page-editor-cfm .admin-main > .page-heading,
.page-editor-cfm .admin-footer {
  display: none;
}

.page-editor-cfm .admin-main {
  min-width: 0;
  padding: 0.75rem;
  background: #dfe3e7;
}

.infochannel-studio {
  --studio-bg: #dfe3e7;
  --studio-panel: #f6f7f8;
  --studio-panel-strong: #ffffff;
  --studio-line: #b8c0c7;
  --studio-line-soft: #d3d9de;
  --studio-text: #26323b;
  --studio-muted: #65727d;
  --studio-blue: #2e648d;
  --studio-blue-dark: #234f71;
  --studio-blue-soft: #e5eef5;
  --studio-green: #357153;
  --studio-amber: #8a641d;
  --studio-shadow: 0 6px 20px rgba(36, 48, 60, 0.12);

  display: grid;
  grid-template-columns: 252px minmax(560px, 1fr) 312px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  min-height: calc(100vh - 88px);
  color: var(--studio-text);
}

.infochannel-studio button,
.infochannel-studio .button-link {
  border: 1px solid #aeb8c0;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #e9edf0);
  color: #304554;
  box-shadow: 0 1px 1px rgba(25, 38, 50, 0.08);
  font-weight: 700;
}

.infochannel-studio button:hover,
.infochannel-studio .button-link:hover {
  border-color: #8da3b3;
  background: linear-gradient(#ffffff, #dfe8ee);
  color: #1f4f70;
}

.infochannel-studio button:disabled,
.infochannel-studio .button-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

.infochannel-studio input,
.infochannel-studio select,
.infochannel-studio textarea {
  border: 1px solid #aeb8c0;
  border-radius: 3px;
  background: #ffffff;
  color: #25323c;
  box-shadow: inset 0 1px 2px rgba(31, 44, 56, 0.06);
}

.infochannel-studio input:focus,
.infochannel-studio select:focus,
.infochannel-studio textarea:focus {
  border-color: #5d88a8;
  outline: 2px solid rgba(46, 100, 141, 0.18);
  outline-offset: 0;
}

.studio-command-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  gap: 0.8rem 1.2rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--studio-line);
  border-top: 4px solid var(--studio-blue);
  border-radius: 5px;
  background: var(--studio-panel-strong);
  box-shadow: var(--studio-shadow);
}

.studio-brand-block {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 240px;
}

.studio-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #1f4f70;
  border-radius: 5px;
  background: #2e648d;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.studio-brand-block h1,
.studio-panel-heading h2,
.studio-dialog-heading h2 {
  margin: 0;
  color: #25343f;
}

.studio-brand-block h1 {
  font-size: 1.25rem;
  line-height: 1.05;
}

.studio-brand-block p {
  margin: 0.18rem 0 0;
  color: var(--studio-muted);
  font-size: 0.69rem;
}

.studio-eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  color: #5f6f7a;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.studio-target-block {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 1.22fr);
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
}

.studio-display-picker {
  gap: 0.22rem;
}

.studio-display-picker > span,
.studio-page-name-field > span,
.editor-grid-size-field > span,
.editor-zoom-field > span,
.studio-duration-field > span {
  color: #576874;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.studio-display-picker select {
  min-height: 38px;
  padding: 0.45rem 0.55rem;
}

.studio-target-copy {
  min-width: 0;
}

.studio-target-copy strong,
.studio-target-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-target-copy strong {
  color: #263945;
  font-size: 0.84rem;
}

.studio-target-copy span {
  margin-top: 0.18rem;
  color: #6a7781;
  font-size: 0.72rem;
}

.studio-command-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.infochannel-studio .studio-primary-action,
.infochannel-studio .studio-play-button {
  border-color: #245574;
  background: #2e648d;
  color: #ffffff;
  box-shadow: none;
}

.infochannel-studio .studio-primary-action:hover,
.infochannel-studio .studio-play-button:hover {
  border-color: #183e59;
  background: #265878;
  color: #ffffff;
}

.studio-status-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--studio-line-soft);
  flex-wrap: wrap;
}

.infochannel-studio .editor-status-chip {
  min-height: 26px;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #eef1f3;
  color: #53616c;
  font-size: 0.66rem;
  box-shadow: none;
}

.infochannel-studio .editor-status-chip.ok {
  border-color: #a8c4b3;
  background: #e8f1eb;
  color: #2e6849;
}

.infochannel-studio .editor-status-chip.warning {
  border-color: #d2be90;
  background: #fff5df;
  color: #7b5b1d;
}

.infochannel-studio .editor-status-chip.live {
  border-color: #a6bfd1;
  background: #e6eff6;
  color: #275e85;
}

.studio-context-link {
  margin-left: auto;
  color: #2c638b;
  font-size: 0.7rem;
  font-weight: 700;
}

.studio-script-panel,
.studio-editor-panel,
.studio-inspector-panel,
.studio-control-deck {
  min-width: 0;
  border: 1px solid var(--studio-line);
  border-radius: 5px;
  background: var(--studio-panel);
  box-shadow: var(--studio-shadow);
}

.studio-script-panel,
.studio-inspector-panel {
  align-self: stretch;
  overflow: hidden;
}

.studio-script-panel {
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  grid-column: 1;
  grid-row: 2;
  padding: 0.72rem;
}

.studio-inspector-panel {
  grid-column: 3;
  grid-row: 2;
  max-height: calc(100vh - 205px);
  overflow: auto;
  padding: 0.72rem;
  background: #f4f6f7;
}

.studio-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding-bottom: 0.58rem;
  border-bottom: 1px solid var(--studio-line-soft);
}

.studio-panel-heading h2 {
  font-size: 1rem;
}

.studio-count-badge,
.infochannel-studio .editor-layer-heading > span {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  border: 1px solid #b9c6cf;
  border-radius: 4px;
  background: #e8edf1;
  color: #425967;
  font-size: 0.72rem;
  font-weight: 800;
}

.studio-panel-help {
  margin: 0.62rem 0;
  color: #6b7780;
  font-size: 0.69rem;
  line-height: 1.45;
}

.studio-script-list {
  min-height: 0;
  overflow: auto;
  padding: 0.15rem 0.15rem 0.4rem;
}

.studio-script-row {
  position: relative;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 0.48rem;
  width: 100%;
  margin: 0 0 0.34rem;
  padding: 0.52rem 0.4rem;
  border: 1px solid #c3ccd3;
  border-radius: 4px;
  background: #ffffff;
  color: #354550;
  text-align: left;
  cursor: pointer;
}

.studio-script-row:hover,
.studio-script-row.current {
  border-color: #7fa2b9;
  background: #e8f0f5;
  color: #214f6f;
}

.studio-script-row.current {
  box-shadow: inset 4px 0 0 #2e648d;
}

.studio-script-row.dragging,
.studio-shuffler-card.dragging {
  opacity: 0.42;
}

.studio-script-index,
.studio-shuffler-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #b8c3cb;
  border-radius: 3px;
  background: #eef2f5;
  color: #526a79;
  font-size: 0.68rem;
  font-weight: 900;
}

.studio-script-row.current .studio-script-index,
.studio-shuffler-card.current .studio-shuffler-number {
  border-color: #2e648d;
  background: #2e648d;
  color: #ffffff;
}

.studio-script-copy {
  min-width: 0;
}

.studio-script-copy strong,
.studio-script-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-script-copy strong {
  font-size: 0.74rem;
}

.studio-script-copy small {
  margin-top: 0.14rem;
  color: #75818a;
  font-size: 0.63rem;
}

.studio-drag-grip {
  color: #82909a;
  font-size: 0.84rem;
  letter-spacing: -0.15em;
  cursor: grab;
}

.studio-script-row.studio-slide-drop-before::before,
.studio-script-row.studio-slide-drop-after::after {
  position: absolute;
  right: 2px;
  left: 2px;
  height: 3px;
  background: #2e648d;
  content: "";
}

.studio-script-row.studio-slide-drop-before::before {
  top: -4px;
}

.studio-script-row.studio-slide-drop-after::after {
  bottom: -4px;
}

.studio-script-actions {
  display: grid;
  gap: 0.38rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--studio-line-soft);
}

.studio-script-actions button,
.studio-script-actions .button-link {
  width: 100%;
  min-height: 34px;
  padding: 0.45rem 0.55rem;
  font-size: 0.7rem;
}

.studio-script-summary {
  margin-top: 0.65rem;
  padding: 0.6rem;
  border: 1px solid #c8d0d6;
  border-radius: 4px;
  background: #ffffff;
}

.studio-script-summary > div > span,
.studio-script-summary > div > strong,
.studio-script-summary > div > small {
  display: block;
}

.studio-script-summary > div > span {
  color: #6c7881;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.studio-script-summary > div > strong {
  margin-top: 0.18rem;
  color: #2c3b46;
  font-size: 0.78rem;
}

.studio-script-summary > div > small {
  margin-top: 0.12rem;
  color: #77838c;
  font-size: 0.64rem;
  line-height: 1.35;
}

.studio-duration-field {
  margin-top: 0.55rem;
}

.studio-duration-field input {
  width: 76px;
  min-height: 32px;
  padding: 0.35rem 0.45rem;
}

.studio-script-summary > button {
  width: 100%;
  margin-top: 0.45rem;
}

.studio-editor-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  background: #f0f2f4;
}

.studio-object-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.48rem;
  border-bottom: 1px solid var(--studio-line);
  background: #f7f8f9;
}

.studio-toolbar-label {
  display: grid;
  place-content: center start;
  min-width: 65px;
  padding: 0 0.35rem;
}

.studio-toolbar-label strong {
  color: #31434f;
  font-size: 0.76rem;
}

.studio-tool-group {
  display: flex;
  align-items: stretch;
  gap: 0.22rem;
}

.studio-tool-separator {
  width: 1px;
  min-width: 1px;
  margin: 0.2rem 0.18rem;
  background: #ccd3d8;
}

.studio-tool-group button {
  display: grid;
  grid-template-rows: 28px auto;
  place-items: center;
  min-width: 62px;
  padding: 0.32rem 0.38rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #435560;
  font-size: 0.62rem;
}

.studio-tool-group button:hover {
  border-color: #a9bbc7;
  background: #e7eef3;
}

.studio-tool-group button span {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 27px;
  border: 1px solid #aebbc4;
  border-radius: 3px;
  background: #ffffff;
  color: #2c6085;
  font-size: 0.68rem;
  font-weight: 900;
}

.studio-workspace-toolbar {
  display: flex;
  align-items: end;
  gap: 0.38rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.47rem;
  border-bottom: 1px solid var(--studio-line);
  background: #e9edf0;
}

.studio-workspace-toolbar button {
  min-height: 35px;
  padding: 0.45rem 0.62rem;
  white-space: nowrap;
}

.studio-page-name-field {
  min-width: 180px;
  max-width: 260px;
}

.studio-page-name-field input,
.editor-grid-size-field select {
  min-height: 35px;
  padding: 0.4rem 0.5rem;
}

.infochannel-studio .editor-view-switch {
  align-self: end;
  gap: 0;
  padding: 0;
  border: 1px solid #aeb8c0;
  border-radius: 4px;
  background: #ffffff;
}

.infochannel-studio .editor-view-switch button {
  min-height: 33px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #52616c;
}

.infochannel-studio .editor-view-switch button + button {
  border-left: 1px solid #c3cbd1;
}

.infochannel-studio .editor-view-switch button.active {
  background: #2e648d;
  color: #ffffff;
}

.infochannel-studio .editor-snap-toggle {
  display: flex;
  align-items: center;
  align-self: end;
  min-height: 35px;
  padding: 0 0.5rem;
  border: 1px solid #aeb8c0;
  border-radius: 4px;
  background: #ffffff;
  color: #4c5e69;
  font-size: 0.7rem;
}

.infochannel-studio .editor-snap-toggle input {
  width: auto;
}

.infochannel-studio .editor-grid-size-field {
  min-width: 112px;
}

.infochannel-studio .editor-zoom-field {
  min-width: 135px;
}

.infochannel-studio .editor-zoom-field input[type="range"] {
  width: 80px;
}

.infochannel-studio .editor-inline-control output {
  color: #465a68;
  font-size: 0.68rem;
}

.studio-help-button {
  min-width: 35px;
  width: 35px;
  padding: 0;
}

.studio-visual-workspace {
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto auto;
  min-height: 0;
}

.infochannel-studio .canvas-viewport {
  display: grid;
  place-items: center;
  height: auto;
  min-height: 420px;
  overflow: auto;
  padding: 1.25rem;
  border: 0;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.34) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.34) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.34) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.34) 75%),
    #c8ced3;
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

.infochannel-studio .canvas {
  flex: 0 0 auto;
  border: 1px solid #697680;
  background-color: #0b1220;
  box-shadow: 0 9px 28px rgba(19, 28, 37, 0.42);
  outline: none;
}

.infochannel-studio .canvas.studio-drop-target {
  outline: 4px solid rgba(46, 100, 141, 0.58);
  outline-offset: 4px;
}

.infochannel-studio .editor-grid-overlay {
  background-image:
    linear-gradient(rgba(121, 167, 196, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 167, 196, 0.18) 1px, transparent 1px);
}

.infochannel-studio .editor-element {
  border: 1px solid transparent;
  cursor: move;
}

.infochannel-studio .editor-element:hover {
  border-color: rgba(77, 143, 186, 0.7);
}

.infochannel-studio .editor-element.selected {
  outline: 2px solid #3b84b4;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9), 0 0 18px rgba(30, 94, 137, 0.22);
}

.infochannel-studio .editor-element .resize-handle {
  right: -5px;
  bottom: -5px;
  width: 13px;
  height: 13px;
  border: 2px solid #ffffff;
  border-radius: 2px;
  background: #2e648d;
}

.editor-inline-text {
  width: 100%;
  min-height: 1em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.editor-element.inline-editing {
  overflow: visible;
  cursor: text;
  outline: 2px solid #d08a28;
}

.editor-element.inline-editing .editor-inline-text {
  min-height: 100%;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  cursor: text;
  user-select: text;
  outline: 1px dashed rgba(255, 211, 125, 0.9);
}

.infochannel-studio .editor-canvas-status {
  border: 0;
  border-top: 1px solid #aeb8c0;
  background: #eef1f3;
  color: #61717c;
  font-size: 0.65rem;
}

.infochannel-studio .editor-canvas-status span:nth-child(2) {
  color: #374d5b;
}

.studio-slide-navigator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.42rem 0.55rem;
  border: 0;
  border-top: 1px solid #bdc5cb;
  border-radius: 0;
  background: #f7f8f9;
  box-shadow: none;
}

.studio-slide-nav-copy {
  min-width: 0;
  text-align: center;
}

.studio-slide-nav-copy strong,
.studio-slide-nav-copy span {
  display: block;
}

.studio-slide-nav-copy strong {
  color: #405461;
  font-size: 0.69rem;
}

.studio-slide-nav-copy span {
  margin-top: 0.08rem;
  color: #75818a;
  font-size: 0.62rem;
}

.infochannel-studio .editor-nav-icon {
  min-width: 34px;
  width: 34px;
  height: 31px;
  min-height: 31px;
  padding: 0;
  font-size: 0.74rem;
}

.studio-property-fields > label,
.studio-property-fields .property-checkbox {
  color: #52636f;
  font-size: 0.7rem;
}

.studio-property-fields input,
.studio-property-fields select,
.studio-property-fields textarea {
  margin-bottom: 0.48rem;
  padding: 0.48rem 0.52rem;
  font-size: 0.75rem;
}

.studio-property-fields textarea {
  min-height: 82px;
}

.infochannel-studio .property-grid-two {
  gap: 0.42rem;
}

.infochannel-studio .property-align-grid,
.infochannel-studio .property-action-stack {
  gap: 0.32rem;
}

.infochannel-studio .property-align-grid button,
.infochannel-studio .property-action-stack button {
  min-height: 31px;
  padding: 0.35rem 0.42rem;
  font-size: 0.65rem;
}

.infochannel-studio .editor-layer-section {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top-color: #cbd2d7;
}

.infochannel-studio .editor-layer-row {
  border-color: #c5cdd3;
  border-radius: 3px;
  background: #ffffff;
  color: #42535e;
}

.infochannel-studio .editor-layer-row:hover,
.infochannel-studio .editor-layer-row.active {
  border-color: #87a6ba;
  background: #e7eff5;
  color: #244f6d;
}

.infochannel-studio .editor-layer-index {
  border-radius: 3px;
  background: #e8edf1;
  color: #496576;
}

.studio-html-workspace {
  min-height: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.studio-control-deck {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 1fr) 1fr;
  align-items: center;
  gap: 0.8rem;
  min-height: 55px;
  padding: 0.55rem 0.7rem;
  background: #f7f8f9;
}

.studio-deck-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.studio-deck-group button,
.studio-deck-group .button-link {
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  font-size: 0.7rem;
}

.studio-deck-center {
  justify-content: flex-end;
}

.studio-deck-status {
  min-width: 0;
  text-align: center;
}

.infochannel-studio .editor-save-status {
  display: block;
  min-height: 1rem;
  overflow: hidden;
  color: #7a5b1e;
  font-size: 0.68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.infochannel-studio .editor-save-status.ok {
  color: #2c6b4a;
}

.infochannel-studio .editor-save-status.error {
  color: #9a3434;
}

.studio-empty-state {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 0.8rem;
  border: 1px dashed #b9c3ca;
  border-radius: 4px;
  background: #f7f8f9;
  color: #77838c;
  font-size: 0.69rem;
  line-height: 1.45;
  text-align: center;
}

.studio-dialog {
  width: min(980px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid #9daab4;
  border-radius: 5px;
  background: #f4f6f7;
  color: #283640;
  box-shadow: 0 24px 80px rgba(26, 38, 49, 0.34);
}

.studio-dialog::backdrop {
  background: rgba(36, 45, 53, 0.58);
}

.studio-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #c4ccd2;
}

.studio-dialog-heading h2 {
  font-size: 1.15rem;
}

.studio-dialog-heading p {
  margin: 0.22rem 0 0;
  color: #68757f;
  font-size: 0.74rem;
}

.studio-shuffler-dialog {
  width: min(1180px, calc(100vw - 2rem));
}

.studio-shuffler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
}

.studio-shuffler-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 0.6rem;
  min-height: 112px;
  padding: 0.72rem;
  border: 1px solid #b9c3ca;
  border-radius: 4px;
  background: #ffffff;
  color: #344853;
  text-align: left;
}

.studio-shuffler-card:hover,
.studio-shuffler-card.current {
  border-color: #719ab6;
  background: #e8f0f5;
}

.studio-shuffler-preview {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 78px;
  padding: 0.7rem;
  border: 1px solid #c7cfd5;
  background: linear-gradient(135deg, #eef2f4, #dce3e8);
}

.studio-shuffler-preview b,
.studio-shuffler-preview small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-shuffler-preview b {
  font-size: 0.76rem;
}

.studio-shuffler-preview small {
  margin-top: 0.26rem;
  color: #73808a;
  font-size: 0.65rem;
}

.studio-shuffler-card.studio-slide-drop-before::before,
.studio-shuffler-card.studio-slide-drop-after::after {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: #2e648d;
  content: "";
}

.studio-shuffler-card.studio-slide-drop-before::before {
  left: -6px;
}

.studio-shuffler-card.studio-slide-drop-after::after {
  right: -6px;
}

.studio-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.studio-help-grid article {
  padding: 0.85rem;
  border: 1px solid #c5cdd3;
  border-radius: 4px;
  background: #ffffff;
}

.studio-help-grid h3 {
  margin-top: 0;
  color: #324956;
}

.studio-help-grid ol {
  padding-left: 1.2rem;
  color: #566671;
  font-size: 0.78rem;
  line-height: 1.6;
}

@media (max-width: 1500px) {
  .infochannel-studio {
    grid-template-columns: 225px minmax(500px, 1fr) 285px;
  }

  .studio-tool-group button {
    min-width: 55px;
  }

  .studio-target-block {
    grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1.2fr);
  }
}

@media (max-width: 1240px) {
  .infochannel-studio {
    grid-template-columns: 210px minmax(480px, 1fr);
  }

  .studio-inspector-panel {
    grid-column: 1 / -1;
    grid-row: 3;
    max-height: none;
  }

  .studio-control-deck {
    grid-row: 4;
  }

  .studio-command-bar {
    grid-template-columns: auto minmax(320px, 1fr);
  }

  .studio-command-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .infochannel-studio {
    display: block;
  }

  .studio-command-bar,
  .studio-script-panel,
  .studio-editor-panel,
  .studio-inspector-panel,
  .studio-control-deck {
    margin-bottom: 0.65rem;
  }

  .studio-command-bar,
  .studio-target-block,
  .studio-control-deck {
    display: block;
  }

  .studio-target-block,
  .studio-command-actions,
  .studio-status-strip,
  .studio-deck-group,
  .studio-deck-status {
    margin-top: 0.65rem;
  }

  .studio-script-panel {
    max-height: none;
  }

  .studio-script-list {
    max-height: 260px;
  }

  .studio-help-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== */
/* Garpenholm InfoChannel Studio 0.5.1                                       */
/* Förenklad arbetsyta: tydlig Ny sida, färre verktyg och fasta sidinställningar */
/* ========================================================================== */

.editor-shell-v051.infochannel-studio {
  grid-template-columns: 236px minmax(620px, 1fr) 326px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.editor-shell-v051 .studio-command-bar {
  grid-template-columns: auto minmax(260px, 0.75fr) minmax(280px, 1fr) auto;
  gap: 0.65rem 0.85rem;
  padding: 0.58rem 0.72rem;
}

.editor-shell-v051 .studio-brand-block {
  min-width: 172px;
}

.editor-shell-v051 .studio-brand-mark {
  width: 38px;
  height: 38px;
}

.editor-shell-v051 .studio-brand-block h1 {
  font-size: 1.08rem;
}

.editor-shell-v051 .studio-display-picker-compact {
  min-width: 0;
}

.editor-shell-v051 .studio-display-picker-compact select {
  width: 100%;
  min-height: 35px;
}

.editor-shell-v051 .studio-target-copy strong {
  font-size: 0.78rem;
}

.editor-shell-v051 .studio-target-copy span {
  font-size: 0.66rem;
}

.editor-shell-v051 .studio-command-actions {
  align-items: center;
  gap: 0.34rem;
}

.editor-shell-v051 .studio-command-actions button {
  min-height: 35px;
  padding: 0.42rem 0.62rem;
  white-space: nowrap;
}

.editor-shell-v051 .studio-status-strip {
  gap: 0.34rem;
  padding-top: 0.42rem;
}

.editor-shell-v051 .studio-status-strip #liveViewBtn {
  min-height: 26px;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  font-size: 0.66rem;
}

.editor-shell-v051 .studio-context-link {
  margin-left: 0;
}

.editor-shell-v051 .studio-script-panel {
  grid-template-rows: auto auto auto minmax(180px, 1fr) auto;
  padding: 0.62rem;
}

.studio-script-primary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.38rem;
  margin-top: 0.58rem;
}

.infochannel-studio .studio-new-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  border-color: #245574;
  background: #2e648d;
  color: #ffffff;
  box-shadow: none;
}

.infochannel-studio .studio-new-page-button:hover {
  border-color: #183e59;
  background: #265878;
  color: #ffffff;
}

.infochannel-studio .studio-new-page-button span {
  font-size: 1rem;
  line-height: 1;
}

.editor-shell-v051 .studio-script-primary-actions .secondary {
  min-height: 38px;
  padding-inline: 0.55rem;
}

.editor-shell-v051 .studio-panel-help-compact {
  margin: 0.42rem 0 0.36rem;
  font-size: 0.64rem;
}

.studio-script-footer-link {
  padding-top: 0.42rem;
  border-top: 1px solid var(--studio-line-soft);
  text-align: center;
}

.studio-script-footer-link a {
  color: #3e6680;
  font-size: 0.66rem;
  font-weight: 700;
}

.editor-shell-v051 .studio-editor-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.editor-shell-v051 .studio-object-toolbar {
  align-items: center;
  overflow: visible;
  padding: 0.38rem 0.48rem;
}

.editor-shell-v051 .studio-toolbar-label {
  min-width: 58px;
}

.editor-shell-v051 .studio-primary-tools {
  min-width: 0;
  flex: 1 1 auto;
}

.editor-shell-v051 .studio-tool-group button {
  min-width: 58px;
  grid-template-rows: 24px auto;
  padding: 0.26rem 0.3rem;
}

.editor-shell-v051 .studio-tool-group button span {
  min-width: 26px;
  height: 24px;
}

.studio-more-tools {
  position: relative;
  flex: 0 0 auto;
}

.studio-more-tools > summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.58rem;
  border: 1px solid #aeb8c0;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #e9edf0);
  color: #304554;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.studio-more-tools > summary::-webkit-details-marker {
  display: none;
}

.studio-more-tools > summary::after {
  margin-left: 0.42rem;
  content: "▾";
}

.studio-more-tools[open] > summary::after {
  content: "▴";
}

.studio-more-tools-grid {
  position: absolute;
  z-index: 50;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 0.28rem;
  padding: 0.45rem;
  border: 1px solid #aeb8c0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(34, 48, 60, 0.2);
}

.editor-shell-v051 .studio-more-tools-grid button {
  min-width: 70px;
}

.editor-shell-v051 .studio-workspace-toolbar {
  align-items: center;
  min-height: 42px;
  padding: 0.34rem 0.48rem;
}

.studio-toolbar-spacer {
  flex: 1 1 auto;
}

.editor-shell-v051 .studio-compact-field {
  min-width: auto;
}

.editor-shell-v051 .editor-grid-size-field select {
  min-width: 64px;
}

.editor-shell-v051 .editor-zoom-field {
  min-width: 128px;
}

.editor-shell-v051 .studio-inspector-panel {
  max-height: calc(100vh - 185px);
  padding: 0;
  background: #f4f6f7;
}

.studio-page-settings-card {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: 0.72rem;
  border-bottom: 1px solid #aeb8c0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 50, 60, 0.08);
}

.studio-page-settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.58rem;
}

.studio-page-settings-heading strong,
.studio-page-settings-heading small {
  display: block;
}

.studio-page-settings-heading strong {
  color: #2f414d;
  font-size: 0.78rem;
}

.studio-page-settings-heading small {
  max-width: 210px;
  margin-top: 0.1rem;
  overflow: hidden;
  color: #74818a;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-shell-v051 .studio-page-name-field {
  display: block;
}

.editor-shell-v051 .studio-page-name-field input {
  width: 100%;
  min-height: 34px;
  margin-top: 0.22rem;
  padding: 0.4rem 0.48rem;
  font-size: 0.74rem;
}

.studio-page-playback-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.studio-page-playback-grid label > span:first-child,
.studio-new-page-name > span {
  display: block;
  color: #576874;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editor-shell-v051 .studio-duration-field {
  margin-top: 0;
}

.editor-shell-v051 .studio-duration-field .editor-inline-control,
.editor-shell-v051 .studio-transition-field select {
  width: 100%;
  margin-top: 0.22rem;
}

.editor-shell-v051 .studio-duration-field input {
  width: 100%;
  min-width: 0;
}

.editor-shell-v051 .studio-transition-field select {
  min-height: 32px;
  padding: 0.34rem 0.38rem;
  font-size: 0.68rem;
}

.infochannel-studio .studio-save-page-settings,
.infochannel-studio .studio-add-current-page {
  width: 100%;
  min-height: 33px;
  margin-top: 0.5rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
}

.infochannel-studio .studio-add-current-page {
  border-color: #c79f58;
  background: #fff7e8;
  color: #72551e;
}

.editor-shell-v051 .studio-properties-heading {
  margin: 0.72rem 0.72rem 0;
}

.editor-shell-v051 .studio-property-fields {
  padding: 0.62rem 0.72rem 0.72rem;
}

.studio-layer-details {
  margin: 0 0.72rem 0.72rem;
  padding: 0;
  border-top: 0;
}

.studio-layer-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #c3ccd3;
  border-radius: 4px;
  background: #ffffff;
  color: #42535e;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.studio-layer-details > summary::-webkit-details-marker {
  display: none;
}

.studio-layer-details > summary::before {
  margin-right: 0.4rem;
  content: "▸";
}

.studio-layer-details[open] > summary::before {
  content: "▾";
}

.studio-layer-details > summary > span:first-child {
  margin-right: auto;
}

.studio-layer-details #layerCount {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid #c5cdd3;
  border-radius: 3px;
  background: #eef2f5;
  font-size: 0.65rem;
}

.studio-layer-details .editor-layer-list {
  margin-top: 0.4rem;
}

.editor-shell-v051 .studio-control-deck {
  grid-template-columns: minmax(260px, 1fr) auto;
  min-height: 38px;
  padding: 0.35rem 0.58rem;
}

.editor-shell-v051 .studio-deck-status {
  text-align: left;
}

.studio-footer-hint {
  color: #75818a;
  font-size: 0.62rem;
  white-space: nowrap;
}

.studio-new-page-dialog {
  width: min(520px, calc(100vw - 2rem));
}

.studio-new-page-name {
  display: block;
}

.studio-new-page-name input {
  width: 100%;
  min-height: 39px;
  margin-top: 0.28rem;
  padding: 0.48rem 0.55rem;
}

.studio-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid #cdd4d9;
}

@media (max-width: 1500px) {
  .editor-shell-v051.infochannel-studio {
    grid-template-columns: 220px minmax(560px, 1fr) 302px;
  }

  .editor-shell-v051 .studio-command-bar {
    grid-template-columns: auto minmax(240px, 0.85fr) minmax(220px, 1fr) auto;
  }

  .editor-shell-v051 .studio-primary-tools button {
    min-width: 52px;
  }
}

@media (max-width: 1240px) {
  .editor-shell-v051.infochannel-studio {
    grid-template-columns: 210px minmax(500px, 1fr);
  }

  .editor-shell-v051 .studio-command-bar {
    grid-template-columns: auto minmax(280px, 1fr) auto;
  }

  .editor-shell-v051 .studio-target-copy {
    display: none;
  }

  .editor-shell-v051 .studio-inspector-panel {
    max-height: none;
  }

  .studio-page-settings-card {
    position: relative;
  }
}

.editor-shell-v051 .studio-property-summary,
.editor-shell-v051 .studio-property-empty {
  margin-bottom: 0.58rem;
  padding: 0.58rem;
  border: 1px solid #c8d0d6;
  border-radius: 4px;
  background: #ffffff;
}

.editor-shell-v051 .studio-property-summary strong,
.editor-shell-v051 .studio-property-summary span,
.editor-shell-v051 .studio-property-empty strong,
.editor-shell-v051 .studio-property-empty span {
  display: block;
}

.editor-shell-v051 .studio-property-summary strong,
.editor-shell-v051 .studio-property-empty strong {
  color: #324853;
  font-size: 0.74rem;
}

.editor-shell-v051 .studio-property-summary span,
.editor-shell-v051 .studio-property-empty span {
  margin-top: 0.16rem;
  color: #73808a;
  font-size: 0.64rem;
  line-height: 1.4;
}

.editor-shell-v051 .studio-property-group {
  margin: 0.45rem 0;
  border: 1px solid #c6ced4;
  border-radius: 4px;
  background: #ffffff;
}

.editor-shell-v051 .studio-property-group > summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.5rem;
  color: #42535e;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.editor-shell-v051 .studio-property-group > summary::-webkit-details-marker {
  display: none;
}

.editor-shell-v051 .studio-property-group > summary::before {
  width: 16px;
  color: #607682;
  content: "▸";
}

.editor-shell-v051 .studio-property-group[open] > summary {
  border-bottom: 1px solid #d2d8dd;
  background: #f5f7f8;
}

.editor-shell-v051 .studio-property-group[open] > summary::before {
  content: "▾";
}

.editor-shell-v051 .studio-property-group-body {
  padding: 0.52rem;
}

.editor-shell-v051 .studio-property-group-body > label:last-child,
.editor-shell-v051 .studio-property-group-body > .property-checkbox:last-child {
  margin-bottom: 0;
}

.editor-shell-v051 .studio-object-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.55rem;
}
