/* Recurring availability: a clear hierarchy, visible activation and distinct center alerts. */
body #standardPreferencesForm{--ctm-form-title:22px;--ctm-form-section:19px;--ctm-form-label:16px;--ctm-form-help:15px;color:#203f53}
body #standardPreferencesForm>.panel{background:#f5f6f8;border:1px solid #a8c4d9;padding:22px;border-radius:16px;box-shadow:0 3px 12px #244f740b}
body #standardPreferencesForm .availability-purpose{padding:16px 18px;background:#fff;border:1px solid #c2d8e8;border-left:5px solid #244f74;border-radius:11px;margin-bottom:18px}
body #standardPreferencesForm .availability-purpose>strong{font-size:22px;color:#244f74}
body #standardPreferencesForm .availability-purpose p,body #standardPreferencesForm>.panel>p{font-size:15px!important;line-height:1.7;color:#3f5a70}
body #standardPreferencesForm .availability-quick-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 0;padding:0;list-style:none;counter-reset:availability-guide}
body #standardPreferencesForm .availability-quick-guide li{padding:12px;background:#edf5fb;border:1px solid #d0e2ef;border-radius:9px;font-size:14px;line-height:1.6;counter-increment:availability-guide}
body #standardPreferencesForm .availability-quick-guide li::before{content:counter(availability-guide);display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#244f74;color:white;font-weight:800;margin-right:7px}
body #standardPreferencesForm .habitual-availability{border:1px solid #aac3d6;border-left:5px solid #3b8c69;background:#fff;padding:16px;box-shadow:0 3px 10px #244f740d;border-radius:13px}
body #standardPreferencesForm .habitual-availability.availability-off{border-left-color:#9aa9b5;background:#f6f8fa}
body #standardPreferencesForm .habitual-card-titlebar{padding:12px 15px;background:#244f74;border-radius:9px}
body #standardPreferencesForm .habitual-card-titlebar .availability-number{font-size:19px;font-weight:800}
body #standardPreferencesForm .habitual-availability>summary [data-availability-recap]{font-size:16px;font-weight:700;line-height:1.75;padding:10px 12px;background:#f0f6fb;border-radius:8px;margin-top:3px;color:#254b68}
body #standardPreferencesForm .habitual-availability>summary [data-availability-saved]{font-size:13px;padding:3px 2px;color:#536e82}
body #standardPreferencesForm .habitual-availability>summary .habitual-header-actions{padding-top:8px;align-items:center}
body #standardPreferencesForm :is(.habitual-header-actions,.center-follow-card>summary) .confirmation-check{display:flex;align-items:center;gap:12px;min-height:50px;padding:10px 14px;border:1px solid #aabfce;border-radius:10px;background:#f1f4f7;color:#385367;font-size:16px;line-height:1.5;font-weight:750;white-space:normal}
body #standardPreferencesForm :is(.habitual-header-actions,.center-follow-card>summary) .confirmation-check:has(input:checked){background:#e4f5eb!important;border:1px solid #7cad90!important;color:#225b3e}
body #standardPreferencesForm :is(.habitual-header-actions,.center-follow-card>summary) .confirmation-check:has(input:disabled){background:#f3f3f4!important;border-color:#c6cdd3!important;color:#687986}
body #standardPreferencesForm :is([data-availability-enabled],[data-center-follow-enabled]){display:block!important;appearance:none;position:relative;width:44px!important;height:26px!important;min-height:26px!important;min-width:44px!important;flex:0 0 44px!important;border:1px solid #8395a2;border-radius:20px;background:#94a4b2;margin:0!important;cursor:pointer;opacity:1}
body #standardPreferencesForm :is([data-availability-enabled],[data-center-follow-enabled])::before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;background:white;border-radius:50%;box-shadow:0 1px 3px #233b4c40;transition:transform .15s}
body #standardPreferencesForm :is([data-availability-enabled],[data-center-follow-enabled]):checked{background:#2e8059;border-color:#2e8059}
body #standardPreferencesForm :is([data-availability-enabled],[data-center-follow-enabled]):checked::before{transform:translateX(18px)}
body #standardPreferencesForm :is([data-availability-enabled],[data-center-follow-enabled]):disabled{opacity:.55;cursor:default}
body #standardPreferencesForm :is([data-availability-enabled],[data-center-follow-enabled]):focus-visible{outline:3px solid #3b91bd;outline-offset:3px}
body #standardPreferencesForm .habitual-step{border:1px solid #c1d5e4;border-radius:10px;background:#f1f7fc;margin-top:12px;overflow:visible}
body #standardPreferencesForm .habitual-step-heading{padding:13px 14px;font-size:17px;font-weight:750;border-radius:9px;color:#244f74;min-height:54px}
body #standardPreferencesForm .habitual-step-heading[aria-expanded=true]{background:#dcecf8;border-bottom:1px solid #bed3e2;border-radius:9px 9px 0 0}
body #standardPreferencesForm .habitual-step-number{width:28px;height:28px;flex-basis:28px;background:#244f74;color:white;font-size:14px}
body #standardPreferencesForm .habitual-step-body{padding:16px;background:#fff;border-radius:0 0 9px 9px}
body #standardPreferencesForm .habitual-step-body :is(.field,.search-origin-question,legend){font-size:16px;line-height:1.6}
body #standardPreferencesForm .habitual-step-body :is(p,.match-start-note){font-size:14px;line-height:1.7}
body #standardPreferencesForm .field :is(select,input:not([type=checkbox]):not([type=radio]),textarea){background:white;color:#203f53;border:1px solid #cbd5df;border-radius:8px;font-size:16px;min-height:46px}
body #standardPreferencesForm .availability-status{font-size:14px;font-weight:650;background:#edf6f0;border:1px solid #c4ddce;padding:12px;border-radius:8px;margin-top:14px;color:#285b40}
body #standardPreferencesForm .availability-off .availability-status{background:#edf0f3;border-color:#d1dbe2;color:#60717f}
body #standardPreferencesForm .center-following-section{background:#eaf4f2;border-color:#94bdb5;border-top:5px solid #39786c}
body #standardPreferencesForm .center-following-section>h2{display:block!important;font-size:22px!important;color:#28675c;margin:0 0 14px}
body #standardPreferencesForm .center-follow-intro{background:#fff;padding:15px 17px;border:1px solid #bfd8d2;border-radius:10px}
body #standardPreferencesForm .center-follow-intro>strong{font-size:18px;color:#28675c}
body #standardPreferencesForm .center-follow-card{padding:16px;border:1px solid #a6c8bf;background:#fff;border-radius:12px;box-shadow:0 3px 10px #254f440a}
body #standardPreferencesForm .center-follow-card>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:12px}
body #standardPreferencesForm .center-follow-card>summary>span{grid-column:1}
body #standardPreferencesForm .center-follow-card>summary strong{font-size:18px;color:#28675c}
body #standardPreferencesForm [data-center-follow-name]{font-size:17px;font-weight:750;color:#244f74}
body #standardPreferencesForm .center-follow-card>summary small{font-size:14px;color:#506f65}
body #standardPreferencesForm .center-follow-card>summary .confirmation-check{grid-column:2;font-size:15px}
body #standardPreferencesForm .center-follow-card>summary>.ctm-panel-lock-action{grid-column:3;grid-row:1;color:#28675c!important}
body #standardPreferencesForm .center-follow-fixed{background:#e5f3ed;padding:14px;border:1px solid #bfd8cc}
body #standardPreferencesForm .center-follow-fixed label,body #standardPreferencesForm .center-follow-body>p{font-size:15px;line-height:1.7}
body #standardPreferencesForm :is([data-add-habitual],[data-add-center-follow]){font-size:16px;font-weight:750;min-height:50px;padding:13px;border:2px dashed #789db9;background:white;color:#244f74}
body #standardPreferencesForm [data-add-center-follow]{border-color:#75a69b;color:#28675c}
body #standardPreferencesForm .habitual-delete{width:44px;height:44px}
@media(max-width:700px){body #standardPreferencesForm>.panel{padding:14px}body #standardPreferencesForm .availability-purpose{padding:14px}body #standardPreferencesForm .availability-quick-guide{grid-template-columns:1fr;gap:7px}body #standardPreferencesForm .availability-quick-guide li{padding:9px 11px}body #standardPreferencesForm .habitual-availability{padding:12px}body #standardPreferencesForm .habitual-card-titlebar .availability-number{font-size:18px}body #standardPreferencesForm .habitual-step-body{padding:12px}body #standardPreferencesForm .center-follow-card>summary{grid-template-columns:minmax(0,1fr) 44px}body #standardPreferencesForm .center-follow-card>summary .confirmation-check{grid-column:1/-1;grid-row:2;justify-self:start}body #standardPreferencesForm .center-follow-card>summary>.ctm-panel-lock-action{grid-column:2}body #standardPreferencesForm .center-follow-card{padding:13px}}
/* The actual section state wins over generic dismiss/save icon styles. */
body button[aria-expanded=false] .ctm-lock-shackle{transform:rotateY(0deg)!important}
body button[aria-expanded=true] .ctm-lock-shackle{transform:rotateY(180deg)!important}
body details:not([open])>summary button .ctm-lock-shackle{transform:rotateY(0deg)!important}
body details[open]>summary button .ctm-lock-shackle{transform:rotateY(180deg)!important}
/* The Home overview uses the same distinction as the editable form. */
body #player-document-preferences .identity-card-body{background:#edf5fb}
body #player-document-preferences .identity-main-state{padding:14px;border:1px solid #bbd2e3;border-radius:11px;background:white}
body #player-document-preferences .identity-main-state .identity-status{font-size:15px;font-weight:750;padding:8px 12px}
body #player-document-preferences .identity-availability-list{display:grid;gap:14px}
body #player-document-preferences .identity-availability-row{padding:17px;background:#fff;border:1px solid #b1cbde;border-left:5px solid #397ba6;border-radius:11px;box-shadow:0 3px 10px #244f7410}
body #player-document-preferences .identity-availability-title strong{font-size:19px;color:#244f74}
body #player-document-preferences .identity-availability-row p{font-size:16px;line-height:1.7;color:#35566e;margin:9px 0}
body #player-document-preferences .identity-window-state .identity-status{font-size:14px}
body #player-document-preferences .identity-center-alerts{padding:17px;margin-top:18px;border:1px solid #a5c9bf;border-top:4px solid #39786c;border-radius:12px;background:#e7f3ef}
body #player-document-preferences .identity-center-alerts h3{font-size:20px;color:#28675c;margin:0 0 10px}
body #player-document-preferences .identity-center-alerts p{font-size:15px;line-height:1.7;color:#3f685d}
body #player-document-preferences .identity-center-alert-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;margin-top:10px;background:white;border:1px solid #b8d3ca;border-radius:9px}
body #player-document-preferences .identity-center-alert-row strong{font-size:17px;color:#28675c}
body #player-document-preferences .identity-center-alert-row .identity-status{font-size:13px}
@media(max-width:600px){body #player-document-preferences .identity-center-alert-row{align-items:flex-start;flex-direction:column}}
/* Contextual edit locks stay next to their own summary while scrolling. */
body #player-document-preferences .identity-card-body>.identity-card-actions{display:none}
body #player-document-preferences .identity-context-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:14px;align-items:stretch;overflow:visible}
body #player-document-preferences .identity-context-content{min-width:0}
body #player-document-preferences .identity-context-rail{display:flex;align-items:center;justify-content:flex-end;min-width:0;position:relative}
body #player-document-preferences .identity-context-rail>.identity-edit-button{position:sticky;top:calc(var(--interaction-bar-offset,170px) + 22px);flex:none;margin:0;z-index:2}
body #player-document-preferences .identity-context-content h3{overflow-wrap:break-word}
body #standardPreferencesForm :is([data-add-habitual],[data-add-center-follow]){background:#FFD300;color:#203044;border:2px solid #d9b600;border-radius:11px;box-shadow:0 3px 0 #c7a600;font-weight:800}
body #standardPreferencesForm :is([data-add-habitual],[data-add-center-follow]):hover{background:#ffe04d;border-color:#b99a00}
body #standardPreferencesForm :is([data-add-habitual],[data-add-center-follow]):disabled{background:#f5e7a1;color:#786b3d;border-color:#d5c881;box-shadow:none;opacity:.7}
@media(max-width:600px){body #player-document-preferences .identity-context-row{grid-template-columns:minmax(0,1fr) 44px;gap:10px}body #player-document-preferences .identity-availability-row,body #player-document-preferences .identity-center-alerts{padding:13px}}

/* The main habitual bar opens its editable list directly, without a duplicate overview. */
body #player-document-preferences .identity-section-heading{cursor:pointer}
body #player-document-preferences .identity-section-heading>.identity-habitual-status{grid-column:3;grid-row:1;justify-self:end;align-self:center;margin:0 6px 0 0;padding:6px 10px;max-width:none;min-height:34px;border:1px solid #8bb89d;border-radius:24px;background:#e4f5eb;color:#225b3e;font-size:14px;font-weight:800;line-height:1.4;white-space:nowrap}
body #player-document-preferences .identity-section-heading>.identity-habitual-status.is-inactive{background:#fbe9e8;color:#913a35;border-color:#d6a5a0}
body #player-document-preferences .identity-card-body{display:none}
/* Shared columns keep every information icon, separator and disclosure arrow aligned. */
body .player-identity-document .identity-document-section .identity-section-heading{grid-template-columns:minmax(0,min(var(--identity-card-title-width,220px),calc(100% - 188px))) 44px minmax(82px,1fr) 44px;gap:6px;min-height:64px}
body .player-identity-document .identity-document-section .identity-section-heading>.identity-card-toggle{grid-column:4;grid-row:1;min-height:64px;width:auto;margin:-10px -16px -10px 0;padding:10px 16px 10px 12px;align-self:stretch}
@media(max-width:600px){
 body .player-identity-document .identity-document-section .identity-section-heading{grid-template-columns:minmax(0,1fr) 28px 74px 32px;gap:4px;padding:10px;min-height:64px}
 body .player-identity-document .identity-document-section .identity-section-heading h2{font-size:clamp(12px,3.7vw,16px);white-space:nowrap;overflow-wrap:normal}
 body .player-identity-document .identity-document-section .identity-section-heading>.identity-info-button{width:28px;min-width:28px;padding:3px}
 body .player-identity-document .identity-document-section .identity-section-heading>.identity-card-toggle{min-height:64px;min-width:32px;margin:-10px -10px -10px 0;padding:10px 10px 10px 6px}
 body #player-document-preferences .identity-section-heading>.identity-habitual-status{justify-self:stretch;text-align:center;margin:0 3px 0 0;font-size:13px;padding:6px 5px;min-height:32px}
}
@media(max-width:380px){
 body .player-identity-document .identity-document-section .identity-section-heading{grid-template-columns:minmax(0,1fr) 24px 68px 32px;gap:3px}
 body .player-identity-document .identity-document-section .identity-section-heading>.identity-info-button{width:24px;min-width:24px;padding:1px}
}

/* Compact counts share the reserved status column without moving icons or separators. */
body #player-document-preferences .identity-section-heading>.identity-habitual-status{display:grid;gap:3px;align-content:center;justify-self:stretch;background:none;border:0;padding:0;margin:0 6px 0 0;min-height:0;color:inherit;white-space:normal}
body #player-document-preferences .identity-section-heading>.identity-habitual-status.is-inactive{background:none;border:0;color:inherit}
body #player-document-preferences .identity-habitual-count{display:flex;justify-content:center;align-items:center;gap:4px;border:1px solid;border-radius:20px;padding:2px 5px;font-size:11px;line-height:1.2;white-space:nowrap}
body #player-document-preferences .identity-habitual-count b{font-size:12px;font-variant-numeric:tabular-nums}
body #player-document-preferences .identity-habitual-count.is-active{background:#e4f5eb;color:#225b3e;border-color:#8bb89d}
body #player-document-preferences .identity-habitual-count.is-inactive{background:#fbe9e8;color:#913a35;border-color:#d6a5a0}
body #standardPreferencesForm .habitual-game-heading{font-size:18px;color:#244f74;margin:0 0 12px;line-height:1.4}
/* A save mark belongs only to its own open, modified editor, never a closed card. */
body .availability-review-lock .ctm-lock-save{display:none!important}
body .availability-review-lock[data-modified=true][aria-expanded=true] .ctm-lock-save{display:block!important}
body .availability-review-lock[data-modified=false] .ctm-lock-keyhole,body .availability-review-lock[aria-expanded=false] .ctm-lock-keyhole{display:block!important}
body button[aria-expanded=false] .ctm-lock-save{display:none!important}
body .habitual-availability:not([open])>summary .ctm-lock-save{display:none!important}

/* Bring the shared information column closer to the titles and widen the status space. */
body .player-identity-document .identity-document-section .identity-section-heading{grid-template-columns:minmax(0,min(var(--identity-card-title-width,220px),calc(100% - 222px))) 28px minmax(132px,1fr) 44px;gap:6px}
body .player-identity-document .identity-document-section .identity-section-heading>.identity-info-button{width:28px;min-width:28px;padding:3px}
body #player-document-preferences .identity-section-heading>.identity-habitual-status{display:flex;align-items:center;justify-content:flex-end;gap:4px}
body #player-document-preferences .identity-habitual-count{flex:0 0 auto}
@media(max-width:600px){
 body .player-identity-document .identity-document-section .identity-section-heading{grid-template-columns:minmax(0,1fr) 24px 132px 24px;gap:3px}
 body .player-identity-document .identity-document-section .identity-section-heading h2{font-size:clamp(12px,3.4vw,16px)}
 body .player-identity-document .identity-document-section .identity-section-heading>.identity-info-button{width:24px;min-width:24px;padding:1px}
 body .player-identity-document .identity-document-section .identity-section-heading>.identity-card-toggle{min-width:24px;padding-left:3px}
 body #player-document-preferences .identity-section-heading>.identity-habitual-status{margin-right:3px}
}
@media(max-width:360px){
 body .player-identity-document .identity-document-section .identity-section-heading{grid-template-columns:minmax(0,1fr) 24px 68px 24px}
 body #player-document-preferences .identity-section-heading>.identity-habitual-status{display:grid;gap:3px}
}

body .player-identity-document .identity-document-section .identity-card-toggle>svg{flex-shrink:0;width:20px;height:20px}

/* Four independent columns: no hit area overlaps the availability counters. */
body .player-identity-document .identity-document-section .identity-section-heading{grid-template-columns:minmax(0,1fr) 32px auto 32px;gap:8px}
body .player-identity-document .identity-document-section .identity-section-heading>.identity-card-toggle{grid-column:4;grid-row:1;position:static;min-width:32px;width:32px;padding:4px;clip-path:none;margin:0;justify-content:center}
body .player-identity-document .identity-document-section .identity-section-heading>.identity-info-button{grid-column:2;grid-row:1;width:32px;min-width:32px;margin:0}
body .player-identity-document .identity-document-section .identity-section-heading>.identity-info-button::after,body .player-identity-document .identity-document-section .identity-section-heading>.identity-card-toggle::before{content:none;display:none}
body #player-document-preferences .identity-section-heading>.identity-habitual-status{grid-column:3;grid-row:1;position:static;display:flex;gap:6px;margin:0;padding:0;pointer-events:auto}
body .player-identity-document .identity-document-section .identity-section-heading>h2{min-width:0;white-space:normal}
@media(max-width:540px){body .player-identity-document .identity-document-section .identity-section-heading{grid-template-columns:minmax(0,1fr) 32px 32px}body .player-identity-document .identity-document-section .identity-section-heading>.identity-card-toggle{grid-column:3}body #player-document-preferences .identity-section-heading>.identity-habitual-status{grid-column:1/-1;grid-row:2;justify-content:flex-start}}

/* Peer cards for matches/battles and tournaments, using the center publication palette. */
body #standardPreferencesForm .habitual-step-body:has(>.habitual-setting-block){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:18px;background:#f5f6f8}
body #standardPreferencesForm .habitual-step-body:has(>.habitual-setting-block)>:is(.habitual-step-error,.habitual-step-next){grid-column:1/-1;margin:0}
body #standardPreferencesForm :is(.habitual-setting-block,.tournament-search-days,.tournament-search-time){min-width:0;margin:0;padding:16px;border:1px solid #dce3e9;border-radius:12px;background:#f5f6f8;box-sizing:border-box;color:#203f53}
body #standardPreferencesForm :is(.habitual-setting-block,.tournament-search-days,.tournament-search-time)>h4{margin:-16px -16px 14px;padding:12px 15px;border-radius:11px 11px 0 0;background:#d8faf0;color:#131b26;font-size:18px;font-weight:800;line-height:1.4}
body #standardPreferencesForm :is(.habitual-setting-block,.tournament-search-days,.tournament-search-time) p{color:#3f5a70;font-size:14px;line-height:1.65}
body #standardPreferencesForm .habitual-setting-intro{margin:0 0 14px;min-height:0}
body #standardPreferencesForm .tournament-holiday-note{font-size:13px!important;color:#526b80}
body #standardPreferencesForm .habitual-step-body .field{color:#244f74;font-size:16px;font-weight:700;line-height:1.5;min-width:0;gap:8px}
body #standardPreferencesForm .habitual-step-body .field :is(input:not([type=checkbox]),select,textarea){background:#fff;color:#203f53;border:1px solid #cbd5df;min-height:46px;width:100%;box-sizing:border-box}
body #standardPreferencesForm .habitual-step-body :is(.habitual-location-settings,.habitual-area-controls,.habitual-radius-controls){padding:16px;background:#f5f6f8;border:1px solid #dce3e9;border-radius:12px;margin:0 0 16px}
body #standardPreferencesForm .habitual-step-body .form-grid{align-items:start;gap:14px}
body #standardPreferencesForm .habitual-match-days .availability-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:0}
body #standardPreferencesForm .habitual-match-days .availability-days>label{width:auto;min-width:0;max-width:none;margin:0}
body #standardPreferencesForm .habitual-match-days .availability-days label>span{background:#fff!important;border:1px solid #cbd5df!important;border-radius:9px;min-height:44px;padding:9px 2px!important;gap:7px}
body #standardPreferencesForm .habitual-match-days .availability-days input:checked+span{background:#e4f5eb!important;border-color:#6d9d80!important}
body #standardPreferencesForm .habitual-match-days .availability-days b{font-size:12px;color:#203f53}
body #standardPreferencesForm .habitual-step-body .match-start-note{margin:0 0 16px;padding:12px;background:#fff;border:1px solid #b5ccdd;border-radius:9px;color:#35566e}
@media(max-width:760px){body #standardPreferencesForm .habitual-step-body:has(>.habitual-setting-block){grid-template-columns:minmax(0,1fr);gap:16px}body #standardPreferencesForm .habitual-setting-intro{min-height:0}body #standardPreferencesForm :is(.habitual-setting-block,.tournament-search-days,.tournament-search-time){padding:14px}body #standardPreferencesForm :is(.habitual-setting-block,.tournament-search-days,.tournament-search-time)>h4{margin:-14px -14px 14px}}

@media(max-width:600px){
 body #standardPreferencesForm .habitual-match-days .availability-days{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
 body #standardPreferencesForm .habitual-match-days .availability-days b{font-size:14px}
 body #standardPreferencesForm .habitual-match-days .availability-days label>span{min-height:44px}
}

/* Separate match and tournament recaps instead of one ambiguous sentence. */
body #standardPreferencesForm .habitual-availability>summary [data-availability-recap]{display:grid;gap:10px;padding:0;background:transparent;white-space:normal;font-weight:400;line-height:1.5}
body #standardPreferencesForm .habitual-availability>summary [data-availability-recap]::after{content:none!important}
body #standardPreferencesForm .habitual-recap-group{display:grid;gap:8px;padding:12px 14px;border:1px solid #bed2e2;border-radius:10px;background:#f0f6fb;min-width:0}
body #standardPreferencesForm .habitual-recap-group>b{font-size:16px;font-weight:800;color:#244f74}
body #standardPreferencesForm .habitual-recap-line{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;min-width:0}
body #standardPreferencesForm .habitual-recap-line>span:first-child{font-size:13px;color:#526d82;font-weight:600}
body #standardPreferencesForm .habitual-recap-line>span:last-child{font-size:15px;color:#203f53;font-weight:700;overflow-wrap:break-word;min-width:0}
body #standardPreferencesForm .habitual-recap-place{padding:4px 12px;min-width:0}
body #standardPreferencesForm .habitual-card-lock:has(.ctm-lock-pencil){padding:4px}
body #standardPreferencesForm .availability-review-lock .ctm-panel-lock:has(.ctm-lock-pencil){width:32px;height:28px;flex:none}
body #standardPreferencesForm .habitual-edit-toolbar>.availability-review-lock:has(.ctm-lock-pencil){padding:6px}

/* Centered, comfortable native time fields with a compact quick-menu button. */
body #standardPreferencesForm [data-habitual-step="3"] .field{text-align:center}
body #standardPreferencesForm [data-habitual-step="3"] .ctm-time-control{width:100%;max-width:320px;margin:8px auto 0;background:#fff;border:1px solid #cbd5df;border-radius:12px;box-shadow:none}
body #standardPreferencesForm [data-habitual-step="3"] .ctm-time-control>input.ctm-time-input{min-height:44px;border:0!important;border-radius:10px 0 0 10px!important;background:#fff;padding:10px 4px!important;text-align:center;font-size:20px!important;font-weight:750;font-variant-numeric:tabular-nums;color:#203f53;line-height:1.3}
body #standardPreferencesForm [data-habitual-step="3"] .ctm-time-input::-webkit-date-and-time-value{text-align:center;min-height:1.3em}
body #standardPreferencesForm [data-habitual-step="3"] .ctm-time-input::-webkit-datetime-edit{padding:0}
body #standardPreferencesForm [data-habitual-step="3"] .ctm-time-input::-webkit-calendar-picker-indicator{width:14px;margin:0 2px;padding:0}
body #standardPreferencesForm [data-habitual-step="3"] .ctm-time-control>.ctm-time-menu-button{flex:0 0 48px;width:48px;min-width:48px;min-height:44px;padding:8px 4px;border-left:1px solid #b5ccdd;border-radius:0 10px 10px 0;background:#f5f6f8;color:#244f74;font-size:13px;font-weight:750}
body #standardPreferencesForm [data-habitual-step="3"] [data-tournament-custom]{margin-top:16px}
@media(max-width:600px){body #standardPreferencesForm [data-habitual-step="3"] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}body #standardPreferencesForm [data-habitual-step="3"] .ctm-time-control>input.ctm-time-input{min-width:0;width:100%}}
@media(max-width:600px){body #standardPreferencesForm .habitual-recap-line{grid-template-columns:minmax(0,1fr);gap:2px}body #standardPreferencesForm .habitual-recap-group{padding:12px}body #standardPreferencesForm .habitual-recap-place{padding-inline:12px}}
