.shared-player-editor{display:grid;gap:12px}
.shared-player-heading{text-align:center;margin:4px 0 2px}
.shared-player-heading h1{margin:0 0 5px;font-size:clamp(28px,7.5vw,40px);line-height:1.1;color:inherit}
.shared-player-heading p{margin:0;color:#667085;font-weight:800;line-height:1.45}
.shared-player-card{background:#fff;border:1px solid #dfe6ef;border-radius:22px;padding:14px;box-shadow:0 10px 28px rgba(25,40,70,.10);min-width:0;overflow:hidden}
.shared-player-card h2{margin:0 0 10px;font-size:clamp(23px,6vw,31px)}
.shared-count-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.shared-count-btn{min-width:0;min-height:58px;border:2px solid #dce4ed;border-radius:16px;background:#fff;color:#526077;font:inherit;font-weight:1000;font-size:18px}
.shared-count-btn.selected{background:#eaf5ff;border-color:#2994ea;color:#0c62ae}
.shared-player-list{display:grid;gap:10px}
.shared-player-row{display:grid;gap:10px}
.shared-player-main{display:grid;grid-template-columns:64px minmax(0,1fr);gap:11px;align-items:center;min-width:0}
.shared-player-avatar{width:60px;height:60px;padding:0;border:2px solid #dce4ed;border-radius:18px;background:#f7f9fc;display:grid;place-items:center;font:inherit;font-size:32px;cursor:pointer}
.shared-player-main label{display:grid;gap:5px;min-width:0;color:#667085;font-weight:950}
.shared-player-main label span{font-size:12px}
.shared-player-main input{width:100%;min-width:0;border:2px solid #dce4ed;border-radius:13px;padding:10px 12px;font:inherit;font-size:17px;font-weight:850;color:#15223a;background:#fff}
.shared-icon-grid{display:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;width:100%;min-width:0}.shared-icon-grid.open{display:grid}
.shared-icon-btn{width:100%;min-width:0;aspect-ratio:1/1;min-height:46px;padding:0;border:2px solid #dfe5ed;border-radius:13px;background:#fff;font:inherit;font-size:22px;display:grid;place-items:center}
.shared-icon-btn.selected{border-color:#2994ea;background:#eaf5ff}
.shared-icon-btn:disabled{opacity:.30;filter:grayscale(.25);cursor:not-allowed}
.shared-player-note{margin:0;text-align:center;color:#667085;font-size:12px;font-weight:850}
.shared-player-done{width:100%;min-height:58px;border:0;border-radius:18px;padding:13px 16px;background:linear-gradient(180deg,#269aff,#0c60cc);color:#fff;font:inherit;font-size:18px;font-weight:1000;box-shadow:0 5px 0 #06438f}
.shared-player-done:active{transform:translateY(3px);box-shadow:0 2px 0 #06438f}
@media(max-width:380px){.shared-count-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shared-icon-grid{gap:6px}.shared-icon-btn{font-size:20px;min-height:42px}.shared-player-main{grid-template-columns:58px minmax(0,1fr)}.shared-player-avatar{width:54px;height:54px}}


/* Shared roster pool + player records 2026-10-10 */
.shared-roster-card{display:grid;gap:10px}
.shared-roster-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.shared-roster-head h2{margin:0 0 3px}
.shared-roster-head p{margin:0;color:#667085;font-size:12px;font-weight:800;line-height:1.45}
.shared-add-player{flex:0 0 auto;min-height:38px;padding:7px 11px;border:1px solid #cad6e4;border-radius:12px;background:#fff;color:#29628d;font:inherit;font-size:12px;font-weight:1000}
.shared-roster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.shared-roster-chip{min-width:0;min-height:58px;padding:8px 9px;border:2px solid #dfe6ef;border-radius:15px;background:#f8fafc;color:#536178;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;align-items:center;column-gap:7px;font:inherit}
.shared-roster-chip>span{grid-row:1/3;font-size:24px}
.shared-roster-chip>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.shared-roster-chip>small{font-size:10px;font-weight:900;color:#8b97a7}
.shared-roster-chip.selected{border-color:#2b96eb;background:#eaf5ff;color:#155c99}
.shared-roster-chip.selected>small{color:#1674bd}
.shared-records{display:grid;gap:11px}
.shared-record-card{padding:14px;border:1px solid #dfe6ef;border-radius:20px;background:#fff;box-shadow:0 9px 24px rgba(25,40,70,.09)}
.shared-record-head{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:center}
.shared-record-avatar{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:#f4f7fb;font-size:30px}
.shared-record-head strong{display:block;font-size:18px}
.shared-record-head small{display:block;margin-top:3px;color:#67758a;font-weight:850}
.shared-record-games{display:grid;gap:6px;margin-top:11px}
.shared-record-games>div{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:11px;background:#f7f9fc;font-size:11px;font-weight:850}
.shared-record-games>div>span{color:#5f6d82}
.shared-record-games>div>strong{text-align:right;color:#273750}
.shared-record-empty{margin:10px 0 0;color:#8994a5;font-size:12px;font-weight:800}
.player-registry-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0 2px}
.player-registry-tab{min-height:44px;border:1px solid #d7e0ea;border-radius:13px;background:#f7f9fc;color:#5b687c;font:inherit;font-weight:1000}
.player-registry-tab.selected{background:#eaf5ff;border-color:#2994ea;color:#0c62ae}
.home-record-btn{width:100%;min-height:50px;padding:10px 18px;border-radius:999px;border:2px solid rgba(255,255,255,.92);background:rgba(255,255,255,.92);color:#21416b;font:inherit;font-size:clamp(14px,4vw,18px);font-weight:1000;box-shadow:0 5px 0 rgba(36,61,91,.25),0 10px 20px rgba(0,0,0,.12)}
@media(max-width:380px){.shared-roster-grid{grid-template-columns:1fr}}


/* Player record delete 2026-10-10 */
.shared-record-delete{
  width:100%;
  min-height:40px;
  margin-top:11px;
  border:1px solid #edc6c6;
  border-radius:12px;
  background:#fff7f7;
  color:#a33f3f;
  font:inherit;
  font-size:12px;
  font-weight:1000;
}
.shared-record-delete:active:not(:disabled){transform:translateY(1px);background:#ffeded}
.shared-record-delete:disabled{opacity:.38;cursor:not-allowed}


/* 2026-10-16 共通メンバー選択：人数・参加者一覧・編集1人・入れ替えを分離 */
.compact-player-editor{
 --editor-blue:#238ce2;
 display:flex;flex-direction:column;gap:clamp(7px,1.1dvh,12px);min-width:0;
}
.compact-player-editor .shared-player-heading{flex:none;margin:0}
.compact-player-editor .shared-player-heading h1{font-size:clamp(20px,4vw,29px);margin:0 0 3px}
.compact-player-editor .shared-player-heading p{font-size:clamp(11px,2.6vw,13px);line-height:1.3}
.compact-player-editor .shared-editor-workspace{
 display:grid;grid-template-columns:1fr;gap:clamp(7px,1dvh,10px);min-width:0;min-height:0;
}
.compact-player-editor .shared-player-card{
 padding:clamp(9px,1.2dvh,14px);border-radius:16px;margin:0;
 box-shadow:0 4px 12px rgba(25,40,70,.075);
}
.compact-player-editor .shared-section-header{
 display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;
}
.compact-player-editor .shared-section-header h2{font-size:clamp(14px,3.1vw,18px);line-height:1.15;margin:0}
.compact-player-editor .shared-section-hint{color:#62738a;font-size:11px;font-weight:900}
.compact-player-editor .shared-count-current{
 color:#176daf;background:#e6f4ff;border-radius:99px;padding:2px 9px;font-size:12px;
}
.compact-player-editor .shared-count-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;
}
.compact-player-editor .shared-count-btn{
 min-height:clamp(30px,4.6dvh,38px);padding:5px 0;border-radius:11px;font-size:clamp(12px,2.8vw,15px);
}
.compact-player-editor .shared-active-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
}
.compact-player-editor .shared-active-chip{
 min-width:0;min-height:clamp(35px,5dvh,43px);
 padding:3px 7px;border:2px solid #dfe7ef;border-radius:12px;
 background:#f8fbfe;color:#223752;font:inherit;
 display:flex;align-items:center;gap:7px;text-align:left;cursor:pointer;
}
.compact-player-editor .shared-active-chip.selected{border-color:#2a95e7;background:#e7f4ff}
.compact-player-editor .shared-active-avatar{
 display:grid;place-items:center;flex:0 0 30px;
 width:30px;height:30px;border-radius:8px;background:white;font-size:20px;
}
.compact-player-editor .shared-active-info{min-width:0;display:grid;gap:0}
.compact-player-editor .shared-active-info strong{
 display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 font-size:clamp(12px,2.65vw,14px);font-weight:950;
}
.compact-player-editor .shared-active-info small{font-size:9px;color:#697a90;font-weight:850}
.compact-player-editor .shared-player-main{
 grid-template-columns:clamp(41px,7dvh,54px) minmax(0,1fr);
 gap:8px;
}
.compact-player-editor .shared-player-avatar{
 width:clamp(41px,7dvh,54px);height:clamp(41px,7dvh,54px);
 border-radius:12px;font-size:clamp(22px,4dvh,29px);
}
.compact-player-editor .shared-player-main label{gap:2px}
.compact-player-editor .shared-player-main label span{font-size:10px}
.compact-player-editor .shared-player-main input{
 min-height:clamp(37px,5.5dvh,46px);
 font-size:15px;padding:7px 10px;border-radius:11px;
}
.compact-player-editor .shared-edit-hint{
 margin:4px 0 0;color:#697a90;font-size:10px;font-weight:800;
}
.compact-player-editor .shared-icon-grid{margin-top:8px;gap:5px}
.compact-player-editor .shared-icon-btn{min-height:39px;border-radius:10px;font-size:21px}
.compact-player-editor .shared-roster-card{display:block}
.compact-player-editor .shared-roster-head{gap:6px}
.compact-player-editor .shared-roster-head h2{font-size:clamp(13px,3vw,17px);margin:0 0 2px}
.compact-player-editor .shared-roster-head p{font-size:10px;line-height:1.25}
.compact-player-editor .shared-roster-controls{display:flex;align-items:center;gap:5px;flex:none}
.compact-player-editor .shared-add-player,
.compact-player-editor .shared-roster-toggle{
 flex:none;min-height:34px;padding:5px 8px;border-radius:10px;
 background:#eff7ff;color:#256696;font:inherit;font-weight:950;font-size:11px;
 border:1px solid #bfd7ec;cursor:pointer;
}
.compact-player-editor .shared-roster-grid{margin-top:8px;gap:5px}
.compact-player-editor .shared-roster-chip{
 min-height:43px;padding:5px 7px;border-radius:10px;
 grid-template-columns:27px minmax(0,1fr);column-gap:4px;
}
.compact-player-editor .shared-roster-chip>span{font-size:20px}
.compact-player-editor .shared-roster-chip>strong{font-size:11px}
.compact-player-editor .shared-roster-chip>small{font-size:9px}
.compact-player-editor .shared-player-done{
 flex:0 0 auto;min-height:clamp(43px,6dvh,53px);
 padding:9px 14px;border-radius:13px;font-size:clamp(15px,3.2vw,18px);
}
@media (min-width:720px){
 .compact-player-editor .shared-editor-workspace{
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  align-items:start;
 }
 .compact-player-editor .shared-player-count{grid-column:1}
 .compact-player-editor .shared-participant-card{grid-column:2;grid-row:1 / span 2}
 .compact-player-editor .shared-edit-card{grid-column:1;grid-row:2}
 .compact-player-editor .shared-roster-card{grid-column:1 / -1}
 .compact-player-editor .shared-active-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .compact-player-editor .shared-roster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
