/* Scoped to the pilot editor; public pages keep their existing layout. */
body.admin-program-editor .site-shell{max-width:1600px}body.admin-program-editor .site-shell>main{max-width:none}body.admin-program-editor #main>.wrap{padding:24px;max-width:none;width:100%}body.admin-program-editor .admin-workspace{grid-template-columns:185px minmax(0,1fr);gap:16px}
.program-editor{min-width:0}.program-editor .pe-intro{margin:0 0 12px;font-size:14px}.pe-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:12px;border-bottom:1px solid #dedbc7}.site-shell #staff-panel.program-editor button,.site-shell #staff-panel .program-editor button{min-height:32px;height:auto;border-radius:6px!important;padding:5px 9px;font:500 12px/1.4 system-ui,sans-serif;width:auto;max-width:100%;white-space:normal}.site-shell #staff-panel .program-editor button.pe-primary{background:#315b41;border-color:#315b41}.program-editor button:disabled{opacity:.5;cursor:not-allowed}.pe-status{min-height:23px;font-size:13px;color:#315b41;margin:10px 0}.pe-status.pe-error{color:#9d283f}.pe-layout{display:grid;grid-template-columns:minmax(285px,.8fr) minmax(320px,1.4fr);gap:16px;align-items:start}
.pe-fields{padding:14px;border:1px solid #dbddc9;background:#fffdf5;border-radius:12px;max-height:76vh;min-height:400px;overflow:auto;scrollbar-gutter:stable}.site-shell #staff-panel .pe-fields h3{font-size:17px;margin:0 0 12px}.site-shell #staff-panel .pe-fields fieldset{margin:0 0 14px;padding:10px;border:1px solid #dedbc7;border-radius:9px;min-width:0}.site-shell #staff-panel .pe-fields .grid.two{grid-template-columns:1fr}.site-shell #staff-panel .pe-fields :is(input:not([type=checkbox]),select){min-height:32px;height:32px;padding:4px 8px;border-radius:6px;font-size:14px;min-width:0;width:100%;box-sizing:border-box}.site-shell #staff-panel .pe-fields label{font-size:13px;min-width:0}.pe-fields legend{font-size:13px;font-weight:650}.site-shell #staff-panel .pe-fields textarea{min-height:96px;font-size:14px;border-radius:8px}.site-shell #staff-panel .pe-fields .schedule-program-times{display:grid;grid-template-columns:repeat(2,minmax(125px,1fr));max-width:none;gap:8px}.site-shell #staff-panel .pe-fields .schedule-editor-row{display:grid;grid-template-columns:repeat(2,minmax(125px,1fr));padding:10px 0;border-bottom:1px solid #e4dfce;gap:8px}.site-shell #staff-panel .pe-fields .schedule-editor-row label:nth-child(3){grid-column:1/-1}.site-shell #staff-panel .pe-fields .schedule-editor-row button{grid-column:1/-1;justify-self:start}.pe-fields #combined-meal-preview{font-size:13px}.pe-visual{min-width:0;position:sticky;top:12px;padding:12px;border:1px solid #d7dfd0;border-radius:12px;background:#f4f7ee}.pe-preview-options{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:9px}.pe-preview-options label{font-size:12px;min-width:0;flex:1}.site-shell #staff-panel .pe-preview-options select{width:100%;min-height:32px;height:32px;padding:4px 8px;font-size:12px;border-radius:6px}.pe-preview-options [role=group]{display:flex;gap:5px}.site-shell #staff-panel .program-editor button[aria-pressed=true]{background:#315b41;border-color:#315b41;color:#fff}.pe-preview-label{font-size:12px;color:#496047;margin:10px 0}.pe-preview-stage{position:relative;overflow:hidden;width:100%;min-height:200px;background:#fffaf0;border:1px solid #d6dece;border-radius:8px}.pe-preview-stage iframe{display:block;position:absolute;top:0;left:0;border:0;max-width:none;transform-origin:0 0}.pe-comparison,.pe-history{margin-top:16px;padding:14px;border:1px solid #dedbc7;border-radius:10px;background:#fffcf4}.pe-comparison>summary,.pe-history>summary{font-weight:650;cursor:pointer}.pe-changes{margin-top:12px}.pe-change{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0;padding:12px;border:1px solid #e0ddce;border-radius:8px;background:#fff}.pe-change>strong{grid-column:1/-1;font-size:13px}.pe-change>div{min-width:0;padding:8px;background:#faf5e8;border-radius:6px}.pe-change>div:last-child{background:#eef5e9}.pe-change span{font-size:11px;color:#68745f}.pe-change p{font-size:13px;margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.pe-history-entry{padding:12px 0;border-bottom:1px solid #e0ddce}.pe-history-entry p{font-size:13px;margin:0 0 8px}.pe-history-entry button{margin-right:6px}.pe-version{margin-top:16px;padding:12px;background:#fff;border-radius:8px}.pe-version dl{display:grid;grid-template-columns:1fr auto;gap:5px 12px;font-size:13px}.pe-version dd{margin:0}.pe-version p{font-size:13px;white-space:pre-wrap}.pe-mobile-tabs{display:none}
html.program-preview-document body{padding:0}html.program-preview-document #assistant,html.program-preview-document #assistant-toggle,html.program-preview-document #cookies{display:none!important}html.program-preview-document .site-shell{border-radius:0;box-shadow:none}
@media(max-width:1100px){body.admin-program-editor .admin-workspace{grid-template-columns:160px minmax(0,1fr);gap:10px}body.admin-program-editor #main>.wrap{padding:16px}.pe-layout{grid-template-columns:minmax(260px,.9fr) minmax(280px,1fr);gap:10px}.pe-fields{padding:10px}}
@media(max-width:900px){.pe-layout{grid-template-columns:minmax(0,1fr)}.pe-mobile-tabs{display:flex;gap:8px;margin-bottom:12px}.pe-layout[data-mobile=edit]>.pe-visual,.pe-layout[data-mobile=preview]>.pe-fields{display:none}.pe-visual{position:static}.pe-fields{max-height:none}.pe-preview-stage{min-height:0}.pe-toolbar{gap:6px}.pe-layout .pe-preview-stage{width:100%}body.admin-program-editor .admin-workspace{grid-template-columns:1fr}.site-shell #staff-panel .pe-fields .grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.admin-program-editor #main>.wrap{padding:12px}.pe-fields{padding:10px}.site-shell #staff-panel .pe-fields .grid.two{grid-template-columns:1fr}.site-shell #staff-panel .pe-fields input,.site-shell #staff-panel .pe-fields textarea{font-size:16px}.site-shell #staff-panel .pe-fields .schedule-program-times,.site-shell #staff-panel .pe-fields .schedule-editor-row{grid-template-columns:repeat(2,minmax(0,1fr))}.pe-preview-options{display:block}.pe-preview-options [role=group]{margin-top:8px}.pe-change{grid-template-columns:1fr}.pe-change>strong{grid-column:auto}.pe-toolbar button{flex:1 1 130px}.pe-version dl{grid-template-columns:1fr}.pe-version dd{font-weight:650;margin-bottom:6px}}

.site-shell #staff-panel .pe-fields form{min-width:0}.site-shell #staff-panel .pe-fields :is(p,legend,label){overflow-wrap:anywhere}.site-shell #staff-panel .pe-fields .schedule-program-times,.site-shell #staff-panel .pe-fields .schedule-editor-row{grid-template-columns:repeat(2,minmax(0,1fr))}.site-shell #staff-panel .pe-fields input[type=time]{min-width:0;width:100%;font-size:13px;padding-inline:3px}

.pe-confirm{width:min(480px,calc(100% - 32px));padding:22px;border:1px solid #d7ddc7;border-radius:14px;background:#fffaf0;color:#203e39;box-shadow:0 15px 60px #203e3940}.pe-confirm::backdrop{background:#19352e80}.pe-confirm h3{margin-top:0}.pe-confirm p{font-size:15px}.pe-confirm>div{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}

.site-shell #staff-panel .program-editor button.pe-primary:not(#menu-toggle),.site-shell #staff-panel .program-editor button[aria-pressed=true]:not(#menu-toggle){background:#315b41;border-color:#315b41;color:#fff}

.site-shell #staff-panel[data-workflow=program-fees]:not(:has(>.admin-workspace))>*{display:none!important}.site-shell #staff-panel[data-workflow=program-fees]:not(:has(>.admin-workspace))::before{content:"Se încarcă editorul Program și tarife…";display:block;padding:16px;color:#315b41}

@media(max-width:560px){.site-shell #staff-panel .pe-fields input[type=time]{font-size:16px}}
@media(pointer:coarse){.site-shell #staff-panel .program-editor button:not(#menu-toggle){min-height:44px}.site-shell #staff-panel .pe-fields :is(input:not([type=checkbox]),select){min-height:44px;height:44px}}

.program-preview-document :is(#open-menu-editor,#menu-pdf-editor,#open-news-link,#open-news-delete,#news-link-editor,#news-delete-editor,#film-admin-open,#film-admin,#open-documents-editor,#open-documents-delete,#documents-editor,#documents-delete-editor){display:none!important}
.pe-version pre,.pe-change p{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.pe-change img{max-height:130px;object-fit:contain;margin:6px}
.site-shell #staff-panel[data-workflow=sections]:not(:has(>.admin-workspace))>*{display:none!important}.site-shell #staff-panel[data-workflow=sections]:not(:has(>.admin-workspace))::before{content:"Se încarcă editoarele…";display:block;padding:16px;color:#315b41}

.program-preview-document :is(.announcement-toolbar,#teacher-editor){display:none!important}

/* Stage 6A: selection exists only in the authenticated preview. */
.program-preview-document [data-acz-edit]{cursor:default}
.acz-visual-selecting [data-acz-edit]{cursor:pointer;outline:1px dashed #5c8966;outline-offset:3px}
.acz-visual-selecting [data-acz-edit]:is(:hover,:focus-visible,.acz-edit-selected){outline:3px solid #226540;background-color:#e1eedb80;border-radius:3px}
.pe-selected-field{outline:2px solid #508360;outline-offset:3px;border-radius:6px}
/* Wide editing workspace: decoration remains visible inside the real-page preview. */
body.admin-program-editor>.site-decor-piece{display:none!important}


.content-rich{margin:6px 0 14px;min-width:0}.content-rich-tools{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:5px}.content-rich-editor{min-height:100px;max-height:360px;overflow:auto;border:1px solid #aaa997;border-radius:7px;background:#fff;padding:10px;font:14px/1.55 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;color:#243d31}.content-rich-editor:focus{outline:2px solid #508360;outline-offset:2px}.content-rich-editor strong{font-weight:750}.content-rich-editor em{font-style:italic}.content-rich-editor[contenteditable=false]{opacity:.65}.content-rich .muted{font-size:11px;margin:5px 0}.content-rich-editor p{margin:0}

.acz-visual-selecting acz-edit-target{display:inline-block;max-width:100%;vertical-align:baseline}

.acz-visual-selecting acz-edit-target:has(acz-text-block,acz-text-list){display:block;width:100%}
.content-rich-editor :is(ul,ol){margin:.35em 0;padding-inline-start:1.5em}.content-rich-editor li{margin:0}


.content-rich-spacing{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%;margin-top:4px}.content-rich-spacing>span{font-size:11px}.site-shell #staff-panel .content-rich-spacing select{width:auto;max-width:100%;font-size:12px}

#decor-calendar-form{min-width:0}#decor-calendar-form details{margin:12px 0;padding:10px;border:1px solid #dce4d5;border-radius:10px}#decor-calendar-form .decor-year-list{max-height:240px;overflow:auto;font-size:12px}#decor-calendar-form .decor-year-list p{margin:5px 0}#decor-calendar-form [data-assets]{min-height:28px;overflow-wrap:anywhere}

.acz-visual-selecting iframe,.acz-visual-selecting video{pointer-events:none}
