/**
 * MyStay — guest portal, in the room service's style.
 *
 * Tokens and patterns are fnb.parkotels.com's (RoomService entry.css and
 * guest.css): the hotel's colour pair (--v-* printed by portal.php from the
 * same derivation the room service uses), Marcellus over Readex Pro, the brand
 * header with its rounded bottom, the uppercase wordmark, the gold pills, the
 * door-plate room field and the gold button. A guest who goes from MyStay to
 * the room service stays in one world.
 *
 * 2.2.0: requests to the team (« Chambre 1207 », Services, the request sheets
 * and their follow-up), every tone computed by the server (no color-mix()),
 * the night colours of the phone's dark mode, 16 px text and 44 px targets,
 * short screens, landscape and the notch's sides, and the fixes of the
 * critique (tile icons, contrasts, Readex Pro digits).
 */

:root {
  /* Every tone comes from the server (MyStay_Hotels::design_palette); the fallbacks are Room Service's default pair. */
  --brand: var(--v-brand, #1b1f2d);
  --brand-ink: #f8f5ee;
  --brand-muted: var(--v-bmuted, #c4c5cb);
  --brand-card: var(--brand);
  --gold: var(--v-acc, #d8bb86);
  --gold-ink: var(--v-ink, #87672f);
  --on-gold: var(--v-on, #1b1f2d);
  --gold-soft: var(--v-soft, rgba(216, 187, 134, .2));
  --gold-tint: var(--v-tint, rgba(216, 187, 134, .09));
  --gold-edge: var(--v-edge, rgba(216, 187, 134, .45));
  --soon-ink: var(--v-soon, #6c5225);
  --surface: #ffffff;
  --surface-2: var(--v-s2, #f3f3f6);
  --ink: #17152b;
  --muted: #5f5c72;
  --line: var(--v-line, #e0e0e7);
  --line-strong: var(--v-line2, #8f8d9c);
  --ok: #2c8a57;
  --ok-ink: #1d6a42;
  --ok-soft: rgba(44, 138, 87, .14);
  --wait: #a15c07;
  --wait-ink: #7a4604;
  --wait-soft: rgba(161, 92, 7, .14);
  --danger: #b3243a;
  --danger-soft: rgba(179, 36, 58, .12);
  --tabs: var(--surface);
  --scrim: rgba(10, 8, 30, .55);
  --switch-off: #8a8798;
  --f-display: "Marcellus", "Readex Pro", Georgia, serif;
  --f-text: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --ease-out: cubic-bezier(.2, .9, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.45, .45, 1);
  /* The page's sides: 20 px, more under a notch in landscape. */
  --side-l: calc(20px + env(safe-area-inset-left, 0px));
  --side-r: calc(20px + env(safe-area-inset-right, 0px));
  /* The splash page at the root still reads these two. */
  --ms-font-body: var(--f-text);
  --ms-font-display: var(--f-display);
  color-scheme: light;
}
html[lang="zh"] {
  --f-display: "Marcellus", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", serif;
  --f-text: "Readex Pro", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[lang="ko"] {
  --f-display: "Marcellus", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  --f-text: "Readex Pro", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ------------------------------------------------------------------ base */

body.ms-body {
  margin: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--f-text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.ms-app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  container: ms-app / inline-size;
}
.ms-app *,
.ms-app *::before,
.ms-app *::after,
.ms-layer *,
.ms-layer *::before,
.ms-layer *::after { box-sizing: border-box; }
:where(.ms-app, .ms-layer) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:where(.ms-app, .ms-layer) :where(ul, ol) { padding: 0; list-style: none; }
:where(.ms-app, .ms-layer) a { color: inherit; text-decoration: none; }
:where(.ms-app, .ms-layer) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.ms-app :focus-visible, .ms-layer :focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.ms-app [tabindex="-1"]:focus, .ms-layer [tabindex="-1"]:focus { outline: none; }
.ms-app svg, .ms-layer svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ms-i { width: 22px; height: 22px; }
.ms-i-s { width: 18px; height: 18px; }
[dir="rtl"] .ms-flip { transform: scaleX(-1); }
.ms-num { font-variant-numeric: tabular-nums; }
.ms-ltr { direction: ltr; unicode-bidi: isolate; }
.ms-noscript { padding: 24px; font-family: system-ui, sans-serif; }
.ms-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ms-view { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.ms-view[hidden] { display: none; }
.ms-view > * { flex-shrink: 0; }

/* ------------------------------------------------- header (fnb's hero) */

.ms-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--brand);
  color: var(--brand-ink);
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--side-r) 26px var(--side-l);
  border-end-start-radius: 28px;
  border-end-end-radius: 28px;
}
.ms-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, var(--gold-soft) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: ms-sweep 1.8s .9s var(--ease-out) both;
}
@keyframes ms-sweep { to { transform: translateX(120%); } }
.ms-hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 22px; }
.ms-wordmark { min-width: 0; font-family: "Marcellus", Georgia, serif; font-size: 19px; font-size: clamp(15px, 5.2cqw, 19px); letter-spacing: .13em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
[dir="rtl"] .ms-wordmark { font-size: 14.5px; letter-spacing: .1em; }
.ms-wm-below { position: relative; margin-block: -12px 20px; font-size: 10.5px; letter-spacing: .2em; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.ms-hero-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ms-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 32px;
  border: 1px solid var(--gold-edge);
  border-radius: 999px;
  padding: 0 11px;
  font-size: 13px;
  color: var(--brand-ink);
  background: rgba(255, 255, 255, .05);
  white-space: nowrap;
}
.ms-pill svg { width: 14px; height: 14px; stroke: var(--gold); }
.ms-pill b { font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
button.ms-pill { color: var(--brand-ink); min-height: 44px; padding: 0 10px; }
.ms-pill-lang { border-color: rgba(248, 245, 238, .2); }
.ms-pill.is-static { border-color: transparent; background: none; padding-inline: 0; color: var(--brand-muted); }
.ms-hero-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; align-items: end; }
.ms-greet { margin-block-end: 4px; font-size: 15px; color: var(--gold); }
.ms-title { margin-block-end: 10px; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 8.6vw, 36px); line-height: 1.1; color: var(--brand-ink); }
.ms-sub { font-size: 14px; line-height: 1.55; color: var(--brand-muted); }
.ms-emblem { width: 92px; height: 74px; overflow: visible; stroke: var(--gold); }
.ms-emblem .draw { stroke-dasharray: 280; animation: ms-draw 1.3s .2s var(--ease-out) both; }
@keyframes ms-draw { from { stroke-dashoffset: 280; } }
[dir="rtl"] .ms-emblem { transform: scaleX(-1); }
.ms-rise { animation: ms-rise .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes ms-rise { from { opacity: .25; transform: translateY(14px); } }

/* --------------------------------------------------------------- content */

.ms-page { display: flex; flex-direction: column; gap: 28px; padding: 26px var(--side-r) 28px var(--side-l); }
.ms-sec { display: flex; flex-direction: column; gap: 12px; }
.ms-cap { font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .ms-cap, [dir="rtl"] .ms-wm-below { letter-spacing: 0; }
[dir="rtl"] .ms-cap { font-size: 13.5px; }
.ms-cap-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ms-cap-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ms-link { font-size: 14px; font-weight: 500; color: var(--gold-ink); }
.ms-cap-row .ms-link { padding-block: 12px; margin-block: -12px; }
.ms-disp { font-family: var(--f-display); font-weight: 400; }
.ms-small { font-size: 14px; color: var(--muted); }
.ms-text { font-size: 15.5px; }
.ms-center { text-align: center; }

.ms-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.ms-card-2 { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; }
.ms-card-pad { padding: 16px; }
.ms-brandcard { position: relative; overflow: hidden; display: block; background: var(--brand-card); color: var(--brand-ink); border-radius: 22px; }

/* room service card */
.ms-rs { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.ms-rs-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ms-rs-title { font-family: var(--f-display); font-size: 25px; line-height: 1.15; }
.ms-rs .ms-emblem { width: 76px; height: 60px; }
.ms-rs-note { font-size: 13px; color: var(--brand-muted); text-align: center; margin-top: -4px; }
a.ms-brandcard { color: var(--brand-ink); }

/* quick tiles */
.ms-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ms-tile { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 18px; min-height: 112px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); text-align: start; transition: transform .2s var(--ease-out); }
button.ms-tile { width: 100%; border: 1px solid var(--line); padding: 14px; }
.ms-tile:active { transform: scale(.98); }
.ms-ico { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--gold-ink); }
.ms-tile > div { min-width: 0; }
.ms-tile b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.15; }
/* The subtitle only: the icon's box is a span too (2.2.0, it lost its place and its gold). */
.ms-tile div span { display: block; font-size: 14px; color: var(--muted); }

/* list rows */
.ms-list { display: flex; flex-direction: column; }
.ms-li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; }
.ms-li + .ms-li { border-top: 1px solid var(--line); }
.ms-li-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ms-li-t b { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.ms-li-t span { font-size: 14px; color: var(--muted); }
.ms-li-end { font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--muted); }
.ms-hours { font-size: 15px; font-weight: 500; white-space: nowrap; min-width: 98px; direction: ltr; unicode-bidi: isolate; text-align: start; }
[dir="rtl"] .ms-hours { text-align: end; }
.ms-go { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-ink); flex: none; }

/* status pills */
.ms-st { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; flex: none; }
.ms-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ms-st-open { background: var(--ok-soft); color: var(--ok-ink); }
.ms-st-soon { background: var(--gold-soft); color: var(--soon-ink); }
.ms-st-closed { background: var(--surface-2); color: var(--muted); }
.ms-st-sent { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ms-st-taken { background: var(--gold-soft); color: var(--soon-ink); }
.ms-st-wait { background: var(--wait-soft); color: var(--wait-ink); }
.ms-st-done { background: var(--ok-soft); color: var(--ok-ink); }
.ms-st-off { background: var(--surface-2); color: var(--muted); }
.ms-st-bad, .ms-st-urgent { background: var(--danger-soft); color: var(--danger); }

/* today: weather and prayer */
.ms-today { display: flex; }
.ms-today > div { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px; min-width: 0; }
.ms-today > div + div { border-inline-start: 1px solid var(--line); }
/* Digits in Readex Pro: in Marcellus « 05:52 » read « O5:52 » (2.2.0). */
.ms-big { font-family: var(--f-text); font-weight: 300; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }

/* buttons */
.ms-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 20px;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--f-text);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 18px 40px -16px rgba(10, 8, 30, .6);
  transition: transform .2s, opacity .3s;
}
a.ms-cta, button.ms-cta { color: var(--on-gold); }
.ms-cta:active { transform: scale(.98); }
.ms-cta:disabled { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.ms-cta[aria-busy="true"] { opacity: .7; cursor: progress; }
.ms-cta-sm { min-height: 48px; border-radius: 16px; font-size: 15px; box-shadow: none; }
.ms-btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
button.ms-btn-line { border: 1px solid var(--line-strong); padding: 0 14px; }
.ms-btn-round { width: 44px; padding: 0 !important; border-radius: 999px; flex: none; }
.ms-wide { width: 100%; }
.ms-pin { position: sticky; bottom: 0; z-index: 5; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--surface) 72%, transparent); margin-top: auto; }
.ms-pin .ms-fine { margin-top: 8px; }

/* door plate (fnb's room field), its digits in Readex Pro (« 1207 » read « 12O7 » in Marcellus) */
.ms-plate {
  display: block;
  width: 100%;
  height: 84px;
  padding: 0 18px;
  padding-inline-start: calc(18px + .2em);
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: .2em;
  text-align: center;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ms-plate::placeholder { color: var(--muted); opacity: .8; font-size: 30px; letter-spacing: .16em; }
.ms-plate:focus { outline: none; border-color: var(--gold-ink); background: var(--surface); box-shadow: 0 0 0 4px var(--gold-soft); }
.ms-plate.is-bad { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.ms-shake { animation: ms-shake .4s; }
@keyframes ms-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ms-error { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 15px; }
.ms-error[hidden] { display: none; }

/* language pills (fnb's) */
.ms-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-lang { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px !important; border: 1px solid var(--line-strong) !important; border-radius: 999px; background: var(--surface) !important; font-size: 15px; font-weight: 500; color: var(--ink) !important; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-spring); }
.ms-lang:active { transform: scale(.95); }
.ms-lang[aria-pressed="true"] { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--on-gold) !important; }

/* the group's signature */
.ms-foot { display: grid; justify-items: center; gap: 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.ms-foot b { font-family: "Marcellus", Georgia, serif; font-weight: 400; font-size: 17px; letter-spacing: .28em; }
.ms-foot span { font-size: 10.5px; letter-spacing: .26em; color: var(--muted); }

/* form bits */
.ms-field { display: flex; flex-direction: column; gap: 8px; }
.ms-input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); font: inherit; font-size: 16px; }
textarea.ms-input { padding: 14px 16px; min-height: 92px; resize: vertical; line-height: 1.45; }
textarea.ms-input[rows="2"] { min-height: 76px; }
select.ms-input {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5c72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 16px center;
}
[dir="rtl"] select.ms-input { background-position: left 16px center; }
.ms-input::placeholder { color: var(--muted); opacity: .85; }
.ms-input:focus { outline: none; border-color: var(--gold-ink); background: var(--surface); box-shadow: 0 0 0 4px var(--gold-soft); }
.ms-input[aria-invalid="true"] { border-color: var(--danger); }
.ms-counter { font-size: 13px; color: var(--muted); text-align: end; }
.ms-field-err { margin: 0; font-size: 14px; font-weight: 500; color: var(--danger); }
.ms-field-err[hidden] { display: none; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px !important; border-radius: 999px; border: 1px solid var(--line-strong) !important; background: var(--surface) !important; font-size: 15px; color: var(--ink) !important; }
.ms-chip[aria-pressed="true"] { background: var(--brand) !important; border-color: var(--brand) !important; color: var(--brand-ink) !important; }
.ms-stars { display: flex; gap: 6px; }
.ms-star { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong) !important; background: var(--surface) !important; color: var(--line-strong) !important; }
.ms-star svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.ms-star.is-lit { background: var(--gold-soft) !important; border-color: var(--gold) !important; color: var(--gold-ink) !important; }
.ms-stars-v { gap: 8px; }
.ms-stars-v .ms-star { width: 48px; height: 48px; }
.ms-stars-v .ms-star svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.ms-stars-v .ms-star.is-lit svg { fill: currentColor; }
.ms-roomline { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.ms-roomline b { font-family: var(--f-text); font-weight: 600; font-size: 19px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ms-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px; text-align: center; }
.ms-done svg { width: 40px; height: 40px; stroke: var(--ok); }

.ms-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--brand); font-size: 15px; font-weight: 600; flex: none; direction: ltr; }
a.ms-tel { color: var(--brand-ink); }
.ms-tel svg { width: 16px; height: 16px; stroke: var(--gold); }
.ms-fine { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.ms-fine a, .ms-inline-link { color: var(--gold-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
button.ms-inline-link { display: inline; padding: 0; font: inherit; font-weight: 500; color: var(--gold-ink); text-decoration: underline; }
.ms-error .ms-inline-link { color: var(--danger); }

/* accordion */
.ms-acc-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px !important; text-align: start; }
.ms-acc-head .ms-li-t { flex: 1; }
.ms-acc-head > svg { transition: transform .25s; color: var(--gold-ink); }
.ms-acc.is-open .ms-acc-head > svg { transform: rotate(90deg); }
[dir="rtl"] .ms-acc.is-open .ms-acc-head > svg { transform: scaleX(-1) rotate(90deg); }
.ms-acc-body { padding: 0 16px 16px; font-size: 15px; color: var(--ink); white-space: pre-line; }
.ms-acc-body[hidden] { display: none; }

/* photos */
.ms-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ms-strip img { width: 100%; height: 92px; object-fit: cover; border-radius: 14px; display: block; background: var(--surface-2); }
.ms-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
.ms-gallery::-webkit-scrollbar { display: none; }
.ms-gallery img { flex: none; width: 78%; height: 200px; object-fit: cover; border-radius: 16px; scroll-snap-align: center; background: var(--surface-2); }
.ms-gallery img:only-child { width: 100%; }
.ms-pres { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.ms-pres p { margin: 0; }
.ms-pres img { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.ms-pres-photo { margin: 0; }

/* bottom tabs */
.ms-tabs { position: sticky; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin-top: auto; padding: 8px calc(8px + env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px)); background: var(--tabs); border-top: 1px solid var(--line); }
.ms-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px; padding-top: 4px; font-size: 12.5px; color: var(--muted); text-align: center; }
.ms-tab svg { width: 22px; height: 22px; }
.ms-tab[aria-current="page"] { color: var(--ink); font-weight: 500; }
.ms-tab[aria-current="page"] svg { stroke: var(--gold-ink); }
/* A request in progress: a dot on « Services » (Q9 A). */
.ms-tab.has-dot::after { content: ""; position: absolute; top: 3px; inset-inline-end: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: #c2410c; box-shadow: 0 0 0 2px var(--tabs); }

/* bottom sheet */
.ms-layer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; font-family: var(--f-text); color: var(--ink); font-size: 16px; line-height: 1.5; }
.ms-scrim { position: absolute; inset: 0; background: var(--scrim); animation: ms-fade .25s both; }
.ms-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  max-height: min(92dvh, calc(100% - 12px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  padding: 10px var(--side-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--side-l);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: ms-up .35s var(--ease-out) both;
  container-type: inline-size;
}
/* A sheet scrolls; its parts never shrink (with a max height, the list of articles collapsed to its border). */
.ms-sheet > * { flex-shrink: 0; }
.ms-sheet.has-pin { padding-bottom: 0; }
.ms-pin-sheet { margin: 0 calc(-1 * var(--side-r)) 0 calc(-1 * var(--side-l)); padding: 12px var(--side-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--side-l); background: linear-gradient(to top, var(--surface) 78%, transparent); }
.ms-grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line); align-self: center; }
.ms-sheet-head { display: flex; align-items: center; gap: 12px; }
.ms-sheet-title { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.12; overflow-wrap: anywhere; }
.ms-layer.is-leaving .ms-scrim { opacity: 0; transition: opacity .2s; }
.ms-layer.is-leaving .ms-sheet, .ms-layer.is-leaving .ms-modal { transform: translateY(40px); opacity: 0; transition: transform .2s, opacity .2s; }
@keyframes ms-fade { from { opacity: 0; } }
@keyframes ms-up { from { transform: translateY(40px); opacity: 0; } }
.ms-cred { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 74px; }
.ms-cred + .ms-cred { border-top: 1px solid var(--line); }
.ms-cred .k { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .ms-cred .k { letter-spacing: 0; font-size: 13px; }
.ms-cred .v { font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.ms-cred .room { font-family: var(--f-text); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* centred modal (non-smoking) */
.ms-layer-center { align-items: center; padding: 20px; }
.ms-modal { position: relative; width: 100%; max-width: 380px; max-height: 100%; overflow-y: auto; background: var(--surface); border-radius: 26px; padding: 26px 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; animation: ms-up .35s var(--ease-out) both; }
.ms-modal-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand); flex: none; }
.ms-modal-ico svg { width: 38px; height: 38px; stroke: var(--gold); }
.ms-modal h2 { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.ms-modal p { font-size: 16px; color: var(--muted); }
.ms-modal p b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.ms-modal .ms-cta { margin-top: 6px; }

/* ------------------------------------------- 2.2.0: « Chambre 1207 », ask the team */

.ms-ask { overflow: hidden; }
.ms-ask > * { min-width: 0; }
.ms-ask-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; min-height: 76px; text-align: start; }
.ms-ask-row + .ms-ask-row { border-top: 1px solid var(--line); }
.ms-ask-row .ms-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); border-color: transparent; color: var(--gold-ink); }
.ms-ask-row > svg:last-child { color: var(--gold-ink); }
.ms-ask-row.is-night .ms-ico { background: var(--surface-2); color: var(--muted); }
.ms-ask-row.is-night .ms-li-t b { color: var(--muted); }
.ms-ask-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 15px; }
.ms-ask-foot.is-one { grid-template-columns: 1fr; }
.ms-ask-foot > * { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; padding: 0 10px; font-weight: 500; color: var(--gold-ink); text-align: center; }
.ms-ask-foot > * + * { border-inline-start: 1px solid var(--line); }
.ms-ask-foot svg { width: 16px; height: 16px; }

/* the request being followed, on the Home */
.ms-live { display: grid; gap: 12px; margin-bottom: 2px; padding: 16px; border-radius: 20px; background: var(--brand-card); color: var(--brand-ink); }
.ms-live > * { min-width: 0; }
.ms-live-open { display: grid; gap: 10px; width: 100%; text-align: start; }
.ms-live-open > span { display: block; min-width: 0; }
.ms-live-open > .ms-live-top { display: flex; align-items: center; gap: 10px; }
.ms-live-top b { font-weight: 500; font-size: 15.5px; }
.ms-live-top .ms-end { color: var(--gold); font-size: 13px; }
.ms-live-top svg { stroke: var(--gold); }
.ms-pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); flex: none; animation: ms-pulse 2s ease-in-out infinite; }
.ms-pulse-dot.is-bad { background: #ff8a95; box-shadow: 0 0 0 4px rgba(255, 138, 149, .22); animation: none; }
.ms-live-acts a.ms-cta { color: var(--on-gold); }
@keyframes ms-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.ms-live-items { font-family: var(--f-display); font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
/* Quantities inside a Marcellus title, in Readex Pro: Marcellus draws « 1 » like an « l ». */
.ms-qn { font-family: var(--f-text); font-size: .82em; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-live-sub { font-size: 14px; color: var(--brand-muted); }
.ms-live-open > .ms-prog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ms-prog i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.ms-prog i.on { background: var(--gold); }
.ms-live-acts { display: grid; gap: 8px; }
.ms-live-acts .ms-btn-line { background: transparent; color: var(--brand-ink); border-color: rgba(248, 245, 238, .32); white-space: normal; text-align: center; min-height: 48px; }

/* the request sheets */
.ms-step-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ms-step-hd i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.ms-step-hd i.on { background: var(--gold); }
.ms-step-hd span { flex: none; }

.ms-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ms-item { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 8px; min-width: 0; min-height: 132px; padding: 12px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); text-align: start; }
.ms-item b { font-weight: 500; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.ms-item .ms-ico { width: 44px; height: 44px; }
.ms-item.is-on { border-color: var(--gold); background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold); }
.ms-item .ms-add { align-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 500; color: var(--ink); background: var(--surface); }
.ms-item .ms-add[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-ink); }
.ms-qty { align-self: end; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; min-height: 44px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); overflow: hidden; }
.ms-qty button { height: 44px; color: var(--brand-ink); font-size: 21px; line-height: 1; }
.ms-qty button:disabled { opacity: .35; cursor: default; }
.ms-qty output { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-item-max { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 12.5px; color: var(--muted); }

.ms-recap .ms-li { min-height: 52px; padding: 8px 14px; }
.ms-recap .ms-li b { font-weight: 500; }
.ms-recap .qty { font-weight: 600; color: var(--gold-ink); }
.ms-recap .ms-link { min-height: 44px; padding: 0 4px; }

.ms-choice { display: grid; gap: 8px; }
.ms-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); text-align: start; }
.ms-opt::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.ms-opt[aria-checked="true"] { border-color: var(--gold); background: var(--gold-tint); }
.ms-opt[aria-checked="true"]::before { border: 6px solid var(--gold-ink); }
.ms-later { margin-top: 12px; }

.ms-note-line { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 15px; color: var(--ink); }
.ms-note-line svg { color: var(--gold-ink); }

.ms-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ms-cat { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; line-height: 1.25; text-align: start; }
.ms-cat > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ms-cat .ms-ico { width: 36px; height: 36px; border-radius: 10px; }
.ms-cat .ms-ico svg { width: 20px; height: 20px; }
.ms-cat[aria-checked="true"] { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.ms-cat[aria-checked="true"] .ms-ico { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--gold); }

.ms-switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); }
.ms-switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--switch-off); transition: background .2s; }
.ms-switch::before { content: ""; position: absolute; inset: -7px -4px; }
.ms-switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: inset-inline-start .2s var(--ease-out); }
.ms-switch[aria-checked="true"] { background: var(--danger); }
.ms-switch[aria-checked="true"]::after { inset-inline-start: 22px; }

/* the reception, one call away */
.ms-call { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--brand-card); color: var(--brand-ink); }
.ms-call .ms-li-t b { font-size: 16px; }
.ms-call .ms-li-t span { color: var(--brand-muted); }
.ms-call .ms-ico { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--gold); }
.ms-call .ms-tel { background: var(--gold); color: var(--on-gold); }
.ms-call .ms-tel svg { stroke: var(--on-gold); }

/* Services: what would you like to do? */
.ms-intents { display: grid; gap: 10px; }
.ms-intent { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); text-align: start; }
.ms-intent .ms-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); border-color: transparent; color: var(--gold-ink); }
.ms-intent .ms-li-t b { font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.2; }
.ms-intent > svg:last-child { color: var(--gold-ink); }
.ms-intent.is-quiet { min-height: 64px; background: var(--surface-2); }
.ms-intent.is-quiet .ms-ico { background: var(--surface); border: 1px solid var(--line); }
.ms-intent.is-quiet .ms-li-t b { font-family: var(--f-text); font-size: 16px; font-weight: 500; }

.ms-mine { overflow: hidden; }
.ms-mine .ms-li { width: 100%; min-height: 68px; text-align: start; }

/* sent, and following one request */
.ms-sent { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 4px 2px; }
.ms-sent-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); }
.ms-sent-ico svg { width: 32px; height: 32px; stroke: var(--ok-ink); stroke-width: 2; }
.ms-track { display: grid; }
.ms-track li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.ms-track li:last-child { padding-bottom: 0; }
.ms-track li::before { content: ""; position: absolute; top: 30px; bottom: 2px; inset-inline-start: 13px; width: 2px; background: var(--line); }
.ms-track li:last-child::before { display: none; }
.ms-track li.is-done::before { background: var(--gold); }
.ms-track li > div { min-width: 0; }
.ms-track .dot { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); color: var(--on-gold); }
.ms-track .dot svg { width: 15px; height: 15px; stroke-width: 2.4; }
.ms-track li.is-done .dot { background: var(--gold); border-color: var(--gold); }
.ms-track li.is-now .dot { border-color: var(--gold-ink); }
.ms-track li.is-now .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-ink); }
.ms-track li.is-wait .dot { border-color: var(--wait); }
.ms-track li.is-wait .dot::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--wait); }
.ms-track li.is-off .dot { border-color: var(--muted); }
.ms-track li.is-off .dot::after { content: ""; width: 10px; height: 2px; background: var(--muted); }
.ms-track li.is-bad .dot { border-color: var(--danger); }
.ms-track li.is-bad .dot::after { content: "!"; font-weight: 700; font-size: 14px; line-height: 1; color: var(--danger); }
.ms-track b { display: block; font-weight: 500; font-size: 16px; }
.ms-track div > span { display: block; font-size: 14px; color: var(--muted); }
.ms-track-meta { display: grid; gap: 8px; justify-items: start; }
.ms-quote { margin: 0; padding: 10px 14px; border-inline-start: 3px solid var(--gold); background: var(--surface-2); border-radius: 4px 14px 14px 4px; font-size: 15px; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; justify-self: stretch; }
[dir="rtl"] .ms-quote { border-radius: 14px 4px 4px 14px; }

/* The entrance plays once per visit; redraws (language, tabs) stay still. */
.ms-app.is-settled .ms-rise,
.ms-app.is-settled .ms-emblem .draw { animation: none; }
.ms-app.is-settled .ms-hero::after { animation: none; transform: translateX(120%); }

/* small layout helpers used by ms-portal.js */
.ms-grow { flex: 1; min-width: 0; }
.ms-row { display: flex; align-items: center; gap: 8px; }
.ms-end { margin-inline-start: auto; }
.ms-gold { color: var(--gold-ink); }
.ms-h { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.ms-wordmark small { display: block; margin-block-start: 3px; font-family: var(--f-text); font-size: 10.5px; letter-spacing: .26em; color: var(--gold); }
.ms-wordmark.is-duo { font-size: 20px; font-size: clamp(16px, 5.6cqw, 20px); letter-spacing: .22em; }
/* In Arabic the two pills are wider: the wordmark gives way rather than being cut. */
[dir="rtl"] .ms-wordmark.is-duo { font-size: 16px; letter-spacing: .16em; }
.ms-welcome .ms-page { flex: 1 0 auto; }
.ms-welcome .ms-foot { margin-top: auto; }
.ms-rs-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.ms-moments { display: flex; align-items: center; gap: 14px; padding: 16px; }
.ms-moments-ico { width: 28px; height: 28px; stroke: var(--gold); }
.ms-moments-t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ms-moments-t .ms-disp { font-size: 19px; line-height: 1.2; }
.ms-moments-t span + span { font-size: 14px; color: var(--brand-muted); }
.ms-moments-chev { color: var(--gold); }
.ms-form { display: flex; flex-direction: column; gap: 20px; padding: 18px 16px; }
.ms-form-head { display: flex; flex-direction: column; gap: 2px; }
.ms-form-head .ms-h { margin: 0; }
.ms-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.ms-fs legend { padding: 0; margin-bottom: 10px; }
.ms-li-btn { width: 100%; text-align: start; }
button.ms-li-btn { padding: 12px 16px; }
.ms-stack > * + * { border-top: 1px solid var(--line); }
.ms-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ms-li-band { border-top: 1px solid var(--line); }
a.ms-li { color: var(--ink); }

/* ------------------------------------------------ 2.2.0: every phone */

/* The article grid follows the width it gets: a list on a narrow sheet (a folded phone, or text at 150 %). */
@container (max-width: 20.6em) {
  .ms-items { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: var(--surface); }
  .ms-item { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; min-height: 68px; padding: 10px 12px; border: 0; border-radius: 0; box-shadow: none; }
  .ms-item + .ms-item { border-top: 1px solid var(--line); }
  .ms-item .ms-ico { grid-row: 1 / 3; }
  .ms-item b { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .ms-item.is-on b { grid-row: 1; align-self: end; }
  .ms-item .ms-item-max { position: static; grid-column: 2; grid-row: 2; align-self: start; }
  .ms-item .ms-add, .ms-item .ms-qty { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .ms-item .ms-add { min-width: 92px; padding: 0 12px; }
  .ms-item .ms-qty { width: 120px; }
  .ms-cats { grid-template-columns: minmax(0, 1fr); }
  .ms-call > .ms-ico { display: none; }
}
/* Very narrow (text enlarged, a folded phone): the header wraps instead of cutting the hotel's name. */
@container ms-app (max-width: 18.75em) {
  .ms-hero-top { flex-wrap: wrap; row-gap: 10px; }
  .ms-wordmark { white-space: normal; overflow: visible; }
  .ms-hero-body { grid-template-columns: minmax(0, 1fr); }
  .ms-emblem { display: none; }
  .ms-cap-row { flex-wrap: wrap; }
  .ms-tiles { grid-template-columns: minmax(0, 1fr); }
  .ms-tab { font-size: 11.5px; overflow-wrap: anywhere; }
}

/* Short screens (a small Android under Chrome's bars): a compact header, so « Chambre 1207 » shows at once. */
@media (max-height: 600px) {
  .ms-hero { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 18px; }
  .ms-hero-top { margin-block-end: 12px; }
  .ms-wm-below { margin-block: -6px 10px; }
  .ms-hero-body { grid-template-columns: minmax(0, 1fr); }
  .ms-hero .ms-emblem { display: none; }
  .ms-title { font-size: 26px; margin-block-end: 4px; }
  .ms-page { gap: 20px; padding-top: 18px; }
}
/* Landscape: a one-line header, sheets at full height, tabs in a row. */
@media (orientation: landscape) and (max-height: 500px) {
  .ms-hero { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 14px; border-end-start-radius: 22px; border-end-end-radius: 22px; }
  .ms-hero-top { margin-block-end: 8px; }
  .ms-hero .ms-wm-below, .ms-hero .ms-sub, .ms-hero .ms-emblem, .ms-hero .ms-greet { display: none; }
  .ms-hero-body { grid-template-columns: minmax(0, 1fr); }
  .ms-title { font-size: 22px; margin: 0; }
  .ms-sheet { max-height: 100%; border-radius: 22px 22px 0 0; }
  .ms-tabs { padding-top: 4px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .ms-tab { min-height: 44px; flex-direction: row; justify-content: center; gap: 6px; padding-top: 0; }
}

/* The phone in dark mode: the night colours (Q21 A), onyx and graphite with the hotel's gold lit up. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: var(--d-brand, #0e1013);
    --brand-ink: #f1f3f4;
    --brand-muted: var(--d-bmuted, #b8bcc2);
    --brand-card: #1f2329;
    --gold: var(--d-acc, #dcb23f);
    --gold-ink: var(--d-ink, #e3bf5c);
    --on-gold: var(--d-on, #0e1013);
    --gold-soft: var(--d-soft, rgba(220, 178, 63, .16));
    --gold-tint: var(--d-tint, rgba(220, 178, 63, .1));
    --gold-edge: var(--d-edge, rgba(220, 178, 63, .45));
    --soon-ink: var(--d-ink, #e3bf5c);
    --surface: #15171b;
    --surface-2: #1d2025;
    --ink: #f1f3f4;
    --muted: #a9aeb6;
    --line: #2c3036;
    --line-strong: #6b7079;
    --ok: #5fc495;
    --ok-ink: #84d9ae;
    --ok-soft: rgba(95, 196, 149, .16);
    --wait: #e0a04a;
    --wait-ink: #f0b866;
    --wait-soft: rgba(224, 160, 74, .16);
    --danger: #ff7a85;
    --danger-soft: rgba(255, 122, 133, .14);
    --tabs: #121418;
    --scrim: rgba(0, 0, 0, .66);
    --switch-off: #5b6068;
  }
  .ms-hero { box-shadow: inset 0 -1px 0 var(--gold-soft); }
  .ms-live, .ms-call, .ms-brandcard { box-shadow: inset 0 0 0 1px #30353c; }
  .ms-cta { box-shadow: none; }
  .ms-ico { background: #1d2025; border-color: #30353c; }
  .ms-qty { background: #f1f3f4; color: #0e1013; }
  .ms-qty button { color: #0e1013; }
  .ms-cat[aria-checked="true"], .ms-chip[aria-pressed="true"] { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--on-gold) !important; }
  .ms-cat[aria-checked="true"] .ms-ico { background: rgba(0, 0, 0, .14); border-color: rgba(0, 0, 0, .2); color: var(--on-gold); }
  .ms-tel { background: #2a2e35; }
  .ms-prog i { background: rgba(255, 255, 255, .14); }
}

@media (prefers-reduced-motion: reduce) {
  .ms-app *, .ms-app *::before, .ms-app *::after, .ms-layer, .ms-layer * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
 * Homepage (root domain) — unchanged
 * ============================================================ */
body.ms-home {
  font-family: var(--ms-font-body);
  color: #fff;
}
.ms-home-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.ms-home-main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ms-home-logo {
  max-width: 280px;
  width: 60vw;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.25));
}
.ms-home-wordmark {
  font-family: var(--ms-font-display);
  font-size: 48px;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.ms-wave {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 55vh;
  bottom: -5vh;
}
.ms-wave-1 { animation: ms-wave-move 12s ease-in-out infinite alternate; }
.ms-wave-2 { animation: ms-wave-move 16s ease-in-out infinite alternate-reverse; bottom: -10vh; }
.ms-wave-3 { animation: ms-wave-move 20s ease-in-out infinite alternate; bottom: -15vh; }
@keyframes ms-wave-move {
  from { transform: translateY(0); }
  to { transform: translateY(-30px); }
}
.ms-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
  background-size: 38px 38px;
  animation: ms-particles-pulse 6s ease-in-out infinite;
}
@keyframes ms-particles-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.6; }
}
.ms-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%);
  animation: ms-pulse-breathe 5s ease-in-out infinite;
}
@keyframes ms-pulse-breathe {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-wave, .ms-particles, .ms-pulse { animation: none !important; }
}

/* 2.2.0 (second review, N5): a request that could not be sent, on the sent sheet. */
.ms-sent.is-failed .ms-sent-ico { background: var(--danger-soft); }
.ms-sent.is-failed .ms-sent-ico svg { stroke: var(--danger); }
