#room-app { min-height: 100%; background: #f3efe6; color: #1e2927; }
.room-page { width: 100%; min-height: 100svh; max-width: 680px; margin: 0 auto; padding: max(18px,env(safe-area-inset-top)) 20px max(32px,env(safe-area-inset-bottom)); overflow: auto; }
.room-header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid rgba(30,41,39,.18); }
.room-header .brand { font-size: 14px; letter-spacing: -.03em; }
.room-header > span:last-child,.room-heading > span { color: #63706c; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.room-intro { padding: 40px 0 28px; }
.room-intro h1,.room-recovery h1 { margin: 12px 0 8px; font-size: clamp(38px,11vw,58px); line-height: .96; letter-spacing: -.065em; }
.room-when { margin: 0 0 10px; font-size: 18px; color: #4c5b57; }
.room-updated,.room-fine { margin: 8px 0 0; color: #687571; font-size: 13px; line-height: 1.5; }
.room-live { display: inline-flex; align-items: center; gap: 8px; color: #23634e; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.room-live i { width: 8px; height: 8px; border-radius: 50%; background: #2f7e63; box-shadow: 0 0 0 5px rgba(47,126,99,.12); }
.room-live.room-stale { color: #8b5f1b; }
.room-live.room-stale i { background: #b67c24; box-shadow: 0 0 0 5px rgba(182,124,36,.14); }
.room-status { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -20px; padding: 22px 20px; color: #f8f5ed; background: #1f3b35; }
.room-status > div { display: flex; flex-direction: column; gap: 7px; }
.room-status > div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.2); }
.room-status span { color: #bbc9c5; font-size: 12px; }
.room-status strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.room-status i { color: #d7a94e; font-style: normal; font-weight: 400; }
.room-section { padding: 30px 0; border-bottom: 1px solid rgba(30,41,39,.16); }
.room-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.room-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.room-facts { margin: 0; }
.room-facts > div,.room-money-list li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(30,41,39,.1); }
.room-facts dt { color: #687571; }
.room-facts dd { max-width: 62%; margin: 0; font-weight: 700; text-align: right; }
.room-roster,.room-money-list,.room-settlement-list { margin: 0; padding: 0; list-style: none; }
.room-roster li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; min-height: 52px; border-top: 1px solid rgba(30,41,39,.1); }
.room-roster li > span { color: #9b7940; font-size: 12px; font-weight: 800; }
.room-roster li > strong { font-size: 17px; }
.room-roster li > small { color: #687571; }
.room-roster .room-left > strong { color: #687571; text-decoration: line-through; text-decoration-thickness: 1px; }
.room-total { display: block; margin: 6px 0 18px; font-size: 42px; letter-spacing: -.055em; }
.room-money-list li { flex-direction: column; gap: 3px; }
.room-money-list li > strong { font-size: 15px; }
.room-settlement-list li { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(30,41,39,.1); }
.room-settlement-list li > div { display: flex; flex-direction: column; gap: 3px; }
.room-settlement-list li > div:last-child { text-align: right; }
.room-settlement-list span,.room-settlement-list small { color: #687571; font-size: 12px; }
.room-settlement-total { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 0; }
.room-settlement-total span { display: flex; flex-direction: column; gap: 4px; color: #687571; font-size: 12px; }
.room-settlement-total strong { color: #1e2927; font-size: 20px; }
.room-reconnect { margin: 22px 0 0; padding: 18px; border: 1px solid rgba(139,95,27,.35); background: #fff8e8; }
.room-reconnect p { margin: 0 0 12px; line-height: 1.45; }
.room-footer { padding: 26px 0 8px; color: #687571; font-size: 13px; line-height: 1.5; }
.room-footer p { margin: 0 0 10px; }
.room-primary,.room-secondary { width: 100%; min-height: 52px; margin-top: 10px; border: 0; border-radius: 3px; font: inherit; font-weight: 800; }
.room-primary { color: #fff; background: #b46632; }
.room-secondary { color: inherit; border: 1px solid rgba(30,41,39,.28); background: transparent; }
.room-recovery-copy { padding: 22vh 0 0; }
.room-recovery-copy p { color: #687571; line-height: 1.55; }
.room-eyebrow { color: #9b7940; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) {
  body:not([data-theme]) #room-app { background: #171d1d; color: #eef0eb; }
  body:not([data-theme]) .room-header,body:not([data-theme]) .room-section { border-color: rgba(238,240,235,.14); }
  body:not([data-theme]) .room-header > span:last-child,body:not([data-theme]) .room-heading > span,body:not([data-theme]) .room-updated,body:not([data-theme]) .room-fine,body:not([data-theme]) .room-when,body:not([data-theme]) .room-facts dt,body:not([data-theme]) .room-roster li > small,body:not([data-theme]) .room-settlement-list span,body:not([data-theme]) .room-settlement-list small,body:not([data-theme]) .room-footer,body:not([data-theme]) .room-recovery-copy p { color: #a8b2ae; }
  body:not([data-theme]) .room-facts > div,body:not([data-theme]) .room-money-list li,body:not([data-theme]) .room-roster li,body:not([data-theme]) .room-settlement-list li { border-color: rgba(238,240,235,.12); }
  body:not([data-theme]) .room-settlement-total strong { color: #eef0eb; }
  body:not([data-theme]) .room-secondary { color: #eef0eb; border-color: rgba(238,240,235,.3); }
  body:not([data-theme]) .room-reconnect { color: #f1e4c9; border-color: rgba(216,170,83,.38); background: #2c281f; }
}
@media (min-width: 681px) { .room-status { margin-inline: 0; border-radius: 4px; } }
@media (prefers-reduced-motion: no-preference) { .room-page { animation: room-enter .24s ease-out both; } .room-live i { animation: room-pulse 2s ease-in-out infinite; } }
@keyframes room-enter { from { opacity: 0; transform: translateY(5px); } }
@keyframes room-pulse { 50% { box-shadow: 0 0 0 8px rgba(47,126,99,0); } }
