/* App corners: cards, panels, dialogs, menus and form fields use square corners with a small
   4px radius across the landlord and tenant apps. Pill buttons, outlined buttons, badges,
   avatars and other round marks keep their own shapes. Public pages, email, PDFs and
   signing documents do not load this file. Loaded after tokens.css in each app shell. */
:root {
  --app-corner: 4px;
  --radius-lg: var(--app-corner);
  --radius-card: var(--app-corner);
  --radius-xl: var(--app-corner);
}
/* Pages that set their own card or popup radius token on any element. */
body, body * {
  --radius-card: var(--app-corner) !important;
  --pm-radius: var(--app-corner) !important;
}
/* Dashboard attention groups, page-specific cards and disclosure cards. */
body :is(.attention-group, .attention-summary, article[class*="-card"], section[class*="-card"], div[class*="-card"]:not([class*="avatar"], [class*="badge"], [class*="chip"], [class*="pill"], [class*="phone"]), details[class]:not(.ow-menu), details[class]:not(.ow-menu) > summary:not([class*="pill"], [class*="btn"])) {
  border-radius: var(--app-corner) !important;
}
/* Cards and panels. */
body :is(.ow-card, .ow-compact-card, .ow-panel, .ow-ai-panel, .ow-pro-card, .overview-view .panel, .overview-view .rental-unit-group, .overview-view .payment-value, .ls-row, .ow-tenant-row, .lc-tenant-menu-body, .ow-checklist-boxed > li) {
  border-radius: var(--app-corner) !important;
}
body .overview-view .panel > .panel-heading:first-child {
  border-radius: 2px 2px 0 0 !important;
}
/* Dialogs, sheets and popovers. */
body :is(dialog, .ow-dialog, .pm-panel, .property-flow-dialog, .to-dialog, .tp-charge-dialog, .slc-dialog, [role="dialog"], [role="alertdialog"]) {
  border-radius: var(--app-corner) !important;
}
/* Menus and option lists. */
body :is(.ow-menu-list, .ow-dropdown, .ow-menu-panel, [role="menu"], [role="listbox"]) {
  border-radius: var(--app-corner) !important;
}
/* Form fields. Radios, checkboxes, ranges, colour swatches and file buttons keep their shapes. */
body :is(.ow-input, .ow-select, .ow-textarea, textarea, select, input:not([type="radio"], [type="checkbox"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="hidden"])) {
  border-radius: var(--app-corner) !important;
}
/* Option A on remaining landlord cards: 4px corners; ordinary cards get a 2px neutral border and no
   floating shadow. Alert bars and photo frames keep their own edge; dashboard groups keep the
   dashboard look. Mozart keeps its own style. */
:root body.ow.ow #ow-main :is(.overview-kpi, .acct-kpi-strip > *) { --app-corner: 4px; --card-border-width: 2px; border: 2px solid var(--border, #CBD5E1); border-radius: 4px; box-shadow: none; }
:root body.ow.ow #ow-main :is(.property-photo, .lp-alert, .attention-group) { --app-corner: 4px; border-radius: 4px; }
/* Menus keep their floating shadow and take the 4px app corner. */
:root body.ow.ow #ow-main :is(.doc-chip-panel, .invite-contact-menu, details.ow-rowmenu > div) { --app-corner: 4px; border-radius: 4px; }
/* Option A inside dialogs: inner boxes take the 4px app corner and keep their own edges. */
:root body.ow.ow dialog :is(.flow-plan-controls, .ow-subcard, .mk-phone-status, .ai-info-callout, .ow-upload-header, .ow-document-drop, .ac-availability, .exp-scan, .ow-alert, .listing-rotation-preview) { --app-corner: 4px; border-radius: 4px; }
:root body.ow.ow #profile-dlg .sp-draft-preview { --app-corner: 4px; border: 2px solid var(--border, #CBD5E1); border-radius: 4px; }
:root body.ow.ow #profile-dlg ul { border-radius: 4px; }
:root body.ow.ow #marketing-phone .mk-phone-status, :root body.ow.ow #upload-panel .ow-upload-header { --app-corner: 4px; border-radius: 4px; }
/* Option A in listing setup: the form surface is a 2px neutral card; inner boxes take 4px corners
   and keep their own edges. The rent-collection fee tiles are the approved component and stay as they are. */
:root body.ow.ow #ow-main .ow-wizard-form.ow-wizard-form { --app-corner: 4px; --radius-card: 4px; border-width: 2px; border-color: var(--border, #CBD5E1); border-radius: 4px; }
:root body.ow.ow #ow-main :is(.ow-wizard-form legend, .lb-est, .photo-comparison-stage), :root body.ow.ow dialog .photo-comparison-stage { --app-corner: 4px; border-radius: 4px; }
:root body.ow #ow-main #ow-utilities .utilities-section > legend:is(legend, #ow-band) { border-radius: 4px; }
/* A card header with content beneath it ends with the 2px rule the Insights chart tabs use.
   Not on the dashboard (its own approved cards), signing pages, tinted header bands or header-only cards. */
:root body.ow:not(.ow-stable-dashboard, .ow-lease-esign, .ow-esign-fill) #ow-main .ow-card > :is(.ow-card-head, .ap-verify-head):not(:last-child, [data-card-band]) { padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid var(--border, #CBD5E1); }
