/* ==========================================================================
   Tashteeby — Remodel (remodel.html, js/remodel.js) and its home-page section. Website and the Windows app.
   Navy page, paper panels, gold for the one action that matters on each screen.
   ========================================================================== */

/* ---------------------------------------------------------------- views */
body[data-rm-view="wizard"] .rm-home-only, body[data-rm-view="detail"] .rm-home-only, body[data-rm-view="gate"] .rm-home-only { display: none !important; }
.rm-app { padding-block: 0 clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 90px; }
body[data-rm-view="wizard"] .rm-app, body[data-rm-view="detail"] .rm-app, body[data-rm-view="gate"] .rm-app { padding-block-start: clamp(1.25rem, 3vw, 2.25rem); min-height: 60vh; }
.rm-flip { transition: transform 0.2s; }
[dir="rtl"] .rm-flip { transform: scaleX(-1); }
.rm-loading { display: grid; place-items: center; min-height: 40vh; }
.rm-loading .spinner { width: 34px; height: 34px; }

/* ---------------------------------------------------------------- hero */
.rm-hero .wrap { grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .rm-hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.rm-hero-text { display: grid; gap: 1rem; justify-items: start; }
.rm-hero-text .lead { max-width: 34rem; }
.rm-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.4rem; }
.rm-cta { min-height: 54px; padding-inline: 1.5rem; font-size: 1.02rem; }
.rm-cta-note { font-size: 0.85rem; color: var(--gold-300); font-weight: 600; }
.rm-hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; padding: 0; list-style: none; }
.rm-hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--on-navy-muted); font-size: 0.8rem; background: rgba(246, 241, 228, 0.03); }
.rm-hero-points svg { width: 15px; height: 15px; color: var(--gold-400); }
.rm-hero-visual { position: relative; min-width: 0; }

/* the before / after examples */
/* the home section has no plus.css: the before / after slider's core rules, scoped to it (same as plus.css) */
.rm-home .ba { --pos: 50%; position: relative; overflow: hidden; border-radius: 16px; background: #0b2454; user-select: none; touch-action: pan-y; direction: ltr; }
.rm-home .ba img { display: block; width: 100%; height: auto; pointer-events: none; }
.rm-home .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.rm-home .ba-before img { width: 100%; height: 100%; object-fit: cover; }
.rm-home .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.rm-home .ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.4); }
.rm-home .ba-handle i { position: absolute; top: 50%; left: 0; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6); }
.rm-home .ba-handle i::before, .rm-home .ba-handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.rm-home .ba-handle i::before { left: 7px; border-right-color: var(--navy-900); }
.rm-home .ba-handle i::after { right: 7px; border-left-color: var(--navy-900); }
.rm-home .ba-tag { position: absolute; top: 10px; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(6, 21, 52, 0.75); color: #fff; font-size: 0.74rem; font-weight: 700; pointer-events: none; }
.rm-home .ba-l { left: 10px; } .rm-home .ba-r { right: 10px; color: var(--gold-300); }
.rm-home .ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.rm-home .ba:focus-within .ba-handle i { box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.55), 0 8px 20px -6px rgba(0, 0, 0, 0.6); }
.rm-ex { display: grid; gap: 0.75rem; }
.rm-ex .ba { border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(246, 241, 228, 0.08); }
.rm-ex-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.rm-ex-bar small { color: var(--on-navy-faint); font-size: 0.78rem; }
.rm-ex-tabs { display: flex; gap: 0.35rem; padding: 4px; border-radius: 999px; background: rgba(246, 241, 228, 0.06); border: 1px solid var(--line); }
.rm-ex-tabs button { padding: 0.4rem 0.9rem; border: 0; border-radius: 999px; background: transparent; color: var(--on-navy-muted); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.rm-ex-tabs button.on { background: var(--gold-400); color: var(--gold-ink); }

/* no examples yet: a photo fanning out into three ideas */
.rm-fan { position: relative; aspect-ratio: 5 / 4; max-width: 520px; margin-inline: auto; }
.rm-fan-photo { position: absolute; inset: 12% 30% 22% 4%; border-radius: 18px; display: grid; place-items: center; color: var(--on-navy-faint);
  background: linear-gradient(160deg, #7d7466, #4f483f); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); filter: saturate(0.4); }
.rm-fan-photo svg { width: 48px; height: 48px; opacity: 0.7; }
.rm-fan-card { position: absolute; width: 46%; aspect-ratio: 4 / 3.4; padding: 8px 8px 10px; border-radius: 16px; background: var(--paper); display: grid; gap: 6px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8); transition: transform 0.5s var(--ease-out); }
.rm-fan-card b { font-size: 0.8rem; color: var(--ink); padding-inline: 4px; }
.rm-fan-card .rm-art { border-radius: 10px; }
.rm-fan-card.f1 { inset-inline-end: 22%; top: 2%; transform: rotate(-7deg); }
.rm-fan-card.f2 { inset-inline-end: 4%; top: 26%; transform: rotate(4deg); z-index: 2; }
.rm-fan-card.f3 { inset-inline-end: 26%; top: 50%; transform: rotate(-2deg); z-index: 3; }
.rm-fan:hover .rm-fan-card.f1 { transform: rotate(-9deg) translateY(-6px); }
.rm-fan:hover .rm-fan-card.f3 { transform: rotate(0deg) translateY(4px); }

/* the little room drawn for each style (style cards, the fan, the summary) */
.rm-art { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--w); isolation: isolate; }
.rm-art i { position: absolute; display: block; }
.rm-art-wall { inset: 0 0 32% 0; background: linear-gradient(180deg, color-mix(in srgb, var(--w) 92%, #fff), var(--w)); }
.rm-art-frame { width: 26%; height: 22%; top: 16%; inset-inline-start: 18%; border-radius: 3px; background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 60%, #fff)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--d) 70%, #000); }
.rm-art-lamp { width: 3%; height: 34%; bottom: 32%; inset-inline-end: 14%; background: color-mix(in srgb, var(--d) 60%, #222); }
.rm-art-lamp::after { content: ""; position: absolute; top: -12%; left: 50%; width: 520%; height: 22%; transform: translateX(-50%); border-radius: 50% 50% 4px 4px; background: color-mix(in srgb, var(--w) 70%, #fff3d6); box-shadow: 0 6px 18px 2px rgba(255, 214, 140, 0.55); }
.rm-art-sofa { width: 54%; height: 20%; bottom: 25%; inset-inline-start: 12%; border-radius: 6px 6px 3px 3px; background: var(--a);
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--a) 75%, #000), 0 6px 10px -6px rgba(0, 0, 0, 0.45); }
.rm-art-sofa::before { content: ""; position: absolute; inset: -38% 6% 55% 6%; border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--a) 85%, #fff); }
.rm-art-floor { inset: 68% 0 0 0; background: repeating-linear-gradient(90deg, var(--d) 0 18%, color-mix(in srgb, var(--d) 82%, #000) 18% 18.6%); }

/* how it works */
.rm-how { padding-block: 0 clamp(2rem, 4vw, 3rem); }
.rm-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: rmhow; }
.rm-how li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.9rem; padding: 1.1rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(246, 241, 228, 0.03); }
.rm-how .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--gold-300); background: rgba(232, 181, 71, 0.12); }
.rm-how .ico svg { width: 22px; height: 22px; }
.rm-how b { color: var(--on-navy); font-size: 1rem; }
.rm-how p { margin: 0; color: var(--on-navy-muted); font-size: 0.86rem; line-height: 1.55; }

/* ---------------------------------------------------------------- history */
.rm-history { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.rm-hist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.rm-hist-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.rm-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rm-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-md); background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.7); transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
a.rm-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8); }
a.rm-card:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.rm-card-img { position: relative; display: block; aspect-ratio: 3 / 2; background: #e9e3d3; overflow: hidden; }
.rm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
a.rm-card:hover .rm-card-img img { transform: scale(1.04); }
.rm-card-body { display: grid; gap: 0.2rem; padding: 0.8rem 0.95rem 0.9rem; align-content: start; }
.rm-card-body > b { font-size: 0.98rem; line-height: 1.35; }
.rm-card-body > small { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.rm-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.35rem; }
.rm-card-foot small { color: var(--muted); font-size: 0.74rem; }
.rm-card-foot b { font-size: 0.88rem; color: var(--ink); white-space: nowrap; }
.rm-st { position: absolute; top: 10px; inset-inline-start: 10px; padding: 0.2rem 0.6rem; border-radius: 999px; font-style: normal; font-size: 0.72rem; font-weight: 700; color: #fff; background: rgba(6, 21, 52, 0.78); backdrop-filter: blur(6px); }
.rm-st.is-ready { color: #c9f2dc; } .rm-st.is-choosing { color: var(--gold-300); } .rm-st.is-failed { color: #ffc7bd; }
.rm-st.is-working::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 5px; border-radius: 50%; background: var(--gold-300); animation: rmPulse 1.2s ease-in-out infinite; }
@keyframes rmPulse { 50% { opacity: 0.3; } }
.rm-card.is-skel .rm-card-img, .rm-card.is-skel i { background: linear-gradient(90deg, #ece6d6 25%, #f6f2e8 50%, #ece6d6 75%); background-size: 200% 100%; animation: rmShimmer 1.4s linear infinite; }
.rm-card.is-skel i { display: block; height: 12px; border-radius: 6px; margin-top: 4px; }
.rm-card.is-skel i + i { width: 60%; }
@keyframes rmShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rm-empty { display: grid; justify-items: center; gap: 0.8rem; padding: 2.5rem 1rem; border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); text-align: center; color: var(--on-navy-muted); }
.rm-empty > svg { width: 40px; height: 40px; color: var(--gold-300); }
.rm-empty p { margin: 0; }

/* gate and full failures */
.rm-gate, .rm-failed { display: grid; justify-items: center; text-align: center; gap: 0.8rem; max-width: 34rem; margin-inline: auto; padding: clamp(1.5rem, 4vw, 2.5rem); }
.rm-gate-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 16px 34px -14px rgba(232, 181, 71, 0.9); }
.rm-gate-ico svg { width: 30px; height: 30px; }
.rm-failed p { color: var(--on-navy-muted); }

/* ---------------------------------------------------------------- the guided setup */
.rm-wz { display: grid; gap: 1.25rem; }
.rm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
.rm-steps button { width: 100%; display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.6rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(246, 241, 228, 0.03);
  color: var(--on-navy-faint); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.rm-steps button:disabled { cursor: default; }
.rm-steps button:not(:disabled):hover { border-color: var(--gold-400); color: var(--on-navy); }
.rm-steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; background: rgba(246, 241, 228, 0.08); }
.rm-steps .n svg { width: 14px; height: 14px; }
.rm-steps .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-steps li.on button { border-color: var(--gold-400); color: var(--on-navy); background: rgba(232, 181, 71, 0.1); }
.rm-steps li.on .n { background: var(--gold-400); color: var(--gold-ink); }
.rm-steps li.done button { color: var(--on-navy-muted); }
.rm-steps li.done .n { background: rgba(76, 181, 127, 0.2); color: #8fe0b4; }
@media (max-width: 640px) { .rm-steps .t { display: none; } .rm-steps li.on .t { display: block; } .rm-steps { grid-template-columns: repeat(4, auto) minmax(0, 1fr); } .rm-steps li.on { grid-column: auto; } .rm-steps button { justify-content: center; } }

.rm-wz-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .rm-wz-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .rm-wz-grid.one { grid-template-columns: minmax(0, 720px); justify-content: center; } }
.rm-drop-panel { gap: 1rem; }
.rm-drop { display: grid; justify-items: center; gap: 0.8rem; padding: clamp(2rem, 5vw, 3.25rem) 1.25rem; border-radius: var(--r-lg); border: 2px dashed var(--paper-line); background: #fff; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.rm-drop:hover, .rm-drop.drag { border-color: var(--gold-500); background: #fffaf0; }
.rm-drop:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.18); }
.rm-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rm-drop > b { font-size: 1.15rem; color: var(--ink); }
.rm-drop > small { color: var(--muted); font-size: 0.8rem; }
.rm-drop-ico { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 16px 34px -14px rgba(232, 181, 71, 0.9); }
.rm-drop-ico svg { width: 32px; height: 32px; }
.rm-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.rm-tips li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.75rem 0.9rem; border-radius: 14px; background: var(--cream); color: var(--ink-2); font-size: 0.88rem; line-height: 1.55; }
.rm-tips svg { flex: none; width: 22px; height: 22px; color: #9a6f14; margin-top: 1px; }

.rm-wz-photo { display: grid; gap: 0.6rem; position: sticky; top: 90px; }
.rm-photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #1a2a4a; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); min-height: 180px; }
.rm-photo img { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #0b1a38; }
.rm-photo img.broken { opacity: 0; min-height: 240px; }
.rm-photo.is-busy img { filter: saturate(0.6) brightness(0.85); }
.rm-photo.drag { box-shadow: 0 0 0 3px var(--gold-400); }
.rm-chip { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 0.45rem; max-width: calc(100% - 24px); padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(6, 21, 52, 0.82); backdrop-filter: blur(8px); color: #fff; font-size: 0.82rem; font-weight: 600; animation: fade-up 0.4s var(--ease-out) both; }
.rm-chip svg { width: 16px; height: 16px; color: #8fe0b4; }
.rm-chip .spinner { width: 14px; height: 14px; }
.rm-warn { margin: 0; padding: 0.65rem 0.85rem; border-radius: 12px; background: rgba(232, 181, 71, 0.12); border: 1px solid rgba(232, 181, 71, 0.35); color: var(--gold-300); font-size: 0.85rem; line-height: 1.5; }
.rm-change { display: inline-flex; align-items: center; gap: 0.45rem; justify-self: start; padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--on-navy-muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.rm-change:hover, .rm-change:focus-within { border-color: var(--gold-400); color: var(--gold-300); }
.rm-change svg { width: 16px; height: 16px; }
.rm-change input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.rm-wz-panel { gap: 1.1rem; animation: fade-up 0.35s var(--ease-out) both; }
.rm-wz-panel h2 { font-size: 1.2rem; }
.rm-types { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.rm-m2 .rm-m2-val { display: inline-flex; align-items: baseline; gap: 0.25rem; padding-inline: 0.4rem; }
.rm-m2 input { width: 3.6rem; height: 36px; border: 1px solid var(--paper-line); border-radius: 10px; text-align: center; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); background: #fff; }
.rm-m2 input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(232, 181, 71, 0.2); }
.rm-m2 small { color: var(--muted); }

.rm-styles { display: grid; gap: 0.6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .rm-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rm-style { position: relative; display: grid; gap: 0.45rem; padding: 6px 6px 9px; border-radius: 16px; border: 1.5px solid var(--paper-line); background: #fff; cursor: pointer; text-align: start; font: inherit;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s; }
.rm-style:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.rm-style b { padding-inline: 4px; font-size: 0.86rem; color: var(--ink); }
.rm-style.on { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(232, 181, 71, 0.25); }
.rm-style-n { position: absolute; top: 12px; inset-inline-end: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 0.82rem;
  color: var(--gold-ink); background: var(--gold-400); box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.35); animation: rmPop 0.3s var(--ease-out); }
@keyframes rmPop { from { transform: scale(0.4); opacity: 0; } }
.rm-style-hint.warn { color: #b4541b; font-weight: 600; }
.rm-styles.mini { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.45rem; }
.rm-styles.mini .rm-style { padding: 4px 4px 6px; border-radius: 12px; }
.rm-styles.mini .rm-style b { font-size: 0.74rem; }
.rm-styles.mini .rm-style-n { top: 7px; inset-inline-end: 7px; width: 20px; height: 20px; font-size: 0.7rem; }

.rm-keep { display: grid; gap: 0.55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 460px) { .rm-keep { grid-template-columns: minmax(0, 1fr); } }
.rm-keep-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.75rem 0.85rem; border-radius: 14px; border: 1.5px solid var(--gold-500); background: #fffaf0;
  font: inherit; text-align: start; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.rm-keep-item b { display: block; font-size: 0.92rem; color: var(--ink); }
.rm-keep-item small { display: block; font-size: 0.76rem; color: #9a6f14; font-weight: 600; }
.rm-keep-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #9a6f14; background: rgba(232, 181, 71, 0.18); }
.rm-keep-ico svg { width: 20px; height: 20px; }
.rm-sw { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--gold-500); transition: background 0.2s; }
.rm-sw::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: inset-inline-end 0.2s var(--ease-out); }
.rm-keep-item.is-keep { border-color: var(--paper-line); background: #fff; }
.rm-keep-item.is-keep small { color: var(--muted); font-weight: 500; }
.rm-keep-item.is-keep .rm-keep-ico { color: var(--muted); background: var(--cream); }
.rm-keep-item.is-keep .rm-sw { background: #d6d0c0; }
.rm-keep-item.is-keep .rm-sw::after { inset-inline-end: 19px; }
.rm-summary { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 0.85rem; padding: 0.7rem; border-radius: 16px; background: var(--cream); }
.rm-summary .rm-art { border-radius: 10px; }
.rm-summary b { display: block; color: var(--ink); font-size: 0.95rem; }
.rm-summary small { color: var(--muted); font-size: 0.8rem; }
.rm-wz-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--paper-line); }
.rm-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem 0.9rem; flex: 1; }
.rm-go small { color: var(--muted); font-size: 0.8rem; }
.rm-go .btn { min-height: 52px; padding-inline: 1.4rem; }

/* ---------------------------------------------------------------- one remodel */
.rm-detail { display: grid; gap: 1.1rem; }
.rm-top { display: grid; gap: 0.45rem; }
.rm-back { display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start; color: var(--on-navy-muted); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.rm-back:hover { color: var(--gold-300); }
.rm-back svg { width: 16px; height: 16px; }
.rm-title-row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.rm-title-row h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rm-icon-btn { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; color: var(--on-navy-muted); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.rm-icon-btn:hover { border-color: var(--gold-400); color: var(--gold-300); }
.rm-icon-btn svg { width: 17px; height: 17px; }
.rm-rename { display: flex; gap: 0.5rem; width: min(100%, 520px); }
.rm-rename .text-input { min-height: 46px; }
.rm-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; color: var(--on-navy-muted); font-size: 0.86rem; }
.rm-meta > span + span::before { content: "·"; margin-inline-end: 0.5rem; color: var(--on-navy-faint); }
.rm-meta .rm-meta-tag { color: var(--gold-300); }

.rm-main { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1000px) { .rm-main { grid-template-columns: minmax(0, 1fr) 380px; } .rm-main.one { grid-template-columns: minmax(0, 900px); justify-content: center; } }
.rm-col { display: grid; gap: 1rem; min-width: 0; }
.rm-side { display: grid; gap: 0.9rem; min-width: 0; }
/* short side columns (choosing) stay in view; the ready one carries a long list, so it scrolls with the page */
@media (min-width: 1000px) { .rm-choosing .rm-side { position: sticky; top: 86px; } }

.rm-stage { position: relative; width: 100%; max-width: min(100%, calc(70vh * var(--ar, 1.5))); margin-inline: auto; }
.rm-stage .ba { border-radius: var(--r-lg); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(246, 241, 228, 0.07); }
.rm-stage-img { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: var(--ar, 1.5); background: #0b1a38; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.8); }
.rm-stage-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.55) brightness(0.72); transform: scale(1.02); }
.rm-stage .pr-scan { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.rm-stage-status { position: absolute; inset-inline: 14px; bottom: 14px; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 16px;
  background: rgba(6, 21, 52, 0.82); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.8); }
.rm-stage-status b { display: block; font-size: 0.98rem; }
.rm-stage-status small { display: block; color: var(--on-navy-muted); font-size: 0.8rem; margin-top: 2px; }
.rm-stage-status small.in { animation: fade-up 0.45s var(--ease-out) both; }
.rm-stage-status .spinner { flex: none; width: 22px; height: 22px; }
.rm-stage.is-busy .ba { filter: saturate(0.7) brightness(0.85); }
.rm-sub { margin: 0; text-align: center; color: var(--on-navy-faint); font-size: 0.85rem; }

.rm-choose-head h2 { font-size: 1.2rem; color: var(--on-navy); }
.rm-choose-head p { margin: 0.25rem 0 0; color: var(--on-navy-muted); font-size: 0.88rem; }
.rm-set { display: grid; gap: 0.6rem; }
.rm-set-head { font-size: 0.85rem; color: var(--on-navy-faint); font-weight: 600; }
.rm-prevs { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .rm-prevs { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .rm-prev { scroll-snap-align: start; } }
.rm-prev { margin: 0; display: grid; gap: 0.5rem; padding: 6px 6px 10px; border-radius: 18px; background: rgba(246, 241, 228, 0.05); border: 1.5px solid var(--line); transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out); animation: fade-up 0.4s var(--ease-out) both; }
.rm-prev:nth-child(2) { animation-delay: 0.06s; } .rm-prev:nth-child(3) { animation-delay: 0.12s; }
.rm-prev.on { border-color: var(--gold-400); background: rgba(232, 181, 71, 0.1); }
.rm-prev-img { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 13px; overflow: hidden; background: #13254a; cursor: pointer; }
.rm-prev-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out); }
button.rm-prev-img:hover img { transform: scale(1.04); }
button.rm-prev-img:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.rm-prev-on { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-ink); background: var(--gold-400); animation: rmPop 0.3s var(--ease-out); }
.rm-prev-on svg { width: 16px; height: 16px; }
.rm-prev figcaption { display: grid; gap: 0.45rem; padding-inline: 4px; }
.rm-prev figcaption b { font-size: 0.86rem; color: var(--on-navy); }
.rm-prev-pick { min-height: 38px; font-size: 0.84rem; padding-inline: 0.8rem; }
.rm-prev.is-pending .rm-prev-img, .rm-prev.is-failed .rm-prev-img { display: grid; place-items: center; cursor: default; }
.rm-shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(246, 241, 228, 0.09) 40%, transparent 60%); background-size: 220% 100%; animation: rmShimmer 1.6s linear infinite; }
.rm-prev.is-failed .rm-prev-img span { display: grid; justify-items: center; gap: 0.35rem; padding: 0.5rem; text-align: center; color: var(--on-navy-faint); font-size: 0.75rem; }
.rm-prev.is-failed svg { width: 24px; height: 24px; }

.rm-final { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.75rem 0.9rem; padding: 1rem; border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.7); }
.rm-final .btn { grid-column: 1 / -1; min-height: 50px; }
.rm-final b { display: block; font-size: 0.95rem; line-height: 1.4; }
.rm-final small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.rm-final-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #9a6f14; background: rgba(232, 181, 71, 0.16); }
.rm-final-ico svg { width: 22px; height: 22px; }
.rm-final.is-free { background: linear-gradient(135deg, #fff6df, var(--paper) 60%); box-shadow: 0 0 0 1.5px rgba(232, 181, 71, 0.6), 0 30px 60px -36px rgba(0, 0, 0, 0.7); }
.rm-final.is-free .rm-final-ico { color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.rm-more-open { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: transparent; color: var(--on-navy); font: inherit; text-align: start; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.rm-more-open:hover { border-color: var(--gold-400); background: rgba(232, 181, 71, 0.06); }
.rm-more-open svg { flex: none; width: 22px; height: 22px; color: var(--gold-300); }
.rm-more-open b { display: block; font-size: 0.92rem; }
.rm-more-open small { display: block; color: var(--on-navy-muted); font-size: 0.8rem; }
.rm-more { display: grid; gap: 0.75rem; padding: 1rem; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
.rm-more-head { display: flex; align-items: center; justify-content: space-between; }
.rm-more-head .rm-icon-btn { color: var(--muted); border-color: var(--paper-line); }
.rm-more .text-input { min-height: 44px; font-size: 0.92rem; }
.rm-more-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.rm-more-go small { color: var(--muted); font-size: 0.78rem; }

.rm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.rm-actions .btn { min-height: 40px; font-size: 0.86rem; padding-inline: 0.95rem; }
.rm-versions h3 { font-size: 0.85rem; color: var(--on-navy-faint); font-weight: 600; margin-bottom: 0.5rem; }
.rm-vlist { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rm-ver { flex: none; width: 128px; display: grid; gap: 0.3rem; padding: 5px 5px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(246, 241, 228, 0.04); color: var(--on-navy-muted); font: inherit; text-align: start; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.rm-ver:not(:disabled):hover { border-color: var(--gold-400); }
.rm-ver.on { border-color: var(--gold-400); background: rgba(232, 181, 71, 0.1); color: var(--on-navy); cursor: default; }
.rm-ver:disabled:not(.on) { cursor: default; }
.rm-ver-img { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: #13254a; }
.rm-ver-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-ver-img svg { width: 20px; height: 20px; color: #ffb4a6; }
.rm-ver-name { padding-inline: 3px; font-size: 0.8rem; font-weight: 700; }
.rm-ver small, .rm-ver-on { padding-inline: 3px; font-size: 0.72rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-ver-on { color: var(--gold-300); font-weight: 600; }
.rm-ver.is-failed { opacity: 0.6; }

.rm-edit { display: grid; gap: 0.7rem; padding: 1rem; border-radius: var(--r-lg); background: rgba(246, 241, 228, 0.05); border: 1px solid var(--line); }
.rm-edit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.rm-edit-head b { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--on-navy); }
.rm-edit-head b svg { width: 18px; height: 18px; color: var(--gold-300); }
.rm-edit-badge { padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600; color: var(--on-navy-muted); border: 1px solid var(--line-strong); }
.rm-edit-badge.is-free { color: var(--gold-ink); background: var(--gold-400); border-color: transparent; }
.rm-edit-row { display: flex; gap: 0.5rem; }
.rm-edit-row .text-input { flex: 1; min-width: 0; min-height: 48px; }
.rm-edit-row .btn { min-height: 48px; }
.rm-sugs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rm-sugs button { padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--on-navy-muted); font: inherit; font-size: 0.8rem; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.rm-sugs button:hover:not(:disabled) { border-color: var(--gold-400); color: var(--gold-300); }
.rm-sugs button:disabled { opacity: 0.5; cursor: default; }
.rm-ideas { border-radius: var(--r-md); border: 1px solid var(--line); padding: 0.2rem 0.9rem; }
.rm-ideas[open] { padding-bottom: 0.9rem; }
.rm-ideas > summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0; cursor: pointer; list-style: none; color: var(--on-navy-muted); font-weight: 600; font-size: 0.9rem; }
.rm-ideas > summary::-webkit-details-marker { display: none; }
.rm-ideas > summary svg { width: 18px; height: 18px; color: var(--gold-300); }
.rm-ideas > summary em { font-style: normal; padding: 0 0.5rem; border-radius: 999px; background: rgba(246, 241, 228, 0.08); font-size: 0.78rem; }
.rm-ideas .rm-set + .rm-set, .rm-ideas .rm-final { margin-top: 0.8rem; }

/* the numbers */
.rm-numbers { display: grid; gap: 0.85rem; padding: 1rem; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.7); }
.rm-numbers.is-skel i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, #ece6d6 25%, #f6f2e8 50%, #ece6d6 75%); background-size: 200% 100%; animation: rmShimmer 1.4s linear infinite; }
.rm-numbers.is-skel i:first-child { height: 40px; width: 70%; } .rm-numbers.is-skel i:last-child { width: 50%; }
.rm-total { display: grid; gap: 0.4rem; padding: 1rem; border-radius: 16px; color: var(--on-navy); background: radial-gradient(120% 140% at 100% 0%, rgba(232, 181, 71, 0.22), transparent 55%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.rm-total-k { font-size: 0.8rem; color: var(--on-navy-muted); }
.rm-total > b { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.1; color: #fff; }
.rm-total > b small { font-size: 0.85rem; color: var(--gold-300); margin-inline-start: 0.35rem; font-family: var(--font-body); }
.rm-split { display: flex; height: 7px; border-radius: 999px; overflow: hidden; background: rgba(246, 241, 228, 0.1); margin-top: 0.3rem; }
.rm-split i:first-child { background: #8fb0e8; } .rm-split i:last-child { background: var(--gold-400); }
.rm-split-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; font-size: 0.78rem; color: var(--on-navy-muted); }
.rm-split-legend em { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 0.35rem; }
.rm-split-legend em.a { background: #8fb0e8; } .rm-split-legend em.b { background: var(--gold-400); }
.rm-split-legend b { color: #fff; }
.rm-total-note { color: var(--on-navy-faint); font-size: 0.74rem; }
.rm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--cream); }
.rm-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.rm-tabs button svg { width: 16px; height: 16px; }
.rm-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.25); }
.rm-tabpanel { display: grid; gap: 0.8rem; animation: fade-up 0.3s var(--ease-out) both; }
.rm-pal h4 { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-bottom: 0.45rem; }
.rm-pal-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.rm-sw-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.65rem 0.35rem 0.35rem; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); }
[dir="rtl"] .rm-sw-chip { padding: 0.35rem 0.35rem 0.35rem 0.65rem; }
.rm-sw-chip i { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.rm-sw-chip i.wood { background-image: repeating-linear-gradient(100deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 7px) !important; }
.rm-sw-chip span { display: grid; line-height: 1.25; }
.rm-sw-chip small { font-size: 0.68rem; color: var(--muted); }
.rm-sw-chip b { font-size: 0.8rem; }
.rm-sw-chip em { font-style: normal; font-size: 0.7rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rm-table-wrap { overflow-x: auto; margin-inline: -4px; }
.rm-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.rm-table th, .rm-table td { padding: 0.45rem 0.4rem; text-align: start; vertical-align: top; border-bottom: 1px solid rgba(226, 219, 200, 0.7); }
.rm-table thead th { font-size: 0.7rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rm-table .num { text-align: end; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rm-table tr.rm-g th { padding-top: 0.75rem; font-size: 0.78rem; color: #9a6f14; font-weight: 700; border-bottom-color: var(--paper-line); }
.rm-li b { display: block; font-weight: 600; line-height: 1.35; }
.rm-li small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.rm-q small { color: var(--muted); font-size: 0.72rem; }
.rm-p { color: var(--ink-2); }
.rm-t { font-weight: 700; }
.rm-table tfoot th { padding-top: 0.6rem; border-bottom: 0; font-size: 0.85rem; }
.rm-table tfoot tr.rm-grand th { font-size: 0.98rem; color: var(--ink); border-top: 1.5px solid var(--ink); }
.rm-list-wait { display: grid; justify-items: center; gap: 0.7rem; padding: 1.4rem 0.5rem; text-align: center; color: var(--muted); font-size: 0.88rem; }
.rm-list-wait p { margin: 0; }
.rm-list-wait .spinner { width: 24px; height: 24px; }
.rm-list-empty, .rm-kept { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.rm-assume { margin: 0; padding-inline-start: 1.1rem; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }

.rm-unit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; width: 100%; padding: 0.85rem 0.95rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(246, 241, 228, 0.04); color: var(--on-navy); font: inherit; text-align: start; }
button.rm-unit { cursor: pointer; transition: border-color 0.2s, background 0.2s; }
button.rm-unit:hover { border-color: var(--gold-400); background: rgba(232, 181, 71, 0.06); }
.rm-unit b { display: block; font-size: 0.92rem; }
.rm-unit small { display: block; color: var(--on-navy-muted); font-size: 0.78rem; line-height: 1.45; }
.rm-unit-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-300); background: rgba(232, 181, 71, 0.12); }
.rm-unit-ico svg { width: 20px; height: 20px; }
.rm-unit-chev { width: 18px; height: 18px; color: var(--on-navy-faint); }
.rm-unit.is-linked { grid-template-columns: auto minmax(0, 1fr); border-color: rgba(76, 181, 127, 0.45); background: rgba(76, 181, 127, 0.07); }
.rm-unit.is-linked .rm-unit-ico { color: #8fe0b4; background: rgba(76, 181, 127, 0.16); }
.rm-unit-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.rm-unit-acts .btn { min-height: 38px; font-size: 0.85rem; }
.rm-unit-acts .link-btn { color: var(--on-navy-muted); font-size: 0.82rem; }
.rm-unit.is-open { grid-template-columns: minmax(0, 1fr); }
.rm-unit-headrow { display: flex; align-items: center; gap: 0.6rem; }
.rm-unit-headrow b { flex: 1; }
.rm-unit-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.rm-unit-form select { flex: 1; min-width: 160px; min-height: 44px; }
.rm-unit-form .hint { margin: 0; color: var(--on-navy-muted); font-size: 0.82rem; }
.rm-disclaimer { margin: 0; color: var(--on-navy-faint); font-size: 0.74rem; line-height: 1.6; }
.rm-danger { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.rm-danger a, .rm-danger button { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0; border: 0; background: none; color: var(--on-navy-faint); font: inherit; font-size: 0.8rem; text-decoration: none; cursor: pointer; }
.rm-danger a:hover { color: var(--on-navy); }
.rm-danger button:hover { color: #ff9f8f; }
.rm-danger svg { width: 15px; height: 15px; }
.rm-detail > .alert { margin: 0; }
.rm-detail > .alert a { font-weight: 700; color: inherit; }

/* ---------------------------------------------------------------- FAQ */
.rm-faq { padding-block: 0 clamp(3rem, 6vw, 5rem); }
.rm-faq .faq { max-width: 860px; margin-inline: auto; }

/* ---------------------------------------------------------------- home page section (index.html) */
.rm-home .wrap { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 960px) { .rm-home .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.rm-home-text { display: grid; gap: 1rem; justify-items: start; }
.rm-home-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.rm-home-text p { color: var(--on-navy-muted); line-height: 1.7; max-width: 34rem; margin: 0; }
.rm-home-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.rm-home-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--on-navy); font-size: 0.95rem; }
.rm-home-list svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: var(--gold-ink); background: var(--gold-400); }
.rm-home-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.rm-home-ctas small { color: var(--gold-300); font-weight: 600; font-size: 0.85rem; }

/* ---------------------------------------------------------------- PDF / print */
.rm-print { display: none; }
@media print {
  @page { margin: 14mm; }
  body[data-rm-view] { background: #fff !important; color: #111 !important; }
  body[data-rm-view] > *:not(main), body[data-rm-view] main > *:not(.rm-print), .tb-titlebar, .tb-side { display: none !important; }
  body[data-rm-view] main { padding: 0 !important; margin: 0 !important; }
  .rm-print { display: block !important; color: #111; font-size: 11pt; }
  .rmp-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid #d4a23a; margin-bottom: 10px; }
  .rmp-head b { display: block; font-size: 12pt; } .rmp-head small { color: #666; }
  .rm-print h1 { font-size: 18pt; margin: 6px 0 2px; }
  .rm-print h2 { font-size: 13pt; margin: 14px 0 6px; break-after: avoid; }
  .rmp-meta { color: #555; margin: 0 0 8px; }
  .rmp-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rmp-imgs figure { margin: 0; break-inside: avoid; }
  .rmp-imgs img { width: 100%; border-radius: 6px; display: block; }
  .rmp-imgs figcaption { font-size: 9pt; color: #666; margin-top: 2px; }
  .rmp-total { font-size: 13pt; margin: 10px 0 0; }
  .rm-print .rm-table { font-size: 9.5pt; }
  .rm-print .rm-table th, .rm-print .rm-table td { border-bottom: 1px solid #ddd; }
  .rm-print .rm-sw-chip { border: 1px solid #ccc; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rm-print .rm-sw-chip i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rm-print tr { break-inside: avoid; }
  .rmp-fine { margin-top: 12px; color: #666; font-size: 8.5pt; }
}
