.attendance-root {
  display: block;
  min-width: 0;
}

.att-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 26px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(120deg, var(--soft), var(--surface));
  overflow: hidden;
}
.att-hero h2 {
  font-size: clamp(25px, 3vw, 37px);
  margin: 8px 0 10px;
  letter-spacing: -1px;
}
.att-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.att-sync {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.att-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.att-stat {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.att-stat > span {
  font-weight: 600;
  font-size: 13px;
}
.att-stat > strong {
  font-size: 35px;
  letter-spacing: -1.4px;
  font-variant-numeric: tabular-nums;
}
.att-stat > small {
  color: var(--muted);
  font-size: 12px;
}
.att-stat.positive {
  background: var(--soft);
}
.att-stat.bright > strong {
  color: var(--accent);
}
.att-toolbar,
.att-tabs,
.att-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.att-toolbar {
  justify-content: space-between;
  margin-bottom: 22px;
}
.att-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 15px;
}
.att-tabs .btn {
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: transparent;
}
.att-tabs .active {
  background: var(--accent);
  color: white;
}
.att-searchbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.att-searchbar input {
  flex: 1;
  min-width: 0;
}
.att-searchbar select {
  width: auto;
  min-width: 155px;
}
.att-people-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.att-person-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.att-person-row:last-child {
  border-bottom: 0;
}
.att-person-row.arrived {
  background: color-mix(in srgb, var(--soft) 40%, var(--surface));
}
.att-avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}
.att-person-name {
  min-width: 120px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.att-person-name strong {
  font-size: 14px;
}
.att-person-name small {
  font-size: 12px;
  color: var(--muted);
}
.att-response {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 30px;
  white-space: nowrap;
  background: var(--bg);
  color: var(--muted);
}
.att-response.yes {
  background: var(--soft);
  color: var(--accent);
}
.att-response.no {
  background: #fee9ed;
  color: #a73550;
}
.att-response.maybe {
  background: #fff2d6;
  color: #936723;
}
.att-seat-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
  font-size: 12px;
}
.att-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.att-row-actions .btn {
  min-height: 44px;
  font-size: 13px;
  padding: 8px 11px;
  white-space: nowrap;
}
.att-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.att-empty h3 {
  color: var(--ink);
  margin-bottom: 10px;
}
.att-seating-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
}
.att-feature-card,
.att-capacity,
.att-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 20px;
}
.att-feature-card h3 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 15px 0;
}
.att-feature-card p,
.att-capacity p,
.att-insight p,
.att-panel p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.att-feature-icon {
  height: 48px;
  width: 48px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.att-actions {
  margin-top: 22px;
}
.att-capacity-number {
  display: flex;
  flex-direction: column;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 15px;
  color: var(--accent);
}
.att-capacity-number small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
}
.att-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--line);
  margin: 20px 0;
}
.att-meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 12px;
}
.att-insight {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  margin: 20px 0;
}
.att-insight h3 {
  margin: 0;
}
.att-insight p {
  margin: 5px 0;
}
.att-insight .btn {
  white-space: nowrap;
}
.att-warning {
  font-size: 12px;
  background: #fff3dc;
  border: 1px solid #f4d48d;
  color: #805918;
  border-radius: 12px;
  padding: 13px 16px;
  line-height: 1.7;
}
.att-kitchen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
}
.att-panel h3 {
  margin: 0 0 8px;
}
.att-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.att-panel-head p {
  margin: 0;
}
.att-panel-head .btn {
  white-space: nowrap;
}
.att-meal-head,
.att-meal-row {
  display: grid;
  grid-template-columns: 1fr 95px 65px;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.att-meal-head {
  font-size: 12px;
  color: var(--muted);
}
.att-meal-row > span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.att-meal-row strong {
  font-size: 13px;
}
.att-station {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.att-station > div,
.att-station > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.att-station > span {
  font-size: 25px;
  font-weight: 700;
  color: var(--accent);
}
.att-station small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.att-person-form {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  margin: 18px 0;
  padding: 15px;
}
.att-person-form legend {
  font-size: 14px;
  font-weight: 700;
  padding: 0 8px;
}
.att-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.att-form-grid .field:last-child {
  grid-column: 1/-1;
}
.att-person-form p {
  font-size: 12px;
  margin: 10px 0 0;
}
.att-arrived-note {
  color: var(--accent);
}
.att-proposal {
  max-height: 45vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 15px 0;
}
.att-proposal > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  font-size: 13px;
}
.att-proposal > div > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.att-proposal small {
  font-size: 12px;
  color: var(--muted);
}
.att-guest-rsvp {
  max-width: 720px;
  margin: 24px auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.att-guest-intro h2 {
  font-size: 30px;
  margin: 10px 0;
}
.att-guest-intro p {
  color: var(--muted);
  line-height: 1.8;
}
.att-guest-rsvp [role="status"] {
  color: var(--accent);
  line-height: 1.8;
}
.att-guest-rsvp form > .btn {
  width: 100%;
}
.att-guest-rsvp .muted {
  font-size: 12px;
  line-height: 1.8;
}
@media (max-width: 950px) {
  .att-hero {
    display: block;
  }
  .att-sync {
    display: block;
    margin-top: 15px;
  }
  .att-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .att-kitchen-grid {
    grid-template-columns: 1fr;
  }
  .att-person-row {
    flex-wrap: wrap;
  }
  .att-seat-cell {
    min-width: 90px;
  }
  .att-seating-grid {
    grid-template-columns: 1fr;
  }
  .att-person-row .att-row-actions {
    margin-inline-start: auto;
  }
}
@media (max-width: 560px) {
  .att-hero {
    padding: 23px;
  }
  .att-toolbar {
    display: block;
  }
  .att-tabs {
    width: 100%;
    gap: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 12px;
  }
  .att-tabs .btn {
    padding: 10px 5px;
    font-size: 12px;
    white-space: normal;
  }
  .att-person-row {
    padding: 15px 13px;
    gap: 10px;
  }
  .att-avatar {
    display: none;
  }
  .att-person-name {
    min-width: 130px;
  }
  .att-response {
    font-size: 12px;
  }
  .att-seat-cell {
    order: 3;
    flex: 1;
  }
  .att-row-actions {
    order: 4;
  }
  .att-searchbar {
    flex-wrap: wrap;
  }
  .att-searchbar input {
    width: 100%;
    flex: auto;
  }
  .att-searchbar select {
    width: 100%;
  }
  .att-stats {
    gap: 10px;
  }
  .att-stat {
    padding: 16px;
  }
  .att-stat > strong {
    font-size: 30px;
  }
  .att-feature-card,
  .att-capacity,
  .att-panel {
    padding: 22px;
  }
  .att-insight {
    display: block;
  }
  .att-insight .btn {
    margin-top: 10px;
  }
  .att-form-grid {
    grid-template-columns: 1fr;
  }
  .att-form-grid .field:last-child {
    grid-column: auto;
  }
  .att-guest-rsvp {
    padding: 18px;
    margin: 16px 0;
  }
  .att-actions .btn {
    width: 100%;
  }
  .att-meal-head,
  .att-meal-row {
    grid-template-columns: 1fr 80px 45px;
  }
  .att-kitchen-grid .att-panel-head {
    flex-wrap: wrap;
  }
}
@media print {
  .att-toolbar,
  .att-row-actions,
  .att-searchbar,
  .att-actions {
    display: none !important;
  }
  .att-people-list {
    overflow: visible;
  }
  .att-person-row {
    break-inside: avoid;
  }
  .att-hero,
  .att-stats {
    break-inside: avoid;
  }
}

/* Responsive module controls and content bounds. */
.att-hero > div,
.att-person-name,
.att-seat-cell,
.att-station > div,
.att-panel-head > div,
.att-insight > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.attendance-root .btn,
.att-guest-rsvp .btn {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.5;
}
.att-tabs .btn {
  min-width: 0;
  font-size: 13px;
}
.att-avatar,
.attendance-root .btn > svg {
  flex-shrink: 0;
}
.att-response,
.att-sync {
  white-space: normal;
  line-height: 1.6;
}
.att-stat > strong,
.att-capacity-number {
  overflow-wrap: anywhere;
}
.att-person-name strong {
  line-height: 1.6;
}
.att-meal-head,
.att-meal-row {
  grid-template-columns: minmax(0, 1fr) 95px 65px;
}
@media (max-width: 560px) {
  .att-tabs {
    align-items: stretch;
  }
  .att-tabs .btn {
    min-height: 52px;
    font-size: 13px;
    line-height: 1.5;
  }
  .att-searchbar :is(input, select),
  .att-guest-rsvp :is(input:not([type="checkbox"]), select, textarea) {
    font-size: 16px;
  }
  .att-person-name {
    flex-basis: calc(100% - 90px);
  }
  .att-row-actions {
    width: 100%;
  }
  .att-row-actions .btn {
    flex: 1 1 auto;
  }
  .att-meal-head,
  .att-meal-row {
    grid-template-columns: minmax(0, 1fr) 72px 42px;
    gap: 8px;
  }
}
