/* =========================================================
   Stay Tonight V1
   正文、状态栏与首条欢迎界面 CSS
   直接粘贴到角色卡／聊天前端的内置 CSS 区域
   ========================================================= */

stay-tonight,
stay-tonight-intro,
main-story,
trip-dashboard,
household-status,
target-status,
new-discoveries,
state-update {
  display: block;
}

stay-tonight,
stay-tonight-intro {
  --st-accent: #f05a6f;
  --st-accent-deep: #d8445b;
  --st-accent-soft: #fff0f2;
  --st-peach: #f3a36c;
  --st-peach-soft: #fff4ec;
  --st-ink: #282525;
  --st-muted: #777173;
  --st-line: #eadfe1;
  --st-surface: #fffdfd;
  --st-surface-soft: #f8f5f5;
  --st-slate: #576171;
  --st-slate-soft: #eff1f4;
  --st-success: #538c76;
  --st-warning: #bb7048;
  --st-danger: #a94d55;
  --st-shadow: 0 12px 34px rgba(70, 43, 48, 0.10);
  --st-shadow-soft: 0 6px 18px rgba(70, 43, 48, 0.07);
  --st-radius-xl: 26px;
  --st-radius-lg: 20px;
  --st-radius-md: 15px;
  --st-radius-sm: 11px;

  width: min(100%, 1040px);
  margin: 14px auto;
  color: var(--st-ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.72;
  text-align: left;
  box-sizing: border-box;
  min-width: 0;
  container-type: inline-size;
}

stay-tonight *,
stay-tonight-intro * {
  box-sizing: border-box;
}

stay-tonight p,
stay-tonight h1,
stay-tonight h2,
stay-tonight h3,
stay-tonight h4,
stay-tonight dl,
stay-tonight dd,
stay-tonight-intro p,
stay-tonight-intro h1,
stay-tonight-intro h2,
stay-tonight-intro h3 {
  margin-top: 0;
}

/* ---------- 通用卡片 ---------- */

stay-tonight .st-card,
stay-tonight-intro .st-card {
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-xl);
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
}

stay-tonight .st-section-label {
  color: var(--st-accent-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

stay-tonight .st-section-title {
  margin: 3px 0 0;
  color: var(--st-ink);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* =========================================================
   正文
   ========================================================= */

stay-tonight main-story {
  margin-bottom: 16px;
}

stay-tonight .st-story-card {
  position: relative;
  padding: 28px 30px 30px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 245, 246, 0.62), rgba(255, 255, 255, 0) 112px),
    var(--st-surface);
  box-shadow: var(--st-shadow);
}

stay-tonight .st-story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 92px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--st-accent), var(--st-peach));
}

stay-tonight .st-story-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 21px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--st-line);
}

stay-tonight .st-story-location {
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

stay-tonight .st-story {
  color: #373233;
  font-size: 15.5px;
  line-height: 1.92;
  letter-spacing: 0.012em;
}

stay-tonight .st-story p {
  margin-bottom: 1.08em;
}

stay-tonight .st-story p:last-child {
  margin-bottom: 0;
}

stay-tonight .st-story .st-dialogue {
  padding-left: 16px;
  border-left: 3px solid #f3c0c8;
}

/* =========================================================
   旅程仪表盘
   ========================================================= */

stay-tonight trip-dashboard {
  margin-bottom: 16px;
}

stay-tonight .st-dashboard {
  padding: 24px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-xl);
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
}

stay-tonight .st-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 17px;
}

stay-tonight .st-brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

stay-tonight .st-brand-mark,
stay-tonight-intro .st-brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: none;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--st-accent), #f47b75);
  box-shadow: 0 7px 18px rgba(240, 90, 111, 0.25);
  font-size: 18px;
  font-weight: 900;
}

stay-tonight .st-brand-name {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

stay-tonight .st-brand-sub {
  margin-top: -2px;
  color: var(--st-muted);
  font-size: 11px;
}

stay-tonight .st-day-badge {
  flex: none;
  padding: 8px 13px;
  border: 1px solid #f2d8dc;
  border-radius: 999px;
  color: var(--st-accent-deep);
  background: var(--st-accent-soft);
  font-size: 12px;
  font-weight: 800;
}

stay-tonight .st-quick-info {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 10px;
  margin-bottom: 14px;
}

stay-tonight .st-info-chip {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #eee6e7;
  border-radius: var(--st-radius-sm);
  background: var(--st-surface-soft);
}

stay-tonight .st-info-chip span {
  display: block;
  color: var(--st-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

stay-tonight .st-info-chip strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

stay-tonight .st-core-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

stay-tonight .st-core-card {
  position: relative;
  min-height: 142px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--st-radius-md);
}

stay-tonight .st-core-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 82px;
  height: 82px;
  border: 18px solid rgba(255,255,255,0.28);
  border-radius: 50%;
}

stay-tonight .st-core-card.st-trip {
  color: #692d37;
  border-color: #f5cfd5;
  background: linear-gradient(145deg, #ffe8ec, #fff5f6);
}

stay-tonight .st-core-card.st-atmosphere {
  color: #754126;
  border-color: #f3dac8;
  background: linear-gradient(145deg, #ffecde, #fff7f1);
}

stay-tonight .st-core-card.st-opportunity {
  color: #733650;
  border-color: #efcddd;
  background: linear-gradient(145deg, #fbe4ef, #fff4f8);
}

stay-tonight .st-core-card.st-boundary {
  color: #fff;
  border-color: #667180;
  background: linear-gradient(145deg, #4f5968, #727d8c);
}

stay-tonight .st-core-label {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

stay-tonight .st-core-value {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

stay-tonight .st-core-note {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.48;
  opacity: 0.83;
}

stay-tonight .st-core-card progress {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  appearance: none;
  -webkit-appearance: none;
}

stay-tonight .st-core-card progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
}

stay-tonight .st-core-card progress::-webkit-progress-value {
  border-radius: 999px;
  background: currentColor;
}

stay-tonight .st-core-card progress::-moz-progress-bar {
  border-radius: 999px;
  background: currentColor;
}

/* =========================================================
   住宿成员
   ========================================================= */

stay-tonight household-status {
  margin-bottom: 16px;
}

stay-tonight .st-household {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 22px 24px 24px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-xl);
  background: var(--st-surface);
  box-shadow: var(--st-shadow-soft);
}

stay-tonight .st-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

stay-tonight .st-section-caption {
  color: var(--st-muted);
  font-size: 11px;
}

stay-tonight .st-household-grid {
  display: grid;
  gap: 9px;
}

stay-tonight .st-member-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.22fr);
  gap: 11px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid #eee7e8;
  border-radius: 13px;
  background: var(--st-surface-soft);
}

stay-tonight .st-member-name {
  color: var(--st-ink);
  font-size: 14px;
  font-weight: 850;
}

stay-tonight .st-gender {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--st-accent-deep);
  background: var(--st-accent-soft);
  font-size: 10px;
  font-weight: 850;
  vertical-align: 1px;
}

stay-tonight .st-gender.st-male {
  color: #53677b;
  background: #eaf0f5;
}

stay-tonight .st-member-row > div,
stay-tonight .st-member-cell {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #514b4c;
  font-size: 12px;
}

stay-tonight .st-member-cell small {
  display: block;
  color: var(--st-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

/* =========================================================
   重点成员卡
   ========================================================= */

stay-tonight target-status {
  margin-bottom: 16px;
}

stay-tonight .st-target {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-xl);
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
}

stay-tonight .st-target-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 21px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(255,255,255,0.19), transparent 170px),
    linear-gradient(120deg, var(--st-accent), #e47677 60%, var(--st-peach));
}

stay-tonight .st-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid rgba(255,255,255,0.48);
  border-radius: 18px;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
  font-size: 22px;
  font-weight: 900;
}

stay-tonight .st-target-ident {
  min-width: 0;
  flex: 1;
}

stay-tonight .st-target-name {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

stay-tonight .st-target-meta {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.86;
}

stay-tonight .st-stage-badge {
  flex: none;
  max-width: 180px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

stay-tonight .st-target-body {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 22px 24px 24px;
}

stay-tonight .st-current-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 17px;
}

stay-tonight .st-current-item {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #eee7e8;
  border-radius: 12px;
  background: var(--st-surface-soft);
}

stay-tonight .st-current-item.st-wide {
  grid-column: 1 / -1;
}

stay-tonight .st-current-item span {
  display: block;
  color: var(--st-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

stay-tonight .st-current-item strong {
  display: block;
  margin-top: 3px;
  color: #494344;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.55;
}

stay-tonight .st-stats {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 17px;
}

stay-tonight .st-stat {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 5px 8px;
  padding: 12px;
  border: 1px solid #eee7e8;
  border-radius: 13px;
  background: #fff;
}

stay-tonight .st-stat-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

stay-tonight .st-stat-name {
  color: var(--st-muted);
  font-size: 10px;
  font-weight: 850;
}

stay-tonight .st-stat-value {
  font-size: 15px;
  font-weight: 900;
}

stay-tonight .st-stat progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #f0ebec;
  appearance: none;
  -webkit-appearance: none;
}

stay-tonight .st-stat progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #f0ebec;
}

stay-tonight .st-stat progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--stat-color, var(--st-accent));
}

stay-tonight .st-stat progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--stat-color, var(--st-accent));
}

stay-tonight .st-goodwill { --stat-color: #ed7888; }
stay-tonight .st-trust { --stat-color: #d69059; }
stay-tonight .st-attraction { --stat-color: #d5537e; }
stay-tonight .st-comfort { --stat-color: #5f9d83; }
stay-tonight .st-pressure { --stat-color: #c7764d; }
stay-tonight .st-suspicion { --stat-color: #687585; }

stay-tonight .st-private {
  overflow: hidden;
  border: 1px solid #e9dfe1;
  border-radius: 15px;
  background: #fffafa;
}

stay-tonight .st-private summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 15px;
  color: var(--st-accent-deep);
  background: linear-gradient(90deg, #fff0f2, #fff8f4);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

stay-tonight .st-private summary::-webkit-details-marker {
  display: none;
}

stay-tonight .st-private summary::after {
  content: "＋";
  font-size: 16px;
  line-height: 1;
}

stay-tonight .st-private[open] summary::after {
  content: "－";
}

stay-tonight .st-private summary small {
  color: var(--st-muted);
  font-size: 9px;
  font-weight: 700;
}

stay-tonight .st-private-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 13px;
}

stay-tonight .st-private-item {
  padding: 10px 11px;
  border: 1px solid #eee6e8;
  border-radius: 11px;
  background: #fff;
}

stay-tonight .st-private-item.st-wide {
  grid-column: 1 / -1;
}

stay-tonight .st-private-item span {
  display: block;
  margin-bottom: 3px;
  color: var(--st-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

stay-tonight .st-private-item p {
  margin: 0;
  color: #4f4849;
  font-size: 11.5px;
  line-height: 1.58;
}

/* =========================================================
   新发现
   ========================================================= */

stay-tonight new-discoveries {
  margin-bottom: 16px;
}

stay-tonight .st-discoveries {
  padding: 19px 22px;
  border: 1px solid #f0d7da;
  border-radius: var(--st-radius-lg);
  background:
    linear-gradient(120deg, rgba(255,239,241,0.82), rgba(255,248,241,0.84));
  box-shadow: var(--st-shadow-soft);
}

stay-tonight .st-discoveries ul {
  margin: 10px 0 0;
  padding-left: 1.25em;
}

stay-tonight .st-discoveries li {
  margin: 5px 0;
  color: #504849;
  font-size: 12.5px;
}

/* 隐藏存档：保留在消息源码和上下文中，但不在界面显示 */
stay-tonight state-update {
  display: none !important;
}

/* =========================================================
   第一条欢迎消息
   ========================================================= */

stay-tonight-intro {
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-xl);
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
}

stay-tonight-intro > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  padding: 0 25px;
  border-bottom: 1px solid var(--st-line);
  background: rgba(255,255,255,0.95);
}

stay-tonight-intro .st-brand {
  color: var(--st-accent);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

stay-tonight-intro .st-tagline {
  color: var(--st-muted);
  font-size: 11px;
  font-weight: 700;
}

stay-tonight-intro .st-welcome {
  padding: 38px 28px 32px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,0.26), transparent 180px),
    linear-gradient(135deg, #f15d72, #ed7a77 58%, #f0a06a);
  color: #fff;
}

stay-tonight-intro .st-kicker {
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

stay-tonight-intro .st-welcome h1 {
  max-width: 680px;
  margin-bottom: 13px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

stay-tonight-intro .st-welcome p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.75;
  opacity: 0.92;
}

stay-tonight-intro .st-start-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 24px 10px;
}

stay-tonight-intro .st-guide-item {
  min-height: 98px;
  padding: 15px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  background: var(--st-surface-soft);
}

stay-tonight-intro .st-guide-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--st-ink);
  font-size: 12px;
}

stay-tonight-intro .st-guide-item span {
  color: var(--st-muted);
  font-size: 11px;
  line-height: 1.55;
}

stay-tonight-intro .st-input-callout {
  margin: 12px 24px 23px;
  padding: 18px;
  border: 1px solid #f2ccd2;
  border-radius: var(--st-radius-lg);
  background: var(--st-accent-soft);
}

stay-tonight-intro .st-input-title {
  color: var(--st-accent-deep);
  font-size: 14px;
  font-weight: 850;
}

stay-tonight-intro .st-input-callout p {
  margin: 5px 0 11px;
  color: #655b5d;
  font-size: 11.5px;
}

stay-tonight-intro .st-input-example {
  padding: 12px 14px;
  border: 1px dashed #e6aeb6;
  border-radius: 11px;
  color: #a5606a;
  background: rgba(255,255,255,0.62);
  font-size: 11px;
  font-weight: 750;
}

stay-tonight-intro > footer {
  padding: 0 24px 21px;
  color: var(--st-muted);
  font-size: 10px;
  text-align: center;
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 880px) {
  stay-tonight .st-core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  stay-tonight .st-member-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  stay-tonight .st-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  stay-tonight,
  stay-tonight-intro {
    margin: 10px auto;
    font-size: 14px;
  }

  stay-tonight .st-story-card,
  stay-tonight .st-dashboard,
  stay-tonight .st-household,
  stay-tonight .st-target-body {
    padding: 18px;
  }

  stay-tonight .st-story-head,
  stay-tonight .st-dashboard-head,
  stay-tonight .st-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  stay-tonight .st-story-location {
    text-align: left;
  }

  stay-tonight .st-quick-info,
  stay-tonight .st-current-grid,
  stay-tonight .st-private-grid {
    grid-template-columns: 1fr;
  }

  stay-tonight .st-current-item.st-wide,
  stay-tonight .st-private-item.st-wide {
    grid-column: auto;
  }

  stay-tonight .st-core-grid,
  stay-tonight .st-stats,
  stay-tonight .st-member-row {
    grid-template-columns: 1fr;
  }

  stay-tonight .st-core-card {
    min-height: 124px;
  }

  stay-tonight .st-target-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }

  stay-tonight .st-stage-badge {
    width: 100%;
    max-width: none;
  }

  stay-tonight-intro > header {
    padding: 0 18px;
  }

  stay-tonight-intro .st-welcome {
    padding: 29px 20px 25px;
  }

  stay-tonight-intro .st-start-guide {
    grid-template-columns: 1fr;
    padding: 18px 18px 8px;
  }

  stay-tonight-intro .st-guide-item {
    min-height: auto;
  }

  stay-tonight-intro .st-input-callout {
    margin: 10px 18px 18px;
  }
}
/* ---------- V1.3.3 容器宽度与简化状态结构补丁 ---------- */

stay-tonight .st-stat > .st-stat-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

stay-tonight .st-stat > .st-stat-value {
  justify-self: end;
}

stay-tonight .st-stat > progress {
  grid-column: 1 / -1;
}

stay-tonight .st-stat .st-stat-top {
  grid-column: 1 / -1;
}

stay-tonight .st-private-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  color: var(--st-accent-deep);
  background: linear-gradient(90deg, #fff0f2, #fff8f4);
  font-size: 12px;
  font-weight: 850;
}

stay-tonight .st-private-header small {
  color: var(--st-muted);
  font-size: 9px;
  font-weight: 700;
}

stay-tonight pre,
stay-tonight code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@container (max-width: 680px) {
  stay-tonight .st-member-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  stay-tonight .st-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  stay-tonight .st-stage-badge {
    max-width: 44%;
    white-space: normal;
  }
}

@container (max-width: 500px) {
  stay-tonight .st-quick-info,
  stay-tonight .st-current-grid,
  stay-tonight .st-private-grid {
    grid-template-columns: 1fr;
  }

  stay-tonight .st-current-item.st-wide,
  stay-tonight .st-private-item.st-wide {
    grid-column: auto;
  }

  stay-tonight .st-target-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  stay-tonight .st-stage-badge {
    width: 100%;
    max-width: none;
  }
}

@container (max-width: 390px) {
  stay-tonight .st-member-row,
  stay-tonight .st-stats {
    grid-template-columns: 1fr;
  }
}