/* Approved palette and layout retained; shared control and text refinements. */
:where(.phase,.entry-view,.portal-view,.admin) :where(h1,h2,h3,h4,p,label,.section-note,.field-help,.inline-notice,.empty-state,.modal-context){word-break:keep-all;overflow-wrap:anywhere}
:where(.phase,.entry-view,.portal-view) :where(.form-field,.form-grid>*,.ui-select,.modal-heading){min-width:0}
.phase .button{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.5;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.phase .button svg,.phase .select-trigger svg{flex-shrink:0}
.phase .button:disabled,.phase .select-trigger:disabled{background:#f0f2f5;border-color:#e1e5eb;color:#8a93a2;cursor:not-allowed;box-shadow:none;filter:none;opacity:1}
.phase :where(button,a,input,textarea,select):focus-visible{outline:2px solid var(--accent,#ff4500);outline-offset:3px}
.phase :where(.searchbox input,.form-input,.select-trigger span){min-width:0}
.phase .select-trigger span{overflow:hidden;text-overflow:ellipsis;text-align:left}
.phase .select-menu{box-sizing:border-box}
.phase .select-menu .option-list{overscroll-behavior:contain}
.phase .select-option{white-space:normal;word-break:keep-all;overflow-wrap:anywhere;line-height:1.6}
.phase .modal-head .modal-heading{flex:1}
.phase .modal-head h2{line-height:1.5}
.phase .modal-footer .footer-note{min-width:0;word-break:keep-all;overflow-wrap:anywhere}
.phase .modal-body :where(dd,.sub,.record-main,.field-help){overflow-wrap:anywhere}
.phase .tablewrap{overscroll-behavior-x:contain}
.phase :where(.e-login-links,.e-reset-tools,.mp-login-tools)>.button{min-height:44px;padding:10px 12px;border-radius:8px}
.phase :where(.e-login-links,.e-reset-tools,.mp-login-tools)>.button:hover{background:var(--soft,#fff2ec);color:var(--accent,#ff4500)}
.phase .e-consent-row{align-items:center;gap:8px}
.phase .e-consent-row>.cb{flex:1;min-width:0;min-height:44px;align-items:center}
.phase .e-consent-row>.button{flex-shrink:0;min-height:44px;padding:8px 10px;line-height:1.6}
.phase .cb input{flex-shrink:0}
.phase .mp-inline>.mp-field{min-width:0;flex:1}
.phase .mp-inline>.button{flex-shrink:0}
.phase .pt-event{min-height:0}
.phase .pt-event.compact{padding:3px 5px;gap:1px}
.phase .pt-event.compact strong{font-size:10px;line-height:13px}
.phase .pt-event.compact span{font-size:9px;line-height:10px}
.phase .pt-event.mini{padding:0 3px;justify-content:center;gap:0;border-top-width:0;border-bottom-width:0}
.phase .pt-event.mini span{display:none}
.admin .field [data-web-limit]{display:block;margin-top:4px;line-height:1.6}
.admin .field :is(input,textarea)[aria-invalid=true]{border-color:#c74751;background:#fffafa}
@media(max-width:720px){
 .phase .commerce-metrics{grid-template-columns:1fr}
 .phase .commerce-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center}
 .phase .commerce-metric strong{grid-column:2;grid-row:1/3;font-size:22px;margin:0;white-space:nowrap;overflow-wrap:normal;letter-spacing:-.6px}
 .phase .commerce-metric small{grid-column:1;line-height:1.7}
 .phase .pt-summary-card strong{font-size:18px;white-space:nowrap;overflow-wrap:normal;letter-spacing:-.5px}
 .phase .c-cards{grid-template-columns:1fr}
 .phase .c-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
 .phase .c-card>strong{margin:0 0 0 auto;white-space:nowrap;overflow-wrap:normal}
 .phase .c-card>small{width:100%}
 .phase :is(.button,.mini-tabs button,.pt-tabs button,.q-tabs button,.g-tabs button,.d-text-button,.filter-reset,.pagination button,.select-option,.pt-view-switch button){min-height:44px;min-width:44px}
 .phase .name-button{display:inline-flex;align-items:center;min-height:44px;min-width:44px;max-width:100%}
 .phase th button{min-height:44px}
 .phase :is(.button,.filter,.c-link,.l-click,.d-branch-name,.visit-text-link,.bench-tab,.d-task-complete){min-height:44px!important}
 .phase .iconbutton{width:44px;height:44px;min-width:44px;min-height:44px}
 .phase .pagination button{min-width:44px;height:44px}
 .phase .d-date-nav .button{width:44px;height:44px;min-width:44px}
 .phase :is(.d-schedule-tools,.dashboard-view .tablefoot) .select-trigger{min-height:44px}
 .phase .c-plan-row{grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) 44px}
 .phase .c-plan-row .iconbutton,.phase .u-code .iconbutton{width:44px;height:44px;min-width:44px}
 .phase :where(.button,.select-trigger,.c-date-button){white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
 .phase :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px}
 .phase .ks-code-display input:not([type=checkbox]):not([type=radio]){font-size:29px}
 .phase .select-trigger{font-size:14px}
 .phase .cb{min-height:44px}
 .phase .mp-term>.button{min-width:44px}
 .phase .modal-footer{flex-wrap:wrap;gap:8px}
 .phase .modal-footer>.footer-note{flex-basis:100%;margin:0 0 4px}
 .phase .modal-footer>.button{flex:1 1 auto;max-width:100%;padding:10px 12px}
 .phase #confirm-dialog,.phase #member-dialog[data-layout=compact]{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}
 .phase #member-dialog[data-layout=sheet]{width:min(var(--modal-width,620px),calc(100vw - 32px))!important;max-width:calc(100vw - 32px);height:fit-content;max-height:calc(100dvh - 32px);inset:0;margin:auto;border:1px solid var(--line,#e4e8ef);border-radius:14px}
 .phase #member-dialog[data-layout=sheet] .modal-shell{height:auto;max-height:calc(100dvh - 34px)}
 .phase #member-dialog[data-layout=sheet] .modal-body{flex:0 1 auto;min-height:0;overflow:auto}
 .phase #confirm-host,.phase #member-dialog[data-layout=compact] .modal-shell{max-height:calc(100dvh - 34px)}
 .phase :where(.ks-help-bar,.ks-input-actions,.mp-date-tools){flex-wrap:wrap}
 .phase .ks-help-bar>.button{min-height:44px}
 .phase .mp-row{min-width:0}
 .phase .mp-row :where(strong,p,span){word-break:keep-all;overflow-wrap:anywhere}
}
@media(max-width:650px){.phase .ks-code-display input:not([type=checkbox]):not([type=radio]){font-size:24px}}
@media(max-width:400px){
 .phase .c-plan-row{grid-template-columns:18px minmax(0,1fr) 44px}
 .phase .c-plan-row>.form-field{grid-column:2}
 .phase .c-plan-row>.iconbutton{grid-column:3;grid-row:1/3}
}
@media(prefers-reduced-motion:reduce){.phase .button{transition:none}}
@media(max-width:760px){
 .admin .savebar{flex-direction:column;align-items:stretch;padding:16px}
 .admin .savebar>.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
 .admin .savebar .btn{min-width:0;padding:10px 6px;font-size:12px;white-space:normal;word-break:keep-all;min-height:44px}
}

/* Shared control finish. Keep the approved shell and data density; a field
 * label must never override the layout of a checkbox or radio label. */
.phase :is(.cb,.pt-inline-check),
.phase :is(.form-field,.g-form,.u-form)>label.cb{
 display:inline-flex;align-items:center;gap:10px;min-height:36px;
 max-width:100%;margin:0;line-height:1.6;cursor:pointer;vertical-align:middle;
}
.phase :is(.cb,.pt-inline-check)>span{min-width:0;word-break:keep-all;overflow-wrap:anywhere}
.phase :is(.form-field,.g-form,.u-form)>label.cb{min-height:44px;padding:10px 12px;border:1px solid var(--line,#e4e8ef);border-radius:10px;background:#fafbfd;width:100%;box-sizing:border-box}
.phase .pt-inline-check{min-height:44px;padding:10px 12px;border:1px solid var(--line,#e4e8ef);border-radius:10px;background:#fafbfd;box-sizing:border-box}
.phase :is(.pt-inline-check,.pt-day-checks label,.c-radio,.pt-result-buttons label):has(input:checked){background:var(--soft,#fff2ec);border-color:var(--mid,#ffc6b1)}
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input:is([type=checkbox],[type=radio]){
 appearance:none;-webkit-appearance:none;box-sizing:border-box;
 width:20px;height:20px;min-width:20px;min-height:20px;flex:0 0 20px;
 display:grid;place-content:center;margin:0;padding:0;
 border:1.5px solid #bbc4d1;border-radius:6px;background:#fff;cursor:pointer;
 transition:background-color .15s,border-color .15s,box-shadow .15s;
}
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input:is([type=checkbox],[type=radio]):checked,
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input[type=checkbox]:indeterminate{background:var(--accent,#ff4500);border-color:var(--accent,#ff4500)}
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input[type=checkbox]:checked:after{
 content:'';width:9px;height:5px;box-sizing:content-box;border:0;border-left:2px solid #fff;border-bottom:2px solid #fff;background:transparent;transform:rotate(-45deg) translateY(-1px);
}
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input[type=checkbox]:indeterminate:after{content:'';width:10px;height:2px;background:#fff;border:0;border-radius:1px;transform:none}
.phase :is(.cb,.candidate-item,.c-radio,.pt-result-buttons) input[type=radio]{border-radius:50%}
.phase :is(.cb,.candidate-item,.c-radio,.pt-result-buttons) input[type=radio]:checked:after{content:'';width:8px;height:8px;background:#fff;border:0;border-radius:50%;transform:none}
.phase :is(.cb,.candidate-item,.c-radio,.pt-result-buttons) input[type=radio]:not(:checked):after{content:none}
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input:is([type=checkbox],[type=radio]):disabled{background:#f0f2f5;border-color:#d3d9e2;cursor:not-allowed}
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input:is([type=checkbox],[type=radio]):disabled:checked,
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input[type=checkbox]:disabled:indeterminate{background:#9ba6b6;border-color:#9ba6b6}
.phase :is(.cb,.pt-inline-check,.pt-day-checks label,.candidate-item,.c-radio,.pt-result-buttons label):has(input:disabled){cursor:not-allowed;color:#788394}
.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input:is([type=checkbox],[type=radio]):focus-visible{outline:2px solid var(--accent,#ff4500);outline-offset:3px}
.phase .cb.checkbox-error input{border-color:#c75a70}
.phase :is(.pt-day-checks label,.c-radio,.pt-result-buttons label){min-height:44px;box-sizing:border-box;gap:10px;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
.phase .button.link{min-height:36px;padding:8px 12px;border-radius:8px;box-sizing:border-box;border:1px solid var(--line,#e4e8ef);background:#f6f7fa;text-decoration:none}
.phase .button.link:not(:disabled):hover{background:var(--soft,#fff2ec);border-color:var(--mid,#ffc6b1);color:var(--accent,#ff4500)}
.phase .button.link:disabled{background:#f0f2f5;border-color:#e1e5eb;color:#8a93a2}
.phase .info-list>div:has(.button.link){grid-template-columns:minmax(0,1fr) auto}
.phase .info-list .button.link{white-space:nowrap}
.phase .e-footer .button{min-height:44px;padding:8px 12px;border:1px solid var(--line,#e4e8ef);border-radius:8px;background:#f6f7fa}
.phase .e-footer .button:hover{background:var(--soft,#fff2ec);border-color:var(--mid,#ffc6b1);color:var(--accent,#ff4500)}
.phase.dashboard-view .members th:first-child,.phase.dashboard-view .members td:first-child{padding-left:19px}
/* Use a single 44px baseline for filters and actions in the same toolbar. */
.phase .pt-toolbar :is(.button,.select-trigger),
.phase .c-toolbar :is(.filter,.select-trigger){min-height:44px;box-sizing:border-box}
.phase .modal-body .c-date-button{min-height:44px;box-sizing:border-box}
.phase .pt-toolbar:not(.crm-period-tools){align-items:center}
.phase .crm-period-tools{align-items:flex-end;gap:10px}
.phase .crm-period-tools>.form-field{flex:1 1 156px;min-width:0;margin:0}
.phase .crm-period-tools .c-date-button{height:44px;min-height:44px;box-sizing:border-box;gap:8px}
.phase .crm-period-tools .c-date-button span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phase .crm-period-tools>.button,.phase .crm-period-tools .inline-row>.button{height:44px;min-height:44px;padding:10px 14px;box-sizing:border-box}
.phase .crm-period-tools>.inline-row{display:flex;align-items:center;gap:6px;flex:none;flex-wrap:nowrap}
.phase .crm-period-tools .iconbutton{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--line,#e4e8ef);border-radius:8px;background:#fff;box-sizing:border-box}
.phase .crm-period-tools .iconbutton:hover{background:var(--soft,#fff2ec);border-color:var(--mid,#ffc6b1);color:var(--accent,#ff4500)}
.phase .crm-period-tools .iconbutton svg{width:18px;height:18px;flex:none}
.phase .crm-period-presets{display:flex;flex:1 1 100%;align-items:center;gap:8px;flex-wrap:wrap}
.phase .crm-period-presets>.button{min-height:44px;padding:10px 16px;box-sizing:border-box;border:1px solid var(--line,#e4e8ef)}
.phase .crm-period-presets>.button:hover:not(:disabled){background:var(--soft,#fff2ec);border-color:var(--mid,#ffc6b1);color:var(--accent,#ff4500)}
.phase .crm-period-presets>.button[aria-pressed="true"]{background:var(--soft,#fff2ec);border-color:var(--mid,#ffc6b1);color:var(--accent,#ff4500)}
.phase .d-date-nav .button{width:32px;height:32px;min-height:32px;box-sizing:border-box}
@media(max-width:720px){
 .phase :is(.cb,.button.link){min-height:44px}
 .phase :is(.cb,.pt-inline-check){gap:10px}
 .phase .titletools{align-items:stretch}
 .phase .titletools>.button{height:auto;align-self:stretch}
 .phase .d-date-nav .button{width:44px;height:44px;min-height:44px}
 .phase .topbar{gap:8px}
 .phase .topbar .crumb{flex:1;min-width:0;overflow:hidden}
 .phase .topbar .crumb>b{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .phase .topbar .toolbar{flex:none;gap:6px}
 .phase .topbar .toolbar>span:not(.date):not(.divider){white-space:nowrap;font-size:11px}
 .phase .topbar .iconbutton{flex:none}
}
@media(max-width:400px){.phase .topbar .crumb>svg,.phase .topbar .crumb>span{display:none}}
@media(max-width:540px){
 .phase .crm-period-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px 10px}
 .phase .crm-period-tools>.button,.phase .crm-period-tools>.inline-row{grid-column:1/-1;width:100%}
 .phase .crm-period-tools>.inline-row{justify-content:center}
 .phase .crm-period-presets{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .phase .crm-period-presets>.button{width:100%;min-width:0;padding:10px 8px;white-space:nowrap}
 .phase .crm-period-tools .c-date-button{padding:10px;font-size:12px}
 .phase .crm-period-tools .c-date-button svg{flex:none;width:16px;height:16px}
}
@media(prefers-reduced-motion:reduce){.phase :is(.cb,.pt-inline-check,.pt-day-checks,.candidate-item,.c-radio,.pt-result-buttons) input{transition:none}}
/* Stitch A period queries. Range editing never changes stored form dates. */
.phase .crm-period-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0 0 16px;flex-wrap:wrap}
.phase .cpd-presets{display:flex;align-items:center;gap:4px;background:#f3f5f8;border:1px solid var(--line,#e4e8ef);padding:4px;border-radius:12px;min-width:0;box-sizing:border-box}
.phase .cpd-presets>.button{min-height:40px;height:40px;padding:8px 16px;border:1px solid transparent;background:transparent;color:var(--muted,#647084);border-radius:8px;white-space:nowrap;box-sizing:border-box;font-weight:600;box-shadow:none}
.phase .cpd-presets>.button:hover:not(:disabled){background:#fff;color:var(--accent,#ff4500)}
.phase .cpd-presets>.button[aria-pressed=true]{background:#fff;color:var(--accent,#ff4500);border-color:var(--mid,#ffc6b1);box-shadow:0 2px 6px #192a4410}
.phase .crm-period-bar>.cpd-range{display:flex;align-items:center;justify-content:space-between;gap:12px;height:48px;min-height:48px;min-width:240px;padding:10px 14px;background:#fff;border:1px solid var(--line,#e4e8ef);border-radius:12px;box-sizing:border-box;box-shadow:0 2px 4px #192a4404}
.phase .cpd-range span{flex:1;min-width:0;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}
.phase .cpd-range svg{width:18px;height:18px;flex:none;color:var(--muted,#647084)}
.phase .cpd-range:hover:not(:disabled){border-color:var(--mid,#ffc6b1);background:var(--soft,#fff2ec)}
.phase .cpd-range[aria-expanded=true]{border-color:var(--accent,#ff4500)}
.phase .crm-period-bar.cpd-single{margin:0;flex-wrap:nowrap;gap:8px}
.phase .cpd-single .cpd-custom{display:none}
.phase .cpd-single>.cpd-range{min-width:168px}
.phase .crm-period-panel{position:fixed;inset:auto;margin:0;padding:20px;border:1px solid var(--line,#e4e8ef);border-radius:20px;background:#fff;color:var(--text,#192232);box-shadow:0 14px 48px #192a442b,0 2px 8px #192a440d;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;z-index:1200}
.phase .cpd-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.phase .cpd-panel-head h3{font-size:16px;margin:0;font-weight:700}
.phase .cpd-panel-head .iconbutton{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:#f5f6f9;border:1px solid var(--line,#e4e8ef);border-radius:10px;padding:8px}
.phase .cpd-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.phase .cpd-fields>.form-field{min-width:0;margin:0;gap:8px}
.phase .cpd-fields:has(>.form-field:only-child){grid-template-columns:1fr}
.phase .cpd-fields>.ui-select{min-width:0;width:100%}
.phase .cpd-fields label{display:block;font-size:12px;color:var(--muted,#647084);margin:0 0 8px}
.phase .cpd-fields :is(.c-date-button,.select-trigger){display:flex;align-items:center;height:44px;min-height:44px;width:100%;box-sizing:border-box;border-radius:10px;padding:10px;gap:8px}
.phase .cpd-fields .c-date-button span{flex:1;min-width:0;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.phase .cpd-fields svg{width:16px;height:16px;flex:none}
.phase :is(.cpd-extra,.cpd-move){display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.phase :is(.cpd-extra,.cpd-move)>.button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 12px;border-radius:10px;background:#f5f6f9;border:1px solid var(--line,#e4e8ef)}
.phase .cpd-move{justify-content:space-between}
.phase .cpd-hint{margin:16px 0 0;font-size:12px;line-height:1.6;color:var(--muted,#647084);word-break:keep-all;overflow-wrap:anywhere}
.phase .cpd-error{margin:12px 0 0;font-size:12px;line-height:1.6}
.phase .cpd-error:empty{display:none}
.phase .cpd-panel-actions{display:flex;justify-content:flex-end;align-items:stretch;gap:8px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line,#e4e8ef)}
.phase .cpd-panel-actions>.button{height:44px;min-height:44px;padding:10px 20px;border-radius:10px;box-sizing:border-box}
.phase .crm-analytics-period-layout{display:block;margin-bottom:16px}
.phase .crm-analytics-period-layout .z-filter-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.phase .crm-dashboard-period-layout{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}
.phase .crm-dashboard-period-layout>.ui-select{min-width:180px}
.phase .crm-dashboard-period-layout>.crm-period-bar{flex:1;min-width:0}
.phase .crm-dashboard-day-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.phase .crm-dashboard-day-controls>.button{width:44px;height:48px;min-height:48px;padding:0}
.phase .crm-member-period-filter{margin:0;grid-column:1/-1;min-width:0}
.phase .crm-member-period-filter .crm-period-bar{margin:8px 0 0}
.phase :is(.crm-period-bar,.crm-period-panel) .button:focus-visible{outline:2px solid var(--accent,#ff4500);outline-offset:3px}
@media(max-width:600px){
 .phase .crm-period-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;margin-bottom:16px}
 .phase .cpd-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px;padding:4px}
 .phase .cpd-presets>.button{height:44px;min-height:44px;padding:8px 4px;font-size:12px;min-width:0}
 .phase .cpd-presets>.cpd-custom{display:none}
 .phase .cpd-month .cpd-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
 .phase .crm-period-bar>.cpd-range{min-width:0;width:100%;height:44px;min-height:44px;padding:10px 12px;font-size:12px}
 .phase .cpd-single{display:flex;width:auto}
 .phase .cpd-single .cpd-presets{display:flex;width:auto}
 .phase .cpd-single .cpd-preset{padding:8px 12px}
 .phase .cpd-single>.cpd-range{min-width:140px}
 .phase .crm-period-panel{padding:16px;border-radius:16px}
 .phase .cpd-panel-actions>.button{flex:1;padding:10px 12px}
 .phase .crm-dashboard-period-layout{display:block}
 .phase .crm-dashboard-period-layout>.ui-select{width:100%;margin-bottom:12px}
 .phase .crm-analytics-period-layout .z-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .phase .crm-analytics-period-layout .z-filter-row>*{min-width:0;width:100%}
 .phase .crm-dashboard-day-controls{flex-wrap:nowrap;justify-content:center;gap:4px}
 .phase .crm-dashboard-day-controls>.button{width:36px;min-width:36px;height:44px;min-height:44px}
 .phase #content:has(.crm-period-bar) .searchbar:has(>.button){flex-wrap:wrap}
 .phase #content:has(.crm-period-bar) .searchbar:has(>.button)>.searchbox{flex:1 1 100%;width:100%;min-width:0}
 .phase #content:has(.crm-period-bar) .searchbar>.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex:1;padding:10px 12px;box-sizing:border-box}
}
@media(max-width:360px){
 .phase .cpd-fields{grid-template-columns:minmax(0,1fr)}
 .phase .crm-dashboard-day-controls .cpd-single{display:grid;grid-template-columns:minmax(0,1fr)}
 .phase .crm-dashboard-day-controls .cpd-single .cpd-presets{width:100%}
 .phase .crm-dashboard-day-controls .cpd-single .cpd-preset{width:100%}
}

/* The timetable scrolls horizontally; vertical gestures continue down the page. */
.phase .visit-calendar-scroll{overscroll-behavior-x:contain;overscroll-behavior-y:auto}
.phase .visit-schedule-tools{align-items:flex-start;gap:12px;flex-wrap:wrap}
.phase .visit-schedule-tools>.field-help{flex:1 1 240px;min-width:0;margin:0}
.phase .visit-schedule-tools>.button{flex-shrink:0;min-height:44px;padding:10px 14px}
@media(max-width:600px){
 .phase .visit-schedule-tools{flex-direction:column;align-items:stretch}
 .phase .visit-schedule-tools>.field-help{flex:none}
 .phase .visit-schedule-tools>.button{align-self:flex-start}
}

/* Company footer v2 — Stitch e5e17129a7d946d48625d030561270e6. */
.company-footer{box-sizing:border-box;position:relative;flex:none;min-width:0;width:100%;font-family:inherit;font-size:12px;line-height:1.8;font-weight:400;letter-spacing:0;word-break:keep-all;overflow-wrap:anywhere;text-align:left;color:#687079}
.company-footer *{box-sizing:border-box}
.company-footer dl{display:flex;flex-wrap:wrap;gap:2px 18px;margin:0;padding:0}
.company-footer dl>div{display:flex;gap:7px;min-width:0;max-width:100%}
.company-footer dt{flex:none;color:#77808a;font-weight:400}
.company-footer dd{margin:0;min-width:0}
.company-footer strong{font-weight:600;color:#414750}
.company-footer-email{display:inline-flex;flex-direction:column;max-width:100%;color:inherit;text-decoration:none;min-height:44px;justify-content:center;gap:3px}
.company-footer-email-label{font-size:11px;color:#737b85}
.company-footer-email-value{display:inline-flex;align-items:center;gap:12px;min-width:0}
.company-footer-email svg{flex:none;transition:transform .2s ease}
.company-footer-email:hover .company-footer-email-value{color:#d4420c}
.company-footer-email:hover svg{transform:translate(2px,-2px)}
.company-footer-email:focus-visible{outline:2px solid #ff4b00;outline-offset:5px;border-radius:2px}
.company-footer-compact{border-top:1px solid #e6e8eb;background:transparent;padding:15px 28px}
.company-footer-inner{display:flex;align-items:center;gap:24px;max-width:1440px;margin:0 auto}
.company-footer-info{flex:1;min-width:0}
.company-footer-info>strong{display:block;margin-bottom:3px}
.company-footer-compact .company-footer-email{flex:none;flex-direction:row;align-items:center;gap:8px}
.company-footer-compact .company-footer-email-value{gap:6px;font-size:12px;text-decoration:underline;text-decoration-color:#d4d8dc;text-underline-offset:4px}
.company-footer-compact .company-footer-email svg{width:13px;height:13px}
.company-footer-compact .company-footer-address{order:1}
.main>.company-footer{margin-top:auto}
.mp-main>.company-footer{margin-top:24px;padding:18px 0}
.mp-main .company-footer-inner{flex-direction:column;align-items:flex-start;gap:6px}
.e-footer:has(>.company-footer){flex-wrap:wrap;gap:14px}
.e-footer>.company-footer{flex-basis:100%;padding:16px 0 0}
#root>.company-footer{margin-top:20px}
body:is([data-page='hq'],[data-page='branch']) .site-footer.company-site-footer{background:#22261d;color:#f3f1eb;padding:0 0 36px;border:0}
.company-site-footer>.wrap{border-top:1px solid #44483e;padding-top:48px}
.company-site-footer .footer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;padding:0;margin:0;border:0}
.company-site-footer .company-footer-identity>.logo{color:#f3f1eb;font-size:25px;display:inline-flex}
.company-footer-identity p{font-size:13px;line-height:1.8;color:#b7bcae;margin:15px 0 0}
.company-footer-nav{display:flex;gap:64px;flex:none}
.company-footer-nav-group{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:128px}
.company-footer-nav-label{font-size:11px;line-height:1.5;letter-spacing:.05em;color:#a8af9d;margin:0 0 10px;padding-inline:12px}
body:is([data-page='hq'],[data-page='branch']) .company-site-footer .company-footer-nav-group>:is(a,button){display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;padding:10px 12px;margin:0;background:transparent;border:0;border-radius:8px;box-shadow:none;color:#f3f1eb;font-size:13px;font-weight:400;line-height:1.5;text-decoration:none;transition:color .2s ease,background-color .2s ease;white-space:normal;text-align:left;cursor:pointer;box-sizing:border-box;max-width:100%}
body:is([data-page='hq'],[data-page='branch']) .company-site-footer .company-footer-nav-group>:is(a,button):hover{color:#ffb18d;transform:none;background:rgba(255,255,255,.08)}
body:is([data-page='hq'],[data-page='branch']) .company-site-footer .company-footer-nav-group>:is(a,button):focus-visible{outline:2px solid #ff8a58;outline-offset:4px}
.company-site-footer .company-footer-public{padding:0;background:transparent;color:#b7bcae;border:0}
.company-footer-contact{margin:30px 0 32px}
.company-footer-public .company-footer-email{gap:9px}
.company-footer-public .company-footer-email-label{color:#a8af9d;font-size:11px}
.company-footer-public .company-footer-email-value{color:#f3f1eb;font-size:clamp(22px,2.25vw,32px);line-height:1.5;letter-spacing:-.025em;padding:0 0 6px;border-bottom:1px solid #79806e;gap:24px}
.company-footer-public .company-footer-email svg{width:24px;height:24px;color:#ff6a2f}
.company-footer-public .company-footer-email:hover .company-footer-email-value{color:#ffad88;border-color:#ff6a2f}
.company-footer-legal{display:flex;gap:24px;border-top:1px solid #44483e;padding-top:22px;font-size:12px;line-height:1.8}
.company-footer-legal>strong{color:#e0e3d9;flex:none}
.company-footer-legal dt{color:#9da592}
.company-footer-legal dl{gap:4px 22px}
@media(max-width:1100px){.company-footer-inner{gap:16px;align-items:flex-start;flex-wrap:wrap}.company-footer-compact .company-footer-email{min-height:32px}.company-footer-nav{gap:32px}.company-footer-legal{flex-direction:column;gap:9px}}
@media(max-width:600px){.company-footer-compact{padding:16px 20px}.company-footer-inner{flex-direction:column;gap:5px}.company-footer-compact .company-footer-info{width:100%}.company-footer-compact .company-footer-email{min-height:36px}.company-footer dl{gap:3px 14px}.company-footer .company-footer-address{flex-basis:100%;order:1}.company-footer dd{overflow-wrap:anywhere}.mp-main>.company-footer{padding:16px 0}.company-site-footer>.wrap{padding-top:32px}.company-site-footer .footer-top{flex-direction:column;gap:28px}.company-footer-identity p{margin-top:10px}.company-footer-nav{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:20px}.company-footer-nav-group{min-width:0}.company-footer-nav-label{margin-bottom:6px}.company-footer-contact{margin:26px 0}.company-footer-public .company-footer-email-value{font-size:clamp(20px,5.65vw,24px);gap:18px}.company-footer-legal{padding-top:20px;gap:12px}.company-footer-legal dl{gap:5px 14px}.company-footer-legal .company-footer-address{display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px}.company-footer-legal dl>div:last-child{order:2}body:is([data-page='hq'],[data-page='branch']) .site-footer.company-site-footer{padding-bottom:30px}}
@media(prefers-reduced-motion:reduce){.company-footer-email svg,body:is([data-page='hq'],[data-page='branch']) .company-site-footer .company-footer-nav-group>:is(a,button){transition:none}}

/* 2026-10-15 control audit: compact links remain aligned but have real hit areas. */
.phase :is(.name-button,.visit-text-link,.c-link,td>button[data-action="v-detail"],.visit-name button[data-action="v-detail"],th>button[data-action="sort"],.activity-row button[data-action="detail"]){display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;min-height:36px;padding:6px 8px;border-radius:8px;box-sizing:border-box;line-height:1.5;max-width:100%;transition:background-color .15s,color .15s}
.phase :is(.name-button,.visit-text-link,.c-link,td>button[data-action="v-detail"],.visit-name button[data-action="v-detail"],th>button[data-action="sort"],.activity-row button[data-action="detail"]):hover:not(:disabled){background:var(--soft,#fff2ec);color:var(--accent,#ff4500)}
.phase .profilelabel>button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;min-height:36px;padding:8px;border-radius:8px;box-sizing:border-box}
.phase .profilelabel>button:hover:not(:disabled){background:var(--soft,#fff2ec);color:var(--accent,#ff4500)}
.phase :is(.pagination button,.iconbutton[data-action="v-page"]){display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;height:36px;padding:6px;box-sizing:border-box;border-radius:8px}
.phase .d-task-complete{padding:8px 12px;min-height:36px;box-sizing:border-box;border-radius:8px}
.phase .d-task-complete:hover:not(:disabled){background:var(--soft,#fff2ec);color:var(--accent,#ff4500)}
.phase .button[data-action="d-task-step"]{min-height:36px;padding:6px 10px}
.phase :is(.pt-toolbar,.c-toolbar)>.button[data-action$="reset"]{min-height:44px;padding:10px 14px;white-space:nowrap;flex-shrink:0;align-self:center}
.phase :is(.button,.filter,.iconbutton,.pagination button):disabled,
.phase :is(.button,.filter,.iconbutton,.pagination button):disabled:hover{background:#f0f2f5;border-color:#e1e5eb;color:#8a93a2;box-shadow:none;filter:none;transform:none;cursor:not-allowed}
@media(max-width:720px){
 .phase :is(.name-button,.visit-text-link,.c-link,td>button[data-action="v-detail"],.visit-name button[data-action="v-detail"],th>button[data-action="sort"],.activity-row button[data-action="detail"],.profilelabel>button,.pagination button,.iconbutton[data-action="v-page"],.button[data-action="d-task-step"]){min-height:44px}
 .phase :is(.profilelabel>button,.pagination button,.iconbutton[data-action="v-page"]){min-width:44px;height:44px}
 .phase .cpd-presets>.button{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){.phase :is(.name-button,.visit-text-link,.c-link,td>button[data-action="v-detail"],.visit-name button[data-action="v-detail"],th>button[data-action="sort"],.activity-row button[data-action="detail"]){transition:none}}

/* Dashboard date navigation and trainer filter must wrap within the mobile card. */
@media(max-width:720px){
 .phase .d-schedule-tools{display:flex;flex-wrap:wrap;height:auto;gap:10px;padding:12px 0}
 .phase .d-schedule-tools>.crm-dashboard-day-controls{flex:1 1 100%;min-width:0;width:100%;display:flex;gap:6px}
 .phase .d-schedule-tools>.crm-dashboard-day-controls>.button{width:44px;min-width:44px;flex:0 0 44px;padding:0}
 .phase .d-schedule-tools>.ui-select{flex:1 1 100%;width:100%!important;min-width:0}
 .phase .d-schedule-tools>.ui-select>.select-trigger{width:100%}
}

/* 2026-10-21 alpha review: shared control fixes found while clicking through every screen. */
.phase .detail-table button.button{padding:7px 11px}
.phase dd>.c-link{margin-left:-8px}
.phase .inline-row:has(>.button)>.iconbutton{width:40px;height:40px;min-width:40px;min-height:40px}
.phase .tablewrap td:has(>.iconbutton[data-action="row-menu"]:only-child){overflow:visible;padding-left:0;padding-right:4px}
@media(max-width:768px){.phase .tablewrap{box-shadow:inset -30px 0 22px -22px rgba(16,24,40,.32)}}
.phase .q-big-number.q-big-text{font-size:22px;line-height:1.4;letter-spacing:-.5px}
.phase .tablewrap :is(th,td){word-break:keep-all}
.phase .c-hero>div:only-child{text-align:left;flex:1 1 auto}
.phase button.quiet{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:2px 8px}
@media(max-width:768px){.phase button.quiet{min-height:36px}}
.phase .crm-dashboard-day-controls:has(>.button)>.iconbutton{width:40px;height:40px;min-width:40px;min-height:40px}
@media(max-width:768px){.phase :is(.inline-row,.crm-dashboard-day-controls):has(>.button)>.iconbutton{width:44px;height:44px;min-width:44px;min-height:44px}}
.phase [data-action="l-member-pick"]{min-height:32px}
@media(max-width:768px){.phase td>[data-action="z-evidence"]{min-height:36px;display:inline-flex;align-items:center}}
.phase div:has(>.iconbutton):has(>.button[data-action$="-today"])>.iconbutton{width:40px;height:40px;min-width:40px;min-height:40px}
@media(max-width:768px){.phase div:has(>.iconbutton):has(>.button[data-action$="-today"])>.iconbutton{width:44px;height:44px;min-width:44px;min-height:44px}}
.phase .d-schedule-tools .cpd-presets>.button{height:48px;min-height:48px}

/* 관리-53: review/event links join the heading buttons; let the row wrap on narrow screens */
.page-heading .row:has(> [data-content-link]){flex-wrap:wrap}
