/* Provider listing editing studio */
.provider-listing-editor { --studio-green:#245d43; color:var(--theme-foreground, #252d29); background:var(--theme-surface-muted, #f5f6f5); padding:clamp(16px,2.4vw,36px); border-radius:24px; }
.provider-listing-editor a { color:var(--studio-green); text-decoration:underline; text-underline-offset:3px; }
.provider-listing-editor .editor-context-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.provider-listing-editor .editor-back-link { color:var(--studio-green); font-size:13px; font-weight:650; text-decoration:none; }
.provider-listing-editor .editor-back-link:hover { text-decoration:none; }
.provider-listing-editor .editor-context-row .editor-eyebrow { color:var(--studio-green); text-align:right; }
.provider-listing-editor .editor-header { display:flex; align-items:center; gap:20px; margin:28px 0; flex-wrap:wrap; }
.provider-listing-editor .editor-thumbnail { width:76px; height:76px; border-radius:16px; object-fit:cover; }
.provider-listing-editor .editor-title { flex:1; min-width:180px; }
.provider-listing-editor .editor-title h1 { font-size:clamp(24px,2.5vw,34px); font-weight:650; line-height:1.2; margin:6px 0 12px; overflow-wrap:anywhere; }
.provider-listing-editor .editor-eyebrow { font-size:11px; font-weight:700; letter-spacing:.13em; color:var(--theme-foreground-muted, #58665e); }
.provider-listing-editor .editor-badge { display:inline-block; padding:4px 10px; border-radius:20px; background:var(--theme-surface-muted, #e3eee7); color:var(--theme-foreground, #24533c); font-size:12px; font-weight:650; }
.provider-listing-editor .editor-save-state { display:inline-block; margin-left:12px; font-size:13px; color:var(--theme-foreground-muted, #58665e); }
.provider-listing-editor .editor-actions { display:flex; gap:10px; align-items:center; }
.provider-listing-editor button { padding:10px 14px; border:1px solid var(--theme-border, #c7d2cb); background:var(--theme-surface, white); border-radius:10px; font-size:13px; font-weight:600; cursor:pointer; color:var(--theme-foreground, #254335); transition:background .15s; }
.provider-listing-editor button:hover:not(:disabled) { background:var(--theme-surface-muted, #edf3ef); }
.provider-listing-editor button:disabled { opacity:.5; cursor:default; }
.provider-listing-editor button.editor-primary { background:var(--studio-green); color:white; border-color:var(--studio-green); }
.provider-listing-editor button.editor-primary:hover:not(:disabled) { background:#194b34; }
.provider-listing-editor .editor-grid { display:grid; grid-template-columns:170px minmax(0,1fr); gap:24px; align-items:start; }
.provider-listing-editor .editor-grid.has-preview { grid-template-columns:170px minmax(0,1fr) minmax(0,1fr); }
.provider-listing-editor .editor-nav,.provider-listing-editor .editor-summary { position:sticky; top:24px; }
.provider-listing-editor .editor-desktop-nav { display:grid; gap:6px; }
.provider-listing-editor .editor-desktop-nav button { text-align:left; border:0; background:transparent; padding:13px 12px; color:var(--theme-foreground-muted, #4e5a53); }
.provider-listing-editor .editor-desktop-nav button[aria-current="page"] { background:var(--theme-surface-muted, #e3eee7); color:var(--theme-foreground, #214d37); box-shadow:inset 3px 0 #245d43; }
.provider-listing-editor .editor-desktop-nav span { float:right; color:var(--theme-danger, #a12d27); }
.provider-listing-editor .editor-mobile-nav { display:none; }
.provider-listing-editor .editor-panel { background:var(--theme-surface, white); border:1px solid var(--theme-border, #e1e6e2); border-radius:18px; padding:clamp(20px,3vw,36px); min-width:0; }
.provider-listing-editor .editor-panel h2,.provider-listing-editor .editor-summary h2 { font-size:23px; line-height:1.3; font-weight:650; margin:0 0 12px; }
.provider-listing-editor .editor-panel h3 { font-weight:650; font-size:16px; margin:20px 0 12px; }
.provider-listing-editor .editor-fields { border:0; padding:0; margin:0; min-width:0; }
.provider-listing-editor .editor-fields label { display:block; font-size:14px; font-weight:600; margin:20px 0 7px; }
.provider-listing-editor .editor-fields input:not([type="checkbox"]),.provider-listing-editor .editor-fields textarea,.provider-listing-editor .editor-fields select,.provider-listing-editor .editor-mobile-nav select { display:block; box-sizing:border-box; width:100%; background:var(--theme-surface, white); border:1px solid var(--theme-border, #bbc8c0); border-radius:9px; padding:11px 12px; margin-top:7px; color:var(--theme-foreground, #252d29); font:inherit; font-weight:400; }
.provider-listing-editor .editor-fields textarea { resize:vertical; min-height:76px; }
.provider-listing-editor .editor-fields input[readonly] { background:var(--theme-surface-muted, #f2f4f2); color:var(--theme-foreground-muted, #55625a); }
.provider-listing-editor .editor-fields .rich-text-field { margin-top:10px; }
.provider-listing-editor .editor-pair { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.provider-listing-editor .editor-help { color:var(--theme-foreground-muted, #58665e); font-size:13px; line-height:1.65; margin:8px 0 16px; }
.provider-listing-editor .editor-message { padding:14px 18px; background:var(--theme-surface-muted, #eaf2ed); border-left:3px solid var(--studio-green); border-radius:6px; margin:0 0 24px; }
.provider-listing-editor .editor-error,.provider-listing-editor .editor-fields .validation-errors { color:var(--theme-danger, #a12d27); font-size:13px; margin:8px 0; }
.provider-listing-editor .editor-fields details { margin-top:24px; border-top:1px solid var(--theme-border, #e1e6e2); padding-top:18px; }
.provider-listing-editor .editor-fields summary { cursor:pointer; font-size:14px; font-weight:600; }
.provider-listing-editor .editor-fields .editor-toggle { display:flex; align-items:center; gap:10px; font-weight:400; }
.provider-listing-editor .editor-toggle input { width:19px; height:19px; accent-color:var(--studio-green); }
.provider-listing-editor .editor-service,.provider-listing-editor .editor-day { background:var(--theme-surface-muted, #f8faf8); padding:16px; border:1px solid var(--theme-border, #dce4de); border-radius:12px; margin:14px 0; }
.provider-listing-editor .editor-service label:first-child { margin-top:0; }
.provider-listing-editor .editor-day-title { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.provider-listing-editor .editor-day-title h3,.provider-listing-editor .editor-day-title label { margin:0; }
.provider-listing-editor .editor-day-title h3 { flex:1; }
.provider-listing-editor .editor-slot { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.provider-listing-editor .editor-slot label { flex:1; min-width:100px; }
.provider-listing-editor .editor-slot span { flex-basis:100%; color:var(--theme-warning, #765820); font-size:12px; }
.provider-listing-editor .editor-day>button { margin:8px 6px 0 0; }
.provider-listing-editor .editor-upload { border:2px dashed var(--theme-border, #a8beae); border-radius:14px; padding:28px 18px; background:var(--theme-surface-muted, #f3f8f4); text-align:center; }
.provider-listing-editor .editor-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:20px 0; }
.provider-listing-editor .editor-gallery article { border:1px solid var(--theme-border, #dce4de); border-radius:12px; overflow:hidden; }
.provider-listing-editor .editor-gallery img { width:100%; height:150px; object-fit:cover; }
.provider-listing-editor .editor-gallery article>div { padding:12px; display:flex; gap:6px; flex-wrap:wrap; }
.provider-listing-editor .editor-gallery strong { width:100%; font-size:13px; }
.provider-listing-editor .editor-gallery button { padding:7px 9px; font-size:12px; }
.provider-listing-editor .editor-map { width:100%; height:500px; border:0; border-radius:12px; margin-top:24px; }
.provider-listing-editor .editor-info { display:inline-block; margin-left:4px; color:#367755; cursor:help; }
.provider-listing-editor .editor-taxonomy,.provider-listing-editor .editor-access { margin:25px 0; padding:18px; border:1px solid var(--theme-border, #dce7df); border-radius:15px; background:var(--theme-surface, #f9fbf9); }
.provider-listing-editor .editor-taxonomy h3,.provider-listing-editor .editor-access h3 { margin:0 0 5px; }
.provider-listing-editor .editor-category-picker { background:var(--theme-surface, #fff); }
.provider-listing-editor .editor-category-group { margin-top:14px; padding:16px; border:1px solid var(--theme-border, #dce7df); border-radius:12px; background:var(--theme-surface-muted, #f7faf8); }
.provider-listing-editor .editor-category-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.provider-listing-editor .editor-category-heading h4,.provider-listing-editor .editor-category-group > h4 { margin:0 0 10px; color:var(--theme-foreground, #254335); font-size:14px; font-weight:700; }
.provider-listing-editor .editor-category-actions { display:flex; align-items:center; gap:6px; }
.provider-listing-editor .editor-category-heading button { width:32px; height:32px; padding:4px; }
.provider-listing-editor .editor-category-heading button[aria-expanded="true"] { background:var(--theme-surface-muted, #e4f0e8); border-color:var(--theme-border, #9cc6aa); }
.provider-listing-editor .editor-category-done { margin-top:12px; }
.provider-listing-editor .editor-category-add { gap:0; align-items:stretch; }
.provider-listing-editor .editor-category-add select { flex:1; min-width:0; margin-top:0; border-radius:9px 0 0 9px; }
.provider-listing-editor .editor-category-add button { width:44px; min-width:44px; padding:10px; margin-left:-1px; border-radius:0 9px 9px 0; background:var(--theme-surface-muted, #eaf3ed); color:var(--theme-foreground, #245d43); }
.provider-listing-editor .editor-subcategory-select { margin-top:12px!important; }
.provider-listing-editor .editor-taxonomy .editor-help { margin:0 0 12px; }
.provider-listing-editor .editor-chips { display:flex; flex-wrap:wrap; gap:8px; }
.provider-listing-editor .editor-chip { display:inline-flex; align-items:center; gap:8px; padding:5px 6px 5px 13px; border-radius:999px; border:1px solid var(--theme-border, #c9dfd0); background:var(--theme-surface-muted, #eaf3ed); color:var(--theme-foreground, #245d43); font-size:13px; }
.provider-listing-editor .editor-chip button { width:24px; height:24px; padding:2px; border:0; border-radius:50%; background:transparent; }
.provider-listing-editor .editor-add-chip { display:flex; gap:8px; align-items:end; margin-top:10px; }
.provider-listing-editor .editor-add-chip input { margin:0; }
.provider-listing-editor .editor-add-chip button { flex:none; }
.provider-listing-editor .editor-suggestions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.provider-listing-editor .editor-suggestions button { padding:7px 10px; border:1px dashed var(--theme-border, #a8c8b2); border-radius:999px; background:var(--theme-surface, #fff); color:var(--theme-foreground, #245d43); font-size:12px; font-weight:500; }
.provider-listing-editor .editor-suggestions button:hover { border-style:solid; background:var(--theme-surface-muted, #eaf3ed); }
.provider-listing-editor .editor-services-list { display:grid; gap:10px; }
.provider-listing-editor .editor-service-summary { display:flex; align-items:flex-start; gap:14px; padding:15px; border:1px solid var(--theme-border, #dce7df); border-radius:13px; background:var(--theme-surface, #f9fbf9); }
.provider-listing-editor .editor-service-summary > i { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; color:var(--theme-foreground, #245d43); background:var(--theme-surface-muted, #e5f0e9); }
.provider-listing-editor .editor-service-summary > div { flex:1; min-width:0; }
.provider-listing-editor .editor-service-summary p { margin:4px 0 0; color:var(--theme-foreground-muted, #58665e); font-size:13px; }
.provider-listing-editor .editor-service-form { position:relative; margin:14px 0; padding:22px; border:1px solid var(--theme-border, #bbd6c5); border-radius:15px; background:var(--theme-surface-muted, #f7faf8); }
.provider-listing-editor .editor-service-form h4 { margin:0 40px 16px 0; font-size:17px; }
.provider-listing-editor button.editor-service-close { position:absolute; top:12px; right:12px; width:34px; height:34px; padding:5px; }
.provider-listing-editor .editor-service-form-actions,.provider-listing-editor .editor-inline-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.provider-listing-editor button.editor-remove-service { color:var(--theme-danger, #a12d27); border-color:var(--theme-border, #e4c7c3); }
.provider-listing-editor .service-icon-picker { display:flex; flex-wrap:wrap; gap:7px; padding:0; border:0; }
.provider-listing-editor .service-icon-picker legend { margin-bottom:8px; font-size:13px; font-weight:600; }
.provider-listing-editor .service-icon-picker button { display:flex; gap:7px; align-items:center; }
.provider-listing-editor .service-icon-picker button.is-selected { color:white; background:#245d43; border-color:#245d43; }
.provider-listing-editor .editor-access-route { display:flex; align-items:center; gap:12px; padding:13px; margin:8px 0; background:var(--theme-surface, white); border:1px solid var(--theme-border, #dce7df); border-radius:12px; }
.provider-listing-editor .editor-access-route > i { width:32px; color:var(--theme-foreground, #245d43); text-align:center; }
.provider-listing-editor .editor-access-route > div { display:grid; gap:3px; flex:1; }
.provider-listing-editor .editor-access-route span { color:var(--theme-foreground-muted, #58665e); font-size:12px; }
.provider-listing-editor .editor-access-form { padding:15px; margin:12px 0; border:1px solid var(--theme-border, #c9dfd0); border-radius:12px; background:var(--theme-surface, white); }
.provider-listing-editor .editor-summary { background:var(--theme-surface, white); border:1px solid var(--theme-border, #e1e6e2); padding:22px; border-radius:18px; overflow-wrap:anywhere; }
.provider-listing-editor .editor-preview-column { min-width:0; background:var(--theme-surface, white); border:1px solid var(--theme-border, #e1e6e2); border-radius:18px; overflow:hidden; }
.provider-listing-editor .editor-preview-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--theme-border, #e1e6e2); }
.provider-listing-editor .editor-preview-column .portal-theme-discovery { min-width:0; }
.provider-listing-editor .editor-preview-column .portal-theme-discovery { padding:18px; background:var(--theme-surface-muted, #f5f8fb); }
.provider-listing-editor button.editor-delete { color:var(--theme-danger, #a12d27); border-color:var(--theme-border, #e4c7c3); }
.provider-listing-editor .editor-delete-confirm { max-width:620px; padding:22px; margin:0 0 24px auto; border:1px solid var(--theme-border, #e4c7c3); border-radius:14px; background:var(--theme-surface-muted, #fff8f7); }
.provider-listing-editor .editor-delete-confirm p { margin:10px 0 18px; color:var(--theme-foreground-muted, #5e4e4b); }
.provider-listing-editor .editor-delete-confirm div { display:flex; flex-wrap:wrap; gap:10px; }
.provider-listing-editor button.editor-delete-final { background:#a12d27; border-color:var(--theme-danger, #a12d27); color:white; }
.provider-listing-editor .editor-summary img { width:100%; height:155px; object-fit:cover; border-radius:12px; margin:18px 0; }
.provider-listing-editor .editor-summary h2 { margin-top:16px; font-size:19px; }
.provider-listing-editor .editor-summary p { font-size:13px; line-height:1.7; margin:12px 0; }
.provider-listing-editor .editor-summary hr { border:0; border-top:1px solid var(--theme-border, #e1e6e2); margin:22px 0; }
.provider-listing-editor .editor-preview { width:min(1300px,96vw); height:94dvh; max-width:96vw; max-height:94dvh; border:1px solid var(--theme-border, #dce4de); border-radius:20px; padding:24px; background:var(--theme-surface, white); color:var(--theme-foreground, #252d29); margin:auto; overflow:auto; }
.provider-listing-editor .editor-preview::backdrop { background:rgb(20 35 26 / .65); }
.provider-listing-editor .editor-preview header { display:flex; justify-content:space-between; align-items:center; gap:20px; position:sticky; top:-24px; padding:16px 0; margin-bottom:24px; background:var(--theme-surface, white); z-index:5; }
.provider-listing-editor :focus-visible { outline:3px solid #27734d; outline-offset:3px; }
@media (max-width:1200px) { .provider-listing-editor .editor-grid { grid-template-columns:150px minmax(0,1fr); } .provider-listing-editor .editor-grid.has-preview { grid-template-columns:150px minmax(0,1fr) minmax(0,1fr); } }
@media (max-width:760px) {
 .provider-listing-editor { padding:16px; padding-bottom:100px; border-radius:16px; }
 .provider-listing-editor .editor-header { gap:12px; margin:20px 0; }
 .provider-listing-editor .editor-thumbnail { width:56px; height:56px; }
 .provider-listing-editor .editor-save-state { display:block; margin:9px 0 0; }
 .provider-listing-editor .editor-grid { display:block; }
 .provider-listing-editor .editor-preview-column { margin-top:18px; }
 .provider-listing-editor .editor-nav { position:static; margin-bottom:18px; }
 .provider-listing-editor .editor-mobile-nav { display:block; font-size:13px; font-weight:600; }
 .provider-listing-editor .editor-desktop-nav { display:none; }
 .provider-listing-editor .editor-panel { padding:20px 16px; }
 .provider-listing-editor .editor-actions { position:fixed; bottom:0; left:0; right:0; padding:12px 16px max(12px,env(safe-area-inset-bottom)); background:var(--theme-surface, white); border-top:1px solid var(--theme-border, #dce4de); box-shadow:0 -4px 20px #2037290a; z-index:40; }
 .provider-listing-editor .editor-actions .editor-primary { flex:1; }
 .provider-listing-editor .editor-pair { grid-template-columns:1fr; gap:0; }
 .provider-listing-editor .editor-gallery { grid-template-columns:1fr; }
 .provider-listing-editor .editor-preview { padding:16px; }
 .provider-listing-editor .editor-preview header { top:-16px; }
}
@media (prefers-reduced-motion:reduce) { .provider-listing-editor button { transition:none; } }
.provider-listing-editor .editor-upload { position:relative; cursor:pointer; }
.provider-listing-editor .editor-upload input[type="file"] { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer; }
.provider-listing-editor .editor-upload:focus-within { outline:3px solid #27734d; outline-offset:3px; }
.provider-listing-editor .editor-fields progress { width:100%; accent-color:#245d43; }

/* Studio navigation and compact edit surfaces. */
.provider-listing-editor .editor-grid,.provider-listing-editor .editor-grid.has-preview { grid-template-columns:minmax(0,1fr); gap:18px; }
.provider-listing-editor .editor-grid.has-preview { grid-template-columns:repeat(2,minmax(0,1fr)); }
.provider-listing-editor .editor-nav { grid-column:1/-1; position:static; min-width:0; padding:6px; border:1px solid var(--theme-border, #dce7df); border-radius:16px; background:var(--theme-surface, #fff); box-shadow:0 8px 25px #20372908; }
.provider-listing-editor .editor-desktop-nav { display:flex; gap:4px; overflow-x:auto; scrollbar-width:thin; }
.provider-listing-editor .editor-desktop-nav button { flex:1 0 auto; text-align:center; white-space:nowrap; padding:11px 14px; border:1px solid transparent; border-radius:11px; color:var(--theme-foreground-muted, #526258); }
.provider-listing-editor .editor-desktop-nav button[aria-current="page"] { border-color:var(--theme-border, #b8d6c2); background:var(--theme-surface-muted, #e9f4ec); color:var(--theme-foreground, #1f5438); box-shadow:none; }
.provider-listing-editor .editor-desktop-nav span { float:none; margin-left:5px; }
.provider-listing-editor .editor-mobile-nav { display:none; }
.provider-listing-editor .editor-taxonomy { background:var(--theme-surface, #fff); }
.provider-listing-editor .editor-category-group { background:var(--theme-surface, #fff); }
.provider-listing-editor .editor-category-group:has(.editor-subcategory-select),.provider-listing-editor .editor-category-group:has(.editor-category-done) { background:var(--theme-surface-muted, #f7faf8); }
.provider-listing-editor .editor-category-done-row { display:flex; justify-content:flex-end; }
.provider-listing-editor .editor-category-done { margin-top:12px; }
.provider-listing-editor .editor-add-chip { display:flex; align-items:stretch; gap:0; }
.provider-listing-editor .editor-add-chip select,.provider-listing-editor .editor-add-chip input { height:44px; min-height:44px; margin:0; border-radius:9px 0 0 9px; }
.provider-listing-editor .editor-add-chip > button { height:44px; min-height:44px; margin:0 0 0 -1px; border-radius:0 9px 9px 0; }
.provider-listing-editor .editor-tag-input { position:relative; flex:1 1 auto; min-width:0; height:44px; }
.provider-listing-editor .editor-fields .editor-tag-add .editor-tag-input input { display:block; box-sizing:border-box; width:100%; height:44px; min-height:44px; margin:0; padding-right:40px; border-radius:9px 0 0 9px; }
.provider-listing-editor .editor-fields .editor-tag-add > button { box-sizing:border-box; height:44px; min-height:44px; margin:0 0 0 -1px; border-radius:0 9px 9px 0; }
.provider-listing-editor button.editor-tag-clear { position:absolute; right:4px; top:4px; width:36px; height:36px; padding:0; border:0; background:transparent; color:var(--theme-foreground-muted, #63746b); }
.provider-listing-editor .editor-ai-label { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.provider-listing-editor .editor-ai-label label { margin:20px 0 7px; }
.provider-listing-editor .editor-ai-label button { margin-bottom:7px; }
.provider-listing-editor button.editor-ai-trigger { display:inline-flex; align-items:center; gap:7px; color:#1f6340; border-color:var(--theme-border, #b9d9c4); background:var(--theme-surface-muted, #eef8f1); }
.provider-listing-editor .editor-ai-backdrop { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:20px; background:#13271dc2; }
.provider-listing-editor .editor-ai-dialog { width:min(620px,100%); max-height:90dvh; overflow:auto; padding:28px; border:1px solid var(--theme-border, #d8e7dc); border-radius:20px; background:var(--theme-surface, #fff); box-shadow:0 25px 80px #10251d55; }
.provider-listing-editor .editor-ai-dialog h2 { margin:12px 0 6px; font-size:23px; }
.provider-listing-editor .editor-ai-dialog p { color:var(--theme-foreground-muted, #627169); font-size:14px; }
.provider-listing-editor .editor-ai-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:var(--theme-surface-muted, #e9f4ec); color:var(--theme-foreground, #245d43); }
.provider-listing-editor .editor-ai-copy { max-height:42dvh; overflow:auto; white-space:pre-wrap; padding:17px; margin:18px 0; border:1px solid var(--theme-border, #dce7df); border-radius:12px; background:var(--theme-surface-muted, #f8fbf9); line-height:1.65; }
.provider-listing-editor .editor-ai-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.provider-listing-editor .editor-location-extras { display:grid; gap:10px; margin-top:22px; }
.provider-listing-editor .editor-fields details.editor-location-detail { margin:0; padding:0; border:1px solid var(--theme-border, #dce7df); border-radius:13px; background:var(--theme-surface, #fff); overflow:hidden; }
.provider-listing-editor .editor-fields .editor-location-detail summary { display:flex; align-items:center; gap:12px; padding:17px 19px; color:var(--theme-foreground, #274a36); list-style:none; }
.provider-listing-editor .editor-location-detail summary::-webkit-details-marker { display:none; }
.provider-listing-editor .editor-location-detail summary i { width:23px; color:#367755; }
.provider-listing-editor .editor-location-detail summary .editor-accordion-chevron { width:auto; margin-left:auto; font-size:13px; transition:transform .2s; }
.provider-listing-editor .editor-location-detail[open] summary .editor-accordion-chevron { transform:rotate(180deg); }
.provider-listing-editor .editor-location-detail[open] summary { background:var(--theme-surface-muted, #f5faf6); border-bottom:1px solid var(--theme-border, #dce7df); }
.provider-listing-editor .editor-location-detail-body { padding:5px 19px 20px; }
.provider-listing-editor .editor-block-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:25px 0 12px; }
.provider-listing-editor .editor-block-heading h3 { margin:0; }
.provider-listing-editor .editor-block-heading button { display:inline-flex; align-items:center; gap:8px; }
.provider-listing-editor .editor-equipment-picker { padding:16px; margin:0 0 14px; border:1px solid var(--theme-border, #c8dfd0); border-radius:14px; background:var(--theme-surface-muted, #f7faf8); }
.provider-listing-editor .editor-equipment-picker .editor-help { margin:0 0 12px; }
.provider-listing-editor .editor-equipment-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:8px; }
.provider-listing-editor .editor-equipment-choices button { display:flex; align-items:center; gap:10px; text-align:left; background:var(--theme-surface, #fff); }
.provider-listing-editor .editor-equipment-choices button i:first-child { width:20px; color:var(--theme-foreground, #245d43); text-align:center; }
.provider-listing-editor .editor-equipment-choices button i:last-child { margin-left:auto; color:var(--theme-foreground-muted, #43735a); font-size:11px; }
@media(max-width:1200px) { .provider-listing-editor .editor-grid,.provider-listing-editor .editor-grid.has-preview { grid-template-columns:minmax(0,1fr); } .provider-listing-editor .editor-grid.has-preview { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:900px) { .provider-listing-editor .editor-grid.has-preview { grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) { .provider-listing-editor .editor-grid { display:grid; } .provider-listing-editor .editor-nav { margin-bottom:0; } .provider-listing-editor .editor-desktop-nav { display:flex; } .provider-listing-editor .editor-mobile-nav { display:none; } .provider-listing-editor .editor-desktop-nav button { padding:10px 12px; } }

/* Horaires : une plage à deux poignées pour chaque créneau. */
.provider-listing-editor .editor-day {
  background:var(--theme-surface, #fff);
  border:1px solid var(--theme-border, #d8e3db);
  border-radius: 16px;
  padding: 20px;
  margin: 0;
}
.provider-listing-editor .editor-day-title { justify-content: space-between; margin-bottom: 16px; }
.provider-listing-editor .editor-day.is-closed { background:var(--theme-surface-muted, #f0f2f0); border-color:var(--theme-border, #d9dfda); }
.provider-listing-editor .editor-day.is-closed .editor-day-title h3 { color:var(--theme-foreground-muted, #58645c); }
.provider-listing-editor .editor-day-title h3 { margin: 0; font-size: 18px; }
.provider-listing-editor .hours-copy-row { display: flex; justify-content: center; padding: 10px 0; }
.provider-listing-editor button.hours-copy-button {
  border:0;
  background:transparent;
  color:var(--theme-foreground, #245d43);
  padding: 8px 14px;
  font-size: 12px;
}
.provider-listing-editor .hours-copy-button i { margin-right: 7px; }
.provider-listing-editor button.hours-action { display: inline-flex; align-items: center; gap: 8px; }
.provider-listing-editor button.hours-action.is-active { background:var(--theme-surface-muted, #f0f1f0); color:var(--theme-foreground-muted, #4b574f); }
.provider-listing-editor .hours-day-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.provider-listing-editor .hours-closed-note { margin: 0; color:var(--theme-foreground-muted, #66716a); font-size: 14px; }
.provider-listing-editor .hours-range-card {
  border:1px solid var(--theme-border, #e4ece6);
  background:var(--theme-surface-muted, #f7faf8);
  padding: 18px;
  border-radius: 13px;
  margin: 10px 0;
}
.provider-listing-editor .hours-range-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.provider-listing-editor .hours-range-heading strong { margin-right: auto; }
.provider-listing-editor .hours-range-values { color:var(--theme-foreground, #1d553b); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.provider-listing-editor .hours-range-values span { padding: 0 4px; }
.provider-listing-editor .hours-next-day { padding: 3px 9px; border-radius: 30px; color:var(--theme-warning, #6d4f15); background:var(--theme-surface-muted, #fff1cd); font-size: 11px; font-weight: 700; }
.provider-listing-editor .hours-range-slider {
  position: relative;
  height: 36px;
  margin: 18px 0 0;
}
.provider-listing-editor .hours-range-slider::before,
.provider-listing-editor .hours-range-slider::after { content: ""; position: absolute; top: 15px; height: 7px; border-radius: 99px; pointer-events: none; }
.provider-listing-editor .hours-range-slider::before { inset-inline: 0; background:var(--theme-surface-muted, #d7e2da); }
.provider-listing-editor .hours-range-slider::after { left: var(--range-from); right: calc(100% - var(--range-to)); background:#317b52; }
.provider-listing-editor .editor-fields .hours-range-slider input[type="range"] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  border:0;
  background:transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  z-index: 2;
}
.provider-listing-editor .hours-range-slider input[type="range"]::-webkit-slider-runnable-track { height: 36px; background:transparent; }
.provider-listing-editor .hours-range-slider input[type="range"]::-moz-range-track { height: 36px; background:transparent; }
.provider-listing-editor .hours-range-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 23px;
  height: 23px;
  margin-top: 6px;
  border:3px solid var(--theme-border, #fff);
  border-radius: 50%;
  background:#245d43;
  box-shadow: 0 1px 6px #17362755;
  pointer-events: auto;
  cursor: grab;
}
.provider-listing-editor .hours-range-slider input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border:3px solid var(--theme-border, #fff);
  border-radius: 50%;
  background:#245d43;
  box-shadow: 0 1px 6px #17362755;
  pointer-events: auto;
  cursor: grab;
}
.provider-listing-editor .hours-range-slider input[type="range"]:focus-visible { outline:none; }
.provider-listing-editor .hours-range-slider input[type="range"]:focus-visible::-webkit-slider-thumb { outline:3px solid #1b6c45; outline-offset: 3px; }
.provider-listing-editor .hours-range-slider input[type="range"]:focus-visible::-moz-range-thumb { outline:3px solid #1b6c45; outline-offset: 3px; }
.provider-listing-editor .hours-range-scale { display: flex; justify-content: space-between; gap: 6px; color:var(--theme-foreground-muted, #65736a); font-size: 10px; font-variant-numeric: tabular-nums; }
.provider-listing-editor .hours-range-hint { color:var(--theme-foreground-muted, #69766c); font-size: 11px; margin: 9px 0 0; }
@media (max-width: 760px) {
  .provider-listing-editor .editor-day { padding: 15px; }
  .provider-listing-editor .hours-range-card { padding: 13px; }
  .provider-listing-editor .hours-range-scale { font-size: 9px; }
  .provider-listing-editor .hours-range-heading strong { width: 100%; }
}

/* Une seule timeline pour toutes les plages du jour. */
.provider-listing-editor .hours-timeline-card {
  border:1px solid var(--theme-border, #e4ece6);
  background:var(--theme-surface-muted, #f7faf8);
  padding: 18px;
  border-radius: 13px;
  margin: 10px 0;
}
.provider-listing-editor .hours-timeline-slots { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.provider-listing-editor .hours-timeline-slot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 34px; }
.provider-listing-editor .hours-slot-label { color:var(--theme-foreground-muted, #4d6255); font-size: 12px; font-weight: 700; }
.provider-listing-editor .hours-slot-times { color:var(--theme-foreground, #1d553b); font-size: 14px; font-variant-numeric: tabular-nums; }
.provider-listing-editor button.hours-delete-slot { padding: 6px 8px; border:0; color:var(--theme-danger, #8b3d33); background:transparent; }
.provider-listing-editor button.hours-delete-slot:hover { background:var(--theme-surface-muted, #fff0ed); }
.provider-listing-editor .hours-range-slider::after { display: none; }
.provider-listing-editor .hours-range-fill { position: absolute; top: 15px; height: 7px; border-radius: 99px; background:#317b52; pointer-events: none; z-index: 1; }
.provider-listing-editor .hours-midnight-marker { position: absolute; top: 9px; height: 19px; border-left:1px solid var(--theme-border, #899b8e); pointer-events: none; z-index: 1; }
.provider-listing-editor .hours-timeline-scroll { overflow-x: auto; scrollbar-width: thin; }
.provider-listing-editor .hours-timeline-track { min-width: 460px; }
.provider-listing-editor .hours-range-slider input.hours-range-close::-webkit-slider-thumb { background:#173f2d; }
.provider-listing-editor .hours-range-slider input.hours-range-close::-moz-range-thumb { background:#173f2d; }
.provider-listing-editor .hours-range-scale { position: relative; height: 17px; display: block; }
.provider-listing-editor .hours-range-scale span { position: absolute; top: 0; white-space: nowrap; }
.provider-listing-editor .hours-range-scale span { transform: translateX(-50%); }
.provider-listing-editor .hours-range-scale span.hours-scale-edge { transform: none; }
.provider-listing-editor .hours-pause-icon { position: relative; display: inline-block; width: 22px; height: 20px; }
.provider-listing-editor .hours-pause-icon .fa-mug-hot { position: absolute; left: 0; bottom: 0; font-size: 16px; }
.provider-listing-editor .hours-pause-icon .fa-plus { position: absolute; right: -2px; top: -2px; padding: 2px; background:var(--theme-surface, #fff); border-radius: 50%; font-size: 9px; }
@media (max-width: 760px) { .provider-listing-editor .hours-timeline-card { padding: 13px; } }

/* Horaires : badges identiques et repères métier sur la timeline. */
.provider-listing-editor .editor-day-title { gap: 12px; }
.provider-listing-editor .hours-day-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.provider-listing-editor button.hours-reset { display: inline-flex; justify-content: center; align-items: center; width: 38px; min-height: 38px; padding: 8px; }
.provider-listing-editor .hours-timeline-slots { gap: 8px; }
.provider-listing-editor .hours-timeline-slot {
  min-height: 36px;
  border:1px solid var(--theme-border, #d2e3d8);
  border-radius: 999px;
  background:var(--theme-surface-muted, #eaf3ed);
  padding: 3px 6px 3px 13px;
  gap: 7px;
}
.provider-listing-editor .hours-slot-label,
.provider-listing-editor .hours-slot-times { color:var(--theme-foreground, #215b3e); font-size: 12px; }
.provider-listing-editor button.hours-delete-slot { width: 26px; height: 26px; padding: 4px; border-radius: 50%; }
.provider-listing-editor .hours-range-fill { background:#317b52; }
.provider-listing-editor .hours-range-scale { height: 22px; }
.provider-listing-editor .hours-range-scale span::before { content: ""; position: absolute; top: -7px; left: 50%; height: 5px; border-left:1px solid var(--theme-border, #8ea69a); }
.provider-listing-editor .hours-range-scale span.hours-scale-edge:first-child::before { left: 0; }
.provider-listing-editor .hours-range-scale span.hours-scale-edge:last-child::before { left: auto; right: 0; }
@media (max-width: 760px) {
  .provider-listing-editor .editor-day-title h3 { width: 100%; }
  .provider-listing-editor .hours-day-toolbar { width: 100%; }
  .provider-listing-editor .hours-timeline-slot { border-radius: 12px; }
}

/* Les accents des actions restent distincts des surfaces neutres en mode sombre. */
html[data-theme="dark"] .provider-listing-editor :is(a, .editor-back-link, .editor-eyebrow, .editor-info, .editor-chip, .editor-suggestions button, .editor-access-route > i, .editor-service-summary > i, .editor-location-detail summary i) {
    color: var(--theme-link);
}

html[data-theme="dark"] .provider-listing-editor :is(.editor-desktop-nav button[aria-current="page"], button.editor-ai-trigger) {
    color: var(--foreground);
    background: var(--surface-muted);
    border-color: var(--focus);
}

html[data-theme="dark"] .provider-listing-editor :is(input, textarea, select)::placeholder {
    color: var(--foreground-muted);
    opacity: 1;
}

html[data-theme="dark"] .provider-listing-editor :is(:focus-visible, .editor-upload:focus-within) {
    outline-color: var(--focus);
}

html[data-theme="dark"] .provider-listing-editor :is(.editor-fields progress, input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--focus);
}
