/* Review version: preserve the approved geometry and the gaps between cards. */
:root{--control-ink:#b7c6b7;--control-selected:#2b4129;--motion-enter:180ms;--motion-step:150ms;--motion-feedback:120ms}
main h1[tabindex="-1"]:focus{outline:none}
.wizard-heading h3[tabindex="-1"]:focus{outline:none}
body .bottom-nav button{font-size:11px;line-height:1.2;color:#a9b9ac;border-radius:12px;min-height:48px}
body .bottom-nav button.active{background:var(--control-selected);color:var(--accent);font-weight:600}
body .bottom-nav button .icon{width:22px;height:22px}
@media(max-width:360px){body .bottom-nav{padding-inline:4px}}
.segmented button.active{box-shadow:inset 0 0 0 1px #a3cf7b40}
.segmented button:focus-visible,.bottom-nav button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.wizard-channel-search{display:flex;align-items:center;gap:10px;min-height:48px}
.wizard-channel-search>.icon{flex:0 0 18px;width:18px;height:18px;color:var(--muted)}
.wizard-channel-search>input{min-width:0;width:100%;margin:0}
.channel-choice-count{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap;flex-shrink:0;font-variant-numeric:tabular-nums}
.channel-choice-count>.icon{width:15px;height:15px;flex:0 0 15px}
.modal form[data-form="viewcombo"] .combo-range-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.modal form[data-form="viewcombo"] .combo-range-grid>.field-label:first-child{grid-column:1/-1}
.modal form[data-form="viewcombo"] .combo-range-grid>.field-label,.modal form[data-form="viewcombo"] .combo-range-grid>div>.field-label{margin:0;min-width:0}
.modal form[data-form="viewcombo"] .combo-range-grid:has(>[hidden])>.field-label:nth-child(2){grid-column:1/-1}
.modal form[data-form="viewcombo"] .combo-range-grid input,.modal form[data-form="viewcombo"] .combo-range-grid select{min-width:0;width:100%;min-height:48px}
.catalog-service>p:first-child{font-size:13px;font-weight:600;line-height:1.55}
.catalog-service .catalog-facts{align-items:baseline;gap:8px 14px;flex-wrap:wrap;margin-top:12px}
.catalog-service .catalog-facts>span:first-child{font-size:17px;font-weight:650;color:#d0f6b2;line-height:1.4}
.catalog-service .catalog-facts small{font-size:12px;font-weight:400;color:var(--muted)}
.catalog-service>.muted.mt{margin-top:12px;font-size:12px}
.catalog-service>a.mt{margin-top:10px}
body .discard-actions>.btn.discard-exit{background:#342520!important;border-color:#916057!important;color:#f1b7a9!important}
.journal-empty>.empty{margin:0}
.journal-empty .empty>.btn{margin-top:18px;min-height:44px}
/* Bulk actions stay reachable even at the beginning of a long channel list. */
body .selection-bar{position:fixed;left:270px;right:40px;bottom:20px;width:auto;max-width:1450px;margin:0;z-index:22;background:#263525}
body .selection-bar>.btn{min-height:44px}
body .content:has(.selection-bar){padding-bottom:170px}
@media(min-width:1440px){body .selection-bar{left:282px;right:52px;max-width:1426px}}
@media(max-width:1100px){body .selection-bar{left:226px;right:26px}}
@media(max-width:720px){body .selection-bar{left:18px;right:18px;bottom:calc(75px + env(safe-area-inset-bottom,0px));max-width:none}body .content:has(.selection-bar){padding-bottom:calc(240px + env(safe-area-inset-bottom,0px))}}
@media(max-width:360px){body .selection-bar{left:14px;right:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body .selection-bar>span{grid-column:1/-1;width:auto}body .selection-bar>.btn{width:100%;min-width:0}body .content:has(.selection-bar){padding-bottom:calc(280px + env(safe-area-inset-bottom,0px))}}
button[aria-busy="true"]{cursor:progress!important}
body.loading::before{content:'';position:fixed;z-index:240;top:0;left:0;width:100%;height:3px;pointer-events:none;background:var(--accent);opacity:.9}
.sr-only{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}
/* Motion conveys one local change. No list stagger or animation on periodic reads. */
@media(prefers-reduced-motion:no-preference){
 .modal,.discard-dialog{animation:visual-dialog-in var(--motion-enter) cubic-bezier(.2,.7,.2,1) both}
 .scenario-wizard [data-wizard-pane]:not([hidden]){animation:visual-step-in var(--motion-step) ease-out both}
 .form-submit-error{animation:visual-feedback-in var(--motion-feedback) ease-out both}
 body .btn,body .icon-btn,body .segmented button,body .bottom-nav button{transition:background-color var(--motion-feedback),border-color var(--motion-feedback),color var(--motion-feedback),opacity var(--motion-feedback)}
 body.loading::before{width:28%;animation:visual-busy 1.1s ease-in-out infinite}
 @keyframes visual-dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
 @keyframes visual-step-in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
 @keyframes visual-feedback-in{from{opacity:0}to{opacity:1}}
 @keyframes visual-busy{from{transform:translateX(-110%)}to{transform:translateX(460%)}}
}
@media(hover:hover){body .btn:not(:disabled):not([aria-busy="true"]):hover,body .icon-btn:not(:disabled):hover{filter:brightness(1.06)}}
body .btn:not(:disabled):active,body .icon-btn:not(:disabled):active{filter:brightness(.92)}
@media(prefers-reduced-motion:reduce){body.loading::before{animation:none!important;transform:none!important;opacity:.75}.modal,.discard-dialog,.scenario-wizard [data-wizard-pane],.form-submit-error{animation:none!important;transform:none!important}}
@media(forced-colors:active){.bottom-nav button.active,.segmented button.active{outline:2px solid Highlight;outline-offset:-2px}.channel-choice-count>.icon{forced-color-adjust:auto}}

/* Form layout 12: constrain native controls, including WebKit date/time editors. */
.modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.modal .form-grid>.span2{grid-column:1/-1}
.modal .field-label{min-inline-size:0;max-inline-size:100%}
.modal input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),.modal select{box-sizing:border-box;display:block;min-inline-size:0;inline-size:100%;max-inline-size:100%;height:48px;min-height:48px;font-size:16px;line-height:1.375}
.modal textarea{box-sizing:border-box;min-inline-size:0;inline-size:100%;max-inline-size:100%;min-height:96px;font-size:16px;line-height:1.5}
.modal input[type=date],.modal input[type=time],.modal input[type=datetime-local]{-webkit-appearance:none;appearance:none;padding:11px 12px;overflow:hidden}
.modal input::-webkit-date-and-time-value{min-width:0;min-height:22px;text-align:left;line-height:22px}
.modal input::-webkit-datetime-edit{min-width:0;padding:0;line-height:22px}
.modal .schedule-grid{gap:16px 12px}
.modal .schedule-grid>.field-label{margin:0;align-content:start}
.modal .schedule-grid>.check-line{margin:0;min-height:44px;align-items:center}
/* A single layout owner gives budget explanations, controls and disclosures equal gaps. */
.modal .advanced-settings>.budget-content{display:grid;gap:16px;padding-top:12px;min-width:0}
.modal .budget-content>*{margin:0;min-width:0}
.modal .budget-content>.field-label{gap:8px}
.modal .budget-content>.settings-detail{padding:0;border:1px solid var(--line);border-radius:14px}
.modal .budget-content>.settings-detail>summary{padding:14px 16px;min-height:52px;line-height:1.45}
.modal .budget-content>.settings-detail>p{margin:0 16px 16px;line-height:1.5}
.modal .budget-content>.settings-detail>.form-grid,.modal .budget-content>.settings-detail>.override-list{margin:0 16px 16px}
.modal .budget-content .info-box{padding:14px 16px;line-height:1.5}
.modal .budget-content .money-note{display:grid;gap:12px;font-size:12px;line-height:1.5}
.modal .budget-content .money-note>details{margin:0}
.modal .budget-content .money-note summary{padding:8px 0;min-height:44px;line-height:1.5}
.modal .budget-content .money-note details>p{margin:8px 0 0;line-height:1.5}
.modal .budget-content .override-channel>label,.modal .budget-content .override-channel>section,.modal .budget-content .override-channel>button{margin-top:16px}
.modal .budget-content .override-channel>section>h4{margin:0 0 12px}
@media(max-width:480px){
 .modal .form-grid>.calendar-field,.modal .schedule-grid>.end-date,.modal .schedule-grid>.post-dates{grid-column:1/-1}
 /* Keep the approved compact schedule: period/date, then start/end time. */
 .modal .schedule-grid>.calendar-field{grid-column:auto}
}
