



:root {
  --rp-panel: rgba(18, 20, 25, 0.93);
  --rp-inner: rgba(255, 255, 255, 0.05);
  --rp-line: rgba(255, 255, 255, 0.1);
  --rp-text: #eef1f6;
  --rp-muted: #a3acba;
  --rp-amber: #f59e0b;
  --rp-red: #f43f5e;
  --rp-ok: #34d399;
  --rp-gut: 16px;
  --rp-sheet: 58px;

  --rp-card-w: 368px;
}
* { box-sizing: border-box; }
.rp-app {
  position: relative; height: calc(100svh - var(--nav-h, 56px)); min-height: 480px; overflow: hidden; background: #eee9e1;
  color: var(--rp-text); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#rp-view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
#rp-view.rp-over-piece { cursor: move; }
#rp-view.rp-dragging, body.rp-walking #rp-view:active { cursor: grabbing; }
.rp-app :is(button, input, select), .rp-picker :is(button, input) { font: inherit; color: inherit; }
.rp-app svg, .rp-picker svg { width: 16px; height: 16px; flex: none; }
.rp-app a { color: inherit; }
.rp [hidden] { display: none !important; }


.rp-room, .rp-rail, .rp-toolbar, .rp-picker-card {
  background: var(--rp-panel); border: 1px solid var(--rp-line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(32, 24, 12, 0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}


.rp-room {
  position: absolute; z-index: 10; top: var(--rp-gut); left: var(--rp-gut); width: var(--rp-card-w); max-height: calc(100% - 2 * var(--rp-gut));
  overflow: auto; padding: 14px; display: grid; gap: 12px;
}
.rp-room-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-logo { display: inline-flex; width: 28px; height: 28px; flex: none; }
.rp-logo svg { width: 28px; height: 28px; }
.rp-title { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: 0.01em; white-space: nowrap; flex: 1; min-width: 0; }
.rp-lab { margin-left: 4px; padding: 1px 6px; border: 1px solid rgba(245, 158, 11, 0.6); border-radius: 6px; color: var(--rp-amber); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: 2px; }
.rp-preset-select, .rp-room-toggle { display: none; }

.rp-share { height: 30px; padding: 0 10px; font-size: 12.5px; flex: none; }
.rp-share.done { border-color: rgba(52, 211, 153, 0.7); color: #6ee7b7; }
.rp-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-presets button {
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--rp-line); background: var(--rp-inner);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.rp-presets button:hover { background: rgba(255, 255, 255, 0.1); }
.rp-presets button[aria-pressed="true"] { background: var(--rp-amber); border-color: var(--rp-amber); color: #15120c; }
.rp-room-body { display: grid; gap: 12px; }
.rp-field { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; }
.rp-label { color: var(--rp-muted); font-size: 12.5px; font-weight: 600; }
.rp-size { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; grid-column: 2 / 4; }
.rp-size span { color: var(--rp-muted); }
.rp-size label { display: inline-flex; align-items: center; gap: 3px; }
.rp-size i { color: var(--rp-muted); font-style: normal; font-size: 12px; }
.rp-size input { width: 66px; }
#rp-size-in input { width: 48px; }

.rp-pair { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rp-app input[type="number"]::-webkit-inner-spin-button, .rp-app input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rp-app input[type="number"] {
  height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--rp-line); background: rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.rp-app input[type="number"]:focus { outline: 2px solid var(--rp-amber); outline-offset: 0; }
.rp-app input[type="range"] { width: 100%; accent-color: var(--rp-amber); }
.rp-app output { color: var(--rp-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.rp-stats { margin: 0; color: var(--rp-muted); font-size: 12.5px; }
.rp-stats b { color: var(--rp-text); font-size: 14px; }
.rp-fit {
  margin: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: var(--rp-inner); border: 1px solid var(--rp-line); font-weight: 650; font-size: 13px;
}
.rp-fit i { width: 9px; height: 9px; border-radius: 50%; background: var(--rp-muted); flex: none; }
.rp-fit[data-level="ok"] { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.rp-fit[data-level="ok"] i { background: var(--rp-ok); }
.rp-fit[data-level="amber"] { border-color: rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.12); }
.rp-fit[data-level="amber"] i { background: var(--rp-amber); }
.rp-fit[data-level="red"] { border-color: rgba(244, 63, 94, 0.6); background: rgba(244, 63, 94, 0.14); }
.rp-fit[data-level="red"] i { background: var(--rp-red); }
.rp-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 11px;
  border-radius: 10px; border: 1px solid var(--rp-line); background: var(--rp-inner); font-size: 13px; font-weight: 650;
  cursor: pointer; white-space: nowrap;
}
.rp-btn:hover { background: rgba(255, 255, 255, 0.11); }
.rp-btn:disabled, .rp-btn:disabled[aria-pressed="true"] { opacity: 0.45; cursor: default; border-color: var(--rp-line); color: var(--rp-muted); }
.rp-btn[aria-pressed="true"] { border-color: rgba(245, 158, 11, 0.7); color: var(--rp-amber); }
.rp-btn.primary { background: var(--rp-amber); border-color: var(--rp-amber); color: #15120c; }
.rp-btn.primary:hover { background: #fbb32b; }
.rp-btn.danger:hover { border-color: rgba(244, 63, 94, 0.7); color: #fda4af; }
.rp-btn.wide { width: 100%; height: 38px; }
.rp-units { display: inline-flex; border: 1px solid var(--rp-line); border-radius: 10px; overflow: hidden; height: 34px; }
.rp-units button { border: 0; background: transparent; padding: 0 9px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--rp-muted); }
.rp-units button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--rp-text); }
.rp-x { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--rp-line); background: var(--rp-inner); font-size: 20px; line-height: 1; cursor: pointer; flex: none; }


.rp-rail {
  position: absolute; z-index: 10; top: var(--rp-gut); right: var(--rp-gut); bottom: var(--rp-gut); width: 340px;
  display: flex; flex-direction: column; overflow: hidden;
}
.rp-sheet-head { display: none; }
.rp-rail-body { overflow: auto; padding: 14px; display: grid; gap: 12px; align-content: start; }
.rp-rail-title { margin: 0; font-size: 15px; }
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-card { position: relative; padding: 10px; border-radius: 12px; background: var(--rp-inner); border: 1px solid var(--rp-line); display: grid; gap: 8px; }

.rp-card-x {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0;
  border-radius: 8px; border: 1px solid var(--rp-line); background: rgba(0, 0, 0, 0.25); font-size: 18px; line-height: 1;
  color: var(--rp-muted); cursor: pointer;
}
.rp-card-x:hover, .rp-card-x:focus-visible { color: #fff; border-color: rgba(244, 63, 94, 0.75); background: rgba(244, 63, 94, 0.22); }
.rp-card.sel { border-color: rgba(245, 158, 11, 0.85); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35); }
.rp-card-pick { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.rp-card-pick img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: #2a2d34; display: block; }
.rp-card-words { display: grid; gap: 1px; min-width: 0; padding-right: 26px; }
.rp-card-words small { color: var(--rp-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.rp-card-words b { font-size: 13.5px; line-height: 1.3; }
.rp-card-words i { color: var(--rp-muted); font-style: normal; font-size: 12.5px; }
.rp-dims { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.rp-chip {
  justify-self: start; display: inline-flex; gap: 4px; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: rgba(255, 255, 255, 0.08); color: var(--rp-muted);
}
.rp-chip[data-level="ok"] { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.rp-chip[data-level="amber"] { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.rp-chip[data-level="red"] { background: rgba(244, 63, 94, 0.18); color: #fda4af; }
.rp-card-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 650; }
.rp-card-links a { text-decoration: none; color: var(--rp-text); }
.rp-card-links a:first-child { color: var(--rp-amber); }
.rp-card-links a:hover { text-decoration: underline; }
.rp-empty { margin: 0; color: var(--rp-muted); }
.rp-note { margin: 0; color: var(--rp-muted); font-size: 11.5px; }
.rp-note a { color: var(--rp-amber); text-decoration: none; font-weight: 650; }


.rp-foot {
  position: absolute; z-index: 12; bottom: 12px; left: calc(var(--rp-gut) + var(--rp-card-w) + 16px); right: calc(var(--rp-gut) + 340px + 16px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.rp-toolbar { pointer-events: auto; max-width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px; }

.rp-notice {
  order: -1; margin: 0; max-width: min(520px, 100%); padding: 8px 14px; border-radius: 12px; background: rgba(18, 20, 25, 0.92);
  color: #fff; font-size: 13px; font-weight: 600; text-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); pointer-events: auto;
}
.rp-toolbar b { padding: 0 6px 0 4px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }


.rp-hint {
  margin: 0; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(60, 50, 35, 0.1);
  color: #4a4136; font-size: 12px; pointer-events: none;
}
.rp-hint span:not(:last-of-type)::after { content: "·"; margin: 0 7px; color: #a1958a; }
.rp-hint kbd { font: 700 11px/1 ui-monospace, monospace; padding: 2px 4px; border-radius: 4px; background: rgba(60, 50, 35, 0.1); }
.rp-hint b:empty { display: none; }
.rp-hint b { margin-left: 10px; color: #b45309; }
@media (hover: none) { .rp-hint { display: none; } }



.rp-cam {
  position: absolute; z-index: 9; right: calc(var(--rp-gut) + 340px + 14px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.rp-cam .rp-cam-toggle { display: none; }
.rp-cam-body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rp-cam-col, .rp-pad, .rp-cam-toggle {
  background: var(--rp-panel); border: 1px solid var(--rp-line); box-shadow: 0 10px 26px rgba(32, 24, 12, 0.24);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rp-cam-col { display: flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: 12px; }
.rp-cam button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--rp-text); cursor: pointer; }
.rp-cam button:hover, .rp-cam button:focus-visible { background: rgba(255, 255, 255, 0.12); }
.rp-cam button:active { background: var(--rp-amber); color: #15120c; }
.rp-cam-col svg { width: 18px; height: 18px; }
.rp-pad { display: grid; grid-template-columns: repeat(3, 30px); grid-template-rows: repeat(3, 30px); gap: 2px; padding: 5px; border-radius: 50%; }
.rp-pad button { width: 30px; height: 30px; border-radius: 8px; touch-action: none; }
.rp-pad .up { grid-area: 1 / 2; }
.rp-pad .left { grid-area: 2 / 1; }
.rp-pad .right { grid-area: 2 / 3; }
.rp-pad .down { grid-area: 3 / 2; }


.rp-tags { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.rp-tag {
  position: absolute; left: 0; top: 0; display: grid; justify-items: center; padding: 4px 9px; border-radius: 9px;
  background: rgba(18, 20, 25, 0.88); color: #fff; font-size: 11.5px; line-height: 1.25; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.rp-tag b { font-size: 12px; }
.rp-tag span { color: #cbd2dc; font-variant-numeric: tabular-nums; }
.rp-tag[data-level="amber"] { background: rgba(217, 119, 6, 0.95); }
.rp-tag[data-level="amber"] span, .rp-tag[data-level="red"] span { color: #fff; }
.rp-tag[data-level="red"] { background: rgba(225, 29, 72, 0.95); }
.rp-dim {
  position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none; padding: 2px 7px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.82); color: #4a4136; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap;
}


.rp-picker { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--rp-gut); background: rgba(16, 13, 9, 0.42); }
.rp-picker-card { width: min(580px, 100%); max-height: min(82dvh, 760px); display: flex; flex-direction: column; overflow: hidden; }
.rp-picker-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 4px 16px; }
.rp-picker-card h2 { margin: 0; font-size: 17px; }
.rp-picker-sub { margin: 0; padding: 0 16px 10px; color: var(--rp-muted); font-size: 12.5px; }
.rp-picker-card { color: var(--rp-text); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.rp-search { position: relative; margin: 0 14px 8px; }
.rp-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--rp-muted); pointer-events: none; }
.rp-search input {
  width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--rp-line);
  background: rgba(0, 0, 0, 0.35); font-size: 16px;
}
.rp-search input:focus { outline: 2px solid var(--rp-amber); outline-offset: 0; }
.rp-makers { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.rp-makers button {
  flex: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rp-line); background: var(--rp-inner);
  font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.rp-makers button[aria-pressed="true"] { background: var(--rp-amber); border-color: var(--rp-amber); color: #15120c; }

.rp-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.rp-cats button {
  flex: none; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--rp-line); background: transparent;
  font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap; color: var(--rp-muted);
}
.rp-cats button[aria-pressed="true"] { border-color: var(--rp-amber); color: var(--rp-amber); background: rgba(245, 158, 11, 0.1); }
.rp-picker-none { margin: 0; padding: 4px 16px 18px; color: var(--rp-muted); }
.rp-picker-none a { color: var(--rp-amber); font-weight: 650; }
.rp-picker-list { list-style: none; margin: 0; padding: 0 12px 14px; overflow: auto; display: grid; gap: 12px; overscroll-behavior: contain; }
.rp-brand h3 { margin: 0 4px 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--rp-muted); }
.rp-brand h3 span { margin-left: 4px; font-weight: 600; opacity: 0.75; }
.rp-brand ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rp-add {
  width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px;
  border-radius: 11px; border: 1px solid var(--rp-line); background: var(--rp-inner); text-align: left; cursor: pointer;
}
.rp-add:hover { border-color: rgba(245, 158, 11, 0.6); }
.rp-add img { width: 64px; height: 48px; object-fit: cover; border-radius: 7px; background: #2a2d34; display: block; }
.rp-add span { display: grid; min-width: 0; }
.rp-add b { font-size: 13.5px; line-height: 1.3; }
.rp-add small { color: var(--rp-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rp-plus { width: 30px; height: 30px; border-radius: 9px; background: var(--rp-amber); color: #15120c; font-size: 20px; font-weight: 700; display: grid !important; place-items: center; }

.rp-sharebox {
  position: fixed; z-index: 31; top: calc(var(--nav-h, 56px) + 18px); left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px));
  padding: 12px 14px 14px; border-radius: 14px; background: var(--rp-panel); border: 1px solid var(--rp-line); color: var(--rp-text);
  box-shadow: 0 18px 44px rgba(32, 24, 12, 0.32); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: grid; gap: 8px;
}
.rp-sharebox header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rp-sharebox .rp-x { color: inherit; font: inherit; font-size: 20px; }
.rp-sharebox p { margin: 0; font-size: 13px; }
.rp-sharebox input {
  width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(245, 158, 11, 0.7); background: rgba(0, 0, 0, 0.4);
  color: var(--rp-text); font: 13px ui-monospace, Menlo, Consolas, monospace;
}
.rp-sharebox .rp-sharebox-note { color: var(--rp-muted); font-size: 12px; }
.rp-noscript { position: fixed; inset: auto 16px 16px; padding: 12px; border-radius: 12px; background: #16181d; }
body.rp-no-webgl::after { content: "This room planner needs WebGL, which this browser has turned off."; position: fixed; inset: 40% 16px auto; text-align: center; color: #3b342b; }


@media (max-width: 759px), (max-height: 520px) {
  :root { --rp-gut: 12px; }
  body.rp .site-nav { display: none; }
  .rp-app { height: 100svh; min-height: 0; }
  .rp-room {
    top: max(var(--rp-gut), env(safe-area-inset-top)); left: max(var(--rp-gut), env(safe-area-inset-left)); right: max(var(--rp-gut), env(safe-area-inset-right));
    width: auto; max-width: 420px; padding: 8px 8px 8px 10px; gap: 10px; max-height: calc(100% - var(--rp-sheet) - 2 * var(--rp-gut));
    border-radius: 14px;
  }
  .rp-title { flex: none; font-size: 0; }
  .rp-cam { top: calc(max(var(--rp-gut), env(safe-area-inset-top)) + 64px); right: max(var(--rp-gut), env(safe-area-inset-right)); transform: none; gap: 8px; }
  .rp-cam .rp-cam-toggle { display: inline-grid; width: 40px; height: 40px; border-radius: 50%; background: var(--rp-panel); border: 1px solid var(--rp-line); }
  .rp-cam .rp-cam-toggle[aria-expanded="true"] { background: #fff; color: #11151f; }
  .rp-cam:not(.open) .rp-cam-body { display: none; }
  .rp-cam-body { gap: 8px; }
  .rp-share { width: 34px; height: 34px; padding: 0; }
  .rp-share span { display: none; }
  .rp-sharebox { top: max(12px, env(safe-area-inset-top)); }

  .rp-cats, .rp-makers { flex: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding: 0 14px; }
  .rp-cats::-webkit-scrollbar, .rp-makers::-webkit-scrollbar { display: none; }

  .rp-cats, .rp-makers { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); }

  .rp-cats::after, .rp-makers::after { content: ""; flex: 0 0 8px; }
  .rp-title .rp-lab { font-size: 10.5px; margin: 0; }
  .rp-preset-select {
    display: block; flex: 1; min-width: 0; height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--rp-line);
    background: rgba(0, 0, 0, 0.35); font-weight: 650; font-size: 13.5px;
  }
  .rp-room-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--rp-line); background: var(--rp-inner); cursor: pointer; flex: none; }
  .rp-room-toggle svg { transform: rotate(180deg); transition: transform 0.2s; }
  .rp-room.open .rp-room-toggle svg { transform: none; }
  .rp-presets { display: none; }
  .rp-room-body { display: none; }
  .rp-room.open .rp-room-body { display: grid; }
  .rp-room-body .rp-fit { display: none; }
  .rp-rail {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; border-bottom: 0;
    max-height: min(64%, 560px); padding-bottom: env(safe-area-inset-bottom);
  }
  .rp-sheet-head {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--rp-sheet); padding: 8px 14px; border: 0; background: none;
    cursor: pointer; position: relative; text-align: left;
  }
  .rp-grab { position: absolute; top: 5px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
  .rp-sheet-words { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
  .rp-sheet-words b { white-space: nowrap; font-size: 13.5px; }
  .rp-sheet-words .rp-fit { min-width: 0; padding: 5px 9px; font-size: 12.5px; }
  .rp-sheet-words .rp-fit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rp-sheet-head > svg { width: 18px; height: 18px; transition: transform 0.2s; }
  .rp-rail.open .rp-sheet-head > svg { transform: rotate(180deg); }
  .rp-rail-body { display: none; padding-top: 2px; overscroll-behavior: contain; }
  .rp-rail.open .rp-rail-body { display: grid; }
  .rp-rail-title { display: none; }
  .rp-foot {
    left: max(var(--rp-gut), env(safe-area-inset-left)); right: max(var(--rp-gut), env(safe-area-inset-right));
    bottom: calc(var(--rp-sheet) + 10px + env(safe-area-inset-bottom));
  }
  .rp-toolbar { width: 100%; justify-content: space-between; gap: 4px; padding: 6px; }
  .rp-toolbar b { flex: 1; min-width: 0; max-width: none; }
  .rp-toolbar .rp-btn { padding: 0 9px; }
  .rp-toolbar .rp-btn span { display: none; }
  .rp-rail.open ~ .rp-foot { display: none; }
  .rp-hint { display: none; }
  .rp-picker { padding: 0; align-items: end; }
  .rp-picker-card { width: 100%; max-height: 86dvh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 759px) and (min-height: 521px) {
  .rp-room-body .rp-row .rp-btn.primary { flex: 1 1 100%; }
}
@media (max-height: 520px) {
  .rp-rail { left: auto; width: min(380px, 50vw); right: max(var(--rp-gut), env(safe-area-inset-right)); max-height: calc(100% - 16px); }
  .rp-room { max-width: 360px; right: auto; width: min(360px, 46vw); }
  .rp-cam { top: max(var(--rp-gut), env(safe-area-inset-top)); right: calc(min(380px, 50vw) + 2 * var(--rp-gut)); }
  .rp-foot { right: calc(min(380px, 50vw) + 2 * var(--rp-gut)); bottom: max(var(--rp-gut), env(safe-area-inset-bottom)); align-items: flex-start; }
  .rp-toolbar { width: auto; }
  .rp-rail.open ~ .rp-foot { display: flex; }
}


.rp-doc h3 { margin: 22px 0 6px; font-size: 15px; color: var(--doc-muted, #9ca3af); text-transform: uppercase; letter-spacing: 0.06em; }
.rp-doc-list { margin: 0; padding-left: 20px; }
.rp-doc-list li { margin: 3px 0; }
.rp-doc-list a { color: var(--accent, #f59e0b); font-weight: 650; text-decoration: none; }
.rp-doc-list a:hover { text-decoration: underline; }
.rp-doc-maker { color: var(--doc-muted, #9ca3af); font-size: 0.92em; }
