/* RMK Connect components (rmk_ui). Reads only the names in tokens.css.
   Patterns follow the approved mock-ups (docs/design/mockups/*.dc.html).
   Mobile first. Desktop (>= 900px) shows the top nav and hides the bottom tab bar. */

/* ---------------------------------------------------------------- page */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.rmk-body {
  margin: 0; font-family: var(--rmk-font); font-size: var(--rmk-fs-body); line-height: var(--rmk-lh);
  color: var(--rmk-ink); background: var(--rmk-page); min-height: 100vh; display: flex; flex-direction: column;
}
/* RETAIL-03: not the icons (.rmk-body svg outranked .rmk-icon, so every icon fell back to 150 px tall). */
.rmk-body img, .rmk-body svg:not(.rmk-icon), .rmk-body video { max-width: 100%; height: auto; }
.rmk-body a { color: var(--rmk-ink); text-underline-offset: 3px; }
.rmk-body a:hover { color: var(--rmk-link-hover); }
.rmk-body h1, .rmk-body h2, .rmk-body h3 { line-height: var(--rmk-lh-tight); margin: 0 0 var(--rmk-sp-3); }
.rmk-body h1 { font-size: var(--rmk-fs-h1); font-weight: 800; letter-spacing: -0.4px; }
.rmk-body h2 { font-size: var(--rmk-fs-h2); font-weight: 800; letter-spacing: -0.6px; }
.rmk-body h3 { font-size: var(--rmk-fs-h3); font-weight: 700; }
.rmk-body p { margin: 0 0 var(--rmk-sp-3); }
.rmk-body :focus-visible { outline: 3px solid var(--rmk-ink); outline-offset: 2px; box-shadow: var(--rmk-focus); }
.rmk-dark :focus-visible, .rmk-header :focus-visible, .rmk-tabbar :focus-visible, .rmk-footer :focus-visible {
  outline-color: var(--rmk-accent);
}
.rmk-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--rmk-accent); color: var(--rmk-ink);
  padding: 12px 16px; border-radius: 0 0 var(--rmk-r-btn) 0; font-weight: 700; }
.rmk-skip:focus { left: 0; }
.rmk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rmk-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.rmk-icon--sm { width: 18px; height: 18px; }
.rmk-icon--lg { width: 26px; height: 26px; }
.rmk-container { width: 100%; max-width: var(--rmk-container); margin: 0 auto; padding: 0 var(--rmk-gutter); }
.rmk-container--narrow { max-width: 720px; }
.rmk-main { flex: 1 0 auto; width: 100%; padding-bottom: calc(var(--rmk-tabbar-h) + 24px + env(safe-area-inset-bottom)); }
.rmk-main--app { padding-top: var(--rmk-sp-4); }
.rmk-stack { display: flex; flex-direction: column; gap: var(--rmk-sp-4); }
.rmk-stack--sm { gap: var(--rmk-sp-3); }
.rmk-cluster { display: flex; flex-wrap: wrap; gap: var(--rmk-sp-3); align-items: center; }
.rmk-muted { color: var(--rmk-muted); }
.rmk-small { font-size: var(--rmk-fs-small); }
.rmk-center { text-align: center; }
.rmk-mt-0 { margin-top: 0 !important; }
.rmk-mb-0 { margin-bottom: 0 !important; }
.rmk-hide-desktop { }
.rmk-hide-mobile { display: none !important; }

/* ---------------------------------------------------------------- header */
.rmk-header { background: var(--rmk-ink); color: var(--rmk-white); border-bottom: 1px solid var(--rmk-dark); position: sticky; top: 0; z-index: 40; }
.rmk-header__inner { max-width: var(--rmk-container); margin: 0 auto; padding: 10px var(--rmk-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--rmk-sp-3); min-height: 64px; }
.rmk-wordmark, .rmk-body .rmk-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--rmk-white);
  text-decoration: none; font-weight: 700; font-size: 18px; min-height: var(--rmk-target); }
.rmk-body .rmk-wordmark:hover { color: var(--rmk-white); }
.rmk-wordmark__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--rmk-accent); color: var(--rmk-ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; letter-spacing: .2px; }
.rmk-wordmark__accent { color: var(--rmk-accent); }
.rmk-nav { display: none; }
.rmk-nav a, .rmk-body .rmk-nav a { color: var(--rmk-border); text-decoration: none; font-size: 15px; padding: 12px;
  min-height: var(--rmk-target); display: inline-flex; align-items: center; border-radius: 10px; }
.rmk-body .rmk-nav a:hover { color: var(--rmk-white); }
.rmk-body .rmk-nav a[aria-current="page"] { color: var(--rmk-accent); font-weight: 600; }
.rmk-header__actions { display: flex; align-items: center; gap: var(--rmk-sp-2); }
.rmk-iconbtn, .rmk-body .rmk-iconbtn { width: var(--rmk-target); height: var(--rmk-target); border-radius: 12px; background: var(--rmk-dark);
  border: 0; color: var(--rmk-accent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative; text-decoration: none; padding: 0; list-style: none; }
.rmk-body .rmk-iconbtn:hover { color: var(--rmk-white); }
.rmk-iconbtn::-webkit-details-marker { display: none; }
.rmk-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--rmk-accent); color: var(--rmk-ink); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
  border: 2px solid var(--rmk-ink); }
.rmk-count[hidden] { display: none; }

/* app switcher: a <details> popover, no script needed */
.rmk-switcher { position: relative; }
.rmk-switcher > summary { list-style: none; }
.rmk-switcher__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px));
  background: var(--rmk-card); color: var(--rmk-ink); border-radius: var(--rmk-r-card); box-shadow: 0 20px 50px var(--rmk-shadow-strong);
  padding: var(--rmk-sp-2); z-index: 50; }
.rmk-switcher__item, .rmk-body .rmk-switcher__item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; color: var(--rmk-ink); min-height: 56px; }
.rmk-body .rmk-switcher__item:hover { background: var(--rmk-page); color: var(--rmk-ink); }
.rmk-switcher__item[aria-current="true"] { background: var(--rmk-page); }
.rmk-switcher__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--rmk-ink); color: var(--rmk-accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rmk-switcher__name { display: block; font-weight: 700; }
.rmk-switcher__what { display: block; font-size: 13px; color: var(--rmk-muted); }

/* ---------------------------------------------------------------- buttons */
.rmk-btn, .rmk-body .rmk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--rmk-target-main);
  padding: 0 20px; border-radius: var(--rmk-r-btn); border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; background: var(--rmk-card); color: var(--rmk-ink); }
.rmk-btn--primary, .rmk-body .rmk-btn--primary { background: var(--rmk-accent); color: var(--rmk-ink); }
.rmk-body .rmk-btn--primary:hover { background: var(--rmk-accent-hover); color: var(--rmk-ink); }
.rmk-btn--dark, .rmk-body .rmk-btn--dark { background: var(--rmk-ink); color: var(--rmk-accent); }
.rmk-body .rmk-btn--dark:hover { color: var(--rmk-white); }
.rmk-btn--ghost, .rmk-body .rmk-btn--ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.rmk-body .rmk-btn--ghost:hover { color: inherit; background: rgba(127, 127, 127, .08); }
.rmk-btn--outline, .rmk-body .rmk-btn--outline { background: var(--rmk-card); border: 2px solid var(--rmk-ink); color: var(--rmk-ink); }
.rmk-btn--danger, .rmk-body .rmk-btn--danger { background: var(--rmk-danger); color: var(--rmk-white); }
.rmk-body .rmk-btn--danger:hover { background: var(--rmk-ink); color: var(--rmk-white); }
.rmk-btn--sm, .rmk-body .rmk-btn--sm { min-height: var(--rmk-target); padding: 0 14px; font-size: 15px; }
.rmk-btn--lg, .rmk-body .rmk-btn--lg { min-height: var(--rmk-target-hero); padding: 0 28px; font-size: 18px; }
.rmk-btn--block, .rmk-body .rmk-btn--block { display: flex; width: 100%; }
.rmk-btn[disabled], .rmk-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.rmk-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--rmk-ink); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; min-height: var(--rmk-target); }
.rmk-dark .rmk-linkbtn { color: var(--rmk-accent); }

/* ---------------------------------------------------------------- cards, chips, tiles */
.rmk-card { background: var(--rmk-card); border: 1px solid var(--rmk-border); border-radius: var(--rmk-r-card); padding: var(--rmk-sp-5); }
.rmk-card--flush { padding: 0; overflow: hidden; }
.rmk-card__title { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.rmk-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--rmk-r-chip); padding: 3px 12px; font-size: 13px;
  font-weight: 700; border: 1px solid var(--rmk-border); background: var(--rmk-card); color: var(--rmk-ink); line-height: 1.4; }
.rmk-chip--next { background: var(--rmk-warning-bg); border-color: var(--rmk-warning); font-size: 12px; padding: 2px 10px; }
.rmk-chip--accent { background: var(--rmk-accent); border-color: var(--rmk-accent); }
.rmk-chip--success { background: var(--rmk-success-bg); border-color: var(--rmk-success); }
.rmk-chip--warning { background: var(--rmk-warning-bg); border-color: var(--rmk-warning); }
.rmk-chip--danger { background: var(--rmk-danger-bg); border-color: var(--rmk-danger); }
.rmk-chip--dark { background: var(--rmk-dark); border-color: var(--rmk-dark-border); color: var(--rmk-muted-dark); font-weight: 500; }
button.rmk-chip, a.rmk-chip, .rmk-chip--tap { min-height: var(--rmk-target); padding: 6px 16px; font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; text-decoration: none; }
button.rmk-chip[aria-pressed="true"] { background: var(--rmk-ink); color: var(--rmk-accent); border-color: var(--rmk-ink); }
.rmk-chips { display: flex; flex-wrap: wrap; gap: var(--rmk-sp-2); }

.rmk-next-step { background: var(--rmk-card); border: 2px solid var(--rmk-ink); border-radius: var(--rmk-r-card); padding: var(--rmk-sp-4); }
.rmk-next-step__title { font-weight: 700; font-size: 17px; margin: 6px 0 4px; }
.rmk-next-step__why { color: var(--rmk-muted); font-size: 14px; margin: 0 0 var(--rmk-sp-3); }

.rmk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rmk-sp-3); }
.rmk-tile, .rmk-body .rmk-tile { background: var(--rmk-card); border: 1px solid var(--rmk-border); border-radius: var(--rmk-r-tile); padding: var(--rmk-sp-4);
  text-decoration: none; color: var(--rmk-ink); display: flex; flex-direction: column; gap: 10px; min-height: 96px; }
.rmk-body .rmk-tile:hover { border-color: var(--rmk-ink); color: var(--rmk-ink); }
.rmk-tile__title { font-weight: 700; font-size: 15px; }
.rmk-tile__text { color: var(--rmk-muted); font-size: 13px; }
.rmk-tile--start { border-style: dashed; }
.rmk-rowlink, .rmk-body .rmk-rowlink { background: var(--rmk-card); border: 1px solid var(--rmk-border); border-radius: var(--rmk-r-tile);
  padding: 14px 16px; text-decoration: none; color: var(--rmk-ink); display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 56px; }
.rmk-rowlink__title { display: block; font-weight: 700; font-size: 15px; }
.rmk-rowlink__text { display: block; color: var(--rmk-muted); font-size: 13px; }

/* ---------------------------------------------------------------- dark band, journey, greeting */
.rmk-dark { background: var(--rmk-ink); color: var(--rmk-white); }
.rmk-dark .rmk-muted, .rmk-dark p.rmk-muted { color: var(--rmk-muted-dark); }
.rmk-dark a:not(.rmk-btn) { color: var(--rmk-accent); }
.rmk-dark a:not(.rmk-btn):hover { color: var(--rmk-white); }
/* 1.1.1: keep the page's side margin (the shorthand used to zero the container's gutter; RETAIL-03 phone check). */
.rmk-greet { padding: var(--rmk-sp-4) var(--rmk-gutter) var(--rmk-sp-5); }
.rmk-greet__hello { margin: 0; color: var(--rmk-muted-dark); font-size: 14px; }
.rmk-greet h1 { margin: 0 0 var(--rmk-sp-4); }
.rmk-journey { background: var(--rmk-dark); border-radius: var(--rmk-r-tile); padding: 14px 16px; color: var(--rmk-white); }
.rmk-journey__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--rmk-muted-dark); margin-bottom: 8px; }
.rmk-journey__stage { font-size: 26px; font-weight: 800; color: var(--rmk-accent); margin-bottom: 10px; line-height: 1.2; }
.rmk-journey__bar { height: 8px; border-radius: 999px; background: var(--rmk-dark-border); overflow: hidden; }
.rmk-journey__fill { display: block; height: 100%; background: var(--rmk-accent); }

/* ---------------------------------------------------------------- public sections */
.rmk-section { padding: var(--rmk-sp-section) 0; }
.rmk-section--white { background: var(--rmk-card); }
.rmk-section--accent { background: var(--rmk-accent); color: var(--rmk-ink); }
.rmk-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rmk-muted); }
.rmk-dark .rmk-eyebrow { color: var(--rmk-accent); }
.rmk-lead { font-size: var(--rmk-fs-lead); color: var(--rmk-muted); max-width: 760px; }
.rmk-dark .rmk-lead { color: var(--rmk-muted-dark); }
.rmk-hero { padding: clamp(40px, 7vw, 72px) 0 clamp(48px, 8vw, 88px); }
.rmk-hero__grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; }
.rmk-hero__copy { flex: 1 1 480px; min-width: 0; }
.rmk-hero__aside { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.rmk-hero h1, .rmk-body .rmk-hero h1 { font-size: var(--rmk-fs-hero); line-height: 1.05; letter-spacing: -1.2px; margin-bottom: 20px; }
.rmk-hero__accent { color: var(--rmk-accent); }
.rmk-hero__lead { font-size: clamp(17px, 1rem + .4vw, 20px); color: var(--rmk-muted-dark); max-width: 580px; margin: 0 0 28px; }
.rmk-pill { margin: 0 0 20px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--rmk-dark-border);
  border-radius: 999px; color: var(--rmk-muted-dark); font-size: 14px; }
.rmk-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rmk-accent); }
.rmk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--rmk-sp-5); }
.rmk-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.rmk-who, .rmk-body .rmk-who { text-decoration: none; color: var(--rmk-ink); border: 1px solid var(--rmk-border); border-radius: var(--rmk-r-card);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--rmk-card); }
.rmk-body .rmk-who:hover { border-color: var(--rmk-ink); color: var(--rmk-ink); }
.rmk-who__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--rmk-ink); color: var(--rmk-accent); display: flex;
  align-items: center; justify-content: center; }
.rmk-who__title { font-size: 20px; font-weight: 700; }
.rmk-who__text { color: var(--rmk-muted); }
.rmk-who__go { margin-top: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rmk-who--feature, .rmk-body .rmk-who--feature { grid-column: 1 / -1; background: var(--rmk-ink); color: var(--rmk-white); border-color: var(--rmk-ink);
  border-radius: var(--rmk-r-card-lg); padding: clamp(24px, 4vw, 36px); flex-direction: row; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; }
.rmk-body .rmk-who--feature:hover { color: var(--rmk-white); }
.rmk-who--feature .rmk-who__title { font-size: clamp(22px, 1rem + 1.4vw, 30px); font-weight: 800; }
.rmk-who--feature .rmk-who__text { color: var(--rmk-muted-dark); font-size: 18px; }
.rmk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--rmk-sp-5); counter-reset: rmkstep; }
.rmk-step { background: var(--rmk-card); border-radius: var(--rmk-r-card); padding: 24px; border-top: 4px solid var(--rmk-accent); }
.rmk-step__num { font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 14px; }
.rmk-step h3 { margin-bottom: 6px; }
.rmk-step p { color: var(--rmk-muted); margin: 0; }
.rmk-stat { border: 1px solid var(--rmk-dark-border); border-radius: var(--rmk-r-card); padding: 20px; }
.rmk-stat__num { font-size: 30px; font-weight: 800; color: var(--rmk-accent); margin-bottom: 4px; }
.rmk-stat p { margin: 0; color: var(--rmk-border); }
.rmk-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.rmk-ticks li { display: flex; gap: 12px; }
.rmk-ticks .rmk-icon { color: var(--rmk-accent); }
.rmk-faq { display: flex; flex-direction: column; gap: 12px; }
.rmk-faq details { background: var(--rmk-card); border: 1px solid var(--rmk-border); border-radius: 14px; padding: 0 20px; }
.rmk-faq summary { min-height: 60px; display: flex; align-items: center; font-weight: 700; font-size: 17px; cursor: pointer; }
.rmk-faq details p { color: var(--rmk-muted); margin: 0 0 20px; }
.rmk-band { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.rmk-band h2 { margin-bottom: 8px; }

/* ---------------------------------------------------------------- trust row */
.rmk-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--rmk-muted); font-size: 15px; list-style: none; padding: 0; margin: 0; }
.rmk-trust li { display: inline-flex; align-items: center; gap: 8px; }
.rmk-trust .rmk-icon { color: var(--rmk-ink); }
.rmk-dark .rmk-trust { color: var(--rmk-muted-dark); }
.rmk-dark .rmk-trust .rmk-icon { color: var(--rmk-accent); }

/* ---------------------------------------------------------------- tab bar (mobile) */
.rmk-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--rmk-ink);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rmk-dark); }
.rmk-tabbar a, .rmk-body .rmk-tabbar a { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--rmk-muted-dark); text-decoration: none; font-size: 12px; border-radius: 10px; }
.rmk-body .rmk-tabbar a:hover { color: var(--rmk-white); }
.rmk-tabbar a.is-active, .rmk-body .rmk-tabbar a.is-active { color: var(--rmk-accent); font-weight: 700; }

/* ---------------------------------------------------------------- footer */
.rmk-footer { background: var(--rmk-ink); color: var(--rmk-muted-dark); margin-top: auto; }
.rmk-footer__inner { max-width: var(--rmk-container); margin: 0 auto; padding: 28px var(--rmk-gutter)
  calc(28px + var(--rmk-tabbar-h) + env(safe-area-inset-bottom)); font-size: 14px; }
.rmk-footer a, .rmk-body .rmk-footer a { color: var(--rmk-accent); text-decoration: none; }
.rmk-body .rmk-footer a:hover { color: var(--rmk-white); text-decoration: underline; }
.rmk-footer__line { margin: 0; }
.rmk-footer__links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rmk-footer__links a { display: inline-flex; min-height: var(--rmk-target); align-items: center; }

/* ---------------------------------------------------------------- alerts */
.rmk-alert, [class*="rmk-alert--"] { border-radius: 12px; padding: 14px 18px; border: 1px solid var(--rmk-border); background: var(--rmk-card); }
.rmk-alert--success { background: var(--rmk-success-bg); border-color: var(--rmk-success); }
.rmk-alert--warning { background: var(--rmk-warning-bg); border-color: var(--rmk-warning); }
.rmk-alert--danger, .rmk-alert--error { background: var(--rmk-danger-bg); border-color: var(--rmk-danger); }
.rmk-alert--info { background: var(--rmk-accent-tint); border-color: var(--rmk-ink); }
.rmk-messages { list-style: none; margin: var(--rmk-sp-4) 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rmk-draft { border: 2px dashed var(--rmk-warning); background: var(--rmk-warning-bg); border-radius: 12px; padding: 14px 18px; font-weight: 600; }

/* ---------------------------------------------------------------- forms */
.rmk-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--rmk-sp-4); }
.rmk-field label, .rmk-label { font-weight: 600; }
.rmk-input, .rmk-body .rmk-field input:not([type=checkbox]):not([type=radio]), .rmk-body .rmk-field select, .rmk-body .rmk-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--rmk-muted); border-radius: 10px; font: inherit;
  font-size: 16px; background: var(--rmk-card); color: var(--rmk-ink); }
.rmk-body .rmk-field textarea { min-height: 110px; }
.rmk-help, .rmk-field .helptext { color: var(--rmk-muted); font-size: 14px; }
.rmk-error, .rmk-field .errorlist { color: var(--rmk-danger); font-size: 14px; font-weight: 600; list-style: none; padding: 0; margin: 0; }
.rmk-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; min-height: var(--rmk-target); }
.rmk-check input { width: 24px; height: 24px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--rmk-ink); }
.rmk-otp { letter-spacing: 8px; font-size: 22px !important; text-align: center; font-weight: 700; }

/* role picker (Register mock-up) */
.rmk-roles { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0 0 var(--rmk-sp-4); }
.rmk-roles legend { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--rmk-muted); margin: 12px 0 8px; padding: 0; }
.rmk-role { position: relative; display: flex; align-items: center; gap: 14px; background: var(--rmk-card); border: 1px solid var(--rmk-border);
  border-radius: 14px; padding: 12px 14px; cursor: pointer; min-height: 68px; }
.rmk-role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rmk-role__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--rmk-ink); color: var(--rmk-accent); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; }
.rmk-role__body { flex: 1; min-width: 0; }
.rmk-role__name { display: block; font-weight: 700; font-size: 16px; }
.rmk-role__hint { display: block; color: var(--rmk-muted); font-size: 13px; }
.rmk-role__tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--rmk-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: transparent; }
.rmk-role:has(input:checked) { border: 2px solid var(--rmk-ink); box-shadow: 0 0 0 3px var(--rmk-accent); }
.rmk-role:has(input:checked) .rmk-role__tick { background: var(--rmk-ink); border-color: var(--rmk-ink); color: var(--rmk-accent); }
.rmk-role:has(input:focus-visible) { outline: 3px solid var(--rmk-ink); outline-offset: 3px; }
.rmk-role.is-checked { border: 2px solid var(--rmk-ink); box-shadow: 0 0 0 3px var(--rmk-accent); }
.rmk-role.is-checked .rmk-role__tick { background: var(--rmk-ink); border-color: var(--rmk-ink); color: var(--rmk-accent); }
.rmk-sticky-cta { position: sticky; bottom: calc(var(--rmk-tabbar-h) + env(safe-area-inset-bottom)); background: var(--rmk-page);
  padding: 12px 0 16px; z-index: 5; }

/* settings list (Me) */
.rmk-list { list-style: none; margin: 0; padding: 0; background: var(--rmk-card); border: 1px solid var(--rmk-border); border-radius: var(--rmk-r-card); overflow: hidden; }
.rmk-list > li { border-top: 1px solid var(--rmk-border); }
.rmk-list > li:first-child { border-top: 0; }
.rmk-list__row, .rmk-body .rmk-list__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  min-height: 56px; text-decoration: none; color: var(--rmk-ink); width: 100%; background: none; border: 0; font: inherit; text-align: left; }
button.rmk-list__row { cursor: pointer; }
.rmk-list__label { font-weight: 600; }
.rmk-list__value { color: var(--rmk-muted); font-size: 14px; display: block; font-weight: 400; }
.rmk-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 16px; margin: 0; }
.rmk-kv dt { color: var(--rmk-muted); }
.rmk-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rmk-empty { text-align: center; padding: var(--rmk-sp-8) var(--rmk-sp-4); color: var(--rmk-muted); }
.rmk-empty .rmk-icon { width: 40px; height: 40px; color: var(--rmk-ink); margin-bottom: 8px; }
.rmk-page-head { padding: var(--rmk-sp-5) 0 var(--rmk-sp-3); }
.rmk-page-head h1 { margin: 0 0 4px; }
.rmk-crumb { font-size: 14px; color: var(--rmk-muted-dark); margin: 0 0 12px; }

/* ---------------------------------------------------------------- confirm card, stars, sheet */
.rmk-confirm { background: var(--rmk-card); border: 2px solid var(--rmk-ink); border-radius: var(--rmk-r-card); padding: var(--rmk-sp-4); }
.rmk-confirm__label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--rmk-muted); margin: 0 0 4px; }
.rmk-confirm__summary { font-weight: 700; margin: 0 0 var(--rmk-sp-3); }
.rmk-confirm__actions { display: flex; gap: var(--rmk-sp-2); flex-wrap: wrap; }
.rmk-confirm__actions .rmk-btn { flex: 1 1 140px; }
.rmk-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0; }
.rmk-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rmk-stars label { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--rmk-border); border-radius: 10px; }
.rmk-stars label svg { width: 34px; height: 34px; fill: currentColor; stroke: var(--rmk-ink); stroke-width: 1.2; }
.rmk-stars input:checked ~ label, .rmk-stars label:hover, .rmk-stars label:hover ~ label { color: var(--rmk-ink); }
.rmk-stars input:focus-visible + label { outline: 3px solid var(--rmk-ink); outline-offset: 2px; }
.rmk-scrim { position: fixed; inset: 0; background: var(--rmk-scrim); z-index: 60; }
.rmk-sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; top: 0; background: var(--rmk-page); display: flex; flex-direction: column;
  color: var(--rmk-ink); }
.rmk-sheet[hidden], .rmk-scrim[hidden] { display: none; }
.rmk-sheet__head { background: var(--rmk-ink); color: var(--rmk-white); padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; }
.rmk-sheet__title { font-weight: 700; flex: 1; min-width: 0; margin: 0; font-size: 17px; }
.rmk-sheet__sub { display: block; font-size: 13px; color: var(--rmk-muted-dark); font-weight: 400; }
.rmk-sheet__body { flex: 1; overflow-y: auto; padding: var(--rmk-sp-4); -webkit-overflow-scrolling: touch; }
.rmk-sheet__foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rmk-border); background: var(--rmk-card); }

/* ---------------------------------------------------------------- roles (1.1): header chip, switch sheet, picker */
.rmk-rolechip, .rmk-body .rmk-rolechip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--rmk-target);
  max-width: 46vw; padding: 0 12px; border-radius: var(--rmk-r-chip); background: var(--rmk-dark); color: var(--rmk-white);
  border: 1px solid var(--rmk-dark-border); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.rmk-body .rmk-rolechip:hover { color: var(--rmk-white); border-color: var(--rmk-accent); }
.rmk-rolechip__label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rmk-rolechip__caret { color: var(--rmk-accent); }
.rmk-sheet--bottom { top: auto; max-height: 85vh; border-radius: var(--rmk-r-card-lg) var(--rmk-r-card-lg) 0 0;
  box-shadow: 0 -10px 40px var(--rmk-shadow-strong); overflow: hidden; }
.rmk-rolelist { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.rmk-rolelist__item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 14px; text-align: left;
  background: var(--rmk-card); color: var(--rmk-ink); border: 1px solid var(--rmk-border); border-radius: 14px; font: inherit; cursor: pointer; }
.rmk-rolelist__item:hover { border-color: var(--rmk-ink); }
.rmk-rolelist__item.is-active { border: 2px solid var(--rmk-ink); box-shadow: 0 0 0 3px var(--rmk-accent); }
.rmk-rolelist__item[aria-busy="true"] { opacity: .6; }
.rmk-rolelist__emoji, .rmk-picker__emoji { width: 44px; height: 44px; border-radius: 12px; background: var(--rmk-ink); display: flex;
  align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.rmk-rolelist__body { flex: 1; min-width: 0; }
.rmk-rolelist__name { display: block; font-weight: 700; }
.rmk-rolelist__note { display: block; font-size: 13px; color: var(--rmk-muted); }
.rmk-rolelist__tick { font-weight: 800; font-size: 18px; }
.rmk-rolelist__add, .rmk-body .rmk-rolelist__add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  margin-top: 12px; border: 2px dashed var(--rmk-ink); border-radius: 14px; text-decoration: none; font-weight: 700; color: var(--rmk-ink); }
.rmk-picker { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 var(--rmk-sp-4); }
.rmk-picker__card { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; width: 100%;
  background: var(--rmk-card); color: var(--rmk-ink); border: 1px solid var(--rmk-border); border-radius: var(--rmk-r-card);
  font: inherit; text-align: left; cursor: pointer; }
.rmk-picker__card:hover { border-color: var(--rmk-ink); }
.rmk-picker__card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rmk-picker__card:has(input:checked), .rmk-picker__card.is-checked { border: 2px solid var(--rmk-ink); box-shadow: 0 0 0 3px var(--rmk-accent); }
.rmk-picker__card:has(input:focus-visible) { outline: 3px solid var(--rmk-ink); outline-offset: 3px; }
.rmk-picker__card--big .rmk-picker__emoji { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; }
.rmk-picker__body { flex: 1; min-width: 0; }
.rmk-picker__title { display: block; font-weight: 800; font-size: 18px; }
.rmk-picker__hint { display: block; color: var(--rmk-muted); font-size: 14px; }
.rmk-picker__mine { font-size: 12px; }
.rmk-picker__others { margin: 4px 0 var(--rmk-sp-4); }
.rmk-picker__others > summary { display: inline-flex; align-items: center; min-height: var(--rmk-target); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.rmk-picker__others > summary::-webkit-details-marker { display: none; }
.rmk-picker__others .rmk-picker { margin-top: 8px; }
.rmk-picker__others .rmk-picker__card { min-height: 60px; padding: 10px 14px; }
.rmk-picker__others .rmk-picker__title { font-size: 16px; font-weight: 700; }
.rmk-picker__approval { display: block; font-size: 12px; color: var(--rmk-warning); font-weight: 600; }
@media (min-width: 600px) { .rmk-picker--big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 1.1.1 (RETAIL-03 phone check at 360 px: the header was up to 27 px too wide). The actions and the role chip may
   shrink; a long role name is cut with an ellipsis. */
.rmk-header__actions { min-width: 0; }
.rmk-rolechip { min-width: 0; }
.rmk-rolechip > summary { max-width: 42vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* small phones: keep the RMK mark, drop the wordmark words (the link's aria-label still says "RMK Connect") */
@media (max-width: 420px) {
  .rmk-header__inner { gap: 8px; }
  .rmk-wordmark > span[aria-hidden="true"]:not(.rmk-wordmark__mark) { display: none; }
  .rmk-header__actions { gap: 6px; }
}

/* ---------------------------------------------------------------- role windows on Home (1.1) */
.rmk-window__role { display: inline-flex; align-items: center; gap: 8px; color: var(--rmk-accent); font-weight: 700; margin: 0 0 4px; }
.rmk-block { background: var(--rmk-card); border: 1px solid var(--rmk-border); border-radius: var(--rmk-r-card); padding: var(--rmk-sp-4); }
.rmk-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.rmk-block__title { font-size: 18px; font-weight: 800; margin: 0; }
.rmk-block__more, .rmk-body .rmk-block__more { display: inline-flex; align-items: center; min-height: var(--rmk-target); font-weight: 600; font-size: 14px; }
.rmk-block__list { list-style: none; margin: 0; padding: 0; }
.rmk-block__list > li { border-top: 1px solid var(--rmk-border); }
.rmk-block__list > li:first-child { border-top: 0; }
.rmk-block__row, .rmk-body .rmk-block__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  padding: 8px 0; color: var(--rmk-ink); text-decoration: none; }
.rmk-block__label { font-weight: 600; display: block; }
.rmk-block__text { color: var(--rmk-muted); font-size: 14px; display: block; }
.rmk-progress { height: 8px; border-radius: 999px; background: var(--rmk-page); border: 1px solid var(--rmk-border); overflow: hidden; margin-top: 6px; }
.rmk-progress > span { display: block; height: 100%; background: var(--rmk-ink); }
.rmk-pending { background: var(--rmk-warning-bg); border: 2px solid var(--rmk-warning); border-radius: var(--rmk-r-card); padding: var(--rmk-sp-4); }
.rmk-pending__title { font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.rmk-pending ol { margin: 8px 0 0; padding-left: 20px; }

/* ---------------------------------------------------------------- HoneyGuide (honey only here) */
.rmk-hg-fab, .rmk-body .rmk-hg-fab { position: fixed; z-index: 46; right: 16px; bottom: calc(var(--rmk-tabbar-h) + 16px + env(safe-area-inset-bottom));
  min-height: 56px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--rmk-honey); color: var(--rmk-ink); border: 2px solid var(--rmk-ink);
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 30px var(--rmk-shadow-strong); text-decoration: none; }
.rmk-body .rmk-hg-fab:hover { color: var(--rmk-ink); filter: brightness(1.06); }
.rmk-hg-fab[hidden] { display: none; }
.rmk-hg .rmk-sheet__head { border-bottom: 4px solid var(--rmk-honey); }
.rmk-hg__avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--rmk-honey); color: var(--rmk-ink); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; }
.rmk-hg__log { display: flex; flex-direction: column; gap: 12px; }
.rmk-hg__msg { max-width: 88%; border-radius: 16px; padding: 10px 14px; overflow-wrap: anywhere; }
.rmk-hg__msg p:last-child { margin-bottom: 0; }
.rmk-hg__msg--bot { align-self: flex-start; background: var(--rmk-honey-tint); border: 1px solid var(--rmk-honey); border-bottom-left-radius: 4px; }
.rmk-hg__msg--me { align-self: flex-end; background: var(--rmk-ink); color: var(--rmk-white); border-bottom-right-radius: 4px; }
.rmk-hg__msg--queued { opacity: .75; border-style: dashed; }
.rmk-hg__meta { font-size: 12px; color: var(--rmk-muted); margin-top: 4px; }
.rmk-hg__msg--me .rmk-hg__meta { color: var(--rmk-muted-dark); }
.rmk-hg__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rmk-hg__chips .rmk-chip { border-color: var(--rmk-honey); background: var(--rmk-card); }
.rmk-hg__rate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.rmk-hg__rate button { min-width: var(--rmk-target); min-height: var(--rmk-target); border-radius: 10px; border: 1px solid var(--rmk-border);
  background: var(--rmk-card); font-size: 18px; cursor: pointer; }
.rmk-hg__rate button[aria-pressed="true"] { border: 2px solid var(--rmk-ink); background: var(--rmk-honey); }
.rmk-hg__sources { font-size: 13px; margin: 6px 0 0; padding-left: 18px; }
.rmk-hg .rmk-confirm { border-color: var(--rmk-honey); }
.rmk-hg__composer { display: flex; gap: 8px; align-items: flex-end; }
.rmk-hg__composer textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; padding: 12px 14px; border: 1px solid var(--rmk-muted);
  border-radius: 12px; font: inherit; font-size: 16px; }
.rmk-hg__send { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--rmk-ink); background: var(--rmk-honey); color: var(--rmk-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.rmk-hg__tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 6px; }
.rmk-hg__status { font-size: 13px; color: var(--rmk-muted); }
.rmk-hg-page .rmk-sheet { position: static; min-height: calc(100vh - 64px - var(--rmk-tabbar-h)); }
.rmk-hg-page .rmk-hg-fab { display: none; }

/* ---------------------------------------------------------------- Hive Pulse */
.rmk-pulse { border: 2px solid var(--rmk-ink); }
.rmk-pulse__q { margin: 0 0 var(--rmk-sp-4); border: 0; padding: 0; }
.rmk-pulse__q legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
/* 1.1.1: multi-tap up to `max` (a full set dims the other chips) and the optional short text for a text_ok option. */
.rmk-pulse__q button.rmk-chip[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.rmk-pulse__count { margin: 8px 0 0; }
.rmk-pulse__more { margin: 12px 0 0; }
.rmk-pulse__more[hidden] { display: none; }
.rmk-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rmk-pic { position: relative; border: 1px solid var(--rmk-border); border-radius: 12px; overflow: hidden; background: var(--rmk-card); cursor: pointer;
  display: flex; flex-direction: column; min-height: var(--rmk-target); }
.rmk-pic input { position: absolute; opacity: 0; }
.rmk-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rmk-pic span { padding: 8px 10px; font-weight: 600; font-size: 14px; }
.rmk-pic:has(input:checked) { border: 2px solid var(--rmk-ink); box-shadow: 0 0 0 3px var(--rmk-accent); }
.rmk-progress { height: 10px; background: var(--rmk-border); border-radius: 999px; overflow: hidden; }
.rmk-progress__fill { display: block; height: 100%; background: var(--rmk-success); }
.rmk-progress__fill--warning { background: var(--rmk-warning); }

/* ---------------------------------------------------------------- staff dashboard */
.rmk-staff:not(body) { display: flex; flex-wrap: wrap; align-items: stretch; }
.rmk-staff__bar { background: var(--rmk-ink); color: var(--rmk-white); padding: 10px var(--rmk-gutter); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px; }
.rmk-staff__who { color: var(--rmk-muted-dark); font-size: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rmk-staff__aside { flex: 1 1 100%; background: var(--rmk-card); border-bottom: 1px solid var(--rmk-border); padding: 12px; }
.rmk-staff__aside details > summary { min-height: var(--rmk-target); display: flex; align-items: center; font-weight: 700; cursor: pointer; padding: 0 14px; }
.rmk-staff__nav { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.rmk-staff__nav a, .rmk-body .rmk-staff__nav a { min-height: var(--rmk-target); display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; border-radius: 10px; color: var(--rmk-ink); text-decoration: none; gap: 8px; }
.rmk-body .rmk-staff__nav a:hover { background: var(--rmk-page); }
.rmk-staff__nav a[aria-current="page"], .rmk-body .rmk-staff__nav a[aria-current="page"] { background: var(--rmk-ink); color: var(--rmk-accent); font-weight: 600; }
.rmk-staff__nav a.is-leave, .rmk-body .rmk-staff__nav a.is-leave { color: var(--rmk-link-hover); }
.rmk-staff__group { margin: 14px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--rmk-muted); }
.rmk-staff__navcount { background: var(--rmk-accent); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--rmk-ink); }
.rmk-staff__main { flex: 999 1 560px; min-width: 0; padding: var(--rmk-sp-5) var(--rmk-gutter) var(--rmk-sp-8); }
.rmk-staff__banner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rmk-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; margin-bottom: 20px; }
.rmk-counter { background: var(--rmk-card); border: 1px solid var(--rmk-border); border-top: 4px solid var(--rmk-accent); border-radius: 14px; padding: 16px 18px; }
.rmk-counter__label { color: var(--rmk-muted); font-size: 14px; }
.rmk-counter__num { font-size: 28px; font-weight: 800; line-height: 1.2; }
.rmk-counter__note { color: var(--rmk-muted); font-size: 13px; }
.rmk-panels { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.rmk-panel { flex: 1 1 280px; min-width: 0; background: var(--rmk-card); border: 1px solid var(--rmk-border); border-radius: 14px; overflow: hidden; }
.rmk-panel--wide { flex: 2 1 480px; }
.rmk-panel__head { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--rmk-border); }
.rmk-panel__head h2, .rmk-body .rmk-panel__head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0; }
.rmk-panel__body { padding: 16px 20px; }
.rmk-table-wrap { overflow-x: auto; }
.rmk-queue { width: 100%; border-collapse: collapse; font-size: 15px; }
.rmk-queue thead tr { background: var(--rmk-ink); color: var(--rmk-accent); text-align: left; }
.rmk-queue th, .rmk-queue td { padding: 10px 16px; vertical-align: middle; }
.rmk-queue tbody tr { border-top: 1px solid var(--rmk-border); }
.rmk-queue tbody tr:nth-child(even) { background: var(--rmk-page); }
.rmk-queue td.rmk-queue__go { text-align: right; }
.rmk-waitlist { margin-bottom: 18px; }
.rmk-waitlist__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.rmk-linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }

/* ---------------------------------------------------------------- install */
.rmk-install-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rmk-install-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.rmk-install-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--rmk-ink); color: var(--rmk-accent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.rmk-offline-note { position: fixed; left: 12px; right: 12px; bottom: calc(var(--rmk-tabbar-h) + 84px + env(safe-area-inset-bottom)); z-index: 47;
  background: var(--rmk-ink); color: var(--rmk-white); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.rmk-offline-note[hidden] { display: none; }

/* ---------------------------------------------------------------- desktop */
@media (min-width: 600px) {
  .rmk-sheet { left: auto; top: auto; right: 16px; bottom: 16px; width: 420px; height: min(680px, calc(100vh - 32px));
    border-radius: var(--rmk-r-card-lg); overflow: hidden; box-shadow: 0 30px 80px var(--rmk-shadow-strong); }
  .rmk-hg-page .rmk-sheet { width: auto; height: auto; border-radius: var(--rmk-r-card-lg); max-width: 760px; margin: 0 auto;
    min-height: calc(100vh - 160px); border: 1px solid var(--rmk-border); box-shadow: none; }
  .rmk-tiles--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .rmk-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
  .rmk-tabbar { display: none; }
  .rmk-hide-mobile { display: revert !important; }
  .rmk-hide-desktop { display: none !important; }
  .rmk-main { padding-bottom: var(--rmk-sp-8); }
  .rmk-footer__inner { padding-bottom: 28px; }
  .rmk-hg-fab, .rmk-body .rmk-hg-fab { bottom: 24px; right: 24px; }
  .rmk-offline-note { bottom: 96px; left: auto; width: 380px; }
  .rmk-sticky-cta { bottom: 0; }
  .rmk-staff__aside { flex: 0 1 248px; min-width: 220px; border-right: 1px solid var(--rmk-border); border-bottom: 0; padding: 18px 12px; }
  .rmk-staff__aside details > summary { display: none; }
  .rmk-staff__main { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .rmk-tabbar, .rmk-hg-fab, .rmk-header__actions, .rmk-sheet, .rmk-scrim { display: none !important; } }
@media (forced-colors: active) { .rmk-btn, .rmk-chip, .rmk-role, .rmk-tile { border: 1px solid ButtonText; } }

/* Role chip ("🏪 Retailer ▾") and its bottom sheet (rmk_ui/_role_chip.html, RETAIL-02). */
.rmk-rolechip { position: relative; }
.rmk-rolechip > summary { list-style: none; cursor: pointer; min-height: 44px; color: var(--rmk-white);
  border: 1px solid var(--rmk-dark-border); background: transparent; }
.rmk-rolechip > summary::-webkit-details-marker { display: none; }
.rmk-rolechip > summary:focus-visible { outline: 3px solid var(--rmk-accent); outline-offset: 2px; }
.rmk-rolechip__sheet { top: auto; max-height: 80vh; border-radius: var(--rmk-r-card) var(--rmk-r-card) 0 0;
  padding: var(--rmk-sp-4) var(--rmk-sp-4) calc(var(--rmk-sp-4) + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .25); overflow-y: auto; color: var(--rmk-ink); }
.rmk-rolechip__title { font-weight: 700; margin: 0 0 8px; }
.rmk-rolechip__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.rmk-rolechip__list .rmk-btn { min-height: 48px; justify-content: flex-start; }
@media (min-width: 768px) {
  .rmk-rolechip__sheet { position: absolute; left: auto; right: 0; bottom: auto; top: calc(100% + 8px); width: 320px;
    border-radius: var(--rmk-r-card); }
}
