.identity-name-label {
  display: block;
  text-align: left;
  color: #e6d3a4;
  font-size: 15px;
  margin: 0 0 7px;
}
.identity-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
  text-align: left;
}
.identity-choice button,
.identity-dialog button {
  font: inherit;
  cursor: pointer;
  color: #f5ecd7;
  border: 1px solid #75603c;
  border-radius: 9px;
  background: #28221a;
}
.identity-avatar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 7px 10px;
  flex: 1;
}
.identity-avatar img {
  border-radius: 50%;
  object-fit: cover;
  background: #3a3024;
}
.identity-avatar span {
  display: grid;
  gap: 1px;
}
.identity-avatar small {
  font-size: 11px;
  color: #cab88c;
}
.identity-avatar strong {
  font-size: 14px;
}
.identity-voice {
  flex: 1;
  min-width: 110px;
}
.identity-voice label {
  display: block;
  font-size: 12px;
  color: #e6d3a4;
}
.identity-voice select {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 4px;
  color: #f5ecd7;
  background: #28221a;
  border: 1px solid #75603c;
  border-radius: 7px;
  font: inherit;
}
.identity-voice button {
  margin-top: 5px;
  padding: 5px 9px;
  min-height: 32px;
  font-size: 12px;
}
.identity-status {
  display: block;
  font-size: 11px;
  max-width: 180px;
}
.identity-dialog {
  color: #f5ecd7;
  background: #201b16;
  border: 1px solid #96763e;
  border-radius: 14px;
  max-width: 600px;
  width: calc(100% - 30px);
  max-height: 80dvh;
  padding: 16px;
  box-sizing: border-box;
}
.identity-dialog::backdrop {
  background: #000b;
}
.identity-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.identity-dialog h2 {
  font: 24px Georgia;
  margin: 0 0 12px;
}
.identity-dialog-head button {
  min-width: 42px;
  min-height: 42px;
}
.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.identity-grid button {
  padding: 6px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
}
.identity-grid img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
}
.identity-grid button[aria-pressed='true'] {
  outline: 2px solid #dfba61;
  background: #493a24;
}
.identity-dialog button:focus-visible,
.identity-choice button:focus-visible {
  outline: 3px solid #dfba61;
  outline-offset: 2px;
}
@media (max-width: 350px) {
  .identity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .identity-choice {
    gap: 8px;
  }
  .identity-avatar {
    padding: 6px;
  }
}

.identity-collections,
.identity-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.identity-collections button {
  flex: 1;
  min-height: 40px;
  padding: 6px;
}
.identity-collections button[aria-pressed='true'] {
  background: #493a24;
  border-color: #dfba61;
}
.identity-pages button {
  min-height: 40px;
  padding: 6px 12px;
}
.identity-pages button:disabled {
  opacity: 0.4;
  cursor: default;
}
.identity-pages span {
  font-size: 13px;
  color: #e6d3a4;
}

/* Premium finish and continuous chooser rows copied from Rook menu-approved805 / review839. */
.spades-identity-choice {padding:8px 0;gap:10px}.spades-identity-choice button {margin:0;width:auto}.spades-identity-choice .identity-avatar{flex:1.2}.spades-identity-choice .identity-voice {flex:1;min-width:100px}.spades-identity-choice select{height:34px}.spades-identity-choice .identity-voice button{margin-top:5px;width:100%}
#spadesChoices,#spadesOfflineTable {background:repeating-linear-gradient(0deg,#ffffff02 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#00000009 0 1px,transparent 1px 3px),radial-gradient(ellipse at 20% 0,#1a314ccc,transparent 65%),linear-gradient(155deg,#0c2035fa,#071324fc);color:#eee5d0;border:1px solid #a9915c;border-radius:15px;box-shadow:0 18px 55px #000a,inset 0 1px 0 #ebd9aa25;}
#spadesChoices :is(button,select),.spades-identity-choice :is(button,select),#spadesOfflineTable button{background:linear-gradient(150deg,#1b3550,#10253c 60%,#0b1e33);color:#f1e8d4;border:1px solid #b0975d99;border-radius:9px;box-shadow:inset 0 1px 0 #d7e9ff18,0 3px 6px #0004}
#spadesChoices[open]{display:flex;flex-direction:column;height:min(680px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);gap:5px;margin:auto;padding:16px;overflow:hidden}
#spadesChoices .identity-dialog-head,#spadesChoices .identity-pages,#spadesChoices input,#spadesChoices [data-remove]{flex:none;margin:0}
#spadesChoices .identity-dialog-head h2{color:#ecdbac;margin:0;font:24px Georgia;line-height:1.2}
#spadesChoices [data-close]{min-width:28px;min-height:28px;width:28px;height:28px;padding:0;margin:0}
#spadesChoices .identity-grid{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior:contain;align-content:start;grid-auto-rows:96px;scrollbar-width:thin}
#spadesChoices .identity-grid button{min-height:0;height:96px;width:auto;margin:0;padding:5px 3px;overflow:hidden;gap:3px;}
#spadesChoices .identity-grid img{width:64px;height:64px;max-width:100%;object-fit:cover;flex:none}
#spadesChoices .identity-grid b{font-size:12px;line-height:1.2;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#spadesChoices.spades-bot-choices .identity-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:112px}
#spadesChoices.spades-bot-choices .bot-pick{height:112px;font-size:12px}.spades-bot-choices .bot-pick i{font-size:10px}.spades-bot-choices .bot-pick span{font-size:10px}
#spadesChoices button[aria-pressed=true]{background:linear-gradient(145deg,#294560,#15334c);border-color:#e1c16b;outline:2px solid #d6b55c;outline-offset:-2px}
#spadesChoices .identity-pages{display:flex;gap:8px;align-items:center;justify-content:space-between;padding-top:5px}#spadesChoices .identity-pages button{width:auto;min-height:40px;margin:0;padding:6px 12px}
#spadesChoices .choice-search836{box-sizing:border-box;width:100%;padding:10px;color:#f1e8d4;border:1px solid #a9915c;border-radius:7px;background:#0b1c2e;font:14px Georgia}
#spadesChoices button:disabled{opacity:.4}#spadesChoices .choice-empty836{font-size:13px;margin:3px}
#spadesOfflineTable .spades-offline-seats{display:grid;gap:8px}#spadesOfflineTable .identity-avatar{width:100%;margin:0;min-height:72px}#spadesOfflineTable .identity-avatar img{width:48px;height:48px}
@media(max-height:480px){#spadesChoices[open]{padding:9px;gap:4px}#spadesChoices .identity-dialog-head h2{font-size:20px}#spadesChoices .choice-search836{padding:7px}#spadesChoices .identity-pages button{min-height:34px}#spadesOfflineTable{padding:12px;max-height:calc(100dvh - 20px);overflow:auto}}

/* Complete heads: use actual head portraits, never crop body poses into chooser tiles. */
#spadesChoices .identity-grid img {object-fit:contain;object-position:center center;box-sizing:border-box;padding:2px;background:#10263b;}
.spades-identity-choice .identity-avatar img {object-fit:contain;object-position:center center;border-radius:8px;box-sizing:border-box;padding:2px;}
#spadesChoices [hidden] {display:none!important;}
#spadesChoices [data-selection],#spadesChoices [data-done] {flex:none;margin:0;}
#spadesChoices [data-selection] {color:#ecdbac;font:13px/1.3 Georgia;}
#spadesChoices [data-done] {min-height:38px;}
#spadesChoices .partner-random {display:grid;place-items:center;width:64px;height:64px;font:34px Georgia;color:#ecd39a;flex:none;}
#landingPartner783 {color:#ead9ad;}
