/* 合唱パート分け・ひな壇配置メーカー */
.pw-note:empty { display: none; }
.pw-note .note { margin: 0 0 12px; }
.pw-toolbar { gap: 10px; margin-bottom: 12px; }
.pw-tb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pw-sel { min-height: 38px; width: auto; }
.pw-title { max-width: 520px; margin: 0 0 12px; }
.pw-sum { margin-bottom: 14px; }
.pw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.pw-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); padding: 10px 12px; display: grid; gap: 4px; position: relative; overflow: hidden; }
.pw-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--pc); }
.pw-card-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pw-dot { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 7px; background: var(--pc); color: #fff; font-size: 11.5px; font-weight: 800; }
.pw-big { display: flex; align-items: baseline; gap: 4px; }
.pw-big b { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pw-big small { margin-left: auto; }
.pw-bar { height: 6px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.pw-bar i { display: block; height: 100%; background: var(--pc); border-radius: 99px; }
.pw-hope { margin: 8px 0 0; color: var(--ink2); }
.pw-tabs { margin-top: 4px; }
.pw-rwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf7; box-shadow: var(--sh-sm); -webkit-overflow-scrolling: touch; }
.pw-riser svg { display: block; width: 100%; min-width: 620px; height: auto; }
.pw-riser g:hover rect:first-child { filter: brightness(.97); }
.pw-hint { margin: 8px 0 12px; }
.pw-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 8px; border: 1px solid color-mix(in srgb, var(--kyotsu) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--yellow) 22%, var(--card)); position: sticky; top: calc(var(--header-h) + 6px); z-index: 5; }
.pw-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; align-items: end; padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card2); }
.pw-ochip { gap: 6px; padding-right: 6px; }
.pw-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--pc); }
.pw-mv { border: 0; background: none; padding: 2px 3px; font-size: 11px; color: var(--ink3); cursor: pointer; }
.pw-mv:hover { color: var(--ink); }
.pw-irow { gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pw-table { min-width: 860px; }
.pw-table td { padding: 4px 6px; }
.pw-table .num { text-align: right; color: var(--ink3); width: 40px; }
.pw-nm { font-weight: 700; white-space: nowrap; }
.pw-mini { min-height: 34px; padding: 3px 6px; font-size: 13px; width: 100%; min-width: 84px; }
.pw-ht { min-height: 34px; padding: 3px 6px; width: 70px; }
.pw-res { font-weight: 800; border-left: 4px solid var(--pc) !important; }
.pw-table tr.pw-none td { background: color-mix(in srgb, var(--warn) 8%, transparent); }
.pw-ratio { margin-top: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card2); }
.pw-ratio > summary { cursor: pointer; padding: 10px 14px; font-weight: 800; }
.pw-ratio > div { padding: 0 14px 14px; }
.pw-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.pw-list { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); overflow: hidden; }
.pw-list-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--pc) 9%, var(--card)); }
.pw-list-h .badge { margin-left: auto; }
.pw-list ol { list-style: none; margin: 0; padding: 6px 12px 10px; display: grid; gap: 2px; }
.pw-list li { padding: 4px 0; border-bottom: 1px dashed var(--line-soft); font-weight: 600; font-size: 14px; }
.pw-list li:last-child { border-bottom: 0; }
.pw-L { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 10px; font-weight: 800; vertical-align: 1px; }
@media (max-width: 640px) {
  .pw-toolbar .btn-lg { width: 100%; }
  .pw-big b { font-size: 24px; }
}
.pw-ctl .stepper, .pw-ratio .stepper { max-width: 190px; }
