/* Maine Stays guidebooks — Choose your bed layout (ms-beds-v1, 9 November 2026). Uses each guide's own tokens. */
.msb-card { margin: 0.4rem 0.9rem 1rem; padding: 1.05rem 1.1rem 1.15rem; border-radius: var(--radius-lg, 24px);
  background: linear-gradient(160deg, rgba(129,236,255,0.09), rgba(255,255,255,0.03) 60%);
  border: 1px solid var(--glass-border, rgba(129,236,255,0.14)); }
@media (min-width: 900px) { .msb-card { max-width: 760px; } }
.msb-card-top, .msb-kick { display: flex; align-items: center; gap: 0.45rem; color: var(--gold, #81ecff);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.msb-card-top .material-symbols-outlined, .msb-kick .material-symbols-outlined { font-size: 1.15rem; }
.msb-card-title { font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.3rem; color: var(--text-primary, #fff);
  margin: 0.4rem 0 0.3rem; letter-spacing: -0.01em; }
.msb-card-text { font-size: 0.86rem; line-height: 1.5; color: var(--text-secondary, #a3aac4); margin: 0 0 0.85rem; }
.msb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.6rem 1.15rem;
  border-radius: 999px; border: 1px solid rgba(129,236,255,0.45); background: var(--gold, #81ecff); color: #04101f;
  font: 700 0.9rem var(--font-body, sans-serif); cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.msb-btn:hover { box-shadow: 0 0 24px rgba(129,236,255,0.35); }
.msb-btn:active { transform: scale(0.98); }
.msb-btn .material-symbols-outlined { font-size: 1.1rem; }
.msb-btn[disabled] { opacity: 0.6; cursor: progress; }
.msb-nav .nav-icon .material-symbols-outlined { font-size: 1.2rem; }
.msb-nav { color: var(--gold, #81ecff) !important; }

/* the sheet: a bottom sheet on a phone, a centred panel on a desk */
html.msb-lock, html.msb-lock body { overflow: hidden; }
.msb-sheet { position: fixed; inset: 0; z-index: 10050; display: none; align-items: flex-end; justify-content: center;
  background: rgba(2,6,16,0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.msb-sheet.msb-on { display: flex; }
.msb-panel { width: 100%; max-height: 94vh; max-height: 94dvh; display: flex; flex-direction: column; background: var(--dark-surface, #0f1930);
  border: 1px solid var(--glass-border, rgba(129,236,255,0.14)); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.45);
  animation: msbUp .26s cubic-bezier(.2,.8,.2,1); }
@keyframes msbUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .msb-sheet { align-items: center; } .msb-panel { max-width: 640px; border-radius: 22px; max-height: 88vh; } }
@media (prefers-reduced-motion: reduce) { .msb-panel { animation: none; } }
.msb-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.15rem 0.8rem;
  border-bottom: 1px solid var(--stroke, rgba(255,255,255,0.1)); }
.msb-panel-head h2 { font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.35rem; color: var(--text-primary, #fff); margin: 0.3rem 0 0; }
.msb-x { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--stroke, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.04); color: var(--text-primary, #fff); cursor: pointer; display: grid; place-items: center; }
.msb-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0.9rem 1.15rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
.msb-lead { font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary, #a3aac4); margin: 0 0 0.7rem; }
.msb-late { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8rem; line-height: 1.45; color: var(--text-secondary, #a3aac4);
  padding: 0.7rem 0.8rem; border-radius: 12px; background: rgba(77,159,255,0.08); border: 1px solid rgba(77,159,255,0.28); margin: 0 0 1rem; }
.msb-late .material-symbols-outlined { font-size: 1.05rem; color: var(--accent, #4D9FFF); margin-top: 1px; }
.msb-h { font-family: var(--font-display, sans-serif); font-size: 0.95rem; font-weight: 800; color: var(--text-primary, #fff); margin: 1.1rem 0 0.5rem; }
.msb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.msb-full { grid-column: 1 / -1; }
.msb-fld { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.2rem; }
.msb-fld label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary, #a3aac4); }
.msb-opt-l { font-weight: 400; color: var(--text-muted, #6d758c); }
.msb-fld input, .msb-fld textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0.7rem 0.8rem; border-radius: 12px;
  border: 1px solid var(--stroke, rgba(255,255,255,0.14)); background: rgba(6,14,32,0.7); color: var(--text-primary, #fff);
  font: 400 16px var(--font-body, sans-serif); color-scheme: dark; }
.msb-fld textarea { resize: vertical; min-height: 84px; }
.msb-fld input:focus, .msb-fld textarea:focus { outline: none; border-color: rgba(129,236,255,0.6); box-shadow: 0 0 0 3px rgba(129,236,255,0.15); }
.msb-room { border: 1px solid var(--stroke, rgba(255,255,255,0.1)); border-radius: 14px; padding: 0.75rem 0.8rem 0.8rem; margin: 0 0 0.6rem; background: rgba(255,255,255,0.025); min-width: 0; }
.msb-room-head { display: flex; align-items: baseline; gap: 0.5rem; padding: 0; margin-bottom: 0.55rem; }
/* a legend sits on its fieldset's border by default: float it inside the box */
legend.msb-room-head { float: left; width: 100%; }
.msb-room > legend + * { clear: both; }
.msb-room-name { font-weight: 700; font-size: 0.92rem; color: var(--text-primary, #fff); }
.msb-room-hint { font-size: 0.72rem; color: var(--text-muted, #6d758c); }
.msb-opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.msb-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.msb-opt { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--stroke, rgba(255,255,255,0.16)); background: rgba(6,14,32,0.55); color: var(--text-primary, #fff);
  font-size: 0.86rem; transition: background .15s ease, border-color .15s ease; }
.msb-opt-np { color: var(--text-secondary, #a3aac4); }
.msb-radio:checked + .msb-opt { background: rgba(129,236,255,0.16); border-color: var(--gold, #81ecff); color: #fff; box-shadow: inset 0 0 0 1px var(--gold, #81ecff); }
.msb-radio:focus-visible + .msb-opt { outline: 2px solid var(--gold, #81ecff); outline-offset: 2px; }
.msb-fixed-text { display: flex; align-items: center; gap: 0.4rem; font-size: 0.86rem; color: var(--text-primary, #fff); }
.msb-fixed-text span:last-child { color: var(--text-muted, #6d758c); }
.msb-fixed-text .material-symbols-outlined { font-size: 1.05rem; color: var(--gold, #81ecff); }
.msb-small { display: flex; gap: 0.4rem; align-items: flex-start; font-size: 0.76rem; line-height: 1.45; color: var(--text-muted, #8a92aa); margin: 0.45rem 0 0.7rem; }
.msb-small .material-symbols-outlined { font-size: 0.95rem; margin-top: 1px; }
.msb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msb-err { margin: 0.6rem 0 0; padding: 0.65rem 0.8rem; border-radius: 12px; font-size: 0.84rem; color: #ffd0d0; background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.3); }
.msb-foot { margin-top: 0.9rem; }
.msb-send { width: 100%; }
.msb-busy { position: relative; color: transparent !important; }
.msb-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #04101f; border-right-color: transparent; animation: msbSpin .7s linear infinite; }
@keyframes msbSpin { to { transform: rotate(360deg); } }
.msb-done { text-align: center; padding: 0.6rem 0 0.4rem; }
.msb-done > .material-symbols-outlined { font-size: 2.6rem; color: var(--gold, #81ecff); }
.msb-done h3 { font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.2rem; color: var(--text-primary, #fff); margin: 0.4rem 0 0.2rem; }
.msb-done .msb-small, .msb-done .msb-late { justify-content: center; text-align: left; }
.msb-list { list-style: none; padding: 0.7rem 0.9rem; margin: 0.6rem 0 0.8rem; text-align: left; border-radius: 12px; background: rgba(6,14,32,0.55);
  border: 1px solid var(--stroke, rgba(255,255,255,0.1)); font-size: 0.88rem; color: var(--text-secondary, #a3aac4); }
.msb-list li { padding: 0.25rem 0; }
.msb-list b { color: var(--text-primary, #fff); font-weight: 600; }
@media (max-width: 420px) { .msb-row2 { grid-template-columns: 1fr; } }
