:root{--ink:#1d2327;--muted:#646970;--blue:#2271b1;--line:#dcdcde;--bg:#f0f0f1;--white:#fff}
*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;line-height:1.55}a{color:var(--blue);text-decoration:none}a:hover{color:#135e96}button,input,textarea,select{font:inherit}button{cursor:pointer}input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;border:1px solid #8c8f94;border-radius:3px;background:#fff;padding:9px 11px;color:#2c3338}input:focus,select:focus,textarea:focus{outline:2px solid #2271b1;outline-offset:1px}textarea{resize:vertical}label{display:block;font-weight:600;margin-bottom:18px}label input,label select,label textarea{margin-top:7px;font-weight:400}h1,h2,h3,p{margin-top:0}h1{font-size:26px;font-weight:500;line-height:1.3;margin-bottom:0}h2{font-size:17px;font-weight:600;margin-bottom:0}h3{font-size:16px}fieldset{border:0;margin:0;padding:0}legend{font-weight:600;margin-bottom:10px}.help,.muted{font-size:13px;color:var(--muted)}.help{margin-top:6px}.block{display:block}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border:1px solid var(--blue);border-radius:3px;background:#f6f7f7;color:var(--blue);min-height:34px;padding:6px 13px;font-weight:500}.button:hover{background:#f0f6fc;color:#135e96;border-color:#135e96}.button.primary{background:var(--blue);color:#fff}.button.primary:hover{background:#135e96}.link{border:0;padding:0;background:none;color:var(--blue);font-size:13px}.danger{color:#b32d2e}.form-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.check-label{display:flex;gap:9px;align-items:center;font-weight:400;margin-bottom:10px}.check-label input{margin:0}.notice{padding:13px 17px;background:white;border:1px solid var(--line);border-left:4px solid #00a32a;margin:0 0 20px;box-shadow:0 1px 2px #00000008}.notice.error{border-left-color:#d63638}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.admin-body{background:var(--bg)}.adminbar{height:40px;background:#1d2327;color:#f0f0f1;position:fixed;top:0;left:0;right:0;z-index:30;display:flex;justify-content:space-between;align-items:center;padding:0 20px 0 14px;font-size:13px}.adminbar a{color:#f0f0f1}.bar-left,.bar-right{display:flex;align-items:center;gap:18px}.bar-muted{color:#a7aaad;margin-left:10px;font-size:12px}.brand-mark{border:1px solid #8c8f94;border-radius:50%;height:25px;width:25px;text-align:center;line-height:23px;font-family:Georgia,serif;font-size:18px}.bar-button{color:#c3c4c7;background:none;border:0;padding:7px}.bar-button:hover{color:#72aee6}.menu-toggle{display:none;color:#fff;background:none;border:0;font-size:20px}.sidebar{position:fixed;left:0;top:40px;bottom:0;width:210px;background:#1d2327;color:white;z-index:20;display:flex;flex-direction:column}.sidebar-heading{padding:27px 18px 13px;font-size:10px;font-weight:700;letter-spacing:1.6px;color:#8c8f94}.nav-item{position:relative;display:flex;align-items:center;gap:13px;min-height:43px;padding:10px 18px;color:#c3c4c7;font-size:14px}.nav-icon{font-size:19px;width:21px;text-align:center;color:#8c8f94}.nav-item:hover{background:#2c3338;color:#72aee6}.nav-item.selected{background:#2271b1;color:#fff;font-weight:600}.nav-item.selected .nav-icon{color:#fff}.nav-item.selected:after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid var(--bg)}.sidebar-bottom{margin-top:auto;padding:22px 18px;font-size:11px;color:#8c8f94}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#46b450;margin-right:7px}.admin-main{margin-left:210px;margin-top:40px;padding:30px 32px 0;min-height:calc(100vh - 40px);display:flex;flex-direction:column}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.eyebrow{font-size:10px;font-weight:700;color:var(--muted);letter-spacing:1.8px;margin:0 0 7px}.admin-footer{margin-top:auto;padding:35px 0 20px;display:flex;justify-content:space-between;font-size:12px;color:#787c82}.panel{background:white;border:1px solid var(--line);border-radius:3px;margin-bottom:20px}.panel-title{padding:15px 19px;border-bottom:1px solid #f0f0f1;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-title h2{font-size:15px}.panel-body{padding:19px}.panel-body label:last-child{margin-bottom:0}.welcome-panel{background:#fff;border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:3px;padding:30px 34px;display:flex;justify-content:space-between;margin-bottom:24px;position:relative;overflow:hidden}.welcome-label{font-size:10px;letter-spacing:1.5px;color:#2271b1;font-weight:700}.welcome-panel h2{font-size:30px;font-weight:400;margin:8px 0 9px}.welcome-panel p{color:var(--muted);margin-bottom:18px}.welcome-art{width:170px;flex:none;position:relative;display:flex;align-items:center;justify-content:center}.welcome-art span{font-family:Georgia,serif;font-size:84px;color:#2271b1;border:2px solid #dbe8f3;border-radius:50%;width:125px;height:125px;line-height:115px;text-align:center;background:#f6faff}.welcome-art i,.welcome-art b{position:absolute;border:1px solid #dbe8f3;background:#edf5fb;height:24px;width:24px;border-radius:5px;transform:rotate(20deg);top:6px;right:8px}.welcome-art b{height:16px;width:16px;top:auto;bottom:7px;right:auto;left:0}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:3px;padding:19px 22px;display:flex;flex-direction:column;color:var(--ink)}.stat-card>span{color:var(--muted);font-size:13px}.stat-card strong{font-size:33px;font-weight:400;line-height:1.4;margin:4px 0}.stat-card small{color:var(--blue);font-size:12px}.stat-card:hover{border-color:var(--blue)}.dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.empty-state{text-align:center;padding:42px 20px;color:var(--muted)}.empty-icon{display:block;font-size:40px;color:#a7aaad;margin-bottom:10px}.empty-state h3{color:#50575e;font-weight:500;margin-bottom:8px}.empty-state p{font-size:13px;margin-bottom:0}.activity-list{list-style:none;margin:0;padding:0 19px}.activity-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0;border-bottom:1px solid #f0f0f1}.activity-list li:last-child{border:0}.activity-list strong{font-size:13px;font-weight:500}.activity-list small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.quick-links{padding:4px 19px}.quick-links>a{display:flex;gap:14px;align-items:center;padding:20px 0;border-bottom:1px solid #f0f0f1}.quick-links>a:last-child{border:0}.quick-links>a>span{height:35px;width:35px;flex:none;background:#f0f6fc;color:var(--blue);border-radius:4px;text-align:center;line-height:35px;font-size:20px}.quick-links strong{font-size:13px;display:block}.quick-links small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.quick-links>a>div{flex:1}
.badge{display:inline-flex;padding:3px 9px;border-radius:3px;background:#f0f0f1;color:#646970;font-size:11px}.badge.publish{background:#edf7ed;color:#187734}.badge.pending{background:#fff5df;color:#996800}.table-wrap{background:#fff;border:1px solid var(--line);overflow:auto;border-radius:3px}table{width:100%;border-collapse:collapse;text-align:left;min-width:600px}th{font-weight:500;color:#50575e;border-bottom:1px solid var(--line);font-size:13px;padding:12px 16px}td{padding:14px 16px;vertical-align:top;font-size:13px}tbody tr:nth-child(odd){background:#f9f9f9}.row-title{color:var(--blue);font-size:14px;font-weight:600}.row-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:5px;align-items:center;font-size:12px}.row-actions form{margin:0}.table-empty{text-align:center;padding:45px 15px;color:var(--muted)}.list-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}.tabs{display:flex;gap:10px;font-size:13px}.tabs span{color:#c3c4c7}.tabs .current{color:#1d2327;font-weight:600}.search-form{display:flex;gap:7px}.search-form input{min-width:200px}.pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 0;font-size:12px;color:var(--muted);gap:10px}.pagination>div{display:flex;gap:8px}.page-description{color:var(--muted);margin-bottom:22px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px}.title-input{font-size:22px!important;padding:14px!important;border-color:#c3c4c7!important;margin-bottom:20px}.editor-panel{padding:20px}.editor-panel textarea{border-color:#dcdcde;line-height:1.8;padding:16px}.form-panel{padding:26px;max-width:760px}.form-panel label{max-width:550px}.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.permission-list{padding:0;list-style:none;font-size:12px;line-height:2.2;overflow-wrap:anywhere}.permission-check{color:#00a32a;margin-right:9px}.upload-panel{background:#fff;border:1px dashed #a7aaad;border-radius:3px;padding:24px;display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin-bottom:24px}.upload-panel>div{flex:1;min-width:220px}.upload-panel h2{font-size:15px}.upload-panel p{font-size:12px;color:var(--muted);margin:5px 0 0}.upload-panel input:not([type=file]){width:200px}.upload-panel input[type=file]{max-width:240px}.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.media-grid>.empty-state{grid-column:1/-1}.media-card{background:white;border:1px solid var(--line);border-radius:3px;overflow:hidden}.media-card img{width:100%;height:170px;object-fit:cover;display:block;background:#f6f7f7}.media-card>div{padding:14px}.media-card strong{display:block;font-size:13px;overflow-wrap:anywhere}.media-card small{display:block;color:var(--muted);font-size:11px;margin:4px 0 9px}.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:1050px}.theme-card{border:1px solid var(--line);background:#fff;border-radius:3px;overflow:hidden}.theme-preview{height:230px;background:#f7f5f1;padding:25px 30px;position:relative}.preview-bar{height:4px;background:#444;width:100%;margin-bottom:24px}.preview-title{font-family:Georgia,serif;font-size:25px;color:#252525}.preview-lines{margin:12px 0 23px}.preview-lines i{display:block;width:65%;height:3px;background:#ccc;margin:7px 0}.preview-lines i:nth-child(2){width:50%}.preview-lines i:nth-child(3){width:58%}.preview-columns{display:flex;gap:12px}.preview-columns span{height:55px;background:#e6e0d5;width:30%}.theme-info{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-top:1px solid var(--line)}.theme-info h2{font-size:15px}.theme-info small{font-size:11px;color:var(--muted)}
.login-body{background:#f0f0f1;min-height:100vh;display:flex;align-items:flex-start;justify-content:center}.login-wrap{width:360px;padding:65px 0 35px}.login-logo{display:block;height:75px;width:75px;margin:0 auto 24px;border:3px solid #2271b1;border-radius:50%;font-family:Georgia,serif;font-size:54px;line-height:65px;text-align:center}.login-wrap>h1{text-align:center;font-size:21px;font-weight:500;margin:0 0 7px}.login-subtitle{text-align:center;font-size:12px;color:var(--muted);margin-bottom:26px}.login-card{background:white;border:1px solid #dcdcde;padding:28px 26px;box-shadow:0 1px 3px #0000000a;border-radius:3px}.login-card label{font-weight:400;font-size:14px}.login-card input{font-size:19px;padding:9px}.login-submit{width:100%;margin-top:5px}.back-link{display:block;font-size:13px;color:#646970;margin:22px 0 0 25px}
.site-body{background:#faf9f6}.site-header{padding:65px 8% 38px;border-bottom:1px solid #e1ded7;position:relative}.site-brand{font-family:Georgia,serif;font-size:37px;color:#1d2327}.site-header>p{margin:7px 0;color:#646970}.site-admin-link{position:absolute;top:28px;right:8%;font-size:12px}.site-main{padding:40px 8%;display:grid;grid-template-columns:minmax(0,3fr) minmax(160px,1fr);gap:50px;min-height:50vh}.site-post{margin-bottom:32px;padding:30px 0;border-bottom:1px solid #e1ded7}.site-post h1,.site-post h2{font-family:Georgia,serif;font-size:32px;margin:10px 0 22px;line-height:1.4}.site-post h2 a{color:#1d2327}.site-post p,.site-content{font-size:16px;line-height:1.85;overflow-wrap:anywhere}.site-widget{margin:20px 0;padding:20px 0}.site-widget h3{font-size:16px}.site-widget p{white-space:normal;overflow-wrap:anywhere}.site-footer{padding:35px 8%;border-top:1px solid #e1ded7;color:#646970;font-size:12px}
@media(min-width:1500px){.admin-main{padding-left:45px;padding-right:45px}.welcome-panel{padding:38px 40px}.stats-grid{gap:24px}}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-grid{grid-template-columns:minmax(0,1fr) 250px}.role-grid{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.bar-muted{display:none}}@media(max-width:782px){.adminbar{height:46px;padding:0 13px}.menu-toggle{display:block}.brand-mark{display:none}.bar-left,.bar-right{gap:9px}.bar-right>span{font-size:11px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar{top:46px;transform:translateX(-100%);transition:transform .18s;width:210px;box-shadow:4px 0 12px #0002}.menu-open .sidebar{transform:translateX(0)}.admin-main{margin-left:0;margin-top:46px;padding:23px 17px 0;min-height:calc(100vh - 46px)}.page-heading{align-items:flex-start}h1{font-size:23px}.eyebrow{font-size:9px}.welcome-panel{padding:23px}.welcome-panel h2{font-size:25px}.welcome-art{display:none}.welcome-panel p{font-size:13px}.stats-grid{gap:12px}.stat-card{padding:16px}.stat-card strong{font-size:29px}.editor-grid{grid-template-columns:1fr}.list-toolbar{flex-wrap:wrap}.search-form{width:100%}.search-form input{min-width:0}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-grid{grid-template-columns:1fr}.upload-panel{padding:18px}.upload-panel input:not([type=file]),.upload-panel input[type=file]{width:100%;max-width:100%}.form-panel{padding:20px}.admin-footer{font-size:10px}.login-wrap{width:min(360px,calc(100% - 34px));padding-top:40px}.site-main{grid-template-columns:1fr;padding:25px 6%;gap:15px}.site-header{padding:60px 6% 30px}.site-brand{font-size:29px}.site-post h1,.site-post h2{font-size:27px}.site-footer{padding:25px 6%}.pagination{flex-wrap:wrap}.pagination .button{font-size:11px}}
.editor-toolbar{display:flex;gap:5px;align-items:center;padding:9px;background:#f6f7f7;border:1px solid #dcdcde;border-bottom:0}.editor-toolbar button{background:white;border:1px solid #c3c4c7;border-radius:2px;padding:4px 10px;color:#2c3338}.editor-toolbar button:hover{border-color:#2271b1;color:#2271b1}.editor-wordcount{margin-left:auto;font-size:11px;color:#646970}.site-featured{width:100%;max-height:480px;object-fit:cover;border-radius:3px;margin:0 0 20px}.site-nav{display:flex;gap:25px;flex-wrap:wrap;padding:18px 8%;border-bottom:1px solid #e1ded7}.site-content blockquote{border-left:3px solid #2271b1;margin:20px 0;padding:10px 20px;background:#f0f6fc}.notification-count{background:#d63638;border-radius:20px;padding:1px 6px;font-size:11px;color:white}.notification-link{font-size:12px}@media(max-width:600px){.bar-right>span{display:none}.editor-toolbar{flex-wrap:wrap}}
.bar-right>a{white-space:nowrap}@media(max-width:600px){.bar-left{min-width:0;flex:1;margin-right:10px}.bar-left>a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:90px}.bar-right{flex:none;gap:8px}.notification-link{font-size:11px}.tabs{flex-wrap:wrap}}

.visual-editor{min-height:400px;padding:18px;line-height:1.8;overflow-wrap:anywhere;outline:none}.visual-editor:focus{box-shadow:inset 0 0 0 2px #2271b1}.visual-editor blockquote{border-left:4px solid #2271b1;margin-left:0;padding-left:18px}.visual-editor[hidden]{display:none}

.editor-modes{display:flex;gap:4px;flex-wrap:wrap;padding:10px 12px;background:#f6f7f7;border-bottom:1px solid #dcdcde}
.editor-modes button,.editor-toolbar button{cursor:pointer;border:1px solid #c3c4c7;background:#fff;border-radius:3px;padding:7px 10px;color:#1d2327}
.editor-modes button[aria-pressed=true]{background:#2271b1;color:white;border-color:#2271b1}
.editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:10px}
.editor-toolbar select{width:auto;min-width:130px;margin:0}
.editor-toolbar button:hover{background:#eaf3fa}.editor-toolbar button:disabled{opacity:.45;cursor:default}
.editor-status{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid #dcdcde;font-size:12px;color:#50575e}
.editor-panel>textarea[hidden]{display:none}.editor-panel>textarea{width:100%;min-height:400px;padding:18px;box-sizing:border-box;font-family:monospace}
.visual-editor{font-size:16px}.visual-editor p{margin:0 0 1em}.visual-editor a{color:#2271b1;text-decoration:underline}
.visual-editor hr,.site-content hr{border:0;border-top:1px solid #c3c4c7;margin:24px 0}
.editor-fullscreen{position:fixed;inset:0;z-index:100000;margin:0;overflow:auto;border-radius:0;background:white}
.editor-fullscreen .visual-editor,.editor-fullscreen>textarea{min-height:calc(100vh - 210px);max-width:980px;margin:auto}
.editor-fullscreen-open{overflow:hidden}
#editor-link-dialog{border:1px solid #c3c4c7;border-radius:6px;padding:24px;width:min(440px,85vw)}
#editor-link-dialog::backdrop{background:#0008}
@media(max-width:782px){.editor-toolbar button{min-height:40px}.editor-toolbar select{max-width:100%}.visual-editor{min-height:320px}.editor-status{display:block}}
/* Post editor layout */
.editor-grid{align-items:start;gap:22px}
.post-editor-main,.post-editor-settings{min-width:0}
.post-editor-main .title-input{margin-bottom:16px}
.post-editor-main .editor-panel{padding:0;overflow:hidden}
.post-editor-main .editor-modes{padding:10px 12px;gap:6px;align-items:center}
.post-editor-main .editor-modes button{font-size:12px;line-height:1.4;min-height:32px;padding:6px 12px}
.post-editor-main [data-editor-fullscreen]{margin-left:auto}
.post-editor-main .editor-toolbar{margin:0;border:0;border-bottom:1px solid var(--line);gap:4px;padding:10px 12px;background:#f6f7f7}
.post-editor-main .editor-toolbar select{width:132px;min-width:132px;height:34px;padding:5px 8px;font-size:12px;flex:none;margin-right:6px}
.post-editor-main .editor-toolbar button{height:34px;min-width:34px;padding:5px 8px;font-size:12px;line-height:1.2;flex:none;display:inline-flex;align-items:center;justify-content:center}
.post-editor-main [data-format=bold]{font-weight:700}
.post-editor-main [data-format=italic]{font-style:italic}
.post-editor-main [data-format=underline]{text-decoration:underline}
.post-editor-main [data-format=strike]{text-decoration:line-through}
.post-editor-main .visual-editor{min-height:440px;padding:24px;line-height:1.8;overflow-wrap:anywhere;outline:none}
.post-editor-main .visual-editor:empty:before{content:"Mulai menulis artikel Anda…";color:#8c8f94;pointer-events:none}
.post-editor-main .visual-editor:focus{box-shadow:inset 0 0 0 2px #2271b1}
.post-editor-main .visual-editor[hidden]{display:none}
.post-editor-main .editor-panel>textarea{border:0;border-radius:0;margin:0;padding:24px;min-height:440px;resize:vertical}
.post-editor-main .editor-status{align-items:start;background:#fafafa;font-size:11px;padding:10px 14px}
.post-editor-main .editor-wordcount{margin:0;white-space:nowrap}
.post-editor-main #editor-message{flex:1;text-align:right;max-width:340px}
.post-editor-main .editor-panel>.help{margin:0;padding:10px 14px;border-top:1px solid #eee;font-size:11px;background:#fff}
.post-editor-settings .panel{margin-bottom:16px}
.post-editor-settings .panel-title{padding:12px 16px;background:#fafafa}
.post-editor-settings .panel-body{padding:16px}
.post-editor-settings label{font-size:13px;margin-bottom:16px}
.post-editor-settings .form-buttons{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.post-editor-settings .form-buttons .primary{flex:1}
.post-editor-settings fieldset{max-height:240px;overflow:auto}
.post-editor-main .editor-fullscreen{border:0;overflow:auto}
@media(max-width:1100px){.editor-grid{grid-template-columns:minmax(0,1fr) 260px;gap:18px}}
@media(max-width:960px){.editor-grid{grid-template-columns:minmax(0,1fr)}.post-editor-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.post-editor-settings .panel{margin:0}}
@media(max-width:600px){.post-editor-settings{grid-template-columns:minmax(0,1fr)}.post-editor-main .title-input{font-size:20px!important}.post-editor-main .visual-editor,.post-editor-main .editor-panel>textarea{padding:18px;min-height:340px}.post-editor-main .editor-toolbar button{min-height:36px}.post-editor-main .editor-toolbar select{width:100%;margin-right:0}.post-editor-main .editor-status{display:flex;flex-direction:column;gap:5px}.post-editor-main #editor-message{text-align:left;max-width:none}.post-editor-main .editor-modes{gap:4px}.post-editor-main .editor-modes button{padding:6px 8px}}
.notice[data-auto-dismiss]{position:relative;padding-right:45px;animation:notice-soft-in .3s ease-out both;transition:opacity .3s ease,transform .3s ease}
.notice-close{position:absolute;right:9px;top:8px;width:28px;height:28px;border:0;background:transparent;color:#646970;font-size:23px;line-height:1;border-radius:3px}
.notice-close:hover{background:#f0f0f1;color:#1d2327}
.notice-close:focus-visible{outline:2px solid #2271b1;outline-offset:2px}
.notice[data-auto-dismiss].notice-dismissing{animation:none;opacity:0;transform:translateY(-5px);pointer-events:none}
@media(prefers-reduced-motion:reduce){.notice[data-auto-dismiss]{transition:none;animation:none}}
.roles-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 24px}
.roles-info-card{display:flex;align-items:flex-start;gap:14px;padding:20px;background:#f0f6fc;border:1px solid #d5e4f2;border-radius:8px}
.roles-info-card>div{min-width:0}
.roles-info-icon{display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:10px;background:#dceafb;color:#2271b1}
.roles-info-icon svg{width:23px;height:23px}
.roles-info-card h2{font-size:14px;line-height:1.5;margin:0 0 6px;color:#1d3550}
.roles-info-card p{font-size:13px;line-height:1.75;margin:0;color:#526477}
.roles-info-card-secure{background:#f1f8f4;border-color:#d5e8dc}
.roles-info-card-secure .roles-info-icon{background:#dfeee5;color:#27824c}
.roles-info-card-secure h2{color:#254b35}
.roles-info-card-secure p{color:#52685b}
@media(max-width:1100px){.roles-info-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.roles-info-card{padding:16px;gap:12px}.roles-info-grid{gap:12px;margin-bottom:20px}}
.roles-workspace{display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);gap:24px;align-items:start}
.roles-workspace>.panel{margin:0}.roles-workspace>.panel:only-child{grid-column:1/-1}
.role-name-list{display:flex;flex-wrap:wrap;gap:12px}
.role-name-button{padding:15px 22px;border:1px solid #dcdcde;background:#fff;border-radius:6px;font-weight:600;color:#2271b1;min-height:52px}
.role-name-button:hover{background:#f0f6fc;border-color:#2271b1}
.role-name-button:focus-visible{outline:2px solid #2271b1;outline-offset:3px}
.role-permission-dialog{width:min(700px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #dcdcde;border-radius:10px;box-shadow:0 18px 70px #0003;overflow:auto;color:#1d2327}
.role-permission-dialog::backdrop{background:rgba(18,28,38,.55)}
.role-permission-dialog>.panel-title{position:sticky;top:0;background:#fafafa;border-bottom:1px solid #dcdcde;z-index:1}
.role-permission-dialog>.panel-title h2{font-size:20px}
.role-dialog-close{border:0;background:transparent;font-size:28px;color:#646970;width:36px;height:36px;border-radius:4px}
.role-dialog-close:hover{background:#e9eaeb}
.role-permission-dialog fieldset{padding:14px;border:1px solid #e5e7eb;border-radius:6px;min-width:0}
.role-permission-dialog legend{padding:0 6px;color:#2271b1;font-size:13px}
.role-permission-dialog .check-label{align-items:flex-start}
.role-permission-dialog input[type=checkbox]{margin-top:4px;flex:none}
.role-permission-dialog small{font-size:11px}.role-dialog-open{overflow:hidden}
@media(max-width:1000px){.roles-workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.role-name-button{flex:1;min-width:130px}.role-permission-dialog{max-height:calc(100dvh - 24px)}}
@keyframes notice-soft-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.post-image-preview{border:1px dashed #c3c4c7;padding:10px;border-radius:4px;text-align:center;margin-bottom:12px}
.post-image-preview img{width:112px;height:84px;max-width:100%;object-fit:contain;display:block;margin:0 auto;border-radius:4px;background:#f6f7f7}
.post-image-preview img[hidden]{display:none}.post-image-preview p{margin:8px 0;font-size:12px;overflow-wrap:anywhere}
.post-image-buttons{display:flex;flex-direction:column;gap:8px}.post-image-buttons .link{align-self:flex-start}
#post-upload-panel{margin-top:16px;padding-top:14px;border-top:1px solid #dcdcde}
#post-upload-panel input[type=file]{max-width:100%;font-size:12px;margin-top:8px}
#post-media-dialog{width:min(850px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #dcdcde;border-radius:8px;overflow:auto}
#post-media-dialog::backdrop{background:#16233288}
#post-media-dialog .panel-title{position:sticky;top:0;background:white;z-index:1}
.post-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:12px}
.post-media-choice{background:white;border:1px solid #dcdcde;border-radius:5px;padding:8px;color:#2271b1;overflow:hidden}
.post-media-choice:hover,.post-media-choice:focus-visible{border-color:#2271b1;outline:2px solid #2271b1}
.post-media-choice img{width:100%;height:80px;object-fit:contain;display:block;border-radius:3px;background:#f6f7f7}
.post-media-choice span{display:block;font-size:11px;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post-media-choice[hidden]{display:none}
@media(max-width:600px){.post-media-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px}}
#post-media-dialog .post-media-grid{display:grid;grid-template-columns:repeat(auto-fill,96px);justify-content:start;gap:12px}
#post-media-dialog .post-media-choice{width:96px;min-width:0;max-width:96px;padding:7px}
#post-media-dialog .post-media-choice img{width:80px;height:64px;max-width:80px;max-height:64px;object-fit:contain;margin:auto}
#post-media-dialog .post-media-choice span{width:80px;max-width:80px;font-size:11px}
@media(max-width:600px){#post-media-dialog .post-media-grid{gap:8px}}
.post-tag-input-row{display:flex;gap:6px}.post-tag-input-row input{min-width:0;font-size:12px}
#post-tag-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.post-tag-chip{display:inline-flex;align-items:center;gap:6px;background:#eaf3fb;border:1px solid #c9deef;border-radius:16px;padding:3px 8px 3px 11px;color:#1f5682;font-size:12px;max-width:100%}
.post-tag-chip>span{overflow-wrap:anywhere}.post-tag-chip button{border:0;background:none;color:#4e6d86;font-size:17px;padding:0 3px;line-height:1.3}
.post-tag-chip button:hover{color:#b32d2e}
.article-list-banner{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(120deg,#eff5fc,#fff 75%);border:1px solid #d8e4f0;border-radius:10px;padding:26px 30px;margin-bottom:22px}
.article-banner-kicker{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#4277a6}
.article-list-banner h2{font-size:25px;line-height:1.35;margin:8px 0;color:#233b52;font-weight:600}
.article-list-banner p{margin:0;color:#687e92;font-size:13px}
.article-list-summary{display:flex;flex-direction:column;text-align:right;min-width:130px}
.article-list-summary strong{font-size:36px;font-weight:600;line-height:1.2;color:#2271b1}.article-list-summary span{font-size:11px;color:#687e92;margin-top:6px}
.article-list-page .list-toolbar{background:#fff;padding:14px 16px;border:1px solid #e1e5ea;border-radius:8px;flex-wrap:wrap}
.article-list-page .tabs{gap:5px;flex-wrap:wrap}.article-list-page .tab-divider{display:none}
.article-list-page .tabs a{padding:7px 11px;border-radius:5px;color:#68727d;font-size:12px}
.article-list-page .tabs a:hover{background:#f5f7fa}.article-list-page .tabs .current{background:#eaf3fc;color:#2271b1}
.article-list-page .search-form input{border-color:#d0d7df;font-size:12px;border-radius:5px}
.article-list-page .table-wrap{border-color:#e1e5ea;border-radius:9px;box-shadow:0 3px 12px #1b355505}
.article-list-page th{background:#f7f9fb;font-size:11px;font-weight:600;color:#687582;padding:14px 18px}
.article-list-page td{padding:18px;border-bottom:1px solid #eef1f4;vertical-align:middle}
.article-list-page tbody tr:nth-child(odd){background:#fff}.article-list-page tbody tr:hover{background:#fafcfe}
.article-title-cell{display:flex;gap:13px;align-items:flex-start}.article-title-cell>div{min-width:0}
.article-row-icon{display:flex;align-items:center;justify-content:center;width:38px;height:42px;flex:none;border-radius:6px;background:#eef4fb;color:#5b87b1;font-size:21px}
.article-list-page .row-title{color:#274860;font-size:14px}.article-slug{display:block;color:#9aa4ae;font-size:11px;margin:4px 0;overflow-wrap:anywhere}
.article-list-page .row-actions{gap:12px;margin-top:8px;font-size:11px}.article-list-page .row-actions button{font-size:11px}
.article-author{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:#596979;font-size:12px}
.article-avatar{display:flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%;background:#edf0f5;color:#718096;font-size:11px;font-weight:600}
.article-list-page .badge{border-radius:20px;padding:5px 10px;white-space:nowrap}
.article-list-page .badge.draft{background:#eef2f6;color:#65778a}
.article-empty-icon{font-size:32px;color:#adc0d3;margin-bottom:10px}
@media(max-width:600px){.article-list-banner{padding:20px;align-items:flex-start;gap:14px}.article-list-banner h2{font-size:20px}.article-list-summary{min-width:70px}.article-list-summary strong{font-size:28px}.article-list-summary span{max-width:85px}.article-list-page .list-toolbar{padding:12px}.article-list-page .tabs a{padding:6px 8px}}
/* Dashboard presentation, scoped to keep other screens unchanged. */
.dashboard-home .welcome-panel{position:relative;overflow:hidden;border:1px solid #dce8f3;border-radius:18px;background:linear-gradient(120deg,#f4faff 0%,#e8f2ff 55%,#eeeaff 100%);padding:34px 38px;box-shadow:0 8px 26px #23466508}
.dashboard-home .welcome-label{color:#6376a2;letter-spacing:2px;font-size:10px;font-weight:700}
.dashboard-home .welcome-panel h2{font-size:30px;color:#233b59;letter-spacing:-.7px;margin:12px 0}
.dashboard-home .welcome-panel p{max-width:470px;color:#64758b;line-height:1.8}
.dashboard-home .welcome-panel a{display:inline-flex;margin-top:8px;padding:9px 15px;border-radius:9px;background:#ffffffc9;color:#315f96;font-weight:600;text-decoration:none;border:1px solid #dce7f2}
.dashboard-home .welcome-art{opacity:.8}.dashboard-home .welcome-art span{border-radius:24px;transform:rotate(-10deg);background:linear-gradient(140deg,#729cdb,#9c8acf);color:white;box-shadow:0 16px 32px #6281b633}
.dashboard-home .stats-grid{gap:18px;margin:24px 0}
.dashboard-home .stat-card{border:1px solid #e5eaf1;border-radius:14px;padding:22px;background:#fff;box-shadow:0 4px 16px #1e405007;transition:transform .2s ease,box-shadow .2s ease}
.dashboard-home .stat-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #1e405012}
.dashboard-home .dashboard-stat-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dashboard-home .dashboard-stat-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#eaf3fd;color:#4580bd;font-size:21px}
.dashboard-home .dashboard-stat-pages .dashboard-stat-icon{background:#f0ebfa;color:#8a6ac2}
.dashboard-home .dashboard-stat-media .dashboard-stat-icon{background:#e7f6ee;color:#4b9470}
.dashboard-home .dashboard-stat-users .dashboard-stat-icon{background:#fff1e5;color:#ba8759}
.dashboard-home .stat-card strong{font-size:34px;line-height:1.3;color:#2d4058;margin:12px 0 8px}
.dashboard-home .stat-card small{color:#7d8a9b;font-size:11px}
.dashboard-home .panel{border-radius:14px;border-color:#e5eaf1;overflow:hidden;box-shadow:0 4px 16px #1e405007}
.dashboard-home .panel-title{padding:20px 22px;border-bottom-color:#eef1f6}
.dashboard-home .panel-title h2{font-size:15px;color:#354b64}
.dashboard-home .activity-list li{padding:18px 22px;border-bottom-color:#eef1f6}
.dashboard-home .activity-list strong{font-weight:600;color:#3d5067;overflow-wrap:anywhere}
.dashboard-home .activity-list small{color:#8a97a7;margin-top:6px}
.dashboard-home .badge{border-radius:20px;padding:5px 10px;font-size:10px;white-space:nowrap}
.dashboard-home .quick-links{padding:8px 16px}
.dashboard-home .quick-links a{border-radius:10px;padding:16px 10px;transition:background .2s}
.dashboard-home .quick-links a:hover{background:#f5f8fc}
.dashboard-home .quick-links a>span{border-radius:12px;background:#edf3fb;color:#6586b0}
.dashboard-home .quick-links strong{color:#3a516c;font-size:13px}
.dashboard-home .quick-links small{color:#8795a5;line-height:1.6}
@media(max-width:600px){.dashboard-home .welcome-panel{padding:24px;border-radius:14px}.dashboard-home .welcome-panel h2{font-size:24px}.dashboard-home .welcome-art{display:none}.dashboard-home .stats-grid{gap:12px}.dashboard-home .stat-card{padding:16px}.dashboard-home .stat-card strong{font-size:28px}.dashboard-home .activity-list li{gap:10px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.dashboard-home .stat-card,.dashboard-home .quick-links a{transition:none}.dashboard-home .stat-card:hover{transform:none}}

/* Category list only. */
.category-home .category-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 34px;margin-bottom:26px;border:1px solid #dce8ed;border-radius:16px;background:linear-gradient(115deg,#eff8fa,#edf3ff 65%,#f1edfc);box-shadow:0 5px 20px #25445b06}
.category-home .category-eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#6c8e9b}
.category-home .category-banner h2{font-size:26px;letter-spacing:-.5px;color:#2c4860;margin:10px 0}
.category-home .category-banner p{color:#788b9e;line-height:1.8;margin:0;max-width:480px}
.category-home .category-count{display:grid;grid-template-columns:auto auto;align-items:center;gap:0 12px;flex-shrink:0;padding:16px 22px;background:#ffffffa8;border:1px solid #fff;border-radius:14px}
.category-home .category-count>span{grid-row:1/3;font-size:32px;color:#7c97c1}
.category-home .category-count strong{font-size:30px;line-height:1.2;color:#3e5677}
.category-home .category-count small{font-size:11px;color:#8998ab}
.category-home .category-list-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 2px 14px}
.category-home .category-list-heading h2{font-size:15px;margin:0;color:#405773}
.category-home .category-list-heading>span{font-size:11px;color:#929dab}
.category-home .table-wrap{border:1px solid #e1e7ef;border-radius:14px;box-shadow:0 5px 20px #25445b05;overflow-x:auto}
.category-home th{background:#f7f9fc;padding:16px 20px;color:#7e8c9c;font-size:11px;font-weight:600}
.category-home td{padding:20px;border-bottom:1px solid #eef1f6;color:#7a899a;font-size:12px}
.category-home tbody tr:hover{background:#fafcfe}
.category-home .category-item-icon{display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;margin-right:10px;border-radius:10px;background:#edf4fb;color:#7a9cbe;vertical-align:middle;font-size:18px}
.category-home .row-title{color:#36597c;font-weight:600}
.category-home .row-actions{gap:14px;white-space:nowrap}
.category-home .row-actions a{padding:5px 9px;border-radius:6px;background:#eef5fc;text-decoration:none;font-size:11px}
.category-home .row-actions button{font-size:11px}
.category-home .pagination{color:#91a0b0;font-size:12px;padding:16px 2px}
.category-home .table-empty{padding:46px;color:#8c9bae}
@media(max-width:600px){.category-home .category-banner{padding:22px;align-items:flex-start;gap:14px}.category-home .category-banner h2{font-size:21px}.category-home .category-count{padding:12px}.category-home .category-count>span{display:none}.category-home .category-count strong{font-size:25px}.category-home .category-count{grid-template-columns:1fr}.category-home .category-list-heading{align-items:flex-start;flex-direction:column;gap:4px}.category-home table{min-width:560px}}

/* Add/edit category form only. */
.category-form-page{max-width:850px}
.category-form-intro{display:flex;align-items:center;gap:20px;margin-bottom:22px;padding:26px 30px;border:1px solid #dfe8f2;border-radius:16px;background:linear-gradient(115deg,#eff8fa,#eef2ff)}
.category-form-symbol{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:58px;height:58px;border-radius:17px;background:#ffffffb8;color:#7b9abc;font-size:30px}
.category-form-page .category-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#7c92a9}
.category-form-intro h2{margin:8px 0;font-size:23px;color:#36536e;letter-spacing:-.4px}
.category-form-intro p{margin:0;color:#8291a3;font-size:12px;line-height:1.8}
.category-form-page .form-panel{max-width:none;padding:30px;border-radius:16px;border:1px solid #e0e7ef;box-shadow:0 6px 24px #25445b06}
.category-form-heading{border-bottom:1px solid #eef1f5;margin-bottom:24px;padding-bottom:18px}
.category-form-heading h2{font-size:16px;margin:0 0 7px;color:#3b536e}
.category-form-heading p{font-size:12px;color:#8b99aa;margin:0;line-height:1.7}
.category-form-page label{color:#52677e;font-size:12px;font-weight:600}
.category-form-page input,.category-form-page textarea{border:1px solid #dbe3ed;border-radius:9px;background:#fbfcfe;padding:12px 14px;font-size:14px;transition:border-color .2s,box-shadow .2s}
.category-form-page input:focus,.category-form-page textarea:focus{background:#fff;border-color:#7fa9d5;box-shadow:0 0 0 3px #2271b114;outline:none}
.category-form-page textarea{resize:vertical;min-height:130px}
.category-form-page .form-buttons{border-top:1px solid #eef1f5;padding-top:22px;margin-top:26px;gap:10px}
.category-form-page .button{border-radius:8px;padding:10px 18px}
@media(max-width:600px){.category-form-intro{padding:22px;gap:14px;align-items:flex-start}.category-form-symbol{width:42px;height:42px;font-size:23px;border-radius:12px}.category-form-intro h2{font-size:19px}.category-form-page .form-panel{padding:22px}}

/* Compact Media Library thumbnails; original stored images remain unchanged. */
.media-library-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 32px;margin-bottom:22px;border:1px solid #dfe8ef;border-radius:16px;background:linear-gradient(115deg,#edf8f4,#edf3fc 65%,#eeeafa)}
.media-library-banner>div>span{font-size:10px;letter-spacing:1.7px;color:#7a929e;font-weight:700}
.media-library-banner h2{font-size:25px;letter-spacing:-.4px;color:#34546c;margin:10px 0}
.media-library-banner p{margin:0;font-size:13px;line-height:1.7;color:#8393a4}
.media-library-count{display:flex;flex-direction:column;align-items:center;min-width:74px;background:#ffffffad;border-radius:12px;padding:14px 18px}
.media-library-count strong{font-size:30px;color:#5d7a96}.media-library-count small{font-size:11px;color:#8a99a9}
.media-library-page .upload-panel{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:22px;border:1px solid #e3e8ef;border-radius:14px;background:#fff;box-shadow:0 4px 18px #25445b05}
.media-library-page .upload-panel h2{font-size:15px;color:#405970}
.media-library-page .upload-panel p{font-size:11px;color:#8a98a9}
.media-library-page .upload-panel input{border-radius:8px;min-width:0;max-width:100%}
.media-library-page .upload-panel .button{border-radius:8px}
.media-library-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:26px 0 14px}
.media-library-heading h2{font-size:15px;color:#405970;margin:0}.media-library-heading>span{font-size:11px;color:#8d9bac}
.media-library-page .media-grid{display:grid;grid-template-columns:repeat(auto-fill,154px);gap:16px;align-items:start}
.media-library-page .media-card{width:154px;border:1px solid #e1e7ef;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 3px 12px #25445b05;transition:box-shadow .2s,transform .2s}
.media-library-page .media-card:hover{box-shadow:0 8px 20px #25445b12;transform:translateY(-2px)}
.media-library-page .media-card>a{display:flex;align-items:center;justify-content:center;height:112px;padding:12px;background:#f4f7fb;border-bottom:1px solid #edf1f6}
.media-library-page .media-card>a>img{display:block;width:128px;height:88px;max-width:128px;max-height:88px;object-fit:contain;border-radius:5px}
.media-library-page .media-card>div{padding:12px}
.media-library-page .media-card strong{display:block;font-size:12px;color:#46617b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-library-page .media-card small{display:block;font-size:10px;color:#93a0ae;margin:6px 0 10px}
.media-library-page .media-card button{font-size:10px}
.media-library-page .media-grid>.empty-state{grid-column:1/-1;width:100%;border-radius:14px}
.media-library-page .pagination{font-size:12px;color:#92a0af}
@media(max-width:600px){.media-library-banner{padding:22px}.media-library-banner h2{font-size:21px}.media-library-count{min-width:55px;padding:12px}.media-library-heading{align-items:flex-start;flex-direction:column;gap:5px}.media-library-page .media-grid{grid-template-columns:repeat(auto-fill,minmax(130px,154px));gap:12px}.media-library-page .media-card{width:100%}.media-library-page .upload-panel input{width:100%}}
@media(prefers-reduced-motion:reduce){.media-library-page .media-card{transition:none}.media-library-page .media-card:hover{transform:none}}

#media-preview-dialog{width:min(860px,calc(100vw - 32px));max-height:90vh;padding:0;border:1px solid #e0e7ef;border-radius:16px;box-shadow:0 24px 80px #142c4b40}
#media-preview-dialog::backdrop{background:#172a42a6;backdrop-filter:blur(4px)}
.media-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border-bottom:1px solid #e8edf4}
.media-preview-heading h2{font-size:15px;color:#456078;margin:0;overflow-wrap:anywhere}
.media-preview-heading button{flex-shrink:0;border-radius:8px}
.media-preview-body{display:flex;align-items:center;justify-content:center;padding:20px;background:#f5f7fb;min-height:140px}
#media-preview-image{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;object-fit:contain;border-radius:6px}
.media-library-page .media-preview-open{cursor:zoom-in}

.article-list-page .row-actions a,.article-list-page .row-actions .link{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:5px 8px;background:#eff5fb;text-decoration:none;font-size:11px}
.article-list-page .row-actions .danger{background:#fff1f1;color:#b54b57}
.article-list-page .row-actions{flex-wrap:wrap;gap:8px}
.article-list-page .row-actions span[aria-hidden]{font-size:14px;line-height:1}

.cms-calendar{max-width:320px;margin:12px 0;padding:16px;background:#fff;border:1px solid #e2e8f1;border-radius:14px;box-shadow:0 4px 14px #2c496008;color:#50677c}
.cms-calendar table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px;text-align:center;margin:0}
.cms-calendar caption{font-size:15px;font-weight:600;color:#3b5874;margin-bottom:12px;text-align:center}
.cms-calendar th,.cms-calendar td{padding:7px 0;border:0;background:transparent;text-align:center;font-size:12px}
.cms-calendar th{color:#98a4b3;font-weight:500;font-size:10px}
.cms-calendar .calendar-today{background:#2271b1;color:#fff;font-weight:700;border-radius:9px}
.cms-calendar small{display:block;margin-top:12px;font-size:10px;color:#96a2b0;text-align:center}

/* Responsive calendar gadget. */
.cms-calendar{box-sizing:border-box;width:100%;max-width:360px;min-width:0;padding:clamp(10px,3vw,18px);margin:12px auto;background:linear-gradient(145deg,#fff,#f8faff);border:1px solid #e4eaf3;border-radius:16px;box-shadow:0 6px 22px #304c6908}
.cms-calendar table{width:100%;min-width:0!important;max-width:100%;table-layout:fixed;border-spacing:2px;border-collapse:separate}
.cms-calendar caption{padding:0 0 12px;margin:0;font-size:clamp(14px,2vw,17px);font-weight:700;letter-spacing:-.3px;color:#405c7a}
.cms-calendar th,.cms-calendar td{box-sizing:border-box;width:14.285%;padding:8px 0!important;border:0!important;text-align:center;font-size:12px;line-height:1.5}
.cms-calendar th{font-size:10px;font-weight:600;color:#94a2b4;background:transparent!important}
.cms-calendar td{color:#63788f;border-radius:8px;background:transparent}
.cms-calendar .calendar-today{color:white!important;background:#2271b1!important;box-shadow:0 3px 8px #2271b130}
.cms-calendar small{margin-top:12px;padding-top:10px;border-top:1px solid #edf1f6;font-size:9px;color:#9ba8b8;line-height:1.5;overflow-wrap:anywhere}
.homepage-area:has(.cms-calendar),.site-widget:has(.cms-calendar){min-width:0}
@media(max-width:480px){.cms-calendar{max-width:100%;padding:12px;border-radius:12px}.cms-calendar th,.cms-calendar td{padding:7px 0!important;font-size:11px}.cms-calendar th{font-size:9px}}
.cms-category-list{list-style:none;padding:0;margin:12px 0;max-width:100%}
.cms-category-list li{border-bottom:1px solid #e7edf3}
.cms-category-list a{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 4px;text-decoration:none;color:#526f8a;font-size:14px}
.cms-category-list a span{overflow-wrap:anywhere;min-width:0}
.cms-category-list small{flex:none;border-radius:20px;background:#eaf2fb;color:#7090b0;padding:3px 9px;font-size:11px}

.banner-gadget img{display:block;width:100%;max-width:100%;height:auto;border-radius:10px}.banner-gadget a{display:block}

/* Compact theme library */
.themes-page{max-width:1200px}
.themes-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.themes-intro .page-description{margin:0}
.themes-count{font-size:12px;color:#646970;background:#e9edf2;border-radius:20px;padding:5px 12px;white-space:nowrap}
.themes-upload{display:flex;align-items:center;gap:16px;padding:20px;background:#fff;border:1px solid #dce3eb;border-radius:12px;margin-bottom:26px;box-shadow:0 2px 8px #1b355504}
.themes-upload-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;background:#edf5fc;color:#2271b1;font-size:26px;border-radius:10px}
.themes-upload-copy{flex:1;min-width:0}
.themes-upload-copy h2{font-size:14px;margin:0 0 4px}
.themes-upload-copy p{margin:0;color:#646970;font-size:12px}
.themes-upload-controls{display:flex;align-items:center;gap:12px;min-width:0}
.themes-upload-controls input{max-width:240px;font-size:12px;color:#646970}
.themes-upload-controls input::file-selector-button{padding:7px 10px;border:1px solid #dce3eb;border-radius:6px;background:#f6f8fa;color:#374151;margin-right:9px;cursor:pointer}
.themes-page .button{border-radius:6px;font-size:12px;min-height:32px;padding:5px 11px}
.themes-page .theme-grid{grid-template-columns:repeat(auto-fill,minmax(230px,280px));gap:18px;max-width:none}
.themes-page .theme-card{border:1px solid #dce3eb;border-radius:10px;box-shadow:0 2px 5px #1b355506;transition:box-shadow .18s,border-color .18s}
.themes-page .theme-card:hover{border-color:#aabed4;box-shadow:0 5px 16px #1b35550d}
.themes-page .theme-card.is-active{border-color:#8ab6d9}
.themes-page .theme-preview{height:140px;padding:16px 20px}
.themes-page .preview-bar{height:3px;margin-bottom:12px}
.themes-page .preview-title{font-size:18px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.themes-page .preview-lines{margin:8px 0 12px}
.themes-page .preview-lines i{height:2px;margin:4px 0}
.themes-page .preview-columns{gap:8px}
.themes-page .preview-columns span{height:26px;flex:1}
.themes-page .theme-info{padding:13px 14px 8px;gap:10px;align-items:flex-start}
.themes-page .theme-info>div{min-width:0}
.themes-page .theme-info h2{font-size:14px;overflow-wrap:anywhere;line-height:1.4}
.themes-page .theme-info small{font-size:11px}
.themes-page .badge{border-radius:20px;gap:5px;white-space:nowrap}
.themes-page .badge span{font-size:7px}
.theme-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 14px 14px}
.theme-actions form{margin:0}
.theme-current{font-size:10px;color:#646970}
.themes-format-note{font-size:12px;color:#646970;margin:20px 0 0}
.themes-format-note code{font-size:11px;background:#e9edf2;border-radius:4px;padding:2px 5px}
@media(max-width:1100px){.themes-upload{flex-wrap:wrap}.themes-upload-controls{flex-basis:100%;padding-left:58px}.themes-upload-controls input{flex:1;max-width:none;min-width:0}}
@media(max-width:540px){.themes-intro{align-items:flex-start;flex-direction:column;gap:8px}.themes-upload{padding:16px;gap:12px}.themes-upload-controls{padding-left:0;flex-wrap:wrap}.themes-upload-controls input{flex-basis:100%;width:100%}.themes-page .theme-grid{grid-template-columns:minmax(0,1fr)}.themes-page .theme-preview{height:140px}}

/* Screenshot cards and theme details */
.themes-page .theme-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
@media(max-width:1100px){.themes-page .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.themes-page .theme-card{display:flex;flex-direction:column;border-radius:12px;box-shadow:0 3px 12px #24364b08}
.themes-page .theme-card.is-active{border-color:#2271b1;box-shadow:0 0 0 1px #2271b11c,0 3px 12px #24364b08}
.theme-cover{position:relative;border-bottom:1px solid #e5eaf0;background:#f0f3f7;height:162px;overflow:hidden}
.theme-screenshot-link{display:block;height:100%;position:relative}
.theme-screenshot{display:block;width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .2s}
.theme-screenshot-link:hover .theme-screenshot{transform:scale(1.025)}
.theme-preview-label{position:absolute;bottom:9px;right:9px;padding:4px 8px;border-radius:5px;font-size:10px;background:#ffffffed;color:#4b5563;box-shadow:0 1px 4px #0001;pointer-events:none}
.theme-active-label{position:absolute;top:10px;left:10px;background:#2271b1;color:#fff;border-radius:5px;padding:4px 9px;font-size:10px;font-weight:600;box-shadow:0 2px 6px #0001;pointer-events:none}
.theme-active-label span{font-size:7px;margin-right:3px}
.themes-page .theme-preview{height:162px;padding:23px 20px}
.themes-page .theme-info{border-top:0;padding:16px 16px 7px;align-items:flex-start}
.themes-page .theme-info h2{font-size:15px;margin-bottom:4px}
.themes-page .theme-info small{font-size:11px;color:#7a8593}
.themes-page .theme-info small strong{font-weight:500;color:#526173}
.theme-version{flex-shrink:0;background:#f2f5f8;border:1px solid #e8edf2;border-radius:5px;color:#64748b;font-size:10px;padding:3px 6px}
.theme-description{font-size:12px;line-height:1.7;color:#687587;margin:0;padding:0 16px 14px;min-height:55px;overflow-wrap:anywhere}
.theme-actions{margin-top:auto;padding:0 16px 16px}
.theme-live-link{font-size:11px;font-weight:500}
.theme-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #eef1f5;background:#fbfcfd;padding:10px 16px;font-size:10px;color:#7a8593}
.theme-card-footer form{margin:0}
.theme-delete{background:transparent;border:0;padding:0;color:#b32d2e;font-size:11px;cursor:pointer}
.theme-delete:hover{color:#8a2425;text-decoration:underline}
.theme-delete:disabled{color:#a4abb4;cursor:not-allowed;text-decoration:none}
.theme-protected{font-size:10px;color:#8591a0}
.themes-format-note{line-height:1.9;max-width:800px}
@media(max-width:540px){.themes-page .theme-grid{grid-template-columns:minmax(0,1fr)}}

/* Notifications float above the page without changing content height. */
.notification-popups{position:fixed;top:84px;right:28px;width:min(420px,calc(100vw - 32px));display:flex;flex-direction:column;gap:10px;z-index:10050;pointer-events:none;max-height:calc(100dvh - 104px);overflow-y:auto;padding:4px}
.notification-popups .notice[data-auto-dismiss]{position:relative;margin:0;flex-shrink:0;border:1px solid #dce5df;border-left:4px solid #00a32a;border-radius:10px;padding:16px 42px 16px 18px;background:#fff;box-shadow:0 8px 28px #17324d20;pointer-events:auto;overflow-wrap:anywhere;font-size:13px;line-height:1.65}
.notification-popups .notice.error{border-color:#ecdcdc;border-left-color:#d63638}
.notification-popups .notice.info{border-color:#dbe6ef;border-left-color:#2271b1}
.notification-popups .notice-close{top:11px;right:9px;border-radius:50%}
@media(max-width:782px){.notification-popups{top:64px;right:12px;width:calc(100vw - 24px);max-width:420px;max-height:calc(100dvh - 84px)}}
/* Keep login feedback beside the form, below the welcome text. */
.login-body .notification-popups{position:static;width:100%;max-width:none;max-height:none;overflow:visible;padding:0;gap:12px;margin:0 0 20px}
.login-body .notification-popups:empty{display:none;margin:0}
.login-body .notification-popups .notice[data-auto-dismiss]{border-radius:3px;box-shadow:0 1px 3px #0000000a}
.login-logo:has(img){border:0;line-height:normal}
.login-logo img{display:block;width:100%;height:100%;object-fit:contain}
.login-body .notification-popups .notice[data-auto-dismiss]:not(.notice-dismissing){animation:login-notice-shake .45s ease-in-out}
@keyframes login-notice-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@media(prefers-reduced-motion:reduce){.login-body .notification-popups .notice[data-auto-dismiss]:not(.notice-dismissing){animation:none}}

#theme-screenshot-dialog{width:min(1000px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #dce3eb;border-radius:12px;background:#fff;box-shadow:0 20px 70px #13283b40;overflow:auto}
#theme-screenshot-dialog::backdrop{background:#162536a6;backdrop-filter:blur(3px)}
.theme-screenshot-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;position:sticky;top:0;background:white;border-bottom:1px solid #e5eaf0}
.theme-screenshot-heading h2{font-size:16px}
#theme-screenshot-close{border:0;background:#f0f3f6;color:#526173;border-radius:7px;width:34px;height:34px;font-size:25px;line-height:1}
.theme-screenshot-content{padding:16px;background:#f5f7fa}
#theme-screenshot-full{display:block;max-width:100%;height:auto;margin:auto;border-radius:5px}
body.theme-screenshot-open{overflow:hidden}

.settings-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:24px;max-width:1100px}
.settings-shortcut{display:flex;align-items:center;gap:14px;padding:20px;background:#fff;border:1px solid #dce3eb;border-radius:10px;color:#344054;transition:border-color .18s,box-shadow .18s}
.settings-shortcut:hover{border-color:#9ab8d3;box-shadow:0 4px 16px #24364b0c}
.settings-shortcut>span{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:10px;background:#edf5fc;color:#2271b1;font-size:23px}
.settings-shortcut>div{flex:1}.settings-shortcut h2{font-size:15px;margin-bottom:4px}.settings-shortcut p{font-size:12px;color:#7a8593;margin:0}.settings-shortcut>b{color:#94a3b8;font-weight:400}

/* Settings modules remain usable inside a shared popup. */
#settings-module-dialog{width:min(1280px,calc(100vw - 32px));height:min(880px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);max-width:calc(100vw - 32px);padding:0;border:1px solid #dce3eb;border-radius:12px;overflow:hidden;box-shadow:0 24px 80px #13283b40}
#settings-module-dialog::backdrop{background:#162536a6;backdrop-filter:blur(3px)}
.settings-module-heading{height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid #e5eaf0;background:#fff}
.settings-module-heading h2{font-size:17px}
#settings-module-close{border:0;background:#f0f3f6;color:#526173;border-radius:7px;width:34px;height:34px;font-size:25px}
#settings-module-frame{display:block;width:100%;height:calc(100% - 58px);border:0;background:#f5f6f8}
body.settings-module-open{overflow:hidden}
.settings-embedded .adminbar,.settings-embedded .sidebar,.settings-embedded .admin-footer,.settings-embedded .page-heading .eyebrow,.settings-embedded .page-heading h1{display:none}
.settings-embedded .admin-main{margin:0;min-height:100vh;padding:20px}
.settings-embedded .page-heading{margin-bottom:16px;min-height:0}
.settings-embedded .page-heading:has(>div:only-child){display:none}
.settings-embedded .notification-popups{top:16px}
@media(max-width:782px){#settings-module-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.settings-embedded .admin-main{padding:14px}.settings-module-heading{padding:12px 14px}}

.identity-map-fields{border:1px solid #e0e6ed;border-radius:8px;padding:16px;margin-bottom:20px}
.identity-map-fields legend{font-size:13px;padding:0 6px;margin-bottom:0;color:#526173}
.identity-map-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.identity-map-grid label{margin-bottom:8px;font-size:13px}
.identity-map-fields .help{margin-bottom:0;font-size:12px}
@media(max-width:540px){.identity-map-grid{grid-template-columns:1fr;gap:8px}}

/* Fill the popup's content area while retaining the centered dialog. */
.settings-embedded .admin-main{width:100%;padding:24px}
.settings-embedded .form-panel{max-width:none;width:100%}
.settings-embedded .form-panel label{max-width:none}
.settings-embedded .themes-page,.settings-embedded .theme-grid{max-width:none}
@media(max-width:782px){.settings-embedded .admin-main{padding:16px}}
/* Open settings popups directly on the working controls. */
.settings-embedded .category-banner,
.settings-embedded .category-form-intro,
.settings-embedded .media-library-banner,
.settings-embedded .roles-info-grid{display:none}

.identity-branding{margin-bottom:28px}
.identity-branding-heading{margin-bottom:16px}.identity-branding-heading h2{font-size:17px}.identity-branding-heading p{margin:4px 0 0;font-size:13px;color:#7a8593}
.identity-branding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.identity-image-card{padding:18px;border:1px solid #dce3eb;border-radius:12px;background:#fff;min-width:0}
.identity-image-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.identity-image-header h3{font-size:14px;margin:0}.identity-image-header>span{font-size:10px;color:#64748b;background:#f0f4f8;padding:4px 8px;border-radius:20px}
.identity-image-preview{height:190px;display:flex;align-items:center;justify-content:center;border:1px solid #e6ebf1;border-radius:9px;background-color:#fafbfd;background-image:linear-gradient(45deg,#edf0f4 25%,transparent 25%),linear-gradient(-45deg,#edf0f4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0f4 75%),linear-gradient(-45deg,transparent 75%,#edf0f4 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;padding:16px}
.identity-image-preview img{max-width:100%;max-height:158px;object-fit:contain}.identity-icon-preview img{width:64px;height:64px;object-fit:contain}
.identity-image-placeholder{font-size:40px;color:#b2becb}.identity-image-preview [hidden]{display:none}
.identity-image-description{font-size:12px;color:#687587;margin:12px 0}
.identity-file-label{display:inline-flex;padding:7px 13px;border:1px solid #cbd8e5;border-radius:6px;background:#f5f9fd;color:#2271b1;cursor:pointer;font-size:12px;margin:0;font-weight:500}
.identity-file-label:hover{background:#eaf3fc}
.identity-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.identity-image-card:focus-within .identity-file-label{outline:2px solid #2271b1;outline-offset:3px}
.identity-file-name{font-size:11px;color:#64748b;margin:9px 0;overflow-wrap:anywhere}
.identity-image-hint{font-size:11px;line-height:1.7;color:#8893a1;margin:0}.identity-save-hint{font-size:12px;color:#64748b;margin:12px 0 0}
@media(max-width:600px){.identity-branding-grid{grid-template-columns:1fr;gap:16px}}
.backup-page{max-width:1100px;margin:auto}.backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.backup-card{padding:26px;border-radius:12px;margin:0;min-width:0}.backup-symbol{display:grid;place-items:center;width:44px;height:44px;background:#eaf3fc;color:#2271b1;border-radius:12px;font-size:25px}.backup-symbol.restore{background:#fff2df;color:#a17a38}.backup-card h2,.backup-library h2{font-size:19px;margin:16px 0 12px}.backup-card p{font-size:13px;color:#7c899b;line-height:1.8}.backup-card form>label{display:block;font-size:12px;margin:12px 0 8px}.backup-card input[type=file]{max-width:100%;font-size:12px}.backup-card .backup-consent{display:flex;align-items:flex-start;gap:9px;margin:18px 0;font-size:12px;line-height:1.7}.backup-consent input{flex-shrink:0;margin-top:4px}.backup-info{font-size:12px;line-height:1.9;color:#7c899b;padding:18px 4px}.backup-library{padding:24px;border-radius:12px}.backup-library h2{margin-top:0}.backup-list article{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #e9edf3}.backup-list strong{display:block;font-size:13px;color:#405069;overflow-wrap:anywhere}.backup-list small{display:block;margin-top:6px;font-size:11px;color:#8b97a8}.backup-list .button{white-space:nowrap}@media(max-width:650px){.backup-grid{grid-template-columns:1fr;gap:16px}.backup-card{padding:20px}.backup-list article{align-items:flex-start;flex-direction:column;gap:12px}}
.trash-bulk-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:16px;margin:14px 0;background:#fff;border:1px solid #dce3eb;border-radius:8px}.trash-bulk-toolbar>span{font-size:12px;color:#748195}.trash-bulk-toolbar small{flex-basis:100%;color:#8290a2;font-size:11px;line-height:1.6}.trash-bulk-toolbar .trash-delete-all{color:#b5444c;border-color:#ebc9cd}.trash-bulk-toolbar button:disabled{opacity:.45;cursor:not-allowed}.trash-check-cell{width:40px;text-align:center!important}.trash-check-cell input{width:16px;height:16px;accent-color:#2271b1}

/* Moderation settings and comment queue */
.moderation-page{max-width:1100px;margin:auto}.moderation-settings{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:26px;border-radius:12px}.moderation-intro>span{font-size:10px;font-weight:700;letter-spacing:1px;color:#8592a3}.moderation-intro h2{font-size:20px;margin:10px 0;color:#283b51}.moderation-intro p{font-size:13px;color:#78879a}.moderation-controls{min-width:0}.moderation-controls label{max-width:none}.moderation-controls .help{font-size:12px;line-height:1.7;margin:12px 0 16px}
.moderation-queue{padding:24px;border-radius:12px;margin-top:20px}.moderation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.moderation-heading h2{font-size:18px;margin:0}.moderation-heading>span{font-size:12px;color:#8b96a5}.moderation-tabs{display:flex;gap:24px;margin:22px 0;border-bottom:1px solid #e5eaf1}.moderation-tabs a{padding:0 2px 12px;font-size:13px;font-weight:600;color:#8490a1;text-decoration:none;border-bottom:3px solid transparent}.moderation-tabs a.is-active{color:#2271b1;border-color:#2271b1}.moderation-tabs a:hover{color:#2271b1}
.moderation-card{border:1px solid #e1e7ef;border-radius:10px;margin-bottom:16px;background:#fff;overflow:hidden;overflow-wrap:anywhere}.moderation-card>header{display:flex;gap:12px;align-items:center;padding:18px 20px 12px}.moderation-avatar{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background:#eaf2fa;color:#3977ad;font-weight:600}.moderation-card>header>div{flex:1;min-width:0}.moderation-card strong{font-size:14px;color:#344256}.moderation-card time{display:block;font-size:11px;color:#8b96a5;margin-top:4px}.moderation-badge{padding:5px 10px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}.moderation-badge.pending{background:#fff3d7;color:#936311}.moderation-badge.approved{background:#e6f5ec;color:#267048}.moderation-badge.rejected{background:#fdebec;color:#b5444c}
.moderation-article{margin:0 20px;font-size:12px;line-height:1.8;color:#8894a4}.moderation-article a{color:#2271b1;text-decoration:none}.moderation-content{margin:16px 20px 20px;font-size:14px;line-height:1.8;color:#3b4a5e}.moderation-card>.help{margin:12px 20px;padding:10px;border-radius:6px;background:#fff7e5;color:#94681e;font-size:12px}.moderation-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 20px;background:#f8fafc;border-top:1px solid #edf1f6}.moderation-actions .button{font-size:12px;border-radius:6px}.moderation-actions .moderation-reject{color:#b5444c;border-color:#ebc9cd;background:#fff}.moderation-actions .moderation-reject:hover{background:#fdebec}
.moderation-empty{text-align:center;padding:36px 12px 46px;color:#8693a4}.moderation-empty>span{display:grid;place-items:center;margin:auto;width:56px;height:56px;border-radius:50%;background:#f0f5fa;color:#93aac0;font-size:27px}.moderation-empty h3{font-size:15px;color:#536478;margin:16px 0 8px}.moderation-empty p{font-size:13px;margin:0}
@media(max-width:650px){.moderation-settings{grid-template-columns:1fr;gap:18px;padding:20px}.moderation-queue{padding:16px}.moderation-heading{align-items:flex-start;flex-direction:column;gap:8px}.moderation-tabs{gap:18px}.moderation-card>header{padding:16px 14px 12px;flex-wrap:wrap;gap:9px}.moderation-article{margin:0 14px}.moderation-content{margin:14px}.moderation-actions{padding:12px 14px}}
