/* Small demo-only enhancements. The main admin interface uses the original TTS Web admin.css from supplied source. */
[hidden]{display:none!important}button,input,textarea,select{font-family:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #94a3b8;outline-offset:2px}
.demo-banner{position:sticky;top:0;z-index:200;background:#0a1020;color:#fff;min-height:43px;padding:6px 20px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #293242;font-size:12px}
.demo-kicker{font-weight:900;letter-spacing:.09em;white-space:nowrap;color:#dfe6f1}.demo-banner-message{color:#aebbd0}.demo-banner-right{margin-left:auto;display:flex;gap:10px;align-items:center}.demo-banner-right label{color:#aebbd0;white-space:nowrap}.demo-banner-right select{background:#202c3d;color:#fff;border:1px solid #4a5567;border-radius:6px;padding:5px 9px;max-width:230px}.demo-reset{background:transparent;color:#e6edfa;border:1px solid #64748b;padding:6px 9px;border-radius:6px;white-space:nowrap}
.sidebar{top:43px;height:calc(100vh - 43px)}.topbar{top:43px}.topbar-role{display:block;font-size:11px;color:#94a3b8;margin-top:2px}.sidebar-powered{font-size:10px;line-height:1.5;color:#a7b0c2;margin:26px 12px 0}.sidebar-powered a{color:#e5e7eb}.demo-mobile-nav{display:none}.demo-stack{display:flex;flex-direction:column;gap:16px}.demo-inline-note{color:var(--muted);font-size:12px}.demo-compact-help{margin-bottom:18px}.demo-pill{display:inline-block;font-size:11px;color:#334155;border:1px solid #cbd5e1;padding:4px 8px;border-radius:30px;background:#fff}.demo-tiny{font-size:11px;color:#64748b}.demo-table-actions{display:flex;gap:7px;flex-wrap:wrap}.demo-nav-button{border:0;color:inherit;background:none;padding:0;text-align:left;cursor:pointer}.demo-nav-button:hover{text-decoration:underline}.demo-empty{padding:20px;color:var(--muted);text-align:center}.demo-well{border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;padding:20px;color:#475569}.demo-flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.demo-progress{width:100%;accent-color:#334155;height:14px}.demo-grid-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.demo-media-preview{height:140px;background:linear-gradient(135deg,#e2e8f0,#f8fafc);display:flex;justify-content:center;align-items:center;overflow:hidden}.demo-media-preview img{max-width:100%;height:100%;width:100%;object-fit:cover}.demo-media-file{font-size:12px;color:#475569}.demo-media-card{border:1px solid #e5e7eb;border-radius:11px;background:#fff;overflow:hidden}.demo-media-card footer{padding:12px}.demo-media-card small{display:block;color:#64748b;word-break:break-all;margin-top:4px}.demo-cards-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.demo-news-cover{height:150px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#dce8ee,#f6f9fc);border-radius:8px;font-size:42px;margin-bottom:12px}.demo-stacked-card{max-width:960px}.demo-mini-input{max-width:400px}.demo-switch-row{display:flex;align-items:center;gap:8px;margin:8px 0 16px}.demo-switch-row input{width:18px;height:18px}
/* Actual builder structure and classes, with demo-specific content inside */
.content.demo-content-builder{max-width:none;padding:18px 20px}.builder-shell{height:calc(100vh - 238px);min-height:630px;grid-template-columns:240px minmax(350px,1fr) 345px}.builder-canvas-toolbar{height:auto;min-height:52px;gap:8px;flex-wrap:wrap}.builder-canvas-toolbar>div:first-child{flex:1;min-width:130px}.builder-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.builder-device-switch{flex-shrink:0}.builder-canvas-wrap{min-height:0}.builder-canvas-wrap iframe{min-height:100%;height:100%}.builder-library-tabs{display:flex;align-items:center;gap:0;padding:8px 10px 0;border-bottom:1px solid #e5e7eb}.builder-library-tabs button,.demo-library-link{border:0;background:transparent;padding:9px 10px;color:#4b5563;font-size:12px;font-weight:700;cursor:pointer}.builder-library-tabs button.active{color:#111827;box-shadow:inset 0 -2px #111827}.demo-library-link{margin-left:auto;font-size:11px;text-decoration:none}.builder-block-type{height:82px}.builder-block-type small{display:block;font-size:10px;font-weight:400;color:#64748b;line-height:1.15}.builder-layers-head{border-top:1px solid #e5e7eb;padding:16px 14px 6px;display:flex;align-items:center;justify-content:space-between}.builder-layers-head strong{font-size:13px}.builder-layers-head small{font-size:11px;color:var(--muted);display:block;margin-top:2px}.builder-panel-head strong{font-size:14px}.builder-help-strip{border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:11px 13px;font-size:12px;color:#475569;margin-bottom:15px}.builder-help-strip strong{color:#172238}.builder-inline-note{font-size:12px;background:#f8fafc;border:1px solid #e5e7eb;padding:10px 12px;border-radius:8px;margin-bottom:16px;line-height:1.5}.builder-page-settings-low{display:flex;gap:9px;text-align:left;padding:14px 12px;margin:0 10px 10px;width:calc(100% - 20px);border:1px solid #dce2ea;border-radius:8px;background:#f8fafc;cursor:pointer}.builder-page-settings-low span{font-size:17px}.builder-page-settings-low strong{font-size:12px}.builder-page-settings-low small{display:block;font-size:11px;color:#64748b}.builder-left-foot{background:#f8fafc;padding:13px;border-top:1px solid #e5e7eb;font-size:11px;line-height:1.55;color:#64748b}.builder-left-foot strong{display:block;color:#475569}.builder-inspector-head{margin-bottom:14px}.demo-inspector-form .field{margin-bottom:14px}.demo-inspector-form .textarea{min-height:104px}.demo-inspector-form label{font-size:12px}.demo-inspector-form small{font-size:11px;color:#6b7280}.demo-inspector-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.demo-block-controls{margin:0 10px 8px;padding:6px 10px 8px;display:flex;gap:5px;flex-wrap:wrap}.demo-block-controls button{font-size:10px;border:1px solid #d6dce3;background:#fff;border-radius:5px;padding:4px 7px;cursor:pointer}.demo-block-controls button:hover{background:#eef2f7}.demo-layer-row{display:flex;align-items:center;min-width:0}.demo-layer-row .builder-section-item{flex:1;min-width:0}.demo-layer-row.active .builder-section-item{background:#eef2ff}.builder-canvas-toolbar span{display:block;margin-left:0;margin-top:1px}.builder-canvas-wrap.desktop iframe{width:100%}.builder-page h2{font-size:19px}.builder-empty-inspector{padding:40px 12px}.builder-empty-icon{font-size:30px;color:#9ca3af;margin-bottom:15px}.builder-save-state{color:#087443;font-size:12px;margin-left:5px}.builder-save-state.edited{color:#9a3412}.demo-dragging{opacity:.55}.demo-tour-button,.demo-expand-button{background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:7px 8px;font-size:12px;cursor:pointer}.demo-preview-dialog{width:min(1120px,96vw);height:min(800px,90vh);background:#fff;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.demo-preview-dialog iframe{flex:1;border:none;background:#fff;width:100%}.demo-preview-dialog .demo-modal-header{flex-shrink:0}.demo-preview-frame{height:100%}.demo-actions-bottom{display:flex;gap:8px;margin-top:22px}
.demo-toast{position:fixed;right:22px;bottom:22px;z-index:500;padding:13px 18px;border-radius:10px;color:#fff;background:#111827;box-shadow:0 15px 40px #0003;max-width:380px;font-size:13px}.demo-modal-backdrop{position:fixed;inset:0;z-index:400;background:rgba(13,22,38,.7);display:flex;align-items:center;justify-content:center;padding:24px}.demo-modal{max-width:590px;width:100%;border-radius:14px;background:#fff;box-shadow:0 32px 75px #0005;padding:24px}.demo-modal-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8f0;padding:14px 20px}.demo-modal-header h2{font-size:17px;margin:0}.demo-modal-close{background:#fff;border:1px solid #cbd5e1;border-radius:7px;padding:7px 11px;cursor:pointer}.demo-modal-eyebrow{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#64748b;font-weight:900}.demo-modal h2{font-size:27px;margin:12px 0}.demo-modal p{line-height:1.65;color:#475569}.demo-progress-dots{display:flex;gap:7px;margin:24px 0}.demo-progress-dots span{width:24px;height:5px;border-radius:9px;background:#e2e8f0}.demo-progress-dots span.on{background:#111827}.demo-modal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.demo-step-count{font-size:12px;color:#64748b}.demo-hint-bar{padding:13px 16px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;color:#1e40af;margin-bottom:18px;font-size:13px}.demo-media-upload-entry{padding:14px}.demo-media-palette{padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.demo-media-palette button{border:1px solid #dce2e9;padding:0;border-radius:8px;background:#fff;cursor:pointer;overflow:hidden}.demo-media-palette img{width:100%;height:80px;object-fit:cover;display:block}.demo-media-palette span{padding:5px;display:block;font-size:10px}.demo-templates-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.demo-template-card{border:1px solid #e2e8f0;border-radius:12px;background:#fff;overflow:hidden}.demo-template-preview{height:145px;background:#f8fafc;padding:20px;display:flex;flex-direction:column;gap:8px}.demo-template-preview .nav{height:9px;width:100%;background:#fff;border-radius:10px}.demo-template-preview .hero{flex:1;border-radius:7px;background:var(--tpl-dark);padding:14px;color:#fff;font-weight:900;display:flex;align-items:center;font-size:15px}.demo-template-preview .cards{display:flex;gap:7px}.demo-template-preview .cards span{height:15px;flex:1;background:var(--tpl-accent);opacity:.35;border-radius:3px}.demo-template-body{padding:15px}.demo-template-body h3{margin:0 0 5px}.demo-template-body p{font-size:12px;color:#64748b;min-height:40px}.demo-template-body button{width:100%}.demo-footer-cta{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:28px;padding:18px;border:1px solid #dce2e9;border-radius:11px;background:#fff}.demo-footer-cta p{margin:5px 0 0;font-size:12px;color:#64748b}.demo-footer-cta a{background:#111827;color:#fff;padding:10px 15px;border-radius:8px;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}
@media(max-width:1430px){.builder-shell{grid-template-columns:200px minmax(300px,1fr) 300px;gap:10px}.content.demo-content-builder{padding:16px}.builder-block-palette{grid-template-columns:1fr 1fr}.builder-toolbar-actions{gap:4px}}
@media(max-width:1130px){.builder-shell{grid-template-columns:200px minmax(300px,1fr);height:auto;min-height:640px}.builder-right{grid-column:1/-1;min-height:330px}.builder-left{min-height:580px}.builder-canvas-column{min-height:600px}.demo-templates-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-banner-message{display:none}}
@media(max-width:760px){.demo-banner{flex-wrap:wrap;gap:6px;padding:8px 12px}.demo-kicker{font-size:11px}.demo-banner-right{width:100%;margin:0;justify-content:space-between}.demo-banner-right select{max-width:180px}.sidebar{height:auto;position:static;max-height:none;padding:12px}.sidebar .brand{margin:0 8px 0;font-size:18px}.sidebar #sideNav,.sidebar-powered{display:none}.sidebar.mobile-show #sideNav,.sidebar.mobile-show .sidebar-powered{display:block}.sidebar.mobile-show .brand{margin-bottom:20px}.topbar{padding:9px 12px}.demo-mobile-nav{display:inline-block;background:#fff;border:1px solid #d1d5db;padding:6px;border-radius:6px}.topbar-user{gap:7px}.topbar-role,.topbar-user .logout-button{display:none}.builder-shell{display:flex;flex-direction:column;height:auto}.builder-left{min-height:unset;max-height:370px}.builder-canvas-column{height:590px;min-height:590px}.builder-right{min-height:330px;max-height:550px}.builder-help-strip{font-size:11px}.builder-topline{flex-wrap:wrap}.builder-topline .actions{gap:6px}.builder-topline .btn{font-size:11px;padding:9px 8px}.demo-templates-grid{grid-template-columns:1fr}.demo-cards-preview{grid-template-columns:1fr}.demo-footer-cta{align-items:flex-start;flex-direction:column}.builder-canvas-toolbar{padding:6px}.builder-canvas-toolbar span{display:none}.demo-modal-backdrop{padding:10px}}
/* Keep the active TTS Web library tab legible despite later source theme overrides. */
.builder-library-tabs button.active{color:#fff!important;background:#111827!important;border-color:#111827!important}
@media(max-width:480px){
 .demo-banner{width:100%;max-width:100%;min-width:0}
 .demo-banner-right{justify-content:flex-start;flex-wrap:wrap;gap:8px}
 .demo-banner-right label{display:none}
 .demo-banner-right select{flex:1;min-width:0;max-width:none}
 .demo-reset{font-size:11px;padding:6px 8px}
 .topbar{gap:8px;min-width:0}
 .topbar-title{min-width:0;max-width:58%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:13px}
 .topbar-user>span:not(.unsaved){display:none}
 .demo-mobile-nav{white-space:nowrap}
}

/* AI import mock-up follows the real v0.4.8 super-admin workflow. */
.demo-nav-note{font-size:9px;font-weight:600;opacity:.68;margin-left:5px}.demo-ai-card{margin-top:18px}.demo-ai-card h2{font-size:20px;margin:0 0 12px}.demo-ai-card p{font-size:14px;line-height:1.65}.demo-ai-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.demo-ai-actions .btn{text-decoration:none}.demo-ai-label{font-size:13px;font-weight:650;display:block;margin:14px 0 8px}.demo-ai-prompt{width:100%;max-width:850px;min-height:165px;font-size:12px;line-height:1.5;resize:vertical}.demo-ai-upload-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.demo-ai-file-label{font-weight:700;font-size:12px}.demo-ai-upload-row input[type=file]{max-width:310px;border:1px solid #dae0e9;background:#f8fafc;padding:9px;border-radius:7px}.demo-ai-empty{padding:17px;border:1px dashed #cbd5e1;background:#f8fafc;border-radius:9px;font-size:13px;color:#475569}.demo-ai-loaded{padding:12px 15px;border:1px solid #cddfd2;background:#f2f8f4;border-radius:8px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px}.demo-ai-error{padding:12px;background:#fef2f2;border:1px solid #fecaca;border-radius:7px;color:#991b1b}.demo-ai-fieldset{border:1px solid #dce2e9;padding:14px;border-radius:9px;margin:17px 0}.demo-ai-fieldset legend{font-weight:700;padding:0 5px;font-size:13px}.demo-ai-fieldset label{display:block;margin-bottom:10px;font-size:13px;line-height:1.45}.demo-ai-fieldset label:last-child{margin-bottom:0}.demo-ai-check{display:flex;align-items:flex-start;gap:7px;flex-wrap:wrap;font-size:13px;margin:14px 0;line-height:1.45}.demo-ai-check input{margin-top:3px}.demo-ai-check small{color:#64748b}.demo-ai-disclaimer{font-size:12px!important}
@media(max-width:760px){.demo-ai-card{padding:14px}.demo-ai-upload-row input[type=file]{max-width:100%;width:100%}.demo-ai-prompt{min-height:200px}}
