.stay-card {
  width: 100%;
  min-width: 0;
  container: stay / inline-size;
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  text-align: left;
}
.stay-card [hidden] { display: none !important; }
.stay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 17px 22px;
  padding: 24px;
}
.stay-card h3, .stay-fields legend { margin: 0; font: 400 30px/1.1 var(--serif); }
.stay-monthbar, .stay-month-actions, .stay-week, .stay-legend, .stay-fallback-actions { display: flex; align-items: center; }
.stay-monthbar { justify-content: space-between; gap: 8px; }
.stay-monthbar h3::first-letter { text-transform: uppercase; }
.stay-month-actions { gap: 5px; }
.stay-month-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0 0 3px;
  font: 400 26px/1 var(--sans);
}
.stay-month-button:not(:disabled):hover, .stay-day:not([aria-disabled="true"]):hover { color: var(--paper); background: var(--sea); }
.stay-card button:disabled { cursor: default; }
.stay-month-button:disabled { opacity: .35; }
.stay-week, .stay-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; }
.stay-week { color: var(--body); font-size: .76rem; margin: 17px 0 6px; }
.stay-days { gap: 2px; }
.stay-day {
  min-width: 0;
  height: 35px;
  border-radius: 5px;
  padding: 0;
  font-size: .87rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.stay-day.is-past { color: #717a75; font-weight: 400; }
.stay-day.is-blocked { color: #6a716c; background: #e9e6dc; text-decoration: line-through; }
.stay-day[aria-disabled="true"] { cursor: default; }
.stay-day.is-outside { color: #707c73; }
.stay-day.is-boundary, .stay-day.is-range { background: #e1e8db; }
.stay-day.is-boundary { color: var(--ink); text-decoration: none; border: 1px dashed #648276; }
.stay-day.is-selected { color: white; background: var(--ink); text-decoration: none; }
.stay-legend { gap: 15px; margin-top: 13px; font-size: .76rem; color: var(--body); }
.stay-legend span { display: flex; align-items: center; gap: 5px; }
.stay-legend i { width: 11px; height: 11px; border: 1px solid #a6b4a8; border-radius: 3px; }
.stay-legend i.taken { background: linear-gradient(135deg, transparent 45%, #889085 45% 55%, transparent 55%) #e9e6dc; }
.stay-details { min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.stay-fields { min-width: 0; padding: 0; border: 0; margin: 0; }
.stay-fields legend { margin-bottom: 12px; }
.stay-field {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 9px 10px;
  border-radius: 5px;
}
.stay-field + .stay-field { margin-top: 6px; }
.stay-field[aria-pressed="true"] { background: #e8eee3; border-color: #67847a; }
.stay-field:disabled { color: var(--body); }
.stay-field span { font-size: .77rem; }
.stay-field strong { font-size: .82rem; font-weight: 600; }
.stay-guide, .stay-source, .stay-fallback p { color: var(--body); }
.stay-guide { min-height: 2.7em; margin: 11px 0; font-size: .81rem; line-height: 1.4; }
.stay-primary, .stay-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 39px;
  border-radius: 25px;
  padding: 8px 12px;
  font: 650 .85rem/1.2 var(--sans);
}
.stay-primary { color: #fff; background: var(--ink); }
.stay-primary:hover { background: var(--sea); }
.stay-secondary { margin-top: 6px; color: var(--ink); border: 1px solid #79938a; }
.stay-secondary[href]:hover { background: #e8eee3; }
.stay-primary[aria-disabled="true"] { color: #4e5f58; background: #e6e9dd; cursor: default; }
.stay-textlink { color: var(--ink); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.stay-direct { display: block; text-align: center; margin-top: 8px; }
.stay-source { grid-column: 1 / -1; font-size: .74rem; border-top: 1px solid var(--line); padding-top: 10px; margin: 0; }
.stay-fallback { padding: 28px; }
.stay-fallback p { margin: 13px 0; }
.stay-fallback-actions { flex-wrap: wrap; gap: 12px 18px; }
@container stay (max-width: 510px) {
  .stay-layout { grid-template-columns: minmax(0,1fr); gap: 17px; padding: 18px; }
  .stay-details { border: 0; border-top: 1px solid var(--line); padding: 15px 0 0; }
  .stay-fields legend { margin-bottom: 9px; }
  .stay-guide { min-height: 0; }
  .stay-day { height: 37px; }
}
