.layout-page { max-width: 1260px; margin: 0 auto; padding: 1.25rem 0 4rem; }
.layout-page__targets { margin-top:1rem; padding:1.25rem; background:var(--theme-surface,#fff); border:1px solid var(--theme-border,#dce4f1); border-radius:1rem; }
.layout-page__targets h2 { margin:0 0 .8rem; font-size:1.1rem; }
.layout-page__targets .layout-page__actions { margin:0; }
.layout-page__targets .layout-page__actions a,.layout-page__picker button { padding:.65rem .85rem; color:#fff; background:#365fa7; border:1px solid #365fa7; border-radius:.6rem; font-size:.8rem; font-weight:800; text-decoration:none; }
.layout-page__picker { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem; }
.layout-page__picker label { font-size:.78rem; font-weight:800; }
.layout-page__picker select { flex:1 1 220px; min-height:40px; padding:.45rem .6rem; color:var(--theme-text,#23385f); background:var(--theme-surface,#fff); border:1px solid var(--theme-border,#d4dfed); border-radius:.55rem; }
.layout-page__hero { padding: clamp(1.5rem,3vw,2.5rem); border: 1px solid #dce4f1; border-radius: 1.2rem; background: linear-gradient(120deg,#eef5ff,#f8f4ff); }
.layout-page__settings { margin-top:1rem; }
.layout-page__eyebrow { display:block; margin-bottom:.4rem; color:#627db7; font-size:.68rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.layout-page__settings-actions { justify-content:flex-end; padding:.25rem .25rem .5rem; }
.layout-page__settings-actions [data-layout-status] { min-width:11rem; }
.layout-page__hero span { color:#627db7; font-size:.7rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.layout-page__hero h1 { margin:.3rem 0; font-size:clamp(2rem,4vw,3rem); }
.layout-page__hero p,.layout-page__panel p { margin:.3rem 0 0; color:#65728d; }
.layout-page__back { display:inline-block; margin-top:1rem; color:#315f9f; font-weight:800; text-decoration:none; }
.layout-panel-preview { display:grid; gap:1rem; width:min(100%,1100px); margin:1rem auto 0; padding:1rem; border:1px solid var(--theme-border,#dce4f1); border-radius:1rem; background:var(--theme-surface,#fff); }
.layout-panel-preview > [data-layout-module] { width:var(--layout-module-width,100%); min-height:var(--layout-module-height,0px); max-width:100%; justify-self:start; }
.layout-panel-preview .client-panel-action,.layout-panel-preview .therapist-panel-grid > article { min-height:100px; padding:1rem; border:1px solid var(--theme-border,#dce4f1); border-radius:.8rem; background:var(--theme-surface,#fff); }
.layout-panel-preview .client-portal-hero h1 { color:#fff; }
.layout-page__panel { display:grid; grid-template-columns:minmax(220px,1fr) minmax(0,2fr); gap:1.5rem; margin-top:1rem; padding:1.4rem; border:1px solid #dce4f1; border-radius:1rem; background:#fff; }
.layout-page__panel h2 { margin:0; font-size:1.3rem; }
.layout-page__choices { display:flex; flex-wrap:wrap; gap:.6rem; align-content:start; }
.layout-page__choices label { display:flex; align-items:center; gap:.5rem; padding:.7rem 1rem; border:1px solid #d6e1f2; border-radius:.7rem; cursor:pointer; font-weight:700; }
.layout-page__choices label:has(input:checked) { color:#234e93; border-color:#8aabe4; background:#edf4ff; }
.layout-page__order { display:grid; gap:.5rem; margin:0; padding:0; list-style:none; }
.layout-page__order li { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.55rem .7rem; border:1px solid #dbe4f2; border-radius:.65rem; background:#f9fbff; cursor:grab; }
.layout-page__order li::before { content:'⋮⋮'; color:#8495b6; margin-right:.3rem; }
.layout-page__order li strong { flex:1; }
.layout-page__order li span { display:flex; gap:.3rem; }
.layout-page__order button { width:2rem; height:2rem; border:1px solid #d5e0f0; border-radius:.4rem; background:#fff; color:#315f9f; }
.layout-page__order button:disabled { opacity:.35; }
.layout-page__directory-choices { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.layout-page__directory-choices label,.directory-sort { display:grid; gap:.35rem; color:#596781; font-size:.75rem; font-weight:800; }
.layout-page__directory-choices select,.directory-sort select { min-height:42px; padding:.45rem .65rem; border:1px solid #d4dfed; border-radius:.6rem; background:#fff; color:#23385f; }
.layout-page__actions { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; margin-top:1.25rem; }
.layout-page__actions button { min-height:42px; padding:.65rem 1rem; border:1px solid #cbd8ed; border-radius:.7rem; background:#fff; color:#315f9f; font-weight:800; }
.layout-page__actions [data-layout-save] { color:#fff; border-color:#315f9f; background:#315f9f; }
.layout-page__actions span { color:#22755e; font-size:.8rem; }
.directory-sort { min-width:180px; }
.directory-sort { position:relative; }
.directory-sort > label { color:#596781; font-size:.75rem; font-weight:800; }
.directory-sort select.directory-sort__native { position:absolute; width:1px; height:1px; padding:0; opacity:0; pointer-events:none; }
.directory-sort__menu { position:relative; min-width:0; }
.directory-sort__menu summary { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-height:42px; padding:.55rem .7rem; color:#23385f; background:#fff; border:1px solid #d4dfed; border-radius:.6rem; cursor:pointer; list-style:none; font-size:.77rem; font-weight:650; }
.directory-sort__menu summary::-webkit-details-marker { display:none; }
.directory-sort__menu summary::after { content:'⌄'; color:#4267a8; font-size:1rem; line-height:1; }
.directory-sort__menu[open] summary { border-color:#6a8cc9; box-shadow:0 0 0 3px rgba(68,119,201,.12); }
.directory-sort__menu[open] summary::after { transform:rotate(180deg); }
.directory-sort__menu summary:focus-visible,.directory-sort__choices button:focus-visible { outline:3px solid #7b9fe0; outline-offset:2px; }
.directory-sort__choices { position:absolute; z-index:20; inset-inline:0; top:calc(100% + .3rem); display:grid; gap:.15rem; padding:.35rem; background:#fff; border:1px solid #d4dfed; border-radius:.7rem; box-shadow:0 16px 32px rgba(29,47,91,.16); }
.directory-sort__choices button { width:100%; padding:.55rem .65rem; color:#344967; background:transparent; border:0; border-radius:.45rem; text-align:start; font:inherit; font-size:.77rem; font-weight:650; cursor:pointer; }
.directory-sort__choices button:hover,.directory-sort__choices button[aria-current="true"] { color:#274f98; background:#edf3ff; }
html[data-theme="dark"] .directory-sort__menu summary,html[data-theme="dark"] .directory-sort__choices { color:#e4edff; border-color:#455a79; background:#22344e; }
html[data-theme="dark"] .directory-sort__choices button { color:#d3def0; }
html[data-theme="dark"] .directory-sort__choices button:hover,html[data-theme="dark"] .directory-sort__choices button[aria-current="true"] { color:#fff; background:#344d75; }
@media (min-width:1181px) {
  .app-page { --layout-rail:230px; }
  html[data-nav-position="left"] .app-page .site-header,html[data-nav-position="right"] .app-page .site-header { position:fixed; top:0; bottom:0; width:var(--layout-rail); overflow-y:auto; }
  html[data-nav-position="left"] .app-page .site-header { left:0; right:auto; border-right:1px solid #dce4f1; }
  html[data-nav-position="right"] .app-page .site-header { right:0; left:auto; border-left:1px solid #dce4f1; }
  html[data-nav-position="left"] .app-page .site-header__inner,html[data-nav-position="right"] .app-page .site-header__inner { flex-direction:column; align-items:stretch; padding:1rem; }
  html[data-nav-position="left"] .app-page .site-brand img,html[data-nav-position="right"] .app-page .site-brand img { width:160px; height:60px; }
  html[data-nav-position="left"] .app-page .navbar-collapse,html[data-nav-position="right"] .app-page .navbar-collapse { display:block!important; width:100%; }
  html[data-nav-position="left"] .app-page .navbar-nav,html[data-nav-position="right"] .app-page .navbar-nav { flex-direction:column; align-items:stretch!important; margin:0!important; }
  html[data-nav-position="left"] .app-page .nav-item--booking,html[data-nav-position="right"] .app-page .nav-item--booking { margin:.5rem 0; }
  html[data-nav-position="left"] .app-page .app-main,html[data-nav-position="left"] .app-page .site-footer { margin-left:var(--layout-rail); }
  html[data-nav-position="right"] .app-page .app-main,html[data-nav-position="right"] .app-page .site-footer { margin-right:var(--layout-rail); }
  html[data-nav-position="left"] .app-page .app-main.container,html[data-nav-position="right"] .app-page .app-main.container { width:calc(100% - var(--layout-rail)); max-width:none; }
  html[data-nav-position="bottom"] .app-page .site-header { position:fixed; top:auto; right:0; bottom:0; left:0; border-top:1px solid #dce4f1; border-bottom:0; }
  html[data-nav-position="bottom"] .app-page .site-header__inner { min-height:70px; max-width:none; }
  html[data-nav-position="bottom"] .app-page .site-brand { display:none; }
  html[data-nav-position="bottom"] .app-page .navbar-collapse { min-width:0; }
  html[data-nav-position="bottom"] .app-page .navbar-nav { flex-wrap:nowrap; overflow-x:auto; }
  html[data-nav-position="bottom"] .app-page .nav-item { flex:none; }
  html[data-nav-position="bottom"] .app-page .app-main { padding-bottom:8rem; }
  html[data-nav-position="bottom"] .app-page .site-footer { margin-bottom:70px; }
}
.schedule-shell[data-filter-position="right"] .schedule-workspace { grid-template-columns:minmax(0,1fr) 260px; }
.schedule-shell[data-filter-position="right"] .schedule-filters { grid-column:2; grid-row:1; }
.schedule-shell[data-filter-position="right"] .calendar-card { grid-column:1; grid-row:1; }
.schedule-shell[data-filter-position="bottom"] .schedule-workspace { grid-template-columns:minmax(0,1fr); }
.schedule-shell[data-filter-position="bottom"] .schedule-filters { grid-column:1; grid-row:2; }
.schedule-shell[data-filter-position="bottom"] .calendar-card { grid-column:1; grid-row:1; }
@media (max-width:1180px) {
  .layout-editing .layout-dock-handle,.layout-editing .layout-dock-zones { display:none; }
  .schedule-shell[data-filter-position] .schedule-workspace { grid-template-columns:1fr; }
  .schedule-shell[data-filter-position] .calendar-card { grid-column:1; grid-row:1; }
  .schedule-shell[data-filter-position="right"] .schedule-filters,.schedule-shell[data-filter-position="left"] .schedule-filters { grid-column:auto; grid-row:auto; }
  .schedule-shell[data-filter-position="bottom"] .schedule-filters { position:static; width:auto; height:auto; transform:none; grid-column:1; grid-row:2; border:1px solid #dce4f1; border-radius:1rem; box-shadow:none; }
  .schedule-shell[data-filter-position="bottom"] .filter-button { display:none; }
}
@media (max-width:760px) { .layout-page__panel { grid-template-columns:1fr; } .layout-page__directory-choices { grid-template-columns:1fr; } }
html[data-theme="dark"] .layout-page__hero { color:#ecf3ff; border-color:#334661; background:linear-gradient(120deg,#1a2a45,#2a2042); }
html[data-theme="dark"] .layout-page__hero h1,html[data-theme="dark"] .layout-page__panel h2 { color:#f4f7ff; }
html[data-theme="dark"] .layout-page__hero p,html[data-theme="dark"] .layout-page__panel p,html[data-theme="dark"] .layout-page__directory-choices label { color:#b7c6dd; }
html[data-theme="dark"] .layout-page__panel { color:#e6eefc; border-color:#334661; background:#17243a; }
html[data-theme="dark"] .layout-page__choices label,html[data-theme="dark"] .layout-page__order li { color:#e6eefc; border-color:#3b4d6a; background:#1d2d47; }
html[data-theme="dark"] .layout-page__choices label:has(input:checked) { color:#c7ddff; border-color:#6993d8; background:#243e65; }
html[data-theme="dark"] .layout-page__order button,html[data-theme="dark"] .layout-page__directory-choices select,html[data-theme="dark"] .directory-sort select,html[data-theme="dark"] .layout-page__actions button:first-child { color:#e4edff; border-color:#455a79; background:#22344e; }
html[data-theme="dark"] .directory-sort { color:#b7c6dd; }
html[data-theme="dark"] .layout-page__actions span { color:#8edbbf; }

/* Direct manipulation workspace editor. The controls exist only while edit mode is active. */
.layout-edit-toggle { border:0; background:transparent; font:inherit; cursor:pointer; }
.layout-edit-toggle[aria-pressed="true"] { color:#3763aa !important; }
.layout-edit-toolbar[hidden] { display:none !important; }
.layout-edit-toolbar { position:sticky; z-index:1100; top:.5rem; display:flex; align-items:center; justify-content:center; gap:.6rem; width:min(100% - 1.5rem,1260px); margin:.75rem auto 0; padding:.65rem .8rem; color:#172b54; background:#fff; border:1px solid #b9cceb; border-radius:1rem; box-shadow:0 12px 30px rgba(19,40,87,.18); font-size:.78rem; }
.layout-edit-toolbar strong { white-space:nowrap; }
.layout-edit-toolbar span { color:#65738d; }
.layout-edit-toolbar button { flex:none; padding:.48rem .65rem; border:1px solid #cbd8eb; border-radius:.55rem; color:#345d9e; background:#f7faff; font-size:.75rem; font-weight:800; cursor:pointer; }
.layout-edit-toolbar [data-layout-save] { color:#fff; background:#3664ac; border-color:#3664ac; }
.layout-dock-handle,.layout-filter-handle,.layout-filter-resize { display:none; }
.layout-editing .layout-dock-handle { display:block; flex:none; padding:.45rem .6rem; border:1px dashed #6e8dca; border-radius:.5rem; background:#edf4ff; color:#315a9c; font-size:.7rem; font-weight:800; cursor:grab; touch-action:none; }
.layout-dock-zones { display:none; }
.layout-editing .layout-dock-zones { display:block; pointer-events:none; }
.layout-dock-zones [data-layout-zone] { position:fixed; z-index:1090; display:grid; place-items:center; color:#234e8d; background:rgba(235,244,255,.92); border:2px dashed #8aabe0; border-radius:.7rem; font-size:.7rem; font-weight:850; pointer-events:auto; }
.layout-dock-zones [data-layout-zone="top"] { top:.25rem; left:42%; width:16%; height:2rem; }
.layout-dock-zones [data-layout-zone="left"] { left:.25rem; top:45%; width:2.5rem; height:14%; writing-mode:vertical-rl; }
.layout-dock-zones [data-layout-zone="right"] { right:.25rem; top:45%; width:2.5rem; height:14%; writing-mode:vertical-rl; }
.layout-dock-zones [data-layout-zone="bottom"] { bottom:.25rem; left:42%; width:16%; height:2rem; }
.layout-editing .site-header [data-nav-key],.layout-editing .management-tabs [data-management-key] { position:relative; cursor:grab; touch-action:none; outline:1px dashed #91aee0; outline-offset:-2px; }
@media (min-width:1451px) {
  .site-header .site-header__inner { max-width:1800px; gap:.5rem; padding-inline:clamp(.75rem,1.6vw,2rem); }
  .site-header .site-brand img { width:clamp(145px,11vw,180px); height:64px; }
  .site-header .navbar-collapse { min-width:0; }
  .site-header .navbar-nav { flex-wrap:nowrap; justify-content:flex-end; gap:.12rem; }
  .site-header .navbar-nav > .nav-item { flex:none; }
  .site-header .nav-link { margin:0; padding:.45rem .36rem !important; font-size:clamp(.61rem,.68vw,.72rem); letter-spacing:.02em; white-space:nowrap; }
  .site-header .nav-item--booking { margin-inline-start:.25rem; }
  .site-header .button--nav { padding:.65rem .8rem; font-size:.69rem; white-space:nowrap; }
  .site-header .site-theme-toggle { min-height:38px; margin-inline:0; padding-inline:.3rem; font-size:.64rem; }
  .site-header .site-language-picker { min-width:0; }
}
.layout-editing .site-header [data-nav-key]::before { content:'⠿'; position:absolute; top:-.3rem; left:.1rem; color:#4570b3; font-size:.7rem; line-height:1; }
.layout-editing .management-tabs [data-management-key]::before { content:'⠿'; display:inline-block; margin-inline:.2rem; color:#4570b3; font-size:.8rem; }
.layout-editing .management-tabs { grid-template-columns:repeat(10,minmax(145px,1fr)); }
@media (min-width:761px) and (max-width:1500px) { .layout-editing .management-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); } }
.layout-editing .management-tabs a { flex:1 1 auto; }
.layout-management-pin-zone { display:none; }
.layout-editing .layout-management-pin-zone { display:grid; place-items:center; min-height:54px; padding:.6rem; border:2px dashed #8aabe0; border-radius:.7rem; color:#315a9c; background:#edf4ff; font-size:.75rem; font-weight:800; text-align:center; }
.layout-drop-target { outline:3px solid #6955cc !important; outline-offset:2px; background-color:rgba(109,88,212,.12) !important; }
.layout-dragging { cursor:grabbing !important; }
.layout-editing [data-layout-module] { position:relative; width:var(--layout-module-width,100%); min-height:var(--layout-module-height,0px); max-width:100%; justify-self:start; outline:2px dashed rgba(83,112,181,.55); outline-offset:2px; }
.layout-editing [data-layout-module] > :not(.layout-module-controls) { pointer-events:none; }
.layout-module-controls { position:absolute; z-index:25; top:.35rem; right:.35rem; display:flex; gap:.25rem; padding:.25rem; border:1px solid #a9bee3; border-radius:.6rem; background:#fff; box-shadow:0 5px 15px rgba(29,48,91,.15); }
.layout-module-controls button { padding:.35rem .45rem; border:0; border-radius:.4rem; background:#edf4ff; color:#315a9c; font-size:.65rem; font-weight:850; cursor:grab; touch-action:none; }
.layout-module-controls [data-layout-resize] { cursor:nwse-resize; }
.management-page > [data-layout-module],.resource-page > [data-layout-module],.availability-page > [data-layout-module],.capability-page > [data-layout-module],.marketing-main > [data-layout-module] { width:var(--layout-module-width,100%); min-height:var(--layout-module-height,0px); max-width:100%; justify-self:start; }
.schedule-shell[data-filter-position="left"] .schedule-workspace { grid-template-columns:var(--layout-filter-width,260px) minmax(0,1fr) !important; }
.schedule-shell[data-filter-position="right"] .schedule-workspace { grid-template-columns:minmax(0,1fr) var(--layout-filter-width,260px) !important; }
.schedule-shell[data-filter-position="bottom"] .schedule-workspace { grid-template-columns:minmax(0,1fr) !important; }
.layout-filter-zones { display:none; }
.layout-editing .layout-filter-zones { display:grid; grid-template-columns:1fr 1fr 1fr; gap:.5rem; margin:.8rem auto 0; max-width:1920px; }
.layout-filter-zones [data-layout-zone] { display:grid; place-items:center; min-height:44px; padding:.5rem; border:2px dashed #8aabe0; border-radius:.65rem; color:#315a9c; background:#edf4ff; font-size:.75rem; font-weight:800; }
.layout-editing .schedule-filters { position:relative; outline:2px dashed #91aee0; outline-offset:2px; }
.layout-editing .layout-filter-handle { display:block; margin:0 0 .5rem; padding:.4rem .55rem; border:1px dashed #7795ce; border-radius:.5rem; background:#edf4ff; color:#315a9c; font-size:.72rem; font-weight:800; cursor:grab; touch-action:none; }
.layout-editing .layout-filter-resize { display:block; position:sticky; bottom:.25rem; margin:.5rem 0 0 auto; width:2rem; height:2rem; border:1px solid #9fb6df; border-radius:.4rem; color:#315a9c; background:#fff; cursor:ew-resize; touch-action:none; }
@media (max-width:1180px) {
  .schedule-shell[data-filter-position] .schedule-workspace { grid-template-columns:minmax(0,1fr) !important; }
  .layout-editing .schedule-filters { position:static !important; display:block !important; width:100% !important; height:auto !important; transform:none !important; grid-column:1; grid-row:2; }
  .layout-editing .schedule-shell[data-filter-position] .schedule-filters { grid-row:1 !important; }
  .layout-editing .schedule-shell[data-filter-position] .calendar-card { grid-row:2 !important; }
}
@media (max-width:760px) {
  .layout-edit-toolbar { flex-wrap:wrap; justify-content:center; width:calc(100vw - 1rem); }
  .layout-edit-toolbar span { display:none; }
  .layout-dock-zones [data-layout-zone="top"],.layout-dock-zones [data-layout-zone="bottom"] { left:35%; width:30%; }
}
html[data-theme="dark"] .layout-edit-toolbar,html[data-theme="dark"] .layout-module-controls { color:#edf3ff; background:#1c2a42; border-color:#516589; }
html[data-theme="dark"] .layout-edit-toolbar span { color:#bccbe0; }
