.am-console {
  --am-mint: #dbeee4;
  --am-mint-ink: #21694e;
  --am-sand: #f7ecda;
  --am-sand-ink: #865a20;
  --am-blue: #e3eef6;
  --am-blue-ink: #335d7d;
  --am-rose: #f8e8e5;
  --am-rose-ink: #9d5146;
  --am-violet: #ece9f6;
  --am-violet-ink: #5c507d;
  min-width: 0;
  color: var(--ink, #142a21);
}

.am-console *,
.am-console *::before,
.am-console *::after {
  box-sizing: border-box;
}

.am-console .eyebrow { margin: 0; }

.am-nav {
  display: flex;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 1px 0;
  border-bottom: 1px solid var(--line, #e0e8e0);
  scrollbar-width: thin;
}

.am-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 14px;
  margin: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted, #61726a);
  font: inherit;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  cursor: pointer;
}

.am-tab:hover { background: #edf2ec; color: var(--ink, #142a21); }
.am-tab.is-active { border-bottom-color: var(--green, #146149); color: var(--green, #146149); }
.am-console button:focus-visible,
.am-console select:focus-visible,
.am-console input:focus-visible,
.am-console textarea:focus-visible,
.am-table-scroll:focus-visible { outline: 2px solid var(--green, #146149); outline-offset: 2px; }

.am-content { display: grid; gap: 18px; padding-top: 21px; min-width: 0; }
.am-content > * { min-width: 0; }

.am-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  min-height: 142px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius, 18px);
  background:
    radial-gradient(ellipse at 83% 126%, #eaf0dc 0 23%, transparent 24%),
    radial-gradient(ellipse at 106% 103%, #cfe5d3 0 25%, transparent 26%),
    linear-gradient(105deg, #e3efe1, #edf3e6 74%, #edf3e6);
  color: #183b2d;
}

.am-hero h1 {
  margin: 7px 0 3px;
  font-size: clamp(1.95rem, 3.3vw, 3rem);
  font-weight: 660;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.am-hero p:not(.eyebrow) {
  margin: 9px 0 0;
  font-size: .92rem;
  color: #3a5e50;
}

.am-date-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 13px;
  border: 1px solid #d6e4d7;
  border-radius: 999px;
  background: #f7faf5;
  color: #2f5b49;
  font-size: .8rem;
  font-weight: 650;
}

.am-card {
  min-width: 0;
  border: 1px solid var(--line, #e0e8e0);
  border-radius: var(--radius, 18px);
  background: var(--surface, #fff);
  box-shadow: 0 8px 25px -25px #143b27;
}

.am-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.am-metric {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(13px, 1.6vw, 18px);
}

.am-metric p { margin: 0; color: var(--muted, #61726a); font-size: .78rem; font-weight: 620; }
.am-metric strong { display: block; margin-top: 4px; font-size: clamp(1.4rem, 2.5vw, 2.05rem); font-weight: 680; letter-spacing: -.06em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.am-metric small { display: block; margin-top: 7px; color: var(--muted, #61726a); font-size: .73rem; }

.am-icon-tile {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
}

.am-mint { background: var(--am-mint); color: var(--am-mint-ink); }
.am-sand { background: var(--am-sand); color: var(--am-sand-ink); }
.am-blue { background: var(--am-blue); color: var(--am-blue-ink); }
.am-rose { background: var(--am-rose); color: var(--am-rose-ink); }

.am-overview-grid,
.am-settings-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 2.55fr) minmax(232px, 1fr);
  gap: 14px;
}

.am-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-overview-grid > .am-card,
.am-settings-grid > .am-card { align-self: stretch; }

.am-card-head,
.am-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.am-section-head { align-items: end; padding: 2px 0; }
.am-card-head h2,
.am-section-head h2 {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 690;
  line-height: 1.15;
  letter-spacing: -.023em;
}
.am-section-head h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); letter-spacing: -.04em; }
.am-card-head p,
.am-section-head p { margin: 5px 0 0; color: var(--muted, #61726a); font-size: .82rem; line-height: 1.45; }
.am-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

.am-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--am-mint);
  color: var(--am-mint-ink);
  font-size: .73rem;
  font-weight: 680;
  white-space: nowrap;
}

.am-live-indicator i,
.am-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.am-live-stale { background: var(--am-sand); color: var(--am-sand-ink); }

.am-icon-action,
.am-table-action,
.am-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 33px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--green, #146149);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.am-icon-action:hover,
.am-table-action:hover,
.am-text-action:hover { background: #edf4ed; }
.am-table-action { width: 34px; padding: 0; }
.am-console button:disabled { cursor: wait; opacity: .6; }

.am-table-scroll {
  overflow: auto;
  width: 100%;
  border-radius: 0 0 var(--radius, 18px) var(--radius, 18px);
  scrollbar-width: thin;
}

.am-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  text-align: left;
  white-space: nowrap;
}

.am-table th,
.am-table td { padding: 11px 10px; border-top: 1px solid var(--line, #e0e8e0); }
.am-table th:first-child,
.am-table td:first-child { padding-left: 18px; }
.am-table th:last-child,
.am-table td:last-child { padding-right: 17px; }
.am-table th { background: #f8faf7; color: #4e6055; font-weight: 640; }
.am-table tr:hover td { background: #fcfdfb; }
.am-table td small,
.am-list small { display: block; margin-top: 3px; color: var(--muted, #61726a); font-size: .72rem; }
.am-table .am-wrap { min-width: 150px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
.am-table td strong { font-weight: 635; }

.am-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.am-person strong { font-weight: 655; overflow-wrap: anywhere; }
.am-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #dcece3;
  color: #24583f;
  font-size: .68rem;
  font-weight: 720;
}

.am-duration { white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; }
.am-mode,
.am-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: .73rem;
  font-weight: 650;
}

.am-mode { color: #496457; }
.am-mode-office { color: var(--am-mint-ink); }
.am-mode-offsite { color: var(--am-blue-ink); }
.am-mode-home { color: var(--am-violet-ink); }
.am-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf1ed;
  color: #445a4d;
}
.am-status-working,
.am-status-approved,
.am-status-complete { background: var(--am-mint); color: var(--am-mint-ink); }
.am-status-on-break,
.am-status-pending { background: var(--am-sand); color: var(--am-sand-ink); }
.am-status-needs-review,
.am-status-declined { background: var(--am-rose); color: var(--am-rose-ink); }

.am-mode-summary { display: grid; gap: 11px; padding: 0 18px 18px; }
.am-stacked { display: flex; width: 100%; height: 10px; margin: 3px 0 5px; overflow: hidden; border-radius: 999px; background: #edf2ed; }
.am-stacked > span { min-width: 0; }
.am-segment-office { background: #4d9878; }
.am-segment-offsite { background: #7295b2; }
.am-segment-home { background: #a18cb6; }
.am-mode-row { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.am-mode-row strong { font-size: .85rem; font-variant-numeric: tabular-nums; }

.am-list { padding: 0; margin: 0; list-style: none; }
.am-list li { display: flex; align-items: center; gap: 9px; padding: 11px 17px; border-top: 1px solid var(--line, #e0e8e0); font-size: .79rem; }
.am-list li > div { min-width: 0; overflow-wrap: anywhere; }
.am-list li > div:not(.am-person) { flex: 1 1 auto; }
.am-list li > .am-person { flex: 0 1 155px; }
.am-list li > .am-text-action,
.am-list li > .am-table-action { margin-left: auto; flex-shrink: 0; }
.am-list li strong { font-weight: 640; }
.am-notices li { align-items: flex-start; }

.am-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 21px 14px 24px;
  text-align: center;
  color: var(--muted, #61726a);
}

.am-empty span {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  margin-bottom: 3px;
  border-radius: 12px;
  background: #edf4ed;
  color: #42705b;
}

.am-empty strong { color: var(--ink, #142a21); font-size: .86rem; font-weight: 650; }
.am-empty p { margin: 0; font-size: .78rem; line-height: 1.4; }

.am-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink, #142a21);
  font-size: .8rem;
  font-weight: 640;
}
.am-field > .field {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfddd3;
  border-radius: 9px;
  background: var(--surface, #fff);
  color: var(--ink, #142a21);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 450;
}
.am-field textarea { resize: vertical; }
.am-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) auto;
  align-items: end;
  gap: 11px;
  padding: 14px 16px;
}
.am-filters button { white-space: nowrap; }
.am-control-person { width: min(100%, 190px); }

.am-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 0 17px 17px; }
.am-day {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
  min-width: 0;
  min-height: 83px;
  padding: 9px 8px;
  border: 1px solid #dce9dc;
  border-radius: 10px;
  background: #eef5ee;
  color: #2d5742;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.am-day:hover { border-color: #91ad96; }
.am-day strong { font-size: .85rem; }
.am-day span { font-size: .73rem; overflow-wrap: anywhere; }
.am-day small { font-size: .68rem; color: #586e5e; font-variant-numeric: tabular-nums; }
.am-day-off { border-color: var(--line, #e0e8e0); background: #f7f9f6; color: var(--muted, #61726a); }
.am-edit-block { display: grid; gap: 13px; padding: 16px 17px 17px; border-top: 1px solid var(--line, #e0e8e0); }
.am-edit-first { padding-top: 0; border-top: 0; }
.am-edit-block h3,
.am-break-details h3 { margin: 0; font-size: .9rem; font-weight: 660; }
.am-days-fieldset { padding: 0; margin: 0; border: 0; }
.am-days-fieldset legend { padding: 0; margin: 0 0 6px; font-size: .8rem; font-weight: 640; }
.am-days-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.am-days-picker label { position: relative; display: inline-flex; }
.am-days-picker input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.am-days-picker span { padding: 7px 10px; border: 1px solid var(--line, #e0e8e0); border-radius: 7px; font-size: .75rem; color: var(--muted, #61726a); }
.am-days-picker input:checked + span { border-color: #9dc8ac; background: var(--am-mint); color: var(--am-mint-ink); }
.am-days-picker input:focus-visible + span { outline: 2px solid var(--green, #146149); outline-offset: 2px; }

.am-roster { margin-bottom: 18px; }
.am-roster-rules { margin-bottom: 18px; }
.am-roster-rules > .am-muted { margin: 0 17px 17px; }
.am-roster-rule-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.am-roster-toolbar, .am-roster-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 17px 14px;
}
.am-roster-period { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex: 1; }
.am-roster-period strong { font-size: .92rem; text-align: center; }
.am-roster-previous svg { transform: rotate(180deg); }
.am-roster-segments { display: inline-flex; gap: 3px; padding: 3px; background: #edf2ed; border-radius: 10px; }
.am-roster-segments button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  font-size: .86rem;
  font-weight: 700;
}
.am-roster-segments button[aria-pressed=true] { background: #fff; color: var(--green); box-shadow: 0 1px 4px #183b2624; }
.am-roster-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 17px 14px; }
.am-roster-weekday { color: var(--muted); font-size: .74rem; font-weight: 700; text-align: center; }
.am-roster-day {
  min-height: 90px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  background: #f8fbf8;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  padding: 7px;
  text-align: left;
  overflow-wrap: anywhere;
}
.am-roster-day > strong { font-size: .88rem; }
.am-roster-day > span { font-size: .74rem; font-weight: 600; }
.am-roster-day > small { color: var(--muted); font-size: .68rem; }
.am-roster-day > .am-roster-special { color: #125342; font-weight: 650; }
.am-roster-day.am-roster-off { background: #f1f2ed; border-color: #e3e6dc; }
.am-roster-day.am-roster-leave { background: #fdf5df; border-color: #f1e5c4; }
.am-roster-day.am-roster-adjacent > strong { color: #65796b; }
.am-roster-day[aria-current=date] > strong { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.am-roster-day[aria-disabled=true] { cursor: default; }
.am-roster-day:not([aria-disabled=true]):hover { border-color: #7ba887; }
.am-roster-day[aria-pressed=true] { color: #134633; background: #dceee0; border-color: #437c52; box-shadow: inset 0 0 0 1px #437c52; }
.am-roster-bottom { justify-content: flex-end; }
.am-roster-bottom > p { margin-right: auto; }
.am-roster-empty { min-height: 85px; padding: 17px; }
.am-roster-swaps { padding: 0 17px 13px; }
.am-roster-swaps > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; align-items: center; padding: 4px 9px; background: #f5f8f5; }
.am-roster-swaps > div + div { margin-top: 5px; }
.am-roster-request-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.am-roster-request-dates > div { display: grid; gap: 4px; border-radius: 8px; background: #edf5ee; padding: 10px; }
.am-roster-request-dates small { color: var(--muted); }
.am-roster-reason { background: #f7f9f7; border-radius: 8px; padding: 10px; overflow-wrap: anywhere; white-space: pre-wrap; }

@media (max-width: 620px) {
  .am-roster-toolbar, .am-roster-bottom, .am-roster-calendar { padding-inline: 11px; }
  .am-roster-calendar { gap: 3px; }
  .am-roster-day { padding: 4px; min-height: 66px; gap: 2px; }
  .am-roster-day > strong { font-size: .78rem; }
  .am-roster-day > span, .am-roster-day > small { font-size: .61rem; }
  .am-roster-day > .am-roster-special { display: none; }
  .am-roster-weekday { font-size: .67rem; }
}
.am-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.am-form-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-form-actions { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 8px; }

.am-dialog {
  width: min(510px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  border: 1px solid var(--line, #e0e8e0);
  border-radius: var(--radius, 18px);
  background: var(--surface, #fff);
  color: var(--ink, #142a21);
  box-shadow: 0 24px 90px #102c2355;
}
.am-dialog::backdrop { background: #102a24a8; }
.am-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line, #e0e8e0); }
.am-dialog-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.am-dialog-content { display: grid; gap: 14px; padding: 17px 18px 19px; }
.am-dialog-profile { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.am-dialog-form { display: grid; gap: 11px; }
.am-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.am-detail-grid dt { color: var(--muted, #61726a); font-size: .75rem; font-weight: 620; }
.am-detail-grid dd { margin: 3px 0 0; font-size: .86rem; overflow-wrap: anywhere; }
.am-detail-grid dd small { display: block; margin-top: 3px; color: var(--muted, #61726a); }
.am-detail-full { grid-column: 1 / -1; }
.am-break-details ul { padding-left: 19px; margin: 6px 0 0; color: var(--muted, #61726a); font-size: .82rem; }
.am-flag-box { display: flex; gap: 8px; padding: 10px 12px; border-radius: 9px; background: var(--am-sand); color: var(--am-sand-ink); font-size: .8rem; }
.am-flag-box svg { flex: 0 0 auto; }
.am-flag-box ul { margin: 3px 0; padding-left: 18px; }
.am-flag-box small { display: block; margin-top: 6px; }
.am-checkbox { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: .85rem; font-weight: 620; }
.am-checkbox input { accent-color: var(--green, #146149); }
.am-use-location { justify-self: start; padding-left: 0; }
.am-console .am-decline { color: var(--am-rose-ink); }

.am-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 170px; color: var(--muted, #61726a); }
.am-loading i { width: 15px; height: 15px; border: 2px solid #ceded0; border-top-color: var(--green, #146149); border-radius: 50%; animation: am-spin .8s linear infinite; }
@keyframes am-spin { to { transform: rotate(360deg); } }
.am-muted { color: var(--muted, #61726a); }
.am-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.am-console [hidden] { display: none !important; }
.am-people-filters {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) repeat(2, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
}
.am-list-count { margin: 0 0 11px; font-size: .8rem; white-space: nowrap; }
.am-directory-list, .am-profile-list, .am-note-list { margin: 0; padding: 0; list-style: none; }
.am-directory-list > li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(105px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 18px;
  border-top: 1px solid var(--line, #e0e8e0);
}
.am-directory-list > li:hover { background: #f8faf7; }
.am-directory-list .am-person strong,
.am-message-meta strong { display: block; overflow-wrap: anywhere; }
.am-directory-list .am-person small,
.am-person-status small,
.am-dialog-profile .am-person small,
.am-message-meta small,
.am-message-preview small,
.am-ack-status small,
.am-recipient-options small,
.am-profile-list small,
.am-note-list small { display: block; margin-top: 2px; color: var(--muted, #61726a); font-size: .77rem; overflow-wrap: anywhere; }
.am-status-active, .am-status-acknowledged { color: var(--am-mint-ink); background: var(--am-mint); }
.am-status-on-leave { color: var(--am-blue-ink); background: var(--am-blue); }
.am-status-inactive, .am-status-suspended, .am-status-archived { color: #505d57; background: #edf0ed; }
.am-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.am-profile-actions .btn { min-height: 42px; }
.am-account-actions { display: flex; align-items: center; gap: 6px; }
.am-profile-section {
  min-width: 0;
  border: 1px solid var(--line, #e0e8e0);
  border-radius: 12px;
  padding: 11px 12px;
}
.am-profile-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 10px; }
.am-profile-head h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .91rem; }
.am-profile-head .am-text-action { min-height: 34px; }
.am-profile-section p { margin: 7px 0 0; font-size: .86rem; }
.am-profile-list > li, .am-note-list > li { border-top: 1px solid var(--line, #e0e8e0); padding: 8px 0; }
.am-profile-list > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; }
.am-note-list > li > strong { font-size: .82rem; }
.am-note-list p, .am-message-preview p { margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.am-helper { margin: 0; font-size: .8rem; }
.am-form-title { margin: 0; font-size: .95rem; }
.am-inline-error { margin: 0; padding: 12px 18px; color: var(--am-rose-ink); }
.am-form-error { margin: 0; padding: 8px 10px; border-radius: 8px; color: var(--am-rose-ink); background: var(--am-rose); font-size: .84rem; }
.am-message-progress { min-width: 0; font-size: .8rem; color: var(--muted, #61726a); }
.am-message-progress progress { display: block; width: min(100%, 165px); height: 9px; margin-top: 4px; accent-color: var(--green, #146149); }
.am-message-audience { margin: 0; padding: 6px 12px 8px; border: 1px solid var(--line, #e0e8e0); border-radius: 10px; }
.am-message-audience legend { padding-inline: 4px; font-size: .84rem; font-weight: 650; }
.am-recipient-picker { display: grid; gap: 7px; }
.am-recipient-options, .am-recipient-review { max-height: 180px; overflow: auto; }
.am-recipient-options { border: 1px solid var(--line, #e0e8e0); border-radius: 10px; }
.am-recipient-options label { min-height: 44px; padding: 5px 9px; }
.am-recipient-options label + label { border-top: 1px solid var(--line, #e0e8e0); }
.am-message-preview { padding: 12px 14px; background: #f5f8f3; border-radius: 10px; }
.am-message-preview h3 { margin: 0 0 5px; overflow-wrap: anywhere; font-size: 1rem; }
.am-message-preview p { margin-top: 7px; font-size: .9rem; }
.am-ack-status { text-align: right; }

@media (max-width: 1090px) {
  .am-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .am-mode-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-stacked { grid-column: 1 / -1; }
  .am-mode-row { justify-content: flex-start; gap: 10px; }
}

@media (max-width: 850px) {
  .am-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-filters .btn { justify-self: start; }
  .am-settings-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .am-content { gap: 13px; padding-top: 15px; }
  .am-hero { flex-direction: column; align-items: flex-start; min-height: 0; }
  .am-date-label { font-size: .75rem; }
  .am-metrics { gap: 8px; }
  .am-metric { gap: 7px; padding: 11px 9px; }
  .am-metric .am-icon-tile { width: 29px; height: 29px; border-radius: 9px; }
  .am-metric .am-icon-tile svg { width: 16px; height: 16px; }
  .am-metric p { font-size: .72rem; }
  .am-metric small { font-size: .69rem; }
  .am-tab { padding: 0 10px; font-size: .82rem; }
  .am-table-action { min-height: 44px; width: 44px; }
  .am-icon-action, .am-text-action { min-height: 44px; }
  .am-card-head, .am-section-head { flex-wrap: wrap; }
  .am-card-head { padding: 13px; }
  .am-section-head { align-items: start; }
  .am-table th:first-child, .am-table td:first-child { padding-left: 13px; }
  .am-mode-summary { padding-inline: 13px; }
  .am-week { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 13px; }
  .am-edit-block, .am-filters { padding-inline: 13px; }
  .am-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-list li { padding-inline: 13px; }
  .am-people-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 13px; }
  .am-people-filters > :first-child, .am-list-count { grid-column: 1 / -1; }
  .am-list-count { margin: 2px 0 0; }
  .am-directory-list > li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 12px; }
  .am-directory-list > li > button { grid-column: 2; grid-row: 1 / 3; }
  .am-directory-list .am-person-status { padding-left: 42px; }
}

@media (max-width: 380px) {
  .am-mode-summary { grid-template-columns: minmax(0, 1fr); }
  .am-mode-row { justify-content: space-between; }
  .am-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-list li > .am-person { flex-basis: 115px; }
  .am-list li > .am-person .am-avatar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .am-loading i { animation: none; }
}
