/* Administration and parent areas share a clear, compact shell. */
.layout-admin,.layout-parent{background:var(--bg)}.sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:272px;background:#26372c;color:#d9e2d7;z-index:80;display:flex;flex-direction:column;border-inline-end:1px solid #354a39}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:90px;flex-shrink:0;padding:18px 22px;border-bottom:1px solid #ffffff14}.sidebar-brand{width:168px;height:56px;flex:0 1 168px;min-width:0;max-width:100%}.sidebar-close{color:#fff;flex-shrink:0}
.side-nav{padding:19px 12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#58745d transparent;flex:1}.nav-item{display:flex;align-items:center;gap:11px;width:100%;text-align:start;padding:11px 13px;border-radius:9px;background:transparent;font-size:14px;font-weight:400;line-height:1.9;color:#d4dfd3;margin-bottom:4px}.nav-item>span{min-width:0;overflow-wrap:anywhere}.nav-item .icon{width:19px;height:19px;color:#9caf98}.nav-item:hover{background:#ffffff0b;color:#fff}.nav-item.active{background:#536b58;color:#fff}.nav-item.active .icon{color:#f2dfb6}.nav-group{border-bottom:1px solid #ffffff0b;margin-bottom:4px}.nav-group>summary{display:flex;gap:11px;align-items:center;padding:13px;list-style:none;color:#d8e0d6;font-size:14px;font-weight:400}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary>.icon{width:19px;height:19px;color:#a3b59e}.nav-group>summary span{flex:1;min-width:0;overflow-wrap:anywhere}.nav-group>summary>.nav-chevron{width:13px;height:13px;transition:transform .18s}.nav-group[open]>summary>.nav-chevron{transform:rotate(180deg)}.nav-group>summary:hover{background:#ffffff07;border-radius:8px}.nav-group-items{padding:1px 8px 9px!important}.nav-group-items .nav-item{font-size:13px;padding:9px 13px;gap:10px}.nav-group-items .nav-item>.icon{width:16px;height:16px;opacity:.8}.sidebar-bottom{border-top:1px solid #ffffff19;padding:12px}.sidebar-bottom .nav-item{font-size:13px;padding-block:9px;margin:0}.sidebar-bottom .danger-text,.sidebar-bottom .danger-text .icon{color:#e9b7a4}
.workspace{margin-inline-start:272px;min-height:100vh;display:flex;flex-direction:column}.app-header{position:sticky;top:0;z-index:50;background:var(--surface);border-bottom:1px solid var(--line);min-height:82px;padding:13px 27px;display:flex;align-items:center;justify-content:space-between;gap:22px}.app-section-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border:1px solid var(--line);background:var(--cream);border-radius:12px;color:var(--sage-dark)}.app-section-icon>.icon{width:21px;height:21px}.app-header-title p{font-weight:700;font-size:16px;color:var(--navy);margin:0;line-height:1.8}.app-header-title small{font-size:11px;color:var(--muted);display:block;margin-bottom:2px}.admin-search{position:relative;width:min(300px,30%);min-width:160px;display:flex;align-items:center}.admin-search>.icon{position:absolute;inset-inline-start:13px;width:18px;height:18px;color:var(--muted);pointer-events:none}.admin-search input{font-size:13px;min-height:42px;padding:9px 38px 9px 12px;background:var(--bg);border-color:var(--line);border-radius:12px}.admin-search-results{position:absolute;top:calc(100% + 8px);inset-inline:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 35px #26372c1c;padding:5px;max-height:350px;overflow-y:auto}.admin-search-results a{display:block;padding:10px 12px;font-size:14px;border-radius:8px;color:var(--navy)}.admin-search-results a:hover,.admin-search-results a:focus{background:var(--soft)}.admin-search-results p{padding:12px;margin:0;font-size:13px}.app-header .header-tools{gap:9px}.app-header .header-tools>.icon-button{border:1px solid var(--line);width:39px;height:39px;min-width:39px}.admin-user{display:flex;align-items:center;gap:10px;border-inline-start:1px solid var(--line);padding-inline-start:15px;color:var(--navy)}.account-avatar{display:grid;place-items:center;width:39px;height:39px;flex-shrink:0;background:var(--soft);border:1px solid var(--line);border-radius:50%;color:var(--sage-dark)}.account-avatar>.icon{width:21px;height:21px}.admin-user-copy{display:grid;min-width:0}.admin-user-copy small{font-size:11px;line-height:1.6}.admin-user-copy strong{font-size:13px;font-weight:700;max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification-bell{position:relative}.notification-bell i{position:absolute;top:7px;inset-inline-end:7px;width:6px;height:6px;background:var(--clay);border-radius:50%}
.app-main{width:100%;max-width:1600px;margin-inline:auto;padding:26px 28px 35px;flex:1}.app-main>.notice{margin-bottom:20px}.app-footer{border-top:1px solid var(--line);padding:19px 28px;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted)}.app-footer>div{display:flex;gap:18px}.app-footer a{color:var(--muted)}.dashboard-kpis{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:23px;gap:14px}.dashboard-kpis .stat-card{padding:17px 14px;gap:10px}.dashboard-kpis .soft-icon{width:40px;height:40px;background:var(--cream);color:var(--clay-dark);border:1px solid var(--line)}.dashboard-kpis .stat-card p{font-size:12px;margin-bottom:7px}.dashboard-kpis .stat-card strong{font-size:27px}.dashboard-stack{display:grid;gap:22px}.dashboard-stack>.dashboard-columns{margin:0}.app-main .panel-title h2{font-size:20px}.app-main .section-kicker{font-size:12px;margin-bottom:3px}.app-main .panel-title .btn{font-size:13px}.dashboard-stack .panel{padding:22px}.dashboard-stack .empty{padding:26px 10px}.dashboard-stack .empty .empty-symbol{height:50px;width:50px;margin-bottom:10px}.dashboard-stack .empty .empty-symbol>.icon{height:25px;width:25px}.dashboard-stack .empty h3{font-size:17px}.dashboard-stack .empty p{font-size:14px}.dashboard-stack .empty p:last-child{margin-bottom:0}.dashboard-stack td,.dashboard-stack th{font-size:13px}.dashboard-stack th{background:var(--cream);color:var(--sage-dark);font-weight:700}.dashboard-stack td{padding:15px 12px}.dashboard-stack .row-list small{display:block;margin-top:3px;font-size:12px}.dashboard-stack .row-list a{font-size:14px}.dashboard-stack .badge{font-size:12px}.audio-dashboard{display:flex;align-items:center;gap:19px}.audio-dashboard>div{flex:1}.audio-dashboard h2{font-size:20px;margin-bottom:6px}.audio-dashboard p{font-size:14px;color:var(--muted);margin:0}.audio-dashboard>.btn{flex-shrink:0}.sidebar-overlay{display:none}
.settings-disclosure{margin-bottom:20px}.settings-disclosure>summary{padding:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:16px}.settings-disclosure>summary>.icon{color:var(--clay);width:21px;height:21px}.settings-disclosure[open]>summary{padding-bottom:19px;border-bottom:1px solid var(--line);margin-bottom:15px}.settings-disclosure>div{padding-bottom:0}.speech-generator{margin-bottom:23px}.speech-generator>p{color:var(--muted);font-size:14px;max-width:940px;margin-bottom:20px}.speech-generator .panel-title>.icon{color:var(--clay);width:31px;height:31px}.speech-progress progress{display:block;width:100%;height:9px;border:0;border-radius:9px;overflow:hidden;accent-color:var(--sage);background:var(--soft)}.speech-progress progress::-webkit-progress-bar{background:var(--soft);border-radius:9px}.speech-progress progress::-webkit-progress-value{background:var(--sage);border-radius:9px}.speech-progress progress::-moz-progress-bar{background:var(--sage);border-radius:9px}.speech-progress p{font-size:14px;color:var(--muted);margin:12px 0 0}.filter-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-block:18px;overflow-x:auto}.filter-tabs a{padding:7px 13px;border-radius:9px;font-size:13px;color:var(--muted);white-space:nowrap}.filter-tabs a.active{background:var(--soft);color:var(--sage-dark)}.filter-tabs a:hover{background:var(--cream)}.speech-recordings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.speech-recording{border:1px solid var(--line);border-radius:14px;padding:17px;display:flex;flex-direction:column;gap:10px;min-width:0}.speech-recording-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}.speech-recording-head>.badge{font-size:12px}.speech-transcript{font-size:15px;margin:0;max-height:140px;overflow-y:auto;line-height:2.1}.speech-recording>small{font-size:12px;align-self:flex-start}.speech-recording audio{width:100%;height:38px;margin-top:4px}.speech-recording .check-field{font-size:13px}.speech-recording .error-text{font-size:13px;margin:0}.approval-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.approval-bar .check-field{font-size:14px}.approval-bar .btn{flex-shrink:0}.badge-ready{background:#e5f1e8;color:#3b7851}.badge-pending,.badge-processing{background:#fbf1d9;color:#936922}.badge-failed,.badge-uncertain{background:#fae9e2;color:#a9472c}
@media(max-width:1350px){.app-header{gap:15px;padding-inline:22px}.app-main{padding-inline:22px}.dashboard-kpis{gap:10px}.dashboard-kpis .stat-card{padding:14px 11px;grid-template-columns:1fr}.dashboard-kpis .soft-icon{width:34px;height:34px}.dashboard-kpis .soft-icon>.icon{width:19px;height:19px}.dashboard-kpis .stat-card>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.dashboard-kpis .stat-card p{margin:0;font-size:11px}.dashboard-kpis .stat-card strong{font-size:25px}.app-header-title p{font-size:15px}.admin-search{width:230px}.admin-user-copy strong{max-width:90px}}
@media(max-width:1100px){.admin-user-copy{display:none}.admin-user{padding-inline-start:9px}.app-header .header-tools{gap:7px}.dashboard-stack td,.dashboard-stack th{font-size:12px;padding-inline:8px}.dashboard-stack .panel{padding:18px}}
@media(max-width:1024px){.sidebar{width:min(86vw,320px);transform:translateX(100%);transition:transform .2s;visibility:hidden}.sidebar-close,.mobile-menu{display:inline-flex}.menu-open .sidebar{transform:translateX(0);visibility:visible}.menu-open .sidebar-overlay{display:block;position:fixed;inset:0;background:#20322680;z-index:75}.menu-open{overflow:hidden}.workspace{margin-inline-start:0}.sidebar-head{min-height:78px}.app-header{min-height:76px;padding:12px 20px;gap:15px}.app-main{padding:23px 20px}.app-section-icon{display:none}.admin-search{width:280px}.admin-user-copy{display:grid}.admin-user-copy strong{max-width:110px}.dashboard-kpis .stat-card{grid-template-columns:1fr}.app-header .mobile-menu{margin-inline-start:-8px}.sidebar-brand{height:52px}.sidebar .nav-item,.nav-group>summary{font-size:15px}.nav-group-items .nav-item{font-size:14px}.sidebar-bottom .nav-item{font-size:14px}}
@media(max-width:760px){.admin-user-copy{display:none}.app-header-title p{max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-header .header-tools{gap:6px}.app-header{flex-wrap:wrap;gap:9px 12px;padding:11px 16px}.admin-search{order:3;width:100%;flex-basis:100%;min-width:0}.admin-search input{min-height:39px}.app-header>.header-start{flex:1;gap:7px}.app-header-title p{font-size:14px}.app-header-title small{font-size:10px}.app-header .header-tools>.icon-button{width:35px;height:35px;min-width:35px}.account-avatar{width:35px;height:35px}.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-kpis .stat-card{padding:13px}.dashboard-kpis .stat-card p{font-size:12px}.dashboard-kpis .stat-card strong{font-size:26px}.dashboard-kpis .stat-card>div{display:block}.dashboard-kpis .stat-card p{margin-bottom:5px}.dashboard-kpis .stat-card:nth-last-child(-n+2){grid-template-columns:36px minmax(0,1fr)}.speech-recordings{grid-template-columns:1fr}.audio-dashboard{align-items:flex-start;flex-wrap:wrap}.audio-dashboard>div{flex-basis:calc(100% - 70px)}.audio-dashboard>.btn{margin-inline-start:auto}.audio-dashboard h2{font-size:18px}.audio-dashboard p{font-size:13px}.speech-generator .actions .btn{font-size:13px}.app-footer{padding-inline:20px}.approval-bar{align-items:flex-start;flex-direction:column}.approval-bar>.btn{align-self:flex-end}}
@media(max-width:620px){.app-main{padding:18px 12px 25px}.app-header{padding:10px 12px}.app-header-title p{max-width:170px}.app-header .header-tools{gap:4px}.admin-user{padding-inline-start:7px}.admin-search input{font-size:18px;padding-block:8px}.dashboard-stack{gap:16px}.dashboard-stack .panel{padding:16px}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.dashboard-kpis .stat-card{grid-template-columns:36px minmax(0,1fr);gap:10px;padding:13px 11px}.dashboard-kpis .stat-card:last-child{grid-column:1/-1;grid-template-columns:36px minmax(0,1fr)}.dashboard-kpis .stat-card:last-child>div{display:flex;justify-content:space-between;align-items:center}.dashboard-kpis .stat-card p{font-size:12px}.dashboard-kpis .stat-card strong{font-size:25px}.app-main .panel-title h2{font-size:18px}.dashboard-stack td{padding:8px 0;font-size:13px}.dashboard-stack .table-empty{padding:14px 0}.app-main .page-heading h1{font-size:24px}.app-main .page-heading p{font-size:14px}.app-footer{padding:16px 12px;font-size:11px;gap:10px}.app-footer>div{gap:10px}.settings-disclosure>summary{font-size:14px;gap:8px}.settings-disclosure>summary .badge{font-size:12px}.speech-generator>p{font-size:13px}.speech-progress p{font-size:13px}.speech-transcript{font-size:14px}.filter-tabs{gap:4px}.filter-tabs a{font-size:12px;padding-inline:10px}.speech-recording{padding:14px}.approval-bar .check-field{font-size:13px}}
@media(max-width:370px){.app-header-title p{max-width:135px}.app-header-title small{max-width:130px}.app-header .header-tools>.icon-button{width:31px;height:31px;min-width:31px}.account-avatar{width:31px;height:31px}.app-header .header-start{gap:3px}.app-header .mobile-menu{width:36px;min-width:36px}.dashboard-kpis .stat-card{grid-template-columns:1fr}.dashboard-kpis .stat-card:nth-last-child(-n+2){grid-template-columns:1fr}.dashboard-kpis .stat-card:last-child{grid-template-columns:36px minmax(0,1fr)}}

.slide-editor-preview{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center;margin-bottom:20px}.slide-editor-preview h2{font-size:21px}.slide-editor-preview p{color:var(--muted);font-size:14px}.slide-editor-preview img{width:100%;height:180px;object-fit:cover;border-radius:10px}@media(max-width:680px){.slide-editor-preview{grid-template-columns:1fr;gap:18px}.slide-editor-preview img{height:155px}}

.logo-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:20px}.logo-setting{display:grid;gap:13px;padding:18px;border:1px solid var(--line);border-radius:14px;min-width:0}.logo-setting h3,.logo-setting>p{margin:0}.logo-setting label{font-size:14px}.logo-setting small{font-size:13px}.logo-preview{display:flex;align-items:center;justify-content:center;height:115px;padding:18px;border:1px solid #e8dfd3;border-radius:10px}.logo-preview img{width:210px;height:70px;max-width:100%;object-fit:contain}.logo-preview-light{background:#fffdf9}.logo-preview-dark{background:#26372c;border-color:#34493a}@media(max-width:760px){.logo-settings-grid{grid-template-columns:1fr;gap:16px}.logo-setting{padding:15px}}

.logo-preview-icon,.logo-preview-social{height:170px;background:var(--paper)}.logo-preview-icon img{width:64px;height:64px;object-fit:contain}.logo-preview-social{padding:10px}.logo-preview-social img{width:100%;height:100%;object-fit:contain}.logo-setting{align-content:start}.logo-setting input[type=file]{min-width:0}
