/* MeinCMS 3.0.1 · administrative shell only. No public-page selectors. */
:root{--mc301-yellow:#fff21f;--mc301-wine:#870b29;--mc301-wine-dark:#6b091f;--mc301-ink:#262b32;--mc301-muted:#656975;--mc301-line:#e7e6e5;--mc301-paper:#fff;--mc301-canvas:#f8f7f4;--mc301-header-h:72px;}
body.mc301-admin{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--mc301-canvas);color:var(--mc301-ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;}
.mc301-admin *, .mc301-admin *::before,.mc301-admin *::after{box-sizing:border-box;}
.mc301-admin a{text-decoration:none;}
.mc301-header{height:var(--mc301-header-h);min-height:var(--mc301-header-h);position:sticky;top:0;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 clamp(14px,2.4vw,36px);background:var(--mc301-yellow);border-bottom:3px solid var(--mc301-wine);box-shadow:0 2px 6px #38060b09;}
.mc301-brand{display:inline-flex;align-items:center;gap:18px;color:var(--mc301-wine)!important;text-decoration:none!important;white-space:nowrap;min-width:0;}
.mc301-brand strong{font-weight:850;font-size:clamp(1.25rem,2vw,1.8rem);letter-spacing:-.035em;}
.mc301-brand-logo{height:auto;max-height:54px;max-width:200px;object-fit:contain;display:block;flex-shrink:1;}
.mc301-brand-logo[data-width="80"]{width:80px}.mc301-brand-logo[data-width="100"]{width:100px}.mc301-brand-logo[data-width="120"]{width:120px}.mc301-brand-logo[data-width="140"]{width:140px}.mc301-brand-logo[data-width="160"]{width:160px}.mc301-brand-logo[data-width="180"]{width:180px}.mc301-brand-logo[data-width="200"]{width:200px}
.mc301-brand-divider{height:32px;border-left:1px solid #8b102a6f;}
.mc301-header-actions{display:flex;align-items:center;gap:clamp(5px,1vw,12px);margin-left:auto;}
.mc301-header-actions>a,.mc301-user-menu>summary,.mc301-editor-tools>a,.mc301-editor-tools .mc301-user-menu>summary,.mc301-menu-toggle{display:inline-flex;align-items:center;justify-content:center;color:var(--mc301-wine)!important;border:0;border-radius:8px;padding:11px;background:transparent;min-width:42px;min-height:42px;cursor:pointer;transition:background .15s ease;}
.mc301-header-actions>a:hover,.mc301-user-menu>summary:hover,.mc301-editor-tools>a:hover,.mc301-editor-tools .mc301-user-menu>summary:hover,.mc301-menu-toggle:hover{background:#870b2917;}
.mc301-header-actions svg,.mc301-editor-tools svg{width:23px;height:23px;}
.mc301-user-menu{position:relative;}
.mc301-user-menu>summary{list-style:none;}
.mc301-user-menu>summary::-webkit-details-marker{display:none;}
.mc301-user-dropdown{position:absolute;top:calc(100% + 12px);right:0;width:270px;padding:14px;display:grid;gap:10px;background:#fff;color:#252b32;border:1px solid #e6e1dd;border-radius:10px;box-shadow:0 14px 48px #20151b26;z-index:110;overflow-wrap:anywhere;}
.mc301-user-dropdown>span{color:#6f7278;font-size:.88rem;}
.mc301-user-dropdown>a,.mc301-user-dropdown button{font:inherit;color:#68162c;text-align:left;border:0;background:#f8f4f5;padding:10px;border-radius:7px;cursor:pointer;display:flex;gap:8px;align-items:center;}
.mc301-user-dropdown form{margin:0;}.mc301-user-dropdown button{width:100%}.mc301-user-dropdown button svg{width:17px;height:17px;}
.mc301-shell{display:grid;grid-template-columns:258px minmax(0,1fr);flex:1;min-height:calc(100vh - var(--mc301-header-h));align-items:stretch;}
.mc301-sidebar{position:sticky;top:var(--mc301-header-h);height:calc(100vh - var(--mc301-header-h));min-height:0;overflow-y:auto;overscroll-behavior:contain;background:var(--mc301-paper);border-right:1px solid var(--mc301-line);padding:22px 12px 18px;display:flex;flex-direction:column;gap:24px;scrollbar-width:thin;}
.mc301-sidebar nav{display:grid;gap:4px;}
.mc301-nav-home,.mc301-group>summary{display:flex;align-items:center;gap:14px;color:#2a2c31!important;padding:12px 13px;border-radius:8px;min-height:48px;font-weight:700;font-size:.94rem;cursor:pointer;}
.mc301-nav-home svg,.mc301-group>summary svg:first-child{flex:0 0 auto;width:21px;height:21px;}
.mc301-nav-home.is-active,.mc301-nav-home:hover{background:var(--mc301-wine);color:#fff!important;}
.mc301-group>summary:hover{background:#f7f2f2;color:var(--mc301-wine)!important;}
.mc301-group>summary{list-style:none;}
.mc301-group>summary::-webkit-details-marker{display:none;}
.mc301-group>summary svg:last-child{width:16px;height:16px;margin-left:auto;transition:transform .15s;}
.mc301-group[open]>summary svg:last-child{transform:rotate(180deg);}
.mc301-group[open]>summary{color:var(--mc301-wine)!important;}
.mc301-group-links{display:grid;gap:2px;margin:0 4px 7px 25px;padding:3px 0 5px 15px;border-left:2px solid #f0e6e8;}
.mc301-subgroup{margin:4px 0 4px 2px}.mc301-subgroup>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border-radius:6px;color:#4a4d57;font-size:.87rem;font-weight:700}.mc301-subgroup>summary::-webkit-details-marker{display:none}.mc301-subgroup>summary:hover{background:#f9f1f2;color:var(--mc301-wine)}.mc301-subgroup>summary svg{width:15px;height:15px}.mc301-subgroup[open]>summary svg{transform:rotate(180deg)}.mc301-subgroup>a{margin-left:9px}.mc301-group-links a{display:block;padding:9px 10px;color:#4a4d57!important;border-radius:6px;font-size:.87rem;line-height:1.2;}
.mc301-group-links a:hover,.mc301-group-links a:focus-visible{background:#f9f1f2;color:var(--mc301-wine)!important;}
.mc301-group-links a.is-current{background:#fff0f2;color:var(--mc301-wine)!important;font-weight:800;}
.mc301-sidebar-footer{display:grid;gap:3px;margin-top:auto;padding:12px;color:#85848b;font-size:.73rem;border-top:1px solid var(--mc301-line);}
.mc301-sidebar-footer strong{color:var(--mc301-wine);font-size:.83rem;}
.mc301-admin .mc301-main{min-width:0;max-width:none;width:100%;margin:0;padding:clamp(20px,3vw,45px);box-sizing:border-box;}
.mc301-admin .mc301-main .mc30-dashboard{max-width:1550px;}
.mc301-admin .mc301-footer{background:var(--mc301-canvas);border-top:1px solid var(--mc301-line);margin:0;padding:10px 24px 10px 280px;color:#888;font-size:.72rem;text-align:left;}
.mc301-menu-toggle{display:none;}
.mc301-skip{position:fixed;top:-100px;left:12px;z-index:200;background:#fff;color:#721129;padding:10px 16px;border-radius:8px;}
.mc301-skip:focus{top:10px;}
.mc301-admin a:focus-visible,.mc301-admin button:focus-visible,.mc301-admin summary:focus-visible,.mc301-editor-header a:focus-visible,.mc301-editor-header button:focus-visible{outline:3px solid #9b1434;outline-offset:2px;}
.mc301-settings{max-width:1200px;margin:0 auto;}
.mc301-settings h1{font-size:clamp(1.8rem,3vw,2.7rem);margin:9px 0 12px;color:var(--mc301-ink);}
.mc301-settings>p{max-width:850px;line-height:1.65;}
.mc301-branding-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(260px,.9fr);gap:24px;margin-top:24px;align-items:start;}
.mc301-branding-form,.mc301-branding-preview{background:#fff;border:1px solid #e4e1df;border-radius:12px;padding:clamp(18px,3vw,28px);box-shadow:0 3px 15px #240d1910;}
.mc301-branding-form h2,.mc301-branding-preview h2{margin:4px 0 16px;font-size:1.25rem;}
.mc301-branding-form form{display:grid;gap:20px;}
.mc301-branding-form form>label{display:grid;gap:9px;font-weight:650;}
.mc301-branding-form input[type=file],.mc301-branding-form select{max-width:100%;padding:12px;border:1px solid #d6d2d3;border-radius:8px;background:#fff;font:inherit;color:#2a2c32;}
.mc301-branding-form label.mc301-check{display:flex;align-items:flex-start;gap:10px;font-size:.91rem;font-weight:500;}
.mc301-branding-form input[type=checkbox]{margin-top:5px;accent-color:var(--mc301-wine);}
.mc301-branding-form .mc30-primary{justify-self:start;}
.mc301-help{color:var(--mc301-muted);font-size:.86rem;line-height:1.6;}
.mc301-branding-sample{display:flex;min-height:96px;align-items:center;background:var(--mc301-yellow);padding:18px;border-bottom:3px solid var(--mc301-wine);border-radius:9px;overflow:auto;}
/* The standalone visual editor keeps its existing drag-and-drop workspace. */
.mc-v281 .mc301-editor-header{height:var(--mc301-header-h);min-height:var(--mc301-header-h);background:var(--mc301-yellow);color:var(--mc301-wine);border-bottom:3px solid var(--mc301-wine);box-shadow:none;display:flex;justify-content:space-between;padding:0 clamp(12px,2vw,28px);gap:20px;}
.mc-v281 .mc301-editor-header .mc301-brand{font-size:inherit;color:var(--mc301-wine)!important;}
.mc-v281 .mc301-editor-header .mc301-brand strong{font-size:clamp(1.2rem,1.8vw,1.7rem);}
.mc-v281 .mc301-editor-tools{display:flex;align-items:center;gap:7px;margin-left:auto;}
.mc-v281 .mc301-editor-tools form{margin:0;}
.mc-v281 .mc301-editor-tools .mc-primary{background:var(--mc301-wine);color:white;border-radius:7px;}
.mc-v281 .mc301-user-dropdown{color:#262b32;}
.mc-v281 .mc301-user-dropdown a{color:#68162c!important;}
.mc-v281 .mc301-user-dropdown button{color:#68162c!important;}
@media(max-width:1000px){.mc301-shell{grid-template-columns:220px minmax(0,1fr)}.mc301-sidebar{padding:16px 8px}.mc301-admin .mc301-main{padding:24px}.mc301-brand{gap:12px}.mc301-admin .mc301-footer{padding-left:240px}}
@media(max-width:740px){
 :root{--mc301-header-h:64px}
 .mc301-header{padding:0 10px;gap:6px}.mc301-brand{gap:9px}.mc301-brand strong{font-size:1.2rem}.mc301-brand-divider{height:25px}
 .mc301-header-actions{gap:0}.mc301-header-actions>a,.mc301-user-menu>summary{min-width:36px;min-height:36px;padding:7px}.mc301-header-actions svg{width:20px;height:20px}
 .mc301-menu-toggle{display:inline-flex;order:-1;min-width:38px;margin-right:2px}
 .mc301-sidebar{position:fixed;z-index:95;top:var(--mc301-header-h);bottom:0;left:0;width:min(290px,85vw);height:calc(100dvh - var(--mc301-header-h));box-shadow:10px 0 30px #21252a22;transform:translateX(-105%);transition:transform .2s ease;}
 .mc301-admin.mc301-sidebar-open .mc301-sidebar{transform:translateX(0)}
 .mc301-shell{display:block}.mc301-admin .mc301-main{padding:20px 14px;min-height:calc(100dvh - var(--mc301-header-h))}.mc301-admin .mc301-footer{padding:14px}
 .mc301-branding-grid{grid-template-columns:1fr}
 .mc-v281 .mc301-editor-header .mc301-brand-logo{max-width:95px}.mc-v281 .mc301-editor-header .mc301-brand{gap:8px}.mc-v281 .mc301-editor-header .mc301-brand strong{font-size:1.1rem}
 .mc-v281 .mc301-editor-tools{gap:1px}.mc-v281 .mc301-editor-tools>a,.mc-v281 .mc301-editor-tools summary{padding:7px;min-width:34px;min-height:34px}.mc-v281 .mc301-editor-tools>a svg{width:19px;height:19px}
}
@media(max-width:470px){.mc301-brand-logo{max-width:65px!important}.mc301-header-actions a:nth-child(2){display:none}.mc-v281 .mc301-editor-tools>a:nth-child(1),.mc-v281 .mc301-editor-tools>a:nth-child(2){display:none}.mc-v281 .mc301-editor-header .mc301-brand-divider{display:none}.mc-v281 .mc301-editor-tools .mc-primary{padding:8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.mc301-sidebar,.mc301-group>summary svg:last-child,.mc301-header-actions>a{transition:none}}
