/* Full-app review copy. body prefix deliberately outranks later module CSS.
   Semantic errors/warnings/success remain explicit rather than recolored brown. */
body.ui-pilot .main-content{min-width:0}
body.ui-pilot :is(.panel-body,.form-panel,.profile-panel,.grant-card,.relationship-card,.error-panel){background:#fffdfa;border-color:#e5ded5;box-shadow:none;min-width:0}
body.ui-pilot :is(.panel-body,.form-panel){border-radius:16px}
body.ui-pilot :is(.field-help,.form-note,.form-note span,.inline-note,.muted,.cell-meta,.date-cell,.reason-cell,.detail-list dt,.detail-list dd small,.form-field small,.history-item time,.attachment-item small,.backup-item small){color:#68615b;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
body.ui-pilot .date-cell,body.ui-pilot .reason-cell{color:#68615b!important}
body.ui-pilot :is(.profile-header h2,.cell-title,.detail-section-title,.grant-info strong,.relationship-flow strong){color:#171616;font-weight:600}
body.ui-pilot :is(.profile-header p,.grant-info p,.grant-reason,.grant-dates,.relationship-flow span,.history-item p,.attachment-item p,.backup-item p){font-size:13px;color:#68615b;line-height:1.8;overflow-wrap:anywhere}
body.ui-pilot .form-note{padding:16px 18px;background:#f2ece4;border:1px solid #ded1c2;border-radius:10px}
body.ui-pilot .form-field label{font-size:14px;color:#40372f;line-height:1.6}
body.ui-pilot .form-field input:not([type=checkbox]):not([type=radio]),body.ui-pilot .form-field select,body.ui-pilot .form-field textarea{font-size:16px;line-height:1.55;background:#fffdfa;color:#171616;border:1px solid #c9bdb0;border-radius:9px;min-height:46px;max-width:100%}
body.ui-pilot .form-field textarea{min-height:112px}
body.ui-pilot .form-field :is(input,textarea)::placeholder{color:#746c64;opacity:1}
body.ui-pilot .form-field :is(input,select,textarea):disabled{background:#eee9e2;color:#655b53;cursor:not-allowed}
body.ui-pilot .form-field input[type=checkbox],body.ui-pilot .form-field input[type=radio]{accent-color:#594236;min-height:18px;width:18px;height:18px;flex-shrink:0}
body.ui-pilot .checkbox-field label{min-height:44px;display:flex;align-items:center;gap:10px}
body.ui-pilot .required-mark{color:#922e23}
body.ui-pilot :is(.field-errors,.errorlist){color:#922e23;font-size:14px;line-height:1.8}
body.ui-pilot .form-errors,body.ui-pilot .message.error{color:#842d24;background:#fff1ed;border:1px solid #d7a49a;font-size:14px;line-height:1.8}
body.ui-pilot .has-error :is(input,select,textarea){border-color:#a34234}
body.ui-pilot .message.warning,body.ui-pilot .notice-card{color:#725018;background:#fff4dd;border-color:#dbc08e;font-size:14px;line-height:1.8}
body.ui-pilot .notice-card :is(h2,h3,strong,p){color:#725018}
body.ui-pilot .message.success{color:#28513b;background:#edf4ee;border-color:#b9cfbd;font-size:14px}
body.ui-pilot .message.info,body.ui-pilot .message{font-size:14px;line-height:1.7}
body.ui-pilot .badge{font-size:12px;line-height:1.5;padding:5px 10px;white-space:normal}
body.ui-pilot .badge-teal{color:#28513b;background:#e7f0e9}
body.ui-pilot .badge-amber{color:#725018;background:#fff0d2}
body.ui-pilot .badge-danger{color:#842d24;background:#fbe7e2}
body.ui-pilot .badge-blue{color:#31556c;background:#eaf1f6}
body.ui-pilot .button-danger{color:#842d24;background:#fff1ed;border-color:#d7a49a}
body.ui-pilot .button-danger:hover{background:#fbe3db}
body.ui-pilot .button-primary:hover,body.ui-pilot .button-light:hover{background:#45372f;color:#fffdfa}
body.ui-pilot .button-secondary:hover{background:#eee5dc;color:#302c29}
body.ui-pilot .button-small{font-size:13px;min-height:40px}
body.ui-pilot .form-actions{gap:12px;flex-wrap:wrap;border-color:#e5ded5}
body.ui-pilot .table-scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
body.ui-pilot .table-scroll:focus-visible{outline:3px solid #594236;outline-offset:-3px}
body.ui-pilot .data-table{color:#302c29;font-size:14px}
body.ui-pilot .data-table th{font-size:13px;color:#594e45;background:#f2ece4;font-weight:600;border-color:#e5ded5;line-height:1.6}
body.ui-pilot .data-table td{color:#302c29;font-size:14px;border-color:#e5ded5;line-height:1.7}
body.ui-pilot .data-table tbody tr:hover{background:#faf6ef}
body.ui-pilot .data-table .row-actions{flex-wrap:wrap;gap:8px}
body.ui-pilot .data-table .row-actions a{font-size:13px;color:#594236;min-height:36px;display:inline-flex;align-items:center}
body.ui-pilot .section-tabs{border-color:#e5ded5;overflow-x:auto;gap:8px}
body.ui-pilot .section-tabs a{font-size:14px;color:#655b53;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
body.ui-pilot .section-tabs a.active{color:#171616;border-color:#9D7967}
body.ui-pilot .pagination{font-size:13px;color:#655b53;flex-wrap:wrap;gap:10px}
body.ui-pilot .pagination a{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-color:#c9bdb0;color:#594236}
body.ui-pilot :is(.grant-card,.relationship-card,.history-item,.attachment-item,.backup-item){border-color:#e5ded5}
body.ui-pilot :is(.grant-top,.grant-dates,.history-item,.attachment-item,.backup-item){gap:14px}
body.ui-pilot :is(.revoke-details,.upload-details){border-color:#e5ded5}
body.ui-pilot :is(.revoke-details,.upload-details)>summary{font-size:14px;color:#594236;min-height:44px;line-height:1.7}
body.ui-pilot .revoke-details input{font-size:16px;color:#171616;border-color:#c9bdb0;min-height:44px;min-width:0}
body.ui-pilot .form-field [id^="id_positions"] label{background:#f6f1e9;border-color:#e5ded5;font-size:14px;min-height:44px}
body.ui-pilot .error-code{color:#9D7967}
body.ui-pilot .error-panel h1{color:#171616;font-size:28px}
body.ui-pilot .error-panel p{color:#68615b;font-size:14px;line-height:1.8}
body.ui-pilot :is(.account-layout,.runtime-grid,.two-columns){min-width:0}
body.ui-pilot .detail-list dd{color:#302c29;font-size:14px;overflow-wrap:anywhere}
body.ui-pilot .filter-bar{gap:14px;flex-wrap:wrap}
body.ui-pilot .filter-bar :is(input,select){font-size:16px;min-height:44px;max-width:100%;color:#171616;border-color:#c9bdb0}
@media(max-width:760px){
 body.ui-pilot .button{min-height:44px;white-space:normal;text-align:center}
 body.ui-pilot .page-heading{flex-wrap:wrap;align-items:flex-start}
 body.ui-pilot :is(.account-layout,.runtime-grid,.two-columns){grid-template-columns:minmax(0,1fr)}
 body.ui-pilot .filter-bar>*{min-width:0;max-width:100%}
 body.ui-pilot .profile-header{flex-wrap:wrap;gap:16px}
 body.ui-pilot .grant-top{flex-wrap:wrap;align-items:flex-start}
 body.ui-pilot .account-actions{flex-wrap:wrap}
}
@media(max-width:400px){
 body.ui-pilot .revoke-details form{grid-template-columns:minmax(0,1fr)}
 body.ui-pilot .detail-list>div{grid-template-columns:minmax(0,1fr);gap:4px}
 body.ui-pilot .relationship-flow{flex-wrap:wrap;gap:12px}
 body.ui-pilot .relationship-flow>div{flex-basis:100%}
 body.ui-pilot .form-panel,body.ui-pilot .panel-body{padding:20px 18px}
}
/* Explicit typed-input states outrank active controls and legacy border flags. */
body.ui-pilot .form-field input:not([type=checkbox]):not([type=radio]):disabled{background:#eee9e2;color:#655b53;cursor:not-allowed}
body.ui-pilot .form-field.has-error :is(input,select,textarea){border-color:#a34234!important}

/* 2026-10-28: layout repair after whole-app visual review. */
body.ui-pilot .main-content > .content-panel{margin-top:24px;margin-bottom:24px}
body.ui-pilot .content-panel > .panel-header{padding:24px 28px}
body.ui-pilot .content-panel > .panel-body{padding:24px 28px;line-height:1.85;overflow-wrap:anywhere}
body.ui-pilot .content-panel > .panel-body > * + *{margin-top:16px}
body.ui-pilot .content-panel .panel-body h2{font-size:18px;line-height:1.6;margin-top:28px;margin-bottom:12px}
body.ui-pilot .content-panel .panel-body h2:first-child{margin-top:0}
body.ui-pilot .content-panel .panel-body p{font-size:14px;line-height:1.85}
body.ui-pilot .content-panel .panel-body a:not(.button){color:#594236;text-decoration:underline;text-underline-offset:4px}
body.ui-pilot .record-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #e5ded5;min-width:0}
body.ui-pilot .record-row:first-child{padding-top:0}
body.ui-pilot .record-row:last-child{padding-bottom:0;border-bottom:0}
body.ui-pilot .record-title{min-width:0;overflow-wrap:anywhere;line-height:1.8;font-weight:500}
body.ui-pilot .record-row .row-actions{flex-wrap:wrap;gap:12px 20px;align-items:flex-start}
body.ui-pilot .record-row .row-actions a{min-height:40px;display:inline-flex;align-items:center}
body.ui-pilot .two-columns{grid-template-columns:minmax(0,1.25fr) minmax(360px,1fr);gap:28px;align-items:start}
body.ui-pilot .two-columns > *{min-width:0}
body.ui-pilot .compact-form .form-field{margin-bottom:26px}
body.ui-pilot .form-field.checkbox-group{display:block;min-width:0}
body.ui-pilot .checkbox-options > div{display:flex;flex-wrap:wrap;gap:12px;width:100%;min-width:0}
body.ui-pilot .checkbox-options > div > div{flex:0 1 auto;min-width:0;max-width:100%}
body.ui-pilot .checkbox-options label,body.ui-pilot .form-field [id^="id_positions"] label{display:flex;align-items:flex-start;gap:10px;min-height:46px;margin:0;padding:12px 16px;background:#f6f1e9;border:1px solid #e5ded5;border-radius:9px;line-height:1.65;overflow-wrap:anywhere;white-space:normal}
body.ui-pilot .checkbox-options input[type=checkbox]{margin:2px 0 0;flex:0 0 18px}
body.ui-pilot .checkbox-group > .field-help{margin-top:12px}
body.ui-pilot .checkbox-field > .field-errors{grid-column:2}
body.ui-pilot .form-field select:not([multiple]){-webkit-appearance:none;appearance:none;min-height:48px;padding:12px 42px 12px 14px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23655b53' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat}
body.ui-pilot .workflow-records{display:grid;gap:0}
body.ui-pilot .workflow-records .record-row{display:block}
body.ui-pilot .workflow-records h2{margin:0 0 8px;font-size:18px}
body.ui-pilot .workflow-records p + p{margin-top:8px}
body.ui-pilot .page-heading > div{min-width:0}
body.ui-pilot .page-heading p{max-width:72ch;line-height:1.85}
body.ui-pilot .page-heading .button{flex-shrink:0}

/* Keep the brand line visible; no hidden breakpoint or stretched two-column footer. */
body.ui-pilot .login-layout{align-items:start;min-height:calc(100svh - var(--preview-banner-height,0px))}
body.ui-pilot .login-story{position:sticky;top:0;align-self:start;min-height:calc(100svh - var(--preview-banner-height,0px));padding:40px clamp(28px,4vw,64px) 28px}
body.ui-pilot .login-story-main{padding:42px 0 64px}
body.ui-pilot .login-story-footer{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:auto;font-size:12px;line-height:1.8;flex-shrink:0}
body.ui-pilot .login-form-side{min-height:calc(100svh - var(--preview-banner-height,0px));padding-top:44px}
body.ui-pilot .login-illustration{bottom:0;max-height:150px}
@media(max-width:1180px){body.ui-pilot .two-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){
 body.ui-pilot .login-layout{grid-template-columns:minmax(0,1fr)}
 body.ui-pilot .login-story{position:relative;min-height:0;padding:28px 24px}
 body.ui-pilot .login-story .brand{min-height:76px}
 body.ui-pilot .login-story .pilot-brand-logo-login{width:250px}
 body.ui-pilot .login-story-main{padding:24px 0;flex:initial}
 body.ui-pilot .login-story-main > p{font-size:16px;max-width:100%;margin-top:12px}
 body.ui-pilot .login-story-main > p br{display:none}
 body.ui-pilot .login-story-footer{display:flex;margin-top:8px;padding-top:18px;border-top:1px solid #d7c8ba}
 body.ui-pilot .login-illustration{display:none}
 body.ui-pilot .login-form-side{min-height:0;padding:32px 24px}
 body.ui-pilot .login-form-wrap{margin:0;max-width:480px}
 body.ui-pilot .login-footer{max-width:480px;width:100%;padding-top:28px}
}
@media(max-width:600px){
 body.ui-pilot .content-panel > .panel-header,body.ui-pilot .content-panel > .panel-body{padding:20px}
 body.ui-pilot .record-row{flex-direction:column;gap:10px}
 body.ui-pilot .record-row .row-actions{width:100%}
 body.ui-pilot .checkbox-options > div{flex-direction:column}
 body.ui-pilot .checkbox-options > div > div{width:100%}
 body.ui-pilot .page-heading .button{max-width:100%;white-space:normal}
}
/* Whole-app review: long metadata and non-form calendar controls. */
body.ui-pilot .topbar{min-height:79px;height:auto;gap:20px;padding-top:16px;padding-bottom:16px}
body.ui-pilot .topbar-left,body.ui-pilot .topbar-right,body.ui-pilot .account-chip{min-width:0}
body.ui-pilot .topbar-left{flex:1 1 auto}
body.ui-pilot .topbar-left > span:last-child{min-width:0;overflow-wrap:anywhere;line-height:1.6}
body.ui-pilot .topbar-right{flex:0 1 42%}
body.ui-pilot .account-chip > span:not(.avatar){overflow-wrap:anywhere;line-height:1.6;min-width:0}
body.ui-pilot .account-chip .avatar{flex-shrink:0}
body.ui-pilot .panel-header{flex-wrap:wrap;gap:16px;align-items:flex-start}
body.ui-pilot .panel-header > div{min-width:0}
body.ui-pilot .attachment-item{flex-wrap:wrap}
body.ui-pilot .attachment-item a,body.ui-pilot .rv-evidence-list a{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%}
body.ui-pilot .rv-day input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px}
@media(max-width:600px){body.ui-pilot .topbar{min-height:65px;gap:12px}body.ui-pilot .topbar-right{flex-basis:35%}body.ui-pilot .breadcrumb-root,body.ui-pilot .breadcrumb-slash{display:none}}
body.ui-pilot .main-content .row-actions{flex-wrap:wrap;gap:12px 18px;min-width:0;max-width:100%}
body.ui-pilot .main-content .row-actions .button{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
body.ui-pilot .main-content > .row-actions{margin:24px 0}
body.ui-pilot .topbar-right{justify-content:flex-end}
body.ui-pilot .page-heading h1,body.ui-pilot .panel-header h2{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* R3: retain short status labels and align single checkbox controls. */
body.ui-pilot .badge,body.ui-pilot .rv-badge{white-space:nowrap;flex-shrink:0;word-break:keep-all;overflow-wrap:normal}
body.ui-pilot .form-field.checkbox-field > input[type=checkbox]{align-self:center;margin:0}
body.ui-pilot .form-field.checkbox-field > label{align-self:center;margin:0}
body.ui-pilot .panel-header p{text-wrap:pretty}
body.ui-pilot .repeat-candidates{margin-top:24px;padding-top:22px;border-top:1px solid #e5ded5}
body.ui-pilot .repeat-candidates h3{margin-bottom:14px}
body.ui-pilot .repeat-candidates ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}
body.ui-pilot .repeat-candidates a{display:block;min-height:44px;padding:10px 14px;border:1px solid #e5ded5;border-radius:9px;line-height:1.7}
body.ui-pilot .repeat-summary{margin-bottom:14px}
body.ui-pilot .rv-review-list + .cycle-calendar{margin-top:24px}

body.ui-pilot .section-tabs{overflow-y:hidden}

/* Compact table actions remain words, using the existing scroll region. */
body.ui-pilot .data-table .text-link{white-space:nowrap;word-break:keep-all;overflow-wrap:normal;min-width:max-content}

/* The public login footer remains readable at narrow widths. */
body.ui-pilot .login-footer,body.ui-pilot .page-footer{flex-wrap:wrap}
body.ui-pilot .filing-links{display:flex;flex:0 0 100%;gap:6px 14px;flex-wrap:wrap}
body.ui-pilot .filing-links a{display:inline-flex;align-items:center;gap:4px;min-height:24px;color:inherit;text-decoration:underline;text-underline-offset:2px}
