*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f5f7fa;color:#0f172a}button,input,textarea,select{font:inherit}.public{min-height:100vh;background:linear-gradient(180deg,#eaf4ff,#f8fbff 45%,#fff)}.header{display:flex;justify-content:space-between;align-items:center;padding:18px 5%;background:#fff;border-bottom:1px solid #dbeafe;position:sticky;top:0;z-index:10}.brand{display:flex;gap:12px;align-items:center}.logo{width:62px;height:62px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:#eff6ff}.logo img{max-width:100%;max-height:100%;object-fit:contain}.brand b{font-size:20px}.brand small{color:#64748b}.btn{border:0;border-radius:12px;padding:11px 15px;cursor:pointer;font-weight:800}.primary{background:#2563eb;color:#fff}.ghost{background:#fff;border:1px solid #dbe3ef;color:#334155}.danger{background:#fee2e2;color:#b91c1c;border:0;border-radius:10px;padding:9px 12px}.hero{padding:70px 5%;text-align:center;background:linear-gradient(135deg,#dbeafe,#eff6ff)}.hero h1{font-size:clamp(36px,6vw,68px);margin:8px 0;color:#0f3d99}.hero p{max-width:850px;margin:auto;color:#475569}.search{max-width:760px;margin:26px auto 0;display:flex;background:#fff;padding:7px;border-radius:16px;box-shadow:0 12px 30px #0f172a14}.search input{flex:1;border:0;outline:0;padding:13px}.main{max-width:1250px;margin:auto;padding:30px 5%}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card,.panel{background:#fff;border:1px solid #dbeafe;border-radius:20px;padding:20px;box-shadow:0 15px 35px #0f172a0c}.card{cursor:pointer;transition:.2s}.card:hover{transform:translateY(-3px);box-shadow:0 20px 40px #2563eb20}.icon{width:54px;height:54px;border-radius:15px;background:#eff6ff;display:grid;place-items:center;font-size:25px;margin-bottom:12px}.card h3{margin:0 0 6px}.card p{margin:0;color:#64748b;font-size:13px}.footer{padding:25px 5%;background:#073c91;color:#fff;display:flex;justify-content:space-between;gap:20px}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eaf4ff,#f8fafc);padding:20px}.login .panel{width:min(460px,100%)}label{display:block;font-weight:700;font-size:13px;margin:12px 0}input,textarea,select{width:100%;padding:12px;border:1px solid #dbe3ef;border-radius:11px;outline:0}textarea{min-height:110px}.wide{width:100%;margin-top:12px}
.admin{display:flex;min-height:100vh;background:#f3f7fb;color:#0f172a}.side{width:270px;background:linear-gradient(180deg,#0b429a 0%,#073476 100%);color:#fff;padding:22px 16px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20;box-shadow:8px 0 30px rgba(15,23,42,.10)}.side-brand{display:flex;align-items:center;gap:12px;padding:6px 8px 20px;border-bottom:1px solid rgba(255,255,255,.14)}.side-logo{width:52px;height:52px;flex:0 0 52px;background:rgba(255,255,255,.92);border-radius:15px}.side-brand-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.side-brand-copy strong{font-size:15px;line-height:1.25;word-break:break-word}.side-brand-copy span{font-size:12px;line-height:1.25;color:#eef5ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-brand-copy small{font-size:11px;color:#bad5ff;line-height:1.2}.side-caption{font-size:10px;font-weight:800;letter-spacing:1.1px;color:#9fc0ee;padding:21px 10px 8px}.side-nav{display:flex;flex-direction:column;gap:5px}.nav-btn{display:flex!important;align-items:center;gap:11px;width:100%;padding:12px 12px;border:0;background:transparent;color:#fff;border-radius:12px;cursor:pointer;text-align:left;font-weight:700;font-size:13px;transition:.18s}.nav-btn:hover{background:rgba(255,255,255,.10)}.nav-btn.active{background:rgba(255,255,255,.16);box-shadow:inset 3px 0 0 #fff}.nav-icon{width:25px;text-align:center;font-size:18px;opacity:.95}.side-bottom{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.14)}.logout-btn{color:#e8f1ff}.content{margin-left:270px;padding:30px 34px 42px;flex:1;min-width:0}.dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.eyebrow,.panel-kicker{font-size:10px;font-weight:900;letter-spacing:1.2px;color:#5b7aa6}.dashboard-head h1{margin:6px 0 6px;font-size:30px;line-height:1.15;color:#0f172a}.dashboard-head p{margin:0;color:#64748b;font-size:13px}.head-actions{display:flex;gap:8px}.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat-card{position:relative;display:flex;align-items:center;gap:14px;padding:20px;border-radius:18px;border:1px solid #e3ebf6;background:#fff;box-shadow:0 14px 30px rgba(15,23,42,.05);overflow:hidden}.stat-card:after{content:"";position:absolute;inset:auto -22px -30px auto;width:95px;height:95px;border-radius:50%;opacity:.12}.stat-blue:after{background:#2563eb}.stat-green:after{background:#16a34a}.stat-orange:after{background:#f59e0b}.stat-purple:after{background:#8b5cf6}.stat-icon{width:48px;height:48px;flex:0 0 48px;border-radius:14px;display:grid;place-items:center;font-size:22px;font-weight:900}.stat-blue .stat-icon{background:#eaf2ff;color:#2563eb}.stat-green .stat-icon{background:#eafaf0;color:#16a34a}.stat-orange .stat-icon{background:#fff5df;color:#d97706}.stat-purple .stat-icon{background:#f2eefe;color:#7c3aed}.stat-card span{display:block;font-size:12px;color:#64748b;font-weight:700}.stat-card strong{display:block;margin:2px 0;font-size:28px;line-height:1;color:#0f3d99}.stat-card small{display:block;font-size:10px;color:#94a3b8;margin-top:4px}.dashboard-grid{display:grid;gap:18px}.top-grid{grid-template-columns:1.1fr .9fr;margin-bottom:18px}.bottom-grid{grid-template-columns:1.25fr .75fr}.dashboard-panel{padding:20px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.panel-head h2{margin:4px 0 0;font-size:17px}.text-link{border:0;background:transparent;color:#2563eb;font-weight:800;font-size:12px;cursor:pointer;padding:5px 0}.progress-list{display:flex;flex-direction:column;gap:17px}.progress-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#475569;margin-bottom:7px}.progress-meta strong{color:#0f172a}.progress-track{height:9px;border-radius:99px;background:#edf2f7;overflow:hidden}.progress-fill{display:block;height:100%;border-radius:99px;min-width:0}.fill-orange{background:#f59e0b}.fill-blue{background:#2563eb}.fill-green{background:#16a34a}.fill-red{background:#dc2626}.quick-list{display:flex;flex-direction:column;gap:9px}.quick-action{display:flex;align-items:center;gap:11px;width:100%;padding:11px 10px;background:#f8fbff;border:1px solid #e7eef8;border-radius:13px;text-align:left;cursor:pointer;transition:.18s}.quick-action:hover{transform:translateY(-1px);background:#fff;box-shadow:0 8px 18px rgba(37,99,235,.08)}.quick-action>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}.quick-action b{font-size:12px}.quick-action small{font-size:10px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qa-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;font-size:17px}.qa-icon.blue{background:#eaf2ff;color:#2563eb}.qa-icon.orange{background:#fff3e2;color:#d97706}.qa-icon.green{background:#eafaf0;color:#16a34a}.qa-icon.purple{background:#f2eefe;color:#7c3aed}.qa-arrow{color:#94a3b8;font-size:18px}.dashboard-table .table td:first-child b{display:block;font-size:12px}.dashboard-table .table td:first-child small{display:block;color:#94a3b8;font-size:10px;margin-top:3px}.activity-list{display:flex;flex-direction:column;gap:2px}.activity-item{display:flex;gap:11px;padding:9px 0;border-bottom:1px solid #edf2f7}.activity-item:last-child{border-bottom:0}.activity-dot{width:9px;height:9px;border-radius:50%;background:#2563eb;margin-top:6px;flex:0 0 9px;box-shadow:0 0 0 4px #eaf2ff}.activity-item b{font-size:12px}.activity-item p{margin:3px 0;color:#64748b;font-size:11px;line-height:1.4}.activity-item small{color:#94a3b8;font-size:9px}.empty-state{padding:24px 15px;text-align:center;color:#64748b;display:flex;flex-direction:column;align-items:center;gap:5px}.empty-state b{color:#334155;font-size:12px}.empty-state span{font-size:11px}.empty-state.compact{padding:35px 10px}.empty-icon{width:38px;height:38px;border-radius:50%;background:#edf6ef;color:#15803d;display:grid;place-items:center;font-weight:900;margin-bottom:5px}.loading-panel{min-height:260px;background:#fff;border:1px solid #e3ebf6;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:10px;color:#64748b}.spinner{width:20px;height:20px;border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-panel{border-color:#fecaca;background:#fff7f7}.error-panel p{color:#7f1d1d;font-size:13px}
.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:11px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:13px;white-space:nowrap}.modal{position:fixed;inset:0;background:#0f172a80;display:grid;place-items:center;padding:20px;z-index:30}.modal .panel{width:min(800px,100%);max-height:90vh;overflow:auto}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.toast{position:fixed;right:20px;bottom:20px;background:#0f172a;color:#fff;padding:12px 16px;border-radius:12px;z-index:50}.toast.error{background:#b91c1c}.toast.success{background:#15803d}.status{padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.BARU{background:#fef3c7;color:#92400e}.DIPROSES{background:#dbeafe;color:#1d4ed8}.SELESAI{background:#dcfce7;color:#166534}.DITOLAK{background:#fee2e2;color:#b91c1c}.actions{display:flex;gap:8px;flex-wrap:wrap}.menu-img{max-width:72%;max-height:72%;object-fit:contain;display:block}.brand-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.brand-copy b{display:block;line-height:1.2}.brand-copy small{display:block;line-height:1.35;color:#64748b;white-space:normal}.side .brand-copy small{color:#dbeafe}.logo-fallback-glyph{display:grid;place-items:center;width:100%;height:100%;font-size:28px}.brand .logo{flex:none}.public .header .brand-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important}.public .header .brand-copy b{display:block!important}.public .header .brand-copy small{display:block!important;max-width:70vw!important}.muted{color:#64748b}.actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.timeline{margin-top:20px;border-left:2px solid #dbe7f8;padding-left:14px}.timeline-item{padding:0 0 12px;position:relative}.timeline-item:before{content:"";position:absolute;left:-22px;top:3px;width:10px;height:10px;border-radius:50%;background:#2864e8}.timeline-item small{display:block;color:#64748b}.timeline-item p{margin:5px 0 0}.hint{font-size:12px;color:#64748b;margin-top:14px;text-align:center}.hint a{color:#2864e8}
@media(max-width:1100px){.dashboard-stats{grid-template-columns:1fr 1fr}.top-grid,.bottom-grid{grid-template-columns:1fr}.side{width:235px}.content{margin-left:235px;padding:24px}}
@media(max-width:700px){.header{padding:12px 16px}.brand b{font-size:16px}.logo{width:48px;height:48px}.hero{padding:45px 16px}.main{padding:22px 16px}.grid{grid-template-columns:1fr}.footer{flex-direction:column}.admin{display:block}.side{position:static;width:100%;min-height:auto;padding:14px}.side-brand{padding-bottom:14px}.side-nav{display:grid;grid-template-columns:1fr 1fr}.side-bottom{margin-top:12px;border-top:0;padding-top:0}.content{margin-left:0;padding:18px}.dashboard-head{flex-direction:column}.dashboard-head h1{font-size:24px}.head-actions{width:100%}.head-actions .btn{flex:1}.dashboard-stats{grid-template-columns:1fr 1fr}.formgrid{grid-template-columns:1fr}.statgrid{grid-template-columns:1fr 1fr}.top{align-items:flex-start;gap:12px;flex-direction:column}}
@media(max-width:430px){.dashboard-stats{grid-template-columns:1fr}.side-nav{grid-template-columns:1fr}.stat-card{padding:16px}.stat-card strong{font-size:24px}}

:root{--portal-primary:#2563eb;--portal-secondary:#073476;--portal-bg:#f3f7fb;--portal-bg-image:none}
body{background:var(--portal-bg)}
.primary{background:var(--portal-primary)!important}
.hero{background-image:linear-gradient(135deg,rgba(219,234,254,.96),rgba(239,246,255,.93)),var(--portal-bg-image);background-size:cover;background-position:center}
.hero h1{color:var(--portal-primary)}
.footer{background:var(--portal-secondary)}
.side{background:linear-gradient(180deg,var(--portal-primary) 0%,var(--portal-secondary) 100%)}
.asset-uploader{border:1px solid #e6edf7;border-radius:16px;padding:14px;margin-bottom:12px;background:#fbfdff}.asset-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.asset-head>div:first-child{min-width:0;display:flex;flex-direction:column;gap:4px}.asset-head b{font-size:13px}.asset-head small{color:#64748b;font-size:10px}.asset-preview{width:64px;height:64px;border-radius:12px;background:#eff6ff;border:1px solid #dbeafe;display:grid;place-items:center;overflow:hidden;flex:0 0 64px}.asset-preview img{width:100%;height:100%;object-fit:contain}.asset-preview span{font-size:24px}.asset-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin-top:10px}.asset-row input[type=file]{padding:8px;background:#fff}.upload-check{font-size:11px!important;font-weight:600!important;color:#475569!important;margin-top:8px!important}.upload-check input{width:auto;margin-right:6px}.full-span{grid-column:1/-1}.branding-card{height:100%}
@media(max-width:700px){.asset-row{grid-template-columns:1fr}.full-span{grid-column:auto}}

/* V13 Menu Portal refinements */
.menu-admin-head{align-items:flex-end!important;margin-bottom:18px}.menu-admin-head h1{margin:6px 0 4px}.menu-admin-head p{margin:0;font-size:12px}.menu-admin-panel{padding:0;overflow:auto}.menu-admin-table{min-width:900px}.menu-admin-table th,.menu-admin-table td{padding:12px 14px;vertical-align:middle}.menu-admin-table thead th{font-size:10px;letter-spacing:.5px;color:#64748b;background:#fbfdff;border-bottom:1px solid #e6edf6}.menu-admin-name{display:flex;align-items:center;gap:10px;min-width:240px}.menu-admin-name>div{display:flex;flex-direction:column;gap:2px}.menu-admin-name b{font-size:12px;color:#0f172a}.menu-admin-name small{font-size:10px;color:#94a3b8;line-height:1.35}.menu-admin-thumb{width:36px;height:36px;flex:0 0 36px;border-radius:10px;object-fit:contain;display:grid;place-items:center;background:#f1f6fc;border:1px solid #e5edf7;font-size:17px}.menu-admin-thumb.fallback{display:grid}.type-badge,.status-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:10px;font-weight:800;padding:5px 9px}.type-badge{background:#eef4ff;color:#2b5ccc}.status-chip.active{background:#dcfce7;color:#15803d}.status-chip.inactive{background:#fee2e2;color:#b91c1c}.btn.sm,.danger.sm{padding:7px 10px;font-size:11px;margin-right:5px}.menu-modal{align-items:center}.menu-editor{width:min(620px,100%);padding:0;overflow:hidden;border-radius:18px}.menu-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:18px 20px 12px;border-bottom:1px solid #edf2f7}.menu-editor-head small{font-size:9px;letter-spacing:1.2px;font-weight:900;color:#2563eb}.menu-editor-head h2{margin:4px 0 3px;font-size:19px}.menu-editor-head p{margin:0;color:#64748b;font-size:11px}.icon-close{width:34px;height:34px;border:1px solid #dbe3ef;background:#fff;border-radius:10px;font-size:20px;color:#475569;cursor:pointer}.menu-editor form{padding:16px 20px 20px;max-height:78vh;overflow:auto}.menu-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.menu-form-grid>label,.logo-upload-field>label:first-child{margin:0}.logo-upload-field{grid-column:1/-1}.logo-upload-inline{display:flex;gap:12px;align-items:center}.menu-logo-preview{width:72px;height:72px;flex:0 0 72px;border:1px dashed #b7c9e3;border-radius:13px;background:#f9fbfe;display:grid;place-items:center;overflow:hidden;font-size:26px;color:#0f3d99}.menu-logo-preview img{max-width:100%;max-height:100%;object-fit:contain}.logo-file-wrap{min-width:0;flex:1}.logo-file-wrap input[type=file]{padding:9px;background:#fff}.logo-file-wrap small{display:block;color:#94a3b8;font-size:10px;margin-top:5px}.clear-logo{margin-top:6px!important}.check-row{display:flex;align-items:center;gap:8px;font-weight:700!important}.check-row input{width:auto}.menu-editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #edf2f7}.menu-editor-actions .btn{min-width:86px}.logo-upload-field label:first-child{font-size:12px;font-weight:700;color:#0f172a;display:block;margin-bottom:7px}
@media(max-width:700px){.menu-form-grid{grid-template-columns:1fr}.logo-upload-field{grid-column:auto}.menu-editor{width:100%}.menu-editor form{max-height:82vh}.menu-logo-preview{width:64px;height:64px;flex-basis:64px}.menu-admin-head{align-items:flex-start!important}.menu-admin-head .btn{width:100%}}


/* V16 hierarchy, page editor, role scope and mobile refinements */
:root{--portal-primary:#2563eb;--portal-secondary:#073476;--portal-bg:#f3f7fb}
.brand-img{width:100%;height:100%;object-fit:contain;border-radius:inherit;display:block}
.card-title-row{display:flex;align-items:center;gap:8px;justify-content:space-between}.card-title-row h3{min-width:0}.card-arrow{font-size:24px;line-height:1;color:#94a3b8}.folder-card{cursor:pointer}
.breadcrumb{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.crumbs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#64748b;font-size:12px}.crumbs button{border:0;background:transparent;color:#2563eb;font-weight:800;cursor:pointer;padding:4px}.search-label{font-size:12px;color:#64748b}
.menu-admin-name{display:flex;align-items:center;gap:9px;min-width:250px}.menu-admin-name>div:last-child{min-width:0}.menu-admin-name b,.menu-admin-name small{display:block;white-space:normal}.menu-admin-name small{color:#94a3b8;margin-top:2px;font-size:10px;line-height:1.35}.tree-mark{width:18px;color:#94a3b8;font-size:13px;flex:none;text-align:center}.tree-mark.leaf{font-size:18px}
.menu-admin-table td:last-child{min-width:220px}.menu-admin-panel{padding:0}.menu-admin-table th,.menu-admin-table td{vertical-align:middle}.menu-admin-thumb{width:38px;height:38px;flex:0 0 38px;border-radius:10px;display:grid;place-items:center;object-fit:contain;background:#eff6ff;border:1px solid #e2e8f0}.menu-admin-thumb.fallback{font-size:20px}.sm{padding:8px 10px;font-size:11px!important;border-radius:9px!important}
.info-box{margin-top:15px;color:#475569;font-size:12px}.role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.role-card{display:flex;flex-direction:column;gap:18px}.role-card-top{display:flex;justify-content:space-between;gap:12px}.role-card h3{margin:10px 0 5px}.role-card p{margin:0;color:#64748b;font-size:12px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.perm-check{display:flex;gap:9px;align-items:flex-start;padding:12px;border:1px solid #e6edf6;border-radius:12px;background:#f8fbff}.perm-check input,.scope-row input{width:auto}.perm-check span{display:flex;flex-direction:column;gap:3px}.perm-check small{color:#64748b;font-size:10px;line-height:1.4}.scope-list{border:1px solid #e6edf6;border-radius:14px;overflow:auto;max-height:60vh}.scope-legend{padding:9px 12px;color:#64748b;font-size:11px}.scope-row{display:grid;grid-template-columns:minmax(240px,1fr) repeat(5,auto);align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #edf2f7;background:#fff;min-width:800px}.scope-row:last-child{border-bottom:0}.scope-row label{margin:0!important;font-size:10px;display:flex;align-items:center;gap:4px;color:#475569}.scope-name{display:flex;align-items:flex-start;gap:8px;min-width:0}.scope-name b{font-size:11px}.scope-name small{display:block;color:#94a3b8;font-size:9px;margin-top:2px}.page-editor{width:min(980px,100%)!important}.page-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.page-editor-head h2{margin:5px 0}.page-toolbar{display:flex;gap:5px;flex-wrap:wrap;padding:8px;border:1px solid #dfe8f4;background:#f8fbff;border-radius:12px;margin-bottom:12px}.page-toolbar button{border:1px solid #d8e3f1;background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer;font-weight:800;color:#334155}.rich-editor{min-height:300px;padding:14px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;line-height:1.65;outline:none}.rich-editor:focus{border-color:#93c5fd;box-shadow:0 0 0 3px #dbeafe}.page-cover-row{display:flex;gap:14px;align-items:flex-start}.page-cover-preview{width:150px;height:92px;display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;overflow:hidden}.page-cover-preview img{width:100%;height:100%;object-fit:cover}.page-modal .panel{padding:22px}.article-page{max-width:900px;margin:0 auto}.article-page .cover{width:100%;max-height:360px;object-fit:cover;border-radius:18px;margin:15px 0 20px}.article-page .article-body{font-size:15px;line-height:1.8;color:#334155}.article-page .article-body h2,.article-page .article-body h3,.article-page .article-body h4{color:#0f172a;line-height:1.25;margin-top:24px}.article-page .article-body img{max-width:100%;height:auto;border-radius:12px}.article-page .article-body table{width:100%;border-collapse:collapse}.article-page .article-body th,.article-page .article-body td{border:1px solid #e2e8f0;padding:9px;text-align:left}.article-page .article-body a{color:#2563eb}
@media(max-width:900px){.role-grid{grid-template-columns:1fr}.permission-grid{grid-template-columns:1fr}.menu-admin-table td:last-child{min-width:180px}}
@media(max-width:700px){.header{position:sticky}.header .brand-copy small{max-width:48vw}.hero h1{font-size:clamp(30px,10vw,44px)}.grid{grid-template-columns:1fr 1fr}.footer{font-size:11px}.role-grid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.page-editor{max-height:94vh}.page-toolbar{position:sticky;top:0;z-index:2}.rich-editor{min-height:240px}.breadcrumb{align-items:flex-start}.crumbs{width:100%}.scope-list{max-height:55vh}}
@media(max-width:520px){.grid{grid-template-columns:1fr}.header{padding:10px 12px}.header .brand-copy b{font-size:15px}.header .brand-copy small{font-size:10px;max-width:55vw}.hero{padding:38px 14px}.main{padding:18px 12px}.card{padding:16px}.card .icon{width:46px;height:46px}.footer{padding:18px 12px}.dashboard-stats{grid-template-columns:1fr}.statgrid{grid-template-columns:1fr}.top{align-items:flex-start}.actions{justify-content:flex-start}.modal{padding:10px}.modal .panel{padding:16px}.page-cover-row{flex-direction:column}.page-cover-preview{width:100%;height:150px}}

/* V16 performance/theme/mobile hardening */
:root{--portal-primary:#2563eb;--portal-secondary:#073476;--portal-bg:#f3f7fb}
body{background:var(--portal-bg)}
.primary{background:var(--portal-primary)}
.hero h1{color:var(--portal-primary)}
.side{background:linear-gradient(180deg,var(--portal-primary),var(--portal-secondary))}
.nav-btn.active{box-shadow:inset 3px 0 0 #fff,0 4px 14px rgba(15,23,42,.08)}
img{max-width:100%}
button:disabled{opacity:.55;cursor:not-allowed}
.rich-editor img{max-width:100%;height:auto;border-radius:10px}
@media(max-width:900px){
  .admin{display:block;min-height:100vh}
  .side{position:sticky;inset:auto;top:0;width:100%;height:auto;min-height:0;padding:10px 12px;box-shadow:0 8px 24px rgba(15,23,42,.10)}
  .side-brand{padding:2px 4px 10px}
  .side-logo{width:44px;height:44px;flex-basis:44px}
  .side-caption{display:none}
  .side-nav{flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:4px;padding:6px 0;scrollbar-width:thin}
  .nav-btn{width:auto;flex:0 0 auto;white-space:nowrap;padding:9px 10px;font-size:12px}
  .nav-icon{width:auto;font-size:15px}
  .side-bottom{margin:0;padding:0;border:0}
  .side-bottom .nav-btn{width:auto}
  .content{margin-left:0;padding:18px 16px 30px}
  .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .top-grid,.bottom-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .content{padding:14px 11px 24px}
  .side-brand-copy span{max-width:45vw}
  .side-nav{margin:0 -2px}
  .dashboard-head{flex-direction:column}
  .dashboard-head h1{font-size:24px}
  .dashboard-stats{grid-template-columns:1fr}
  .stat-card{padding:16px}
  .header{gap:10px}
  .header .btn{padding:9px 11px;font-size:11px}
  .hero{padding:38px 14px}
  .grid{grid-template-columns:1fr}
  .footer{flex-direction:column}
  .table th,.table td{padding:9px 10px;font-size:12px}
  .menu-admin-table{min-width:760px}
  .modal{padding:8px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* V17: expandable hierarchical menu and profile */
.tree-toggle{width:20px;height:22px;flex:0 0 20px;border:0;border-radius:6px;background:#eef4ff;color:#2859b9;font-weight:900;cursor:pointer;display:inline-grid;place-items:center;padding:0}.tree-toggle:hover{background:#dbeafe}.profile-panel{padding:22px;margin-bottom:18px}.profile-panel h2{margin:0 0 8px}.profile-panel form{display:grid;gap:14px}.profile-panel .formgrid{margin-bottom:0}.profile-panel button{justify-self:start}.profile-panel input:disabled{background:#f1f5f9;color:#64748b}

/* V17 form layout refinements */
#cf>label,#cf .formgrid>label{display:flex;flex-direction:column;gap:7px}#cf input,#cf select,#cf textarea{width:100%;box-sizing:border-box}#cf .formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#cf button[type=submit]{margin-top:6px}@media(max-width:640px){#cf .formgrid{grid-template-columns:1fr}.profile-panel .formgrid{grid-template-columns:1fr}}

/* V21: complaint controls, evidence and portal analytics */
.evidence-box{margin-top:18px;padding:14px;border:1px solid var(--border,#dbe4f0);border-radius:12px;background:#f8fbff;overflow-wrap:anywhere}
.evidence-box a{color:var(--portal-primary,#2563eb);font-weight:700}
.timeline{max-height:220px;overflow:auto;border-top:1px solid #e2e8f0;margin-top:8px;padding-top:8px}
.timeline p{padding:9px 0;border-bottom:1px solid #e2e8f0;margin:0}
.timeline small{display:block;color:#64748b;margin-top:4px}
.popular-menu-list{display:grid;gap:8px}
.popular-menu-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px}
.popular-rank{display:grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:#edf4ff;color:#1d4ed8;font-weight:800}
.popular-menu-row b{flex:1}
.popular-count{font-size:12px;color:#64748b;font-weight:700;white-space:nowrap}
.visitor-stats{margin-top:18px}
@media(max-width:720px){.popular-menu-row{flex-wrap:wrap}.popular-count{margin-left:auto}.evidence-box img{max-width:100%}}
@media print{.modal .btn,.side,.header{display:none!important}}

/* V22: searchable parent selector for large menu trees */
.parent-picker-field{min-width:0;display:flex;flex-direction:column;gap:6px}
.parent-picker-field>label{font-size:12px;font-weight:750;color:#0f172a;margin:0}
.parent-picker{min-width:0;border:1px solid #d8e3f2;border-radius:12px;background:#fff;overflow:hidden}
.parent-picker-search{display:flex;align-items:center;gap:9px;padding:0 11px;min-height:42px;border-bottom:1px solid #e7eef7;color:#64748b;background:#fbfdff}
.parent-picker-search>span{font-size:21px;line-height:1;flex:0 0 auto}
.parent-picker-search input{border:0!important;box-shadow:none!important;outline:none!important;background:transparent!important;min-width:0;width:100%;padding:10px 0!important;font-size:12px!important;color:#0f172a}
.parent-picker-search input:focus{outline:none!important;box-shadow:none!important}
.parent-picker-selected{padding:8px 11px;background:#f2f7ff;border-bottom:1px solid #e7eef7;font-size:10px;color:#64748b;line-height:1.5}
.parent-picker-selected b{color:#1746a2;font-weight:800}
.parent-picker-results{max-height:190px;overflow-y:auto;overscroll-behavior:contain;padding:5px;display:flex;flex-direction:column;gap:2px}
.parent-option{width:100%;display:flex;align-items:flex-start;gap:9px;text-align:left;padding:8px 9px;border:1px solid transparent;border-radius:8px;background:#fff;color:#172554;cursor:pointer;min-width:0}
.parent-option:hover{background:#f4f8ff;border-color:#dce8fb}
.parent-option.selected{background:#eaf2ff;border-color:#c9dcff}
.parent-option-icon{width:23px;height:23px;flex:0 0 23px;border-radius:7px;display:grid;place-items:center;background:#f1f5f9;color:#45628f;font-size:13px}
.parent-option.selected .parent-option-icon{background:#d8e7ff;color:#1647a6}
.parent-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.parent-option-copy b{font-size:11px;line-height:1.4;font-weight:750;overflow-wrap:anywhere}
.parent-option-copy small{font-size:10px;line-height:1.4;color:#8190a7;overflow-wrap:anywhere}
.parent-option-check{color:#1762d2;font-weight:900;font-size:14px;flex:0 0 auto}
.parent-option-empty{padding:14px 10px;text-align:center;color:#8290a5;font-size:11px}
.parent-picker-help{display:block;padding:7px 10px;border-top:1px solid #edf2f7;color:#8492a6;font-size:9px;line-height:1.45}
@media(max-width:700px){.parent-picker-results{max-height:160px}.parent-picker-field{grid-column:auto}}

/* V24 — refreshed, modern command-center dashboard */
.admin{background:radial-gradient(ellipse at 90% 0%,#e3edff 0%,#f5f8ff 34%,#f4f7fb 72%);}
.side{background:linear-gradient(165deg,#092e72 0%,#0b439a 48%,#06265d 100%);box-shadow:10px 0 38px rgba(8,35,89,.15);}
.side-brand{border-bottom-color:rgba(255,255,255,.18);}
.nav-btn{border:1px solid transparent;border-radius:13px;transition:background .18s ease,transform .18s ease,border-color .18s ease;}
.nav-btn:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.1);transform:translateX(2px);}
.nav-btn.active{background:linear-gradient(90deg,rgba(255,255,255,.19),rgba(255,255,255,.08));box-shadow:inset 3px 0 0 #fff,0 8px 20px rgba(0,0,0,.08);}
.content{padding:32px clamp(18px,3vw,42px);}
.dashboard-hero{position:relative;overflow:hidden;padding:28px 30px;margin-bottom:24px;border:1px solid rgba(190,211,250,.72);border-radius:24px;background:linear-gradient(120deg,#fff 0%,#f1f6ff 58%,#e4efff 100%);box-shadow:0 16px 42px rgba(36,78,145,.09);}
.dashboard-hero:after{content:"";position:absolute;width:260px;height:260px;right:-75px;top:-115px;border-radius:50%;background:linear-gradient(135deg,rgba(59,130,246,.16),rgba(99,102,241,.04));pointer-events:none;}
.dashboard-hero .eyebrow{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#e7efff;color:#2456b4;font-size:10px;font-weight:900;letter-spacing:1.1px;}
.dashboard-hero h1{margin:12px 0 8px;font-size:clamp(25px,3vw,34px);letter-spacing:-.8px;color:#0b2554;}
.dashboard-hero p{max-width:680px;color:#64748b;line-height:1.65;margin:0;}
.dashboard-hero .head-actions{position:relative;z-index:1;}
.dashboard-stats{gap:16px;margin-bottom:20px;}
.stat-card{position:relative;overflow:hidden;border:1px solid #e4ebf6;border-radius:19px;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 10px 28px rgba(15,35,75,.055);padding:20px;transition:transform .2s ease,box-shadow .2s ease;}
.stat-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(15,35,75,.1);}
.stat-card:after{content:"";position:absolute;right:-30px;bottom:-42px;width:100px;height:100px;border-radius:50%;background:currentColor;opacity:.035;}
.stat-card strong{font-size:clamp(27px,2.4vw,34px);letter-spacing:-1px;color:#10264e;}
.stat-card span{font-size:11px;font-weight:800;color:#64748b;letter-spacing:.2px;}
.stat-card small{color:#94a3b8;font-size:10px;}
.stat-icon{border-radius:14px!important;width:46px!important;height:46px!important;display:grid;place-items:center;font-size:20px!important;margin-bottom:14px!important;}
.stat-blue .stat-icon{background:#e7efff!important;color:#2864df}.stat-green .stat-icon{background:#e2f8ed!important;color:#15945d}.stat-orange .stat-icon{background:#fff0df!important;color:#d97706}.stat-purple .stat-icon{background:#f0eaff!important;color:#7c3aed}
.dashboard-panel{border:1px solid #e4ebf6;border-radius:20px;box-shadow:0 10px 28px rgba(15,35,75,.055);padding:22px;}
.dashboard-panel .panel-head{margin-bottom:18px;}
.dashboard-panel .panel-head h2{font-size:16px;letter-spacing:-.2px;color:#10264e;margin-top:5px;}
.panel-kicker{font-size:9px;font-weight:900;letter-spacing:1.3px;color:#4772bd;}
.quick-action{border:1px solid #e7edf6!important;border-radius:14px!important;background:linear-gradient(120deg,#fff,#fbfdff)!important;padding:13px 14px!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;}
.quick-action:hover{transform:translateX(3px);border-color:#c5d8fb!important;box-shadow:0 7px 20px rgba(37,99,235,.08);}
.progress-track{height:9px!important;border-radius:999px!important;background:#edf2f9!important;}
.progress-fill{border-radius:999px!important;}
.dashboard-table{border-radius:14px;}
.dashboard-table .table th{background:#f7faff;color:#64748b;font-size:10px;letter-spacing:.4px;}
.activity-item{padding:12px 0;border-bottom:1px solid #edf2f8;}
.tree-toggle{width:25px;height:25px;border:1px solid #dbe6f5;border-radius:8px;background:#f5f8ff;color:#315ba6;font-weight:900;cursor:pointer;transition:all .15s ease;}
.tree-toggle:hover{background:#e4edff;border-color:#b7cff7;transform:scale(1.04);}
.menu-admin-table tbody tr{transition:background .15s ease;}
.menu-admin-table tbody tr:hover{background:#f7faff;}
@media(max-width:700px){.content{padding:16px 12px}.dashboard-hero{padding:20px;border-radius:18px}.dashboard-panel{padding:16px}.stat-card{border-radius:16px}.dashboard-hero h1{font-size:24px}}
