/* REPAIRMAN — first-run intro (4 panels, additive / standalone).
   Navy world (the splash's world, continued), the app replica in a
   light phone on it, orange for the way forward (2026-11-04 motif).
   Motion: one quiet glide (site ease), never a bounce. */
.rm-intro {
  position: fixed; inset: 0; z-index: 3000;
  background: linear-gradient(180deg, #071630 0%, #0e2a52 100%);
  color: #fff;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s cubic-bezier(.32,.72,0,1), visibility 0s .45s;
}
.rm-intro.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s cubic-bezier(.32,.72,0,1); }
.rm-intro * { box-sizing: border-box; margin: 0; padding: 0; }
.rm-intro button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rm-intro-top {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 4px;
  max-width: 560px; width: 100%; margin: 0 auto;
}
.rm-intro-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; box-shadow: 0 2px 8px rgba(10,30,60,.18), inset 0 0 0 1px rgba(10,30,60,.05); }
.rm-intro-wm { font-size: 14px; font-weight: 800; letter-spacing: .045em; line-height: 1; }
.rm-intro-wm-jp { font-size: 9px; font-weight: 600; letter-spacing: .24em; color: rgba(255,255,255,.55); margin-left: 8px; }
.rm-intro-count { margin-left: auto; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.rm-intro-credit { flex: none; text-align: center; font-size: 8.5px; font-weight: 700; letter-spacing: .38em; text-indent: .38em; color: rgba(255,255,255,.38); line-height: 1; padding: 4px 20px calc(env(safe-area-inset-bottom, 0px) + 12px); }
.rm-intro-viewport { flex: 1; overflow: hidden; width: 100%; max-width: 560px; margin: 0 auto; min-height: 0; }
.rm-intro-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.32,.72,0,1); will-change: transform; touch-action: pan-y; }
.rm-intro-panel {
  flex: 0 0 100%; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 30px 8px; text-align: center;
}
.rm-intro-art { width: 168px; height: 168px; flex: none; display: grid; place-items: center; margin-bottom: 30px; }
.rm-intro-art svg { width: 100%; height: 100%; display: block; }
/* screen replicas (2026-10-29): the art is a miniature of the real app
   screen — phone frame + the app's own components and copy. */
.rm-intro-art.shot { width: min(232px, 66vw); height: auto; display: block; margin-bottom: 24px; }
.rms-phone {
  width: 100%; height: 316px; background: #eef2f7; color: #0f2140;
  border: 1px solid rgba(255,255,255,.25); border-radius: 26px; overflow: hidden;
  box-shadow: 0 18px 38px rgba(10,30,60,.14);
  display: flex; flex-direction: column; text-align: left;
  font-size: 10px; line-height: 1.5;
}
.rms-phone * { box-sizing: border-box; }
.rms-head {
  flex: none; display: flex; align-items: center; gap: 5px;
  background: linear-gradient(180deg, #0e2a52, #0a1e3c); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); padding: 9px 11px 8px;
}
.rms-back { width: 15px; height: 15px; color: #fff; flex: none; }
.rms-back svg { width: 100%; height: 100%; display: block; }
.rms-ht { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.rms-body { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 10px; min-height: 0; overflow: hidden; }
.rms-body.rms-chat { background: #fff; }
/* chat */
.rms-msg { max-width: 88%; padding: 7px 9px; border-radius: 12px; font-size: 9.8px; line-height: 1.55; }
.rms-msg.ai { background: #eceef1; align-self: flex-start; border-bottom-left-radius: 4px; }
.rms-msg.me { background: #0a1e3c; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.rms-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.rms-chip { border: 1px solid #d6d9df; background: #fff; border-radius: 999px; padding: 3.5px 8px; font-size: 9.3px; line-height: 1.4; }
.rms-chip.on { background: #0a1e3c; border-color: #0a1e3c; color: #fff; font-weight: 700; }
.rms-input {
  flex: none; display: flex; align-items: center; gap: 7px;
  border-top: 1px solid #e5e7ec; background: #fff; padding: 8px 10px;
}
.rms-ph { flex: 1; background: #eceef1; border-radius: 999px; color: #878e99; font-size: 9.5px; padding: 6px 10px; }
.rms-send { flex: none; width: 24px; height: 24px; border-radius: 999px; background: #ff6a00; color: #fff; display: grid; place-items: center; }
.rms-send svg { width: 13px; height: 13px; display: block; }
/* cards & lines (quote / track grammar) */
.rms-card { background: #fff; border: 1px solid #e5e7ec; border-radius: 12px; padding: 9px 10px; }
.rms-name { font-size: 10px; font-weight: 800; margin-bottom: 5px; }
.rms-srow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2.5px 0; font-size: 9.6px; }
.rms-srow .k { color: #5f6672; }
.rms-srow .v { font-weight: 600; text-align: right; }
.rms-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2.5px 0; font-size: 9.6px; font-variant-numeric: tabular-nums; }
.rms-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid #e5e7ec; margin-top: 5px; padding-top: 6px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rms-note { font-size: 8.8px; line-height: 1.6; color: #878e99; padding: 0 2px; }
.rms-note2 { font-size: 8.8px; line-height: 1.6; color: #5f6672; margin-top: 5px; }
.rms-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border-top: 1px solid #e5e7ec; padding: 9px 10px;
}
.rms-bar-t { display: flex; flex-direction: column; line-height: 1.3; }
.rms-bar-l { font-size: 8.3px; color: #878e99; }
.rms-bar-v { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rms-btn { background: #ff6a00; color: #fff; border-radius: 999px; padding: 7px 11px; font-size: 9.6px; font-weight: 700; white-space: nowrap; }
.rms-btn.wide { flex: 1; text-align: center; }
/* map band + track hero + flowline */
.rms-map { flex: none; height: 84px; border-bottom: 1px solid #e5e7ec; }
.rms-map svg { width: 100%; height: 100%; display: block; }
.rms-hero { padding: 1px 2px 0; }
.rms-hlabel { font-size: 8.5px; color: #878e99; letter-spacing: .02em; }
.rms-hstatus { font-size: 19px; font-weight: 800; line-height: 1.25; margin-top: 1px; }
.rms-hsub { font-size: 9.5px; color: #5f6672; margin-top: 1px; }
.rms-big { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 1px 0 4px; }
.rms-badge { flex: none; font-size: 8.6px; font-weight: 700; border: 1px solid #d6d9df; border-radius: 999px; padding: 2.5px 7px; color: #5f6672; background: #fff; }
.rms-badge.go { background: #1e9e5a; border-color: #1e9e5a; color: #fff; }
.rms-flow { position: relative; display: flex; justify-content: space-between; padding: 2px 2px 0; }
.rms-ftrack { position: absolute; top: 8px; left: 15px; right: 15px; height: 2px; background: #dde0e6; border-radius: 2px; }
.rms-ffill { position: absolute; top: 8px; left: 15px; height: 2px; background: #ff6a00; border-radius: 2px; }
.rms-fstep { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3.5px; width: 26px; }
.rms-fdot { width: 13px; height: 13px; border-radius: 999px; background: #fff; border: 1.6px solid #d6d9df; display: grid; place-items: center; color: #fff; }
.rms-fdot svg { width: 8px; height: 8px; display: block; }
.rms-fstep.done .rms-fdot { background: #0a1e3c; border-color: #0a1e3c; }
.rms-fstep.now .rms-fdot { border-color: #ff6a00; }
.rms-fstep.now .rms-fdot i { width: 5px; height: 5px; border-radius: 999px; background: #ff6a00; display: block; }
.rms-flb { font-size: 7.8px; color: #878e99; }
.rms-fstep.done .rms-flb, .rms-fstep.now .rms-flb { color: #0f2140; font-weight: 700; }
/* worker steps checklist */
.rms-sstep { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.rms-sdot { flex: none; width: 17px; height: 17px; border-radius: 999px; border: 1.6px solid #d6d9df; color: #878e99; font-size: 9px; font-weight: 800; display: grid; place-items: center; background: #fff; }
.rms-sdot svg { width: 9px; height: 9px; display: block; }
.rms-sstep.done .rms-sdot { background: #0a1e3c; border-color: #0a1e3c; color: #fff; }
.rms-sstep.now .rms-sdot { border-color: #ff6a00; color: #e05d00; }
.rms-stx { font-size: 9.8px; }
.rms-sstep.done .rms-stx { color: #5f6672; }
.rms-sstep.now .rms-stx { font-weight: 700; }
/* guided camera replica */
.rms-phone.dark { background: #101114; border-color: #101114; color: #fff; }
.rms-camtop { flex: none; padding: 13px 12px 4px; text-align: center; }
.rms-camtitle { font-size: 11px; font-weight: 800; }
.rms-camsub { font-size: 9.3px; color: rgba(255,255,255,.62); margin-top: 2px; }
.rms-camview { flex: 1; display: grid; place-items: center; padding: 8px 16px; }
.rms-camframe { position: relative; width: 100%; aspect-ratio: 85.6 / 54; }
.rms-camframe .c { position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.9); }
.rms-camframe .c.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.rms-camframe .c.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.rms-camframe .c.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.rms-camframe .c.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.rms-camcard { position: absolute; inset: 7px; background: #f4f6f9; border-radius: 5px; }
.rms-cchip { position: absolute; top: 9px; left: 9px; width: 13px; height: 10px; border-radius: 2px; background: #d9c98a; }
.rms-cline { position: absolute; left: 9px; height: 3.5px; border-radius: 2px; background: #c3c9d2; }
.rms-cline.w60 { top: 26px; width: 60%; }
.rms-cline.w40 { top: 34px; width: 40%; }
.rms-cface { position: absolute; top: 8px; right: 9px; width: 17px; height: 21px; border-radius: 3px; background: #dde2ea; }
.rms-camfoot { flex: none; display: flex; justify-content: center; padding: 6px 0 16px; }
.rms-shutter { width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(255,255,255,.92); background: transparent; box-shadow: inset 0 0 0 3px #101114, inset 0 0 0 6px rgba(255,255,255,.92); }
.rm-intro-panel h2 { font-size: 23px; font-weight: 800; letter-spacing: .02em; line-height: 1.35; color: #fff; }
.rm-intro-panel p { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.72); white-space: nowrap; }
@media (max-width: 374px) { .rm-intro-panel p { white-space: normal; } .rm-intro-panel h2 { font-size: 21px; } }
.rm-intro-foot {
  flex: none; max-width: 560px; width: 100%; margin: 0 auto;
  padding: 10px 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
  display: flex; align-items: center; gap: 12px;
}
.rm-intro-skip { flex: none; min-width: 64px; text-align: left; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.65); padding: 12px 4px; }
.rm-intro-skip.gone { visibility: hidden; }
.rm-intro-dots { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; }
.rm-intro-dots button { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.28); padding: 0; transition: width .45s cubic-bezier(.32,.72,0,1), background-color .3s; }
.rm-intro-dots button.on { width: 22px; background: #ff6a00; }
.rm-intro-next {
  flex: none; min-width: 104px; padding: 13px 22px; border-radius: 999px;
  background: #ff6a00; color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 10px 22px rgba(255,106,0,.30); text-align: center;
}
.rm-intro-next:active { background: #e05d00; }
html.rm-intro-lock, body.rm-intro-lock { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce) {
  .rm-intro, .rm-intro-track, .rm-intro-dots button { transition: none !important; }
}
