[hidden] { display: none !important; }
.ptabs button { padding: 0 0 14px; font-size: 15.5px; font-weight: 700; color: #8a8a85; border-bottom: 3px solid transparent; white-space: nowrap; }
.ptabs button:hover { color: #c9c9c4; }
.ptabs button.on { color: #fff; border-bottom-color: var(--acc); }
.ptabs div { overflow-x: auto; scrollbar-width: none; }
.ptabs div::-webkit-scrollbar { display: none; }
.mp { min-height: 420px; padding-top: 32px; }
.mp-load { padding: 60px 0; font-size: 15px; font-weight: 700; color: var(--gray); }
.mp-lock { margin: 4px 0 20px; padding: 28px; background: var(--ink); color: #fff; border-left: 8px solid var(--acc); }
.mp-lock h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mp-lock p { font-size: 14.5px; color: #c9c9c4; margin-top: 8px; line-height: 1.6; }
.mp-note { font-size: 12.5px; color: var(--soft); margin-top: 12px; line-height: 1.6; }
.mp-sec { padding-top: 56px; }

.mp-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.mp-side h2 { font-size: 40px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.mp-n { font-size: 13px; font-weight: 600; color: var(--gray); margin-top: 6px; }
.mp-kinds { border-top: 2px solid var(--ink); margin-top: 18px; }
.mp-kind { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; cursor: pointer; user-select: none; }
.mp-kind.zero { color: var(--soft); cursor: default; }
.mp-kind.zero .mp-ico { opacity: .35; }
.mp-kind input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); border-radius: 0; }
.mp-kind b { font-size: 13px; font-weight: 800; color: var(--gray); }
.mp-info { margin-top: 18px; padding: 16px 18px; background: var(--mist); min-height: 120px; }
.mp-info .k { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mp-info .v { font-size: 40px; font-weight: 900; letter-spacing: -.04em; line-height: 1.2; }
.mp-info .s { font-size: 13px; font-weight: 600; color: var(--gray); line-height: 1.55; margin-top: 2px; }
.mp-info .v small, .mp-pop .v small { display: inline-block; margin-right: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0; color: var(--gray); vertical-align: middle; }
.mp-info .k em, .mp-pop .k em { margin-left: 2px; padding: 2px 7px; background: var(--acc); color: var(--ink); font-size: 11.5px; font-weight: 800; font-style: normal; white-space: nowrap; }
.mp-info .s.n, .mp-pop .s.n { color: var(--soft); font-weight: 500; }
.limits li b { font-weight: 800; }

.mp-ico { display: inline-block; width: 20px; height: 26px; flex: none; background: center / contain no-repeat; }
.mp-ico.heat { width: 18px; height: 18px; margin: 0 1px; background: rgba(246, 191, 0, .7); box-shadow: inset 0 0 0 1.5px var(--ink); }

.mp-view { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #0d1114; cursor: grab; user-select: none; -webkit-user-select: none; }
.mp-view:active { cursor: grabbing; }
.mp-view.meas { cursor: crosshair; }
.mp-view.full { position: fixed; inset: 0; z-index: 400; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; }
.mp-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; --inv: 1; }
.mp-base, .mp-stage canvas, .mp-stage svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.mp-stage canvas { opacity: calc(.4 + .6 * var(--inv)); }
.mp-tiles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mp-tiles img { position: absolute; display: block; pointer-events: none; }
.mp-gridl line { vector-effect: non-scaling-stroke; stroke-width: 1px; }
.mp-gridl .mj line { stroke: rgba(246, 191, 0, .75); }
.mp-gridl .mn line { stroke: rgba(255, 255, 255, .2); }
.mp-gridl .mn { display: none; }
.mp-stage.z4 .mp-gridl .mn { display: inline; }
.mp-measl line { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.mp-measl .o { stroke: var(--ink); stroke-width: 6px; }
.mp-measl .i { stroke: var(--acc); stroke-width: 3px; }
.mp-marks, .mp-mpts { position: absolute; inset: 0; }
.mp-mpts { pointer-events: none; }
.mp-view.meas .mp-marks { pointer-events: none; }

.mp-mk { position: absolute; width: 21px; height: 28px; padding: 0; background: center / contain no-repeat; transform: translate(-50%, -100%) scale(var(--inv)); transform-origin: 50% 100%; cursor: pointer; }
.mp-mk.mid { width: 26px; height: 35px; }
.mp-mk.big { width: 31px; height: 41px; }
.mp-mk.sm { width: 9px; height: 9px; transform: translate(-50%, -50%) scale(var(--inv)); transform-origin: 50% 50%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.mp-mk.sm.fixed { background: var(--acc); }
.mp-mk.sm.door, .mp-mk.sm.key { background: var(--ink); box-shadow: 0 0 0 1.5px var(--acc); }
.mp-mk.sm.key { box-shadow: 0 0 0 1.5px #fff; }
.mp-mk:hover { z-index: 2; filter: brightness(1.08); }
.mp-mk.sel { z-index: 3; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #fff); }
.mp-mpt { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2.5px var(--ink); transform: translate(-50%, -50%) scale(var(--inv)); }
.mp-mlab { position: absolute; padding: 5px 9px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; transform: translate(-50%, -50%) scale(var(--inv)); }

.mp-pop { position: absolute; z-index: 5; width: 216px; padding: 14px 16px 14px; background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--ink); cursor: default; --off: 30px; --dx: 0px;
  transform: translate(calc(-50% + var(--dx)), calc(-100% - var(--off))); }
.mp-pop.below { transform: translate(calc(-50% + var(--dx)), 10px); }
.mp-pop::after { content: ""; position: absolute; left: calc(50% - var(--dx)); bottom: -9px; width: 14px; height: 14px; margin-left: -7px; background: #fff; box-shadow: 2px 2px 0 var(--ink); transform: rotate(45deg); }
.mp-pop.below::after { bottom: auto; top: -9px; box-shadow: -2px -2px 0 var(--ink); }
.mp-pop .x { position: absolute; right: 2px; top: 2px; z-index: 1; width: 32px; height: 32px; font-size: 20px; font-weight: 700; line-height: 1; color: var(--gray); }
.mp-pop .veh { display: block; width: 184px; height: 84px; object-fit: cover; margin: -4px 0 4px; pointer-events: none; }
.mp-pop .k { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; padding-right: 24px; }
.mp-pop .k .mp-ico { width: 15px; height: 20px; }
.mp-pop .k .mp-ico.heat { width: 14px; height: 14px; }
.mp-pop .v { font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1.15; margin-top: 2px; }
.mp-pop .s { font-size: 12.5px; font-weight: 600; color: var(--gray); line-height: 1.5; }

.mp-zoom, .mp-tools { position: absolute; right: 12px; display: grid; gap: 6px; z-index: 6; }
.mp-zoom { top: 12px; }
.mp-tools { top: 174px; }
.mp-zoom button, .mp-tools button { width: 44px; height: 44px; background: #fff; color: var(--ink); font-size: 20px; font-weight: 800; box-shadow: 0 0 0 2px var(--ink); }
.mp-zoom button:last-child, .mp-tools button { font-size: 12px; }
.mp-tools button.on { background: var(--ink); color: var(--acc); }
.mp-chips { position: absolute; left: 12px; right: 68px; bottom: 12px; z-index: 6; display: none; flex-wrap: wrap; gap: 6px; }
.mp-view.full .mp-chips { display: flex; }
.mp-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 8px; background: #fff; color: var(--gray); font-size: 13px; font-weight: 800; box-shadow: 0 0 0 2px var(--ink); opacity: .82; }
.mp-chip .mp-ico { width: 14px; height: 18px; opacity: .45; }
.mp-chip .mp-ico.heat { width: 13px; height: 13px; }
.mp-chip.on { color: var(--ink); opacity: 1; }
.mp-chip.on .mp-ico { opacity: 1; }
.mp-chip:disabled { display: none; }
.mp-hint { position: absolute; left: 12px; top: 12px; z-index: 6; max-width: calc(100% - 80px); padding: 9px 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; }
.mp-only-m { display: none; }

.mp-tops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.mp-top { border-top: 2px solid var(--ink); padding-top: 14px; }
.mp-top h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.mp-top h3 small { font-size: 12.5px; font-weight: 600; color: var(--gray); }
.mp-top ol { list-style: none; padding: 0; margin-top: 8px; }
.mp-top li button { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 0 10px; width: 100%; text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); min-height: 58px; }
.mp-top li b { grid-row: 1 / 3; font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.mp-top li span { font-size: 14px; font-weight: 700; align-self: end; }
.mp-top li small { grid-column: 2; font-size: 12px; font-weight: 500; color: var(--gray); align-self: start; }
.mp-top li img { grid-column: 3; grid-row: 1 / 3; width: 84px; height: 40px; object-fit: cover; }
.mp-top li button:hover span { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .mp { padding-top: 22px; }
  .mp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mp-main { order: -1; margin: 0 -18px; }
  .mp-main .mp-note { padding: 0 18px; }
  .mp-side h2 { font-size: 28px; }
  .mp-kinds { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .mp-kind { font-size: 14px; padding: 9px 0; gap: 8px; }
  .mp-kind:last-child { grid-column: 1 / -1; }
  .mp-info { min-height: 0; }
  .mp-info .v { font-size: 30px; }
  .mp-tops { grid-template-columns: minmax(0, 1fr); }
  .mp-mk { width: 18px; height: 24px; }
  .mp-mk.mid { width: 22px; height: 29px; }
  .mp-mk.big { width: 26px; height: 35px; }
  .mp-mk.sm { width: 7px; height: 7px; }
  .mp-mk::after { content: ""; position: absolute; inset: -8px; }
  .mp-stage:not(.zoomed) .mp-mk.sm { display: none; }
  .mp-only-m { display: inline; }
  .mp-zoom, .mp-tools { right: 8px; }
  .mp-zoom { top: 8px; }
  .mp-tools { top: 152px; }
  .mp-zoom button, .mp-tools button { width: 40px; height: 40px; }
  .mp-chips { left: 8px; right: 8px; bottom: 8px; }
  .mp-chip { height: 36px; font-size: 12.5px; padding: 0 10px 0 7px; }

  .mp-pop { left: 8px !important; top: auto !important; right: 56px; bottom: 8px; width: auto; padding: 10px 34px 10px 12px; transform: none !important; }
  .mp-pop::after { display: none; }
  .mp-pop.img { display: grid; grid-template-columns: 78px minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .mp-pop.img .veh { grid-row: 1 / span 4; width: 78px; height: 52px; margin: 0; }
  .mp-pop.img > p { grid-column: 2; }
  .mp-pop .k { padding-right: 0; flex-wrap: wrap; row-gap: 3px; }
  .mp-pop .v { font-size: 24px; }
  .mp-pop .s { font-size: 12px; line-height: 1.4; }
  .mp-view.full .mp-pop { right: 8px; bottom: 100px; }
  .tabbar a { font-size: 11.5px; padding-left: 2px; padding-right: 2px; }
}

.mp-measl .mr { fill: rgba(246, 191, 0, .10); stroke: #0b0b0b; stroke-width: 2; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; }
.mp-measl .mr.in { fill: rgba(255, 255, 255, .35); }

@media (min-width: 901px) { .mp-grid { align-items: stretch; } .mp-side { display: flex; flex-direction: column; } .mp-info { flex: 1 1 auto; } }
