/* Shared Connections and reminder geometry is restricted to native Gate 5
   hosts. Existing sidebar, utility bar and other gate layouts stay independent. */
.native-gate5-view { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 24px; font-family: "DM Sans", sans-serif; }
.native-gate5-view .native-gate5-section-title { margin: 0; font-size: 17px; font-weight: 600; }
.native-gate5-view .native-gate5-heading, .native-gate5-view .alpha-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.native-gate5-view .native-gate5-heading h1, .native-gate5-view .alpha-heading h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; }
.native-gate5-view .native-gate5-heading p, .native-gate5-view .alpha-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.native-gate5-view .native-gate5-eyebrow { margin-bottom: 7px; font-size: 11px; }
.native-gate5-view [data-native-connections-status]:empty { display: none; }
.native-gate5-view .native-gate5-communication { padding: 0; }
.native-gate5-view [data-native-communication-settings] { padding: 16px; }
.native-gate5-view .alpha-reminder-content, .native-gate5-view .alpha-site-content { display: grid; align-content: start; gap: 14px; min-width: 0; }
.native-gate5-view .alpha-reminder-content > button { justify-self: start; }
.native-gate5-view .alpha-task-card, .native-gate5-view .alpha-case-panel { min-width: 0; padding: 16px; border: .75px solid #cbd0d3; border-radius: 9px; background: #fff; }
.native-gate5-view .alpha-task-card h2, .native-gate5-view .alpha-case-panel h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.native-gate5-view .alpha-task-card h3 { margin: 14px 0 10px; font-size: 12px; font-weight: 600; }
.native-gate5-view .alpha-task-card h4, .native-gate5-view .alpha-task-card h5 { margin: 16px 0 10px; font-size: 12px; }
.native-gate5-view .alpha-task-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; margin: 0; font-size: 11px; }
.native-gate5-view .alpha-task-facts > div { min-width: 0; }
.native-gate5-view .alpha-task-facts dt { margin-bottom: 5px; color: var(--muted); }
.native-gate5-view .alpha-task-facts dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.native-gate5-view .alpha-connection-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.native-gate5-view [data-alpha-connection-readiness] ul { padding-left: 18px; font-size: 11px; line-height: 1.6; }
.native-gate5-view .alpha-task-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.native-gate5-view .alpha-status, .native-gate5-dialog .alpha-status { font-size: 12px; line-height: 1.5; margin: 4px 0; }
.native-gate5-view .alpha-note, .native-gate5-dialog .alpha-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.native-gate5-view .alpha-button, .native-gate5-dialog .alpha-button { display: inline-block; min-height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; background: #fff; color: var(--ink); font: 12px "DM Sans",sans-serif; text-decoration: none; white-space: normal; }
.native-gate5-view .alpha-button--primary, .native-gate5-dialog .alpha-button--primary { background: var(--lime); }
.native-gate5-view .alpha-button:disabled, .native-gate5-dialog .alpha-button:disabled { opacity: .55; cursor: default; }
.native-gate5-view .alpha-state { display: inline-block; border-radius: 6px; padding: 3px 8px; background: var(--blue); font-size: 11px; line-height: 1.5; }
.native-gate5-view .alpha-state[data-alpha-reminder-state="delivered"] { background: #dcf3df; color: #285b35; }
.native-gate5-view .alpha-state[data-alpha-reminder-state="scheduled"], .native-gate5-view .alpha-state[data-alpha-reminder-state="claimed"], .native-gate5-view .alpha-state[data-alpha-reminder-state="accepted"] { background: #fff0b5; color: #725814; }
.native-gate5-view .alpha-state[data-alpha-reminder-state="uncertain"], .native-gate5-view .alpha-state[data-alpha-reminder-state="failed"] { background: #ffdcd8; color: #882f28; }
.native-gate5-view .alpha-table-scroll { overflow-x: auto; }
.native-gate5-view .alpha-case-table { width: 100%; min-width: 460px; margin: 0; font-size: 12px; table-layout: auto; }
.native-gate5-view .alpha-reminder-table { min-width: 650px; }
.native-gate5-view .alpha-case-table thead { position: static; }
.native-gate5-view .alpha-table-heading { position: relative; z-index: 2; }
.native-gate5-view .alpha-case-table th, .native-gate5-view .alpha-case-table td { padding: 12px; height: auto; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.native-gate5-view .alpha-case-table tbody tr { background: #f6f7f5; }
.native-gate5-view .alpha-case-table tbody th { font-weight: 500; }
.native-gate5-view .alpha-case-table th small, .native-gate5-view .alpha-case-table td small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.native-gate5-view .alpha-reminder-name { display: flex; align-items: center; gap: 8px; }
.native-gate5-view .alpha-reminder-name .icon { flex: 0 0 17px; width: 17px; height: 17px; }
.native-gate5-view .alpha-task-fields, .native-gate5-dialog .alpha-staff-fields { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.native-gate5-view .alpha-task-fields label, .native-gate5-dialog .alpha-staff-fields > label { font-size: 12px; font-weight: 500; line-height: 1.5; }
.native-gate5-view .alpha-task-fields select, .native-gate5-dialog .alpha-staff-fields > input, .native-gate5-dialog .alpha-staff-fields > select { display: block; width: 100%; max-width: 100%; min-height: 38px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 12px "DM Sans",sans-serif; }
.native-gate5-view .alpha-task-option, .native-gate5-dialog .alpha-task-option { display: flex; align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.native-gate5-view .alpha-task-option > input, .native-gate5-dialog .alpha-task-option > input { flex: 0 0 15px; width: 15px; height: 15px; margin: 3px 0 0; }
.native-gate5-view .alpha-reminder-confirm, .native-gate5-dialog .alpha-reminder-confirm, .native-gate5-dialog .alpha-site-confirm { padding: 12px; border: 1px solid var(--line-soft); border-radius: 7px; }
.native-gate5-dialog .alpha-staff-drawer { width: min(560px,100vw); }
.native-gate5-dialog .alpha-staff-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 0; }
.native-gate5-dialog .alpha-staff-form-body { padding: 20px; overflow-y: auto; min-height: 0; }
.native-gate5-dialog .alpha-staff-summary { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,2fr); gap: 10px 14px; margin: 0 0 14px; font-size: 12px; line-height: 1.5; }
.native-gate5-dialog .alpha-staff-summary dt { font-weight: 500; }
.native-gate5-dialog .alpha-staff-summary dd { margin: 0; overflow-wrap: anywhere; }
.native-gate5-dialog .alpha-staff-form-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; padding: 14px 20px; border-top: 1px solid var(--line-soft); background: #fafafa; }
.native-gate5-dialog [data-alpha-connection-readiness] { font-size: 12px; line-height: 1.5; }
.native-gate5-dialog [data-alpha-connection-readiness] h3 { font-size: 13px; }
@media(max-width:720px) {
  .native-gate5-view { padding: 16px; }
  .native-gate5-view .alpha-connection-cards, .native-gate5-view .alpha-task-facts { grid-template-columns: minmax(0,1fr); }
  .native-gate5-view .native-gate5-heading h1, .native-gate5-view .alpha-heading h1 { font-size: 21px; }
}
