/* Icon-only section controls inherit the section title colour. */
body .ctm-lockable-panel{overflow:visible!important;scroll-margin-top:calc(var(--interaction-bar-offset,170px) + var(--ctm-lock-parent-offset,0px))}
body .ctm-lockable-panel>summary{display:flex;align-items:center;gap:.65rem;list-style:none}
body .ctm-lockable-panel>summary::-webkit-details-marker{display:none}
body .ctm-lockable-panel>summary::after{content:none!important}
body .ctm-lockable-panel[open]>summary{position:sticky!important;top:calc(var(--interaction-bar-offset,170px) + var(--ctm-lock-parent-offset,0px));z-index:16;background:#fff!important;border-radius:14px 14px 0 0;box-shadow:0 3px 9px #22323d13}
body .ctm-panel-lock-action{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;min-width:42px;height:42px;min-height:42px;margin:0 0 0 auto;padding:7px;border:0;border-radius:10px;background:transparent;color:inherit!important;box-shadow:none!important;font:inherit;cursor:pointer}
body .ctm-panel-lock-action:hover,body .ctm-panel-lock-action:focus-visible{background:#243f4c0b;outline:2px solid currentColor;outline-offset:-2px}
body .ctm-panel-lock{width:22px;height:24px;flex:0 0 22px;overflow:visible;color:inherit}
body .ctm-lock-shackle{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;transform-box:view-box;transform-origin:22px 14px;transition:transform .3s ease}
body .ctm-lock-body{fill:none;stroke:currentColor;stroke-width:2.2}
body .ctm-lock-keyhole{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
body .ctm-lockable-panel[open]>summary>.ctm-panel-lock-action .ctm-lock-shackle{transform:rotateY(180deg)}
body .ctm-dismiss-lock .ctm-lock-shackle{transform:rotateY(180deg)}
body .ctm-lock-replaced-control{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(prefers-reduced-motion:reduce){body .ctm-lock-shackle,body .ctm-panel-lock-action [data-panel-lock-label]{transition:none}}

body .ctm-standalone-lock{color:var(--ctm-action-color,inherit)!important;background:transparent!important;border:0!important;max-width:42px;vertical-align:middle}

/* A card is a focused page until it is closed, also inside nested folders. */
body .ctm-panel-focus-hidden{display:none!important}
/* Notes float over the lock and never change the heading's layout. */

/* A changed card carries S in place of the keyhole, with immediate actions. */
body .ctm-lock-save{display:none;fill:currentColor;stroke:none;font:700 13px Arial,sans-serif}
body .ctm-panel-dirty[open]>summary .ctm-lock-keyhole{display:none}
body .ctm-panel-dirty[open]>summary .ctm-lock-save{display:block}
body .ctm-panel-ancestor{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important}
body .ctm-panel-ancestor>summary{display:none!important}
body .ctm-panel-ancestor>:not(summary){padding:0!important;border:0!important;margin:0!important;background:transparent!important;box-shadow:none!important}
/* No visible open/close notes or guide; accessibility names remain on buttons. */
body .ctm-lock-guide,body [data-panel-lock-label]{display:none!important}
/* One normal document scroll, with the current section title below the app header. */
html,body{overscroll-behavior-y:none}
body .ctm-lockable-panel.ctm-panel-page[open]{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;max-height:none!important;margin:0 0 16px!important;display:block!important;overflow:visible!important;background:#fff!important;isolation:auto}
body .ctm-lockable-panel.ctm-panel-page[open]>summary{position:sticky!important;top:var(--interaction-bar-offset,170px)!important;z-index:30;min-height:50px;padding:8px 14px!important;margin:0;background:#fff!important}
body .ctm-panel-page>.ctm-panel-page-body{position:static!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:12px;min-width:0}
body .ctm-panel-page-body>form{padding:4px;min-width:0}
body .ctm-panel-ancestor>.ctm-panel-page-body{padding:0!important}
body .ctm-panel-lock-action,body .ctm-panel-lock-action:hover,body .ctm-panel-lock-action:active,body .ctm-panel-lock-action:focus{background:transparent!important;box-shadow:none!important;outline:none!important;-webkit-tap-highlight-color:transparent}
body .ctm-panel-lock-action:focus-visible{outline:1px dashed currentColor!important;outline-offset:1px}
@media(pointer:coarse){body .ctm-panel-lock-action:focus-visible{outline:none!important}}
@media(orientation:landscape) and (max-height:600px){body .ctm-lockable-panel.ctm-panel-page[open]>summary{min-height:38px;padding:4px 10px!important}}


/* Editable child cards: tracking-blue sticky title, yellow save lock at the end. */
body .ctm-editable-subcard[open]>summary,
body .ctm-editable-subcard.ctm-panel-page[open]>summary{
 background:linear-gradient(#26303f,#191b22)!important;color:#fff!important;
 border:1px solid #4d5864;border-radius:12px 12px 0 0;
 box-shadow:0 4px 12px #15233426;isolation:isolate;
}
body .ctm-editable-subcard[open]>summary :is(strong,small,.availability-number,.confirmation-check,.center-courts-required){color:#f3f6fa!important}
body .ctm-editable-subcard[open]>summary .ctm-panel-lock-action{color:#fff!important}
body .ctm-editable-subcard[open]>summary .center-court-counter{background:#ffffff17;color:#fff}
body .ctm-editable-subcard[open]>summary .confirmation-check input{accent-color:#FFD300}
/* Yellow fill and a dark S are the explicit unsaved-change signal. */
body .ctm-editable-subcard.ctm-panel-dirty[open]>summary .ctm-lock-body{fill:#FFD300;stroke:#FFD300}
body .ctm-editable-subcard.ctm-panel-dirty[open]>summary .ctm-lock-shackle{stroke:#FFD300}
body .ctm-editable-subcard.ctm-panel-dirty[open]>summary .ctm-lock-save{display:block;fill:#203044;font-weight:800}
body .ctm-editable-subcard .ctm-subcard-save-footer{
 display:flex;justify-content:center;gap:12px;margin-top:22px;padding:18px 0 8px;
 border-top:1px solid #cfdae3;min-width:0;
}
body .ctm-editable-subcard .ctm-subcard-save-button,
body .ctm-editable-subcard .ctm-subcard-save-button:hover,
body .ctm-editable-subcard .ctm-subcard-save-button:focus{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto!important;width:auto!important;min-width:170px;max-width:100%;min-height:46px;
 padding:11px 25px!important;background:#FFD300!important;color:#203044!important;
 border:1px solid #b79a00;border-radius:999px!important;font-size:15px;font-weight:800;
 line-height:1.45;white-space:normal;box-shadow:0 3px 10px #a38b0020;
}
body .ctm-editable-subcard .ctm-subcard-save-button:focus-visible{outline:3px solid #345e91!important;outline-offset:3px}
body .ctm-editable-subcard .center-profile-footer{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
}
body .ctm-editable-subcard .center-profile-footer>button{flex:0 0 auto!important}
/* Keep editable-module bars sticky even when a later centre stylesheet resets
   nested summaries to position:static. Closed/list headings are unaffected. */
body .ctm-lockable-panel.ctm-editable-subcard[open]:not(.ctm-panel-ancestor)>summary{
 position:sticky!important;
 top:calc(var(--interaction-bar-offset,170px) + var(--ctm-lock-parent-offset,0px))!important;
 z-index:32;background:linear-gradient(#26303f,#191b22)!important;color:#fff!important;
}
body .ctm-lockable-panel.ctm-editable-subcard.ctm-panel-page[open]>summary{top:var(--interaction-bar-offset,170px)!important}
