#pz-app {
  display: grid;
  grid-template-columns: 220px 280px 1fr;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: #ecf8f6;
  color: #134e4a;
  font-family: 'Inter', system-ui, sans-serif;
}
#pz-nav {
  background: #0f766e;
  color: #fff;
  padding: 14px 12px;
  overflow-y: auto;
}
#pz-nav h1 { font-size: 1.05rem; margin: 8px 0 4px; }
#pz-nav .tag { font-size: 0.72rem; opacity: 0.85; margin-bottom: 12px; }
#pz-nav .btn-back { background: #fff; color: #134e4a; margin-bottom: 8px; border: none; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.pz-type {
  display: block; width: 100%; text-align: left;
  background: transparent; color: #fff; border: none;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 0.86rem;
}
.pz-type:hover { background: rgba(255,255,255,0.12); }
.pz-type.active { background: #14b8a6; color: #042f2e; font-weight: 700; }
#pz-controls { background: #f0fdfa; border-right: 1px solid #99f6e4; overflow-y: auto; padding: 14px; }
#pz-controls h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
#pz-controls label { display: block; font-size: 0.72rem; font-weight: 700; margin-top: 8px; }
#pz-controls textarea, #pz-controls input, #pz-controls select {
  width: 100%; margin-top: 4px; padding: 8px; border: 1px solid #99f6e4; border-radius: 6px; font-family: inherit;
}
#pz-controls textarea { min-height: 140px; }
#pz-controls .btn { margin-top: 10px; width: 100%; padding: 9px; border: none; border-radius: 7px; background: #0f766e; color: #fff; font-weight: 600; cursor: pointer; }
#pz-preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pz-stage { flex: 1; min-height: 0; overflow: auto; padding: 18px; display: flex; justify-content: center; }
.pz-sheet {
  width: min(560px, 94%);
  min-height: 736px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,118,110,0.15);
  padding: 22px;
  box-sizing: border-box;
}
.pz-sheet h1 { text-align: center; margin-bottom: 6px; }
.pz-sheet .sub { text-align: center; color: #0f766e; font-size: 0.85rem; margin-bottom: 14px; }
.pz-ws { border-collapse: collapse; margin: 0 auto 16px; font-family: 'Courier New', monospace; }
.pz-ws td {
  width: 22px; height: 22px; text-align: center; font-weight: 700; font-size: 13px;
  border: 1px solid #ccfbf1;
}
.pz-ws td.hit { background: #99f6e4; }
.pz-list { columns: 2; font-size: 0.88rem; }
.pz-item { margin: 6px 0; font-size: 1.05rem; letter-spacing: 0.04em; }
.pz-wheel {
  width: 280px; height: 280px; margin: 12px auto; position: relative; border-radius: 50%;
  border: 8px solid #0f766e;
}
.pz-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%; background: #0f766e; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800;
}
.pz-spoke {
  position: absolute; left: 50%; top: 50%; width: 36px; margin-left: -18px; text-align: center;
  font-weight: 800; font-size: 1.2rem;
}
.pz-pic-grid { display: grid; gap: 3px; width: 100%; aspect-ratio: 1; }
.pz-pic-grid img, .pz-pic-grid .tile {
  width: 100%; height: 100%; object-fit: cover; display: block; background: #ccfbf1;
}
.pz-pic-grid .hidden { background: #0f766e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ding-canvas {
  position: relative; width: 100%; height: 420px; border: 1px dashed #99f6e4; background: #fff; overflow: hidden;
}
.ding-item {
  position: absolute; cursor: move; user-select: none; white-space: nowrap;
}
.emoji-board { font-size: 2rem; min-height: 80px; border: 1px solid #99f6e4; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.emoji-lib { display: flex; flex-wrap: wrap; gap: 4px; max-height: 220px; overflow: auto; }
.emoji-lib button { font-size: 1.3rem; background: #fff; border: 1px solid #ccfbf1; border-radius: 4px; cursor: pointer; }
@media print {
  body * { visibility: hidden !important; }
  #pzSheet, #pzSheet * { visibility: visible !important; }
  #pzSheet { position: absolute; left: 0; top: 0; width: 210mm; box-shadow: none !important; }
}

.pz-poster { padding: 18px; border-radius: 4px; }
.pz-banner { color: #fff; text-align: center; font-weight: 800; letter-spacing: 0.04em; padding: 12px 10px; margin-bottom: 14px; }
.pz-poster-inner { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.pz-hero { font-size: 1.6rem; font-weight: 800; text-align: center; line-height: 1.45; }
.pz-hero.blanks { letter-spacing: 0.12em; font-size: 1.45rem; }
.pz-clue { margin-bottom: 16px; font-size: 0.95rem; letter-spacing: 0.06em; }
.pz-hero mark { background: #facc15; padding: 0 2px; }
.pz-hero.ba { font-size: 1.8rem; }
.ba-mid { margin: 10px 0; letter-spacing: 0.2em; }

#pz-preview .preview-toolbar {
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 16px 12px;
  min-height: 56px;
  box-sizing: border-box;
}
#pz-preview .preview-toolbar .btn-nav { margin: 0; }
