/* Spațiul editorial al obiectivelor: listă și fișă, fără schimbări în celelalte ecrane. */
.objective-image-editor{display:grid;gap:12px;min-width:0}.objective-image-active{display:flex;align-items:center;gap:12px;min-width:0}.objective-image-active>img{display:block;width:112px;height:90px;max-width:40%;object-fit:contain;border-radius:8px;background:var(--ds-surface-muted)}.objective-image-active>strong{font-size:13px;line-height:1.5}.objective-image-active[hidden],.objective-image-actions[hidden]{display:none}.objective-image-actions{display:flex;gap:8px;flex-wrap:wrap}.objective-image-actions button{min-height:44px;padding:8px 12px;font-size:12px}.objective-image-editor label.objective-images-add{display:flex;align-items:center;justify-content:center;position:relative;min-height:48px;padding:12px;border:1px dashed var(--ds-border);border-radius:8px;overflow:hidden;cursor:pointer}.objective-images-add input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.objective-images-add:focus-within{outline:3px solid var(--ds-focus);outline-offset:3px}.objective-image-editor>p{font-size:13px;line-height:1.5;color:var(--ds-text-muted)}.objective-image-editor>p:empty{display:none}
.objective-editor-details .objective-ticket-option{display:flex;align-items:center;gap:9px;margin-top:14px}.objective-ticket-option input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#20372f}
.objectives-workbench{grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:24px;align-items:start}
.objectives-sidebar{display:grid;gap:16px;min-width:0}
.objectives-add{width:100%;min-height:46px;text-align:center}
.objectives-toolbar{display:grid;gap:12px;padding:16px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius-md)}
.objectives-toolbar label{display:grid;gap:6px;margin:0;font-size:var(--ds-text-sm);font-weight:600}
.objectives-list{max-height:calc(100dvh - 340px);min-height:80px;gap:8px}
.objective-list-item{align-items:center;gap:12px;padding:12px}
.objective-list-thumb{display:grid!important;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:8px;background:#ede9da;color:#8a7137;font-size:24px;overflow:hidden}
.objective-list-thumb img{width:100%;height:100%;object-fit:cover;border-radius:0;flex:none}
.objective-list-copy{min-width:0;gap:3px!important}.objective-list-copy strong{overflow-wrap:anywhere;font-size:14px}.objective-list-copy small{line-height:1.35}
.objective-state{display:inline-flex!important;align-items:center;justify-self:start;flex-shrink:0;white-space:nowrap;width:max-content;padding:3px 8px;border-radius:20px;background:#f2e9cd;color:#76591e;font-size:11px!important;font-weight:700;line-height:1.3}
.objective-state[data-state=published]{background:#e5efe3;color:#315b36}.objective-state[data-state=archived]{background:#ecece8;color:#626961}
.objectives-list-empty,.objectives-feedback{color:var(--ds-text-muted);font-size:14px}.objectives-feedback:empty{display:none}
.objectives-detail.editorial-detail{padding:0;overflow:hidden;background:var(--ds-surface)}
.objectives-detail .editorial-form{display:block;gap:0}
.objective-editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 28px;border-bottom:1px solid var(--ds-border)}
.objective-editor-heading>div{min-width:0}.objective-editor-heading h3{margin:4px 0 6px;font:normal 26px/1.15 Georgia,serif;overflow-wrap:anywhere}.objective-eyebrow{margin:0;color:#8a7137;font-size:10px;font-weight:700;letter-spacing:.12em}.objective-intro,.objective-section-help{margin:0;color:var(--ds-text-muted);font-size:14px;line-height:1.5}
.objective-form-section{display:grid;gap:14px;padding:22px 28px;border-bottom:1px solid var(--ds-border)}
.objective-upload-cover{display:grid;gap:10px}.objective-cover-add{display:flex!important;align-items:center;justify-content:center;width:150px;min-height:86px;border:1px dashed var(--ds-border);border-radius:8px;cursor:pointer;color:var(--ds-text-muted)}.objective-cover-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.objective-cover-add:focus-within{outline:3px solid var(--ds-focus);outline-offset:3px}.objective-cover-tile{position:relative;width:150px;height:100px}.objective-cover-preview{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}.objective-cover-remove{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:50%;background:#20372f;color:#fff;font-size:20px;line-height:1}.objective-upload-cover [hidden]{display:none!important}
.objective-editor-details .objective-field-grid{grid-template-columns:1fr}
.objective-field-grid{align-items:start}.objective-field-grid label{align-content:start}.objective-field-grid label p:empty{display:none}
.objective-form-section h4{margin:0;font-size:16px}.objective-form-section label{display:grid;gap:6px;margin:0;font-weight:600;font-size:14px}.objective-field-grid,.objective-coordinate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.objective-position-map{height:260px;min-height:260px;border:1px solid var(--ds-border);border-radius:8px;overflow:hidden}.objective-position-map .leaflet-control button{min-height:0}
.objective-editor-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 28px}.objective-editor-actions button{width:auto;min-height:44px}.objectives-detail .editorial-form>p[role=status]{margin:0 28px;color:var(--ds-text-muted)}.objectives-detail .editorial-form>p[role=status]:empty{display:none}
.objective-related-section{display:grid;gap:12px;padding:24px 28px;border-top:1px solid var(--ds-border);background:var(--ds-surface-muted)}.objective-related-section h3{margin:0;font-size:16px}.objective-related-section label{display:grid;gap:6px;margin:0;font-size:14px;font-weight:600}.objective-related-section>p{margin:0;color:var(--ds-text-muted);font-size:13px}.objective-related-section>button,.objective-related-section>a{justify-self:start}.objective-post-picker{display:grid;gap:4px;max-height:260px;overflow:auto;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px;padding:8px}.objective-post-picker label{display:flex;align-items:center;gap:10px;padding:8px;border-radius:6px;font-weight:400}.objective-post-picker label:hover{background:var(--ds-surface-muted)}
.objective-detail-empty{display:grid;justify-items:center;gap:10px;padding:72px 32px;text-align:center}.objective-detail-empty h3,.objective-detail-empty p{margin:0}.objective-detail-empty p{max-width:360px;color:var(--ds-text-muted);line-height:1.6}.objective-empty-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#f2e9cd;color:#76591e;font-size:28px}
.objective-selected-posts{display:grid;gap:8px}.objective-selected-card,.objective-picker-card{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface)}.objective-selected-card img,.objective-picker-card img{width:64px;height:56px;object-fit:cover;border-radius:5px;flex:0 0 auto}.objective-selected-card span,.objective-picker-card div{display:grid;gap:3px;flex:1;min-width:0}.objective-selected-card strong,.objective-picker-card strong{font-size:13px}.objective-selected-card small,.objective-picker-card small{font-size:12px;color:var(--ds-text-muted)}
.objective-picker-dialog{width:min(1100px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:0;border-radius:14px;overflow:hidden;background:var(--ds-surface)}.objective-picker-dialog[open]{display:flex;flex-direction:column}.objective-picker-dialog::backdrop{background:#10251ecc}.objective-picker-header,.objective-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.objective-picker-header h2,.objective-picker-header p{margin:0}.objective-picker-header p,.objective-picker-help{color:var(--ds-text-muted);font-size:13px}.objective-picker-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);min-height:0;flex:1;border-block:1px solid var(--ds-border)}.objective-picker-map{min-height:0}.objective-picker-panel{display:flex;flex-direction:column;gap:10px;min-height:0;padding:16px}.objective-picker-panel label{display:grid;gap:6px}.objective-picker-results{display:grid;align-content:start;gap:8px;overflow:auto}.objective-picker-popup{display:grid;gap:8px;min-width:260px}.objective-picker-marker{display:grid;place-items:center;border:2px solid #20372f;border-radius:50%;background:#f7f7f0;color:#20372f;font-weight:700}.objective-picker-footer button{min-height:44px}
.objectives-workbench.is-editing .objectives-detail.editorial-detail{position:fixed;inset:0;z-index:1600;overflow:auto;border:0;border-radius:0;background:var(--ds-surface)}
.objectives-workbench.is-editing .editorial-form{display:grid;grid-template-columns:minmax(330px,440px) minmax(0,1fr);grid-template-areas:'heading map' 'details map' 'posts map' 'stories map' 'presentation map' 'actions map' 'status map';align-items:start;gap:0;min-height:100dvh}
.objective-editor-heading{grid-area:heading}.objective-editor-details{grid-area:details}.objective-related-section{grid-area:posts}.objective-stories-section{grid-area:stories}.objective-editor-presentation{grid-area:presentation}.objective-editor-actions{grid-area:actions}.objectives-detail .editorial-form>p[role=status]{grid-area:status}
.objective-editor-map-section{grid-area:map;position:sticky;top:0;align-self:start;display:flex;height:100dvh;flex-direction:column;gap:12px;padding:22px;border:0;border-left:1px solid var(--ds-border);background:var(--ds-surface-muted)}
.objective-editor-map-section .objective-position-map{height:auto!important;min-height:300px;flex:1}.objective-editor-map-section .objective-coordinate-grid{flex:none}.objective-editor-back{margin:0 0 16px;min-height:44px}.objective-editor-actions{flex-wrap:wrap}
.objective-editor-map-section .leaflet-container,.objective-editor-map-section .leaflet-grab,.objective-editor-map-section .leaflet-dragging .leaflet-grab,.objective-editor-map-section .leaflet-marker-draggable{cursor:default!important}
@media(max-width:850px){.objectives-workbench.is-editing .editorial-form{display:flex;flex-direction:column;min-height:100dvh}.objectives-workbench.is-editing .editorial-form>*{width:100%}.objective-editor-heading{order:0}.objective-editor-map-section{order:1;position:relative;height:auto;padding:16px 20px;border:0;border-bottom:1px solid var(--ds-border)}.objective-editor-map-section .objective-position-map{height:38dvh!important;min-height:250px;flex:none}.objective-editor-details{order:2}.objective-related-section{order:3}.objective-stories-section{order:4}.objective-editor-presentation{order:5}.objective-editor-actions{order:6}.objectives-detail .editorial-form>p[role=status]{order:7}}
.objective-story-list{display:grid;gap:8px}.objective-story-row{display:grid;text-align:left;gap:4px;padding:10px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface)}.objective-story-row small{color:var(--ds-text-muted)}
.story-editor-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:14px;background:var(--ds-surface);color:var(--ds-text)}.story-editor-dialog::backdrop{background:#10251ecc}.story-editor-header,.story-editor-section,.story-editor-actions{padding:20px 24px;border-bottom:1px solid var(--ds-border)}.story-editor-header{display:flex;justify-content:space-between;align-items:start}.story-editor-header h2,.story-editor-section h3{margin:0}.story-editor-section{display:grid;gap:12px}.story-editor-section label{display:grid;gap:6px}.story-editor-section textarea{min-height:90px}.story-media-field{display:grid;gap:8px}.story-media-preview{display:grid;gap:6px}.story-media-preview audio,.story-media-preview video{width:100%;max-height:320px}.story-editor-map{height:240px;border-radius:8px;overflow:hidden}.story-editor-status{padding:0 24px}.story-editor-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.story-editor-state{margin-right:auto}
.story-editor-sidebar{position:fixed;z-index:1150;top:calc(var(--atlas-toolbar-bottom,82px) + 12px);bottom:20px;left:calc(var(--workspace-nav-width,0px) + 16px);width:min(410px,calc(100vw - var(--workspace-nav-width,0px) - 32px));max-height:none;overflow:auto;box-shadow:0 12px 40px #20372f26}.story-editor-tabs,.story-editor-step-controls{display:flex;gap:8px;padding:12px 24px}.story-editor-tabs button,.story-editor-step-controls button{flex:1;min-height:44px}.story-editor-tabs button.active{background:var(--ds-brand,#20372f);color:white}.story-part-map-marker{display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#bd663f;color:white;font-weight:bold;box-shadow:0 2px 8px #0005}.story-picking-point{cursor:crosshair!important}
.story-association-picker{display:grid;gap:8px}.story-association-list{display:grid;gap:6px}.story-association-choice{display:flex;align-items:center;gap:10px;min-height:52px;text-align:left}.story-association-choice img{width:56px;height:50px;object-fit:cover;border-radius:5px}.story-association-choice[aria-pressed=true]{outline:2px solid var(--ds-brand,#20372f)}.story-association-paging{display:flex;justify-content:space-between;gap:8px}
@media(max-width:700px){.story-editor-sidebar{inset:auto 12px 12px;width:auto;max-height:55dvh}.story-editor-header,.story-editor-section,.story-editor-actions{padding:14px 16px}.story-editor-tabs,.story-editor-step-controls{padding:10px 16px}}
.story-editor-actions button[hidden]{display:none!important}.story-media-preview button{justify-self:start}
@media(max-width:700px){.objective-picker-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.objective-picker-layout{grid-template-columns:1fr;grid-template-rows:minmax(170px,40%) minmax(0,1fr)}.objective-picker-panel{padding:12px}.objective-picker-header,.objective-picker-footer{padding:12px}.objective-picker-header p{display:none}.objective-picker-card img{width:50px;height:48px}.objective-picker-popup{min-width:220px}}
@media(max-width:850px){.objectives-workbench{grid-template-columns:minmax(0,1fr);gap:16px}.objectives-sidebar{gap:10px}.objectives-toolbar{grid-template-columns:minmax(0,1fr) minmax(110px,.45fr);padding:12px}.objectives-list{max-height:180px;min-height:0}.objective-editor-heading,.objective-form-section,.objective-related-section{padding:20px}.objective-editor-actions{padding:16px 20px}.objective-editor-heading h3{font-size:23px}}
@media(max-width:480px){.objectives-toolbar{grid-template-columns:minmax(0,1fr) minmax(100px,.5fr);gap:8px}.objective-field-grid{grid-template-columns:1fr}.objective-coordinate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.objective-editor-actions{display:grid;grid-template-columns:1fr 1fr}.objective-editor-actions button{width:100%}.objective-position-map{height:220px!important;min-height:220px}}
/* Editorul public de lucru folosește harta principală și același panou ca postările. */
body.map-first.objective-editor-open .objective-map-editor{display:block;position:fixed;z-index:1100;top:calc(var(--atlas-toolbar-bottom,82px) + 15px);right:24px;left:auto;bottom:24px;width:min(440px,calc(100vw - 48px));height:auto;max-height:calc(var(--app-visible-height,100dvh) - var(--atlas-toolbar-bottom,82px) - 39px);overflow:auto;overscroll-behavior:contain;padding:20px 24px;border:1px solid var(--ds-border);border-radius:var(--ds-radius-lg,12px);background:var(--ds-surface);color:var(--ds-text);box-shadow:var(--ds-shadow-panel,0 8px 35px #20372f20)}
.objective-map-editor .objectives-workbench{display:block}.objective-map-editor .objectives-sidebar{display:none}
.objective-map-editor .objectives-workbench.is-editing .objectives-detail.editorial-detail{position:static;inset:auto;overflow:visible;border:0;border-radius:0;background:transparent;padding:0}
.objective-map-editor .objectives-workbench.is-editing .editorial-form{display:block;min-height:0}.objective-map-editor [role=tabpanel][hidden]{display:none!important}
.objective-map-editor :is(.objective-photo-page,.objective-details-page){margin:0;padding:0;border:0}
.objective-map-editor .objective-editor-heading{padding:0 0 14px;align-items:center}.objective-map-editor .objective-editor-heading h3{font-size:23px;line-height:1.2;margin:6px 0 0}.objective-map-editor .objective-editor-close{flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;font-size:24px}
.objective-map-editor .objective-editor-tabs{margin:14px 0;gap:8px}.objective-map-editor .objective-editor-tabs button{min-width:0;white-space:normal;font-size:12px;line-height:1.4}
.objective-map-editor .objective-form-section,.objective-map-editor .objective-related-section{margin:0;padding:16px 0;gap:12px;background:transparent;border-left:0;border-right:0}.objective-map-editor .objective-form-section h4{font-size:15px}
.objective-map-editor .objective-editor-map-section{position:static;display:grid;height:auto;min-height:0;align-self:auto}.objective-map-editor .objective-position-controls{display:grid;gap:10px}.objective-position-status{font-size:13px;line-height:1.5;color:var(--ds-text-muted);margin:0}
.objective-map-editor .objective-editor-actions{position:sticky;bottom:-20px;z-index:5;display:flex;justify-content:space-between;padding:14px 0 20px;background:var(--ds-surface);border-top:1px solid var(--ds-border)}.objective-map-editor .objective-editor-actions button{flex:1 1 calc(50% - 8px);min-width:0;min-height:44px;white-space:normal}
.objective-map-editor .quick-page-actions{padding:14px 0 0}.objective-map-editor .quick-page-actions button{width:100%}.objective-map-editor .editorial-form>p[role=status]{margin:12px 0}.objective-map-feedback{margin:0 0 12px;font-size:13px;line-height:1.5;color:#315b36}.objective-map-feedback:empty{display:none}
.objective-editor-open :is(.photo-marker,.objective-marker:not(.objective-editor-marker),.location-map-marker,.post-web-primary,.post-web-secondary){pointer-events:none!important;opacity:.3}
.objective-choosing-position #map{cursor:crosshair}
@media(max-width:700px){body.map-first.objective-editor-open .objective-map-editor{top:auto;left:12px;right:12px;bottom:12px;width:auto;height:49dvh;max-height:min(49dvh,calc(var(--app-visible-height,100dvh) - var(--atlas-toolbar-bottom,56px) - 24px));padding:14px 16px;padding-bottom:max(14px,env(safe-area-inset-bottom))}body.map-first.objective-editor-open .objective-map-editor[data-objective-page=details]{height:min(76dvh,calc(var(--app-visible-height,100dvh) - var(--atlas-toolbar-bottom,56px) - 24px));max-height:calc(var(--app-visible-height,100dvh) - var(--atlas-toolbar-bottom,56px) - 24px)}.objective-map-editor .objective-editor-heading h3{font-size:21px}.objective-map-editor input,.objective-map-editor select,.objective-map-editor textarea{font-size:16px}.objective-map-editor .objective-editor-actions{bottom:-14px}.objective-map-editor .objective-field-grid{grid-template-columns:1fr}}
.story-editor-section fieldset{min-width:0;margin-block:16px;padding:12px}
.story-editor-section fieldset label{display:grid;gap:6px;margin-block:10px}
.story-post-list-dialog{padding:20px}
.story-post-list-dialog>div{display:grid;gap:10px;margin-block:16px}
