/* Scoped to data entry: leave the home page and document reading surfaces intact. */
body:not(.home-screen) :is(#driveForm,#driveSettingsForm,#claimForm,#riskRuleForm,#invoiceTitleForm,#expenseTipDocumentForm,#pendingGroupForm){gap:8px;align-content:start}
body:not(.home-screen) :is(#driveForm,#driveSettingsForm,#riskRuleForm,#invoiceTitleForm,#expenseTipDocumentForm) label{display:grid;align-content:start;gap:4px;margin:0;min-width:0;font-size:13px;line-height:18px}
body:not(.home-screen) :is(#driveForm,#driveSettingsForm,#claimForm,#riskRuleForm,#invoiceTitleForm,#expenseTipDocumentForm,#pendingGroupForm) :is(input:not([type=radio]):not([type=checkbox]):not([type=file]),select){box-sizing:border-box;width:100%;min-width:0;height:40px;min-height:40px;max-height:none;margin:0;padding:7px 10px;font-size:14px;line-height:24px;border-radius:8px;background:#fff;box-shadow:none}
body:not(.home-screen) :is(#claimForm,#riskRuleForm,#invoiceTitleForm,#expenseTipDocumentForm,#pendingGroupForm) textarea{margin:0;padding:8px 10px;min-height:60px;height:60px;max-height:220px;resize:vertical;font-size:14px;line-height:21px;border-radius:8px}
body:not(.home-screen) :is(#driveForm,#driveSettingsForm,#claimForm,#riskRuleForm,#invoiceTitleForm,#expenseTipDocumentForm,#pendingGroupForm) .button{min-height:42px;height:auto;padding:8px 14px;border-radius:8px;font-size:14px;box-shadow:none}
body:not(.home-screen) #selfDriveView{max-width:760px}
body:not(.home-screen) #driveRateHint{margin:6px 0 10px;line-height:18px}
body:not(.home-screen) #driveForm{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}
body:not(.home-screen) #driveForm>.button{margin-top:4px}
body:not(.home-screen) #selfDriveView .drive-records-entry{min-height:44px;margin-top:0;padding:10px 0}
body:not(.home-screen) #driveAdmin{margin-top:8px}
/* One form rhythm: compact, bordered controls rather than compressed text rows. */
body:not(.home-screen) #claimFlow #claimForm{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:0 0 10px;border:0;background:none;box-shadow:none}
body:not(.home-screen) #claimFlow #claimForm .claim-section-label{grid-column:1/-1;margin:0;font-size:14px;line-height:20px;font-weight:600}
body:not(.home-screen) #claimFlow #claimForm>.field-group{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:8px;padding:0;border:0}
body:not(.home-screen) #claimFlow #claimForm .field-label{font-size:13px;line-height:18px;white-space:nowrap}
body:not(.home-screen) #claimFlow #claimForm .claim-basic-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0}
body:not(.home-screen) #claimFlow #claimForm :is(.claim-basic-grid,.travel-fields,.two-cols)>label{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 40px;align-items:start;gap:4px;padding:0;border:0;min-width:0;font-size:13px;font-weight:500;line-height:18px}
body:not(.home-screen) #claimFlow #claimForm :is(input:not([type=radio]):not([type=checkbox]),select){width:100%;height:40px;min-height:40px;max-height:none;padding:7px 10px;border:1px solid #d8d2d3;border-radius:7px;background:#fff;color:var(--compact-ink,var(--ink));font-size:14px;font-weight:400;line-height:24px;box-shadow:none}
body:not(.home-screen) #claimFlow #claimForm :is(input,textarea,select):focus{border-color:var(--compact-red,var(--brand));outline:none;box-shadow:0 0 0 2px #8f303414}
body:not(.home-screen) #claimFlow #claimForm>.claim-purpose-field{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:4px;padding:0;border:0;font-size:13px;line-height:18px;font-weight:500}
body:not(.home-screen) #claimFlow #claimForm .claim-purpose-field textarea{height:60px;min-height:60px;max-height:220px;padding:8px 10px;border:1px solid #d8d2d3;border-radius:7px;background:#fff;color:var(--compact-ink,var(--ink));font-size:14px;font-weight:400;line-height:21px;resize:vertical}
body:not(.home-screen) #claimFlow #claimForm .segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:40px;min-height:40px;gap:0;padding:3px;border:1px solid #d8d2d3;border-radius:8px;background:#f5f3f3}
body:not(.home-screen) #claimFlow #claimForm .segmented label{padding:0;border:0;gap:0;min-width:0}
body:not(.home-screen) #claimFlow #claimForm .segmented label span{display:grid;place-items:center;height:32px;min-height:32px;padding:0 6px;border:0;border-radius:5px;background:none;color:var(--compact-muted,var(--muted));font-size:13px;line-height:18px;font-weight:600;white-space:nowrap;box-shadow:none}
body:not(.home-screen) #claimFlow #claimForm .segmented input:checked+span{background:#fff;color:var(--compact-red,var(--brand));box-shadow:0 1px 3px #4b202014}
body:not(.home-screen) #claimFlow #claimForm .segmented input:focus-visible+span{outline:2px solid var(--compact-red,var(--brand));outline-offset:-2px}
body:not(.home-screen) #claimFlow #claimForm .travel-fields:not(.hidden):not([hidden]){grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 0 0;border:0;border-top:1px solid var(--compact-line,var(--line));border-radius:0;background:none}
body:not(.home-screen) #claimFlow #claimForm .travel-fields>.two-cols{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0}
body:not(.home-screen) #claimFlow #claimForm .claim-form-actions{grid-column:1/-1;position:static;display:flex;justify-content:flex-end;width:100%;padding:2px 0 0;margin:0;border:0;background:none;box-shadow:none}
body:not(.home-screen) #claimFlow #claimForm .claim-form-actions .button{width:auto;min-height:40px;padding:8px 14px;border-radius:7px;font-size:13px;line-height:20px}
body:not(.home-screen) #claimFlow #step2 :is(.collection-purpose,.collection-amount){font-size:13px;line-height:20px;gap:10px}
body:not(.home-screen) #claimFlow #step2 :is(.collection-purpose,.collection-amount) input{height:40px;min-height:40px;max-height:none;border:1px solid #d8d2d3;border-radius:7px;padding:7px 10px;background:#fff;font-size:14px;line-height:24px}
body:not(.home-screen) #claimFlow #step2 .collection-info-bar button{min-height:36px;padding:6px 10px;border:1px solid #d8d2d3;border-radius:6px;background:#fff;white-space:nowrap;font-size:13px;line-height:20px}
body:not(.home-screen) #claimFlow #step2 .collection-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:10px}
body:not(.home-screen) #claimFlow #step2 .collection-actions .button{width:auto;height:40px;min-height:40px;padding:8px 12px;border-radius:7px;font-size:13px;line-height:20px;white-space:nowrap}
body:not(.home-screen) #claimFlow #step2 .collection-actions .primary{flex:0 1 auto}
body:not(.home-screen) .feature-editor-page .feature-admin-card{padding:12px;box-shadow:none}
body:not(.home-screen) #pendingGroupForm{height:auto;min-height:0;padding:16px}
body:not(.home-screen) #pendingGroupForm>p{display:none}
body:not(.home-screen) #pendingGroupForm h2{font-size:18px;margin:0 36px 10px 0}
body:not(.home-screen) #tripPlannerForm{padding:12px;box-shadow:none}
body:not(.home-screen) #tripPlannerForm .trip-intake{padding:0;gap:8px}
body:not(.home-screen) #tripPlannerForm .trip-intake-head{margin:0 0 8px;gap:8px}
body:not(.home-screen) #tripIntakeText{min-height:96px;height:96px;padding:10px;font-size:14px;line-height:22px;border-radius:8px}
body:not(.home-screen) #tripPlannerForm .trip-add-actions{margin-top:8px}
@media(max-width:620px){
  body:not(.home-screen) :is(#riskRuleForm,#invoiceTitleForm,#expenseTipDocumentForm){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body:not(.home-screen) :is(#riskRuleForm,#invoiceTitleForm,#expenseTipDocumentForm)>:is(input,textarea,button,p,.feature-file-picker){grid-column:1/-1!important}
  body:not(.home-screen) #claimForm .claim-basic-grid{gap:8px}
}
