/* mosaic 固有スタイル */
#editor[hidden], #save-card[hidden] { display: none; }

.mz-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 720px) { .mz-tools { grid-template-columns: 1fr; } }
.mz-tools .pt-seg { width: 100%; display: flex; }

.mz-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 720px) { .mz-sliders { grid-template-columns: 1fr; } }
.mz-sliders input[type="range"] { width: 100%; }
.mz-sliders .pt-hint { margin-top: 0.15rem; }
.mz-sliders .form-group.is-off { opacity: 0.45; }

.mz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0.25rem 0 0.4rem; }
.mz-bar .btn { margin: 0; width: auto; }
.mz-bar .pt-check { margin: 0 0 0 0.5rem; }

.mz-warn { margin: 0.2rem 0 0.6rem; font-size: 0.85rem; color: #b45309; }
.mz-warn[hidden] { display: none; }

.mz-stage {
  overflow: auto;
  max-height: 80vh;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--pt-r, 6px);
  padding: 0.75rem;
}
.mz-page {
  position: relative; margin: 0 auto; line-height: 0;
  background: #fff; box-shadow: 0 0 0 1px var(--border);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.mz-page canvas { display: block; width: 100%; height: auto; }
.mz-layer { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.mz-layer[data-tool="select"] { cursor: default; }

.mz-shape { fill: rgba(37, 99, 235, 0.10); stroke: #2563eb; stroke-width: 1.5; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.mz-shape.sel { fill: rgba(37, 99, 235, 0.20); stroke-width: 2.5; stroke-dasharray: none; }
.mz-shape.draft { fill: rgba(37, 99, 235, 0.15); stroke-dasharray: 3 3; }
.mz-shape.mz-brush { fill: none; stroke: rgba(37, 99, 235, 0.28); stroke-width: 1; stroke-dasharray: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: none; }
.mz-shape.mz-brush.sel { stroke: rgba(37, 99, 235, 0.5); }
.mz-layer.mz-nooutline .mz-shape:not(.draft):not(.sel) { display: none; }

.mz-stage.pt-zv { min-height: 0; }
.pt-fs > .mz-stage { max-height: none; }

.mz-sep { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0 1.25rem; }
.pt-check small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-sub); }
