/* Presentation shell; the original CMS interaction code remains intact. */
:root {
  --ground: #F7F8F2;
  --ink: #202522;
  --blue: #267431;
  --blue-deep: #267431;
  --blue-soft: #EAF4E7;
  --blue-line: #C3D6BB;
  --rail: #202522;
  --sans: "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}
body { font-family: var(--sans); }
.modebar { height: 64px; background: #F7F8F2; border-color: #DDE5D9; padding: 0 26px; gap: 17px; }
.modebar .mlogo { width: 51px; height: auto; border-radius: 0; overflow: visible; }
.modebar .mlogo img { width: 100%; height: auto; object-fit: contain; display: block; }
.preview-title { border-left: 1px solid #DDE5D9; padding-left: 17px; font-size: 13px; color: #536159; }
.restart-preview { margin-left: auto; padding: 8px 11px; min-height: 36px; background: transparent; border: 0; border-radius: 7px; color: #267431; font-size: 12px; }
.restart-preview:hover { background: #EAF4E7; }
.modetabs { margin-left: 0; border: 1px solid #DDE5D9; background: transparent; border-radius: 9px; padding: 3px; }
.modetabs button { padding: 7px 18px; font-size: 12px; border-radius: 6px; color: #536159; }
.modetabs button.on { background: #EAF4E7; color: #267431; box-shadow: none; font-weight: 500; }
.stage { min-height: calc(100dvh - 64px); background: #E8ECE3; padding: 23px 20px 27px; }
.stage.on { align-content: center; }
.st-mid { gap: 0; }
.stage .hint { display: none; }
.device-mockup { position: relative; height: clamp(680px,calc(100dvh - 114px),880px); aspect-ratio: 389 / 800; filter: drop-shadow(0 16px 24px #20252222); }
.device-hardware { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.device-mockup .mp-frame { position: absolute; left: 4.62725%; top: 1.75%; width: 91.00257%; height: 96.5%; max-width: none; border: 0; border-radius: 16.95% / 7.77%; background: #F7F8F2; z-index: 1; }
.shell { min-height: calc(100dvh - 64px); }
.rail { top: 64px; height: calc(100dvh - 64px); }
.topbar { top: 64px; }
.brand .mark { width: 46px; height: auto; background: none; border-radius: 0; }
.brand .mark img { width: 100%; height: auto; object-fit: contain; }
@media(max-width: 540px) {
  .modebar { height: 57px; padding: 0 15px; gap: 10px; }
  .modebar .mlogo { width: 40px; }
  .preview-title { display: none; }
  .modetabs button { padding: 6px 13px; font-size: 11px; }
  .stage { padding: 17px 10px 23px; min-height: calc(100dvh - 57px); }
  .stage.on { display: grid; }
  .st-mid { display: grid; }
  .device-mockup { height: auto; width: min(389px,calc(100vw - 30px),calc(48.625dvh - 47.16625px)); aspect-ratio: 389 / 800; }
  .restart-preview { padding: 7px; font-size: 11px; }
}
