/* At-table player profile sheet + note label dot (js/table-profile.js).
   Dark sheet, white numbers, neutral white selection; champagne #D4B98A
   only on the single primary action (Save note). Label colours muted. */

/* seat plate: the viewer's private label for that player */
.seat .plate .nm .tp-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--c, #777); box-shadow: 0 0 0 1px rgba(0,0,0,.45);
}
#tbl-layer .seat .av, #tbl-layer .seat .plate { cursor: pointer; }

.sheet.tp-host { background: #141416; border-top-color: #26262A; }
.tp-sheet { padding: 6px 16px 8px; font-family: var(--tb-font, system-ui, sans-serif); color: #F4F4F5; }

.tp-head { display: flex; gap: 14px; align-items: center; padding: 10px 0 14px; border-bottom: 1px solid #232327; }
.tp-av {
  position: relative; width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%;
  padding: 2px; box-sizing: border-box;
  background: linear-gradient(160deg, #F1DFB5, #C9A463 55%, #8E6B33);
}
.tp-av img, .tp-av .tp-ini {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex;
  align-items: center; justify-content: center; background: #1C1C1F;
  border: 2px solid #141416; box-sizing: border-box; font: 800 20px var(--tb-font, sans-serif); color: #F4F4F5;
}
.tp-flag { position: absolute; right: -4px; bottom: 2px; line-height: 0; }
.tp-flag .flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1.5px #141416; }
.tp-who { min-width: 0; flex: 1; }
.tp-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tp-name b { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-you { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #A8A29A; border: 1px solid #34343A; border-radius: 6px; padding: 1px 6px; }
.tp-id {
  margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 0;
  background: none; border: 0; color: #8E8A84; font: 500 12px var(--tb-font, sans-serif); cursor: pointer;
}
.tp-id svg { width: 14px; height: 14px; }
.tp-id:hover { color: #F4F4F5; }
.tp-badges { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.tp-badges::-webkit-scrollbar { display: none; }
.tp-badge {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #1E1E22;
  display: flex; align-items: center; justify-content: center; color: #3C3C42;
}
.tp-badge svg { width: 16px; height: 16px; }
.tp-badge.got { color: #F4F4F5; background: #26262B; box-shadow: inset 0 0 0 1px #3A3A40; }

.tp-sec { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: #CFCAC2; display: flex; align-items: baseline; gap: 8px; }
.tp-sec em { font-style: normal; font-size: 11px; font-weight: 400; color: #77736D; }
.tp-card { background: #1C1C1F; border: 1px solid #26262A; border-radius: 14px; padding: 12px 10px; }
.tp-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.tp-chip {
  height: 26px; padding: 0 14px; border-radius: 13px; background: transparent; border: 1px solid #34343A;
  color: #8E8A84; font: 600 12px var(--tb-font, sans-serif); letter-spacing: .02em; cursor: pointer;
}
.tp-chip.on { color: #F4F4F5; border-color: rgba(244,244,245,.75); }
.tp-chip.static { cursor: default; }
.tp-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 12px; }
.tp-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tp-k { font-size: 11.5px; color: #8E8A84; }
.tp-v { font-size: 17px; font-weight: 700; color: #F4F4F5; font-variant-numeric: tabular-nums; }
.tp-empty { text-align: center; color: #77736D; font-size: 13px; padding: 10px 0; }

.tp-notes { padding: 12px; }
.tp-cols { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tp-col {
  width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--c); box-shadow: 0 0 0 2px #1C1C1F;
}
.tp-col.none { background: transparent; box-shadow: inset 0 0 0 1.5px #4A4A50; position: relative; }
.tp-col.none::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; background: #4A4A50; transform: rotate(-45deg); }
.tp-col.on { box-shadow: 0 0 0 2px #1C1C1F, 0 0 0 3.5px #F4F4F5; }
.tp-text {
  display: block; width: 100%; box-sizing: border-box; margin-top: 12px; resize: vertical; min-height: 84px;
  background: #141416; border: 1px solid #2A2A2F; border-radius: 10px; padding: 10px;
  color: #F4F4F5; font: 400 13.5px/1.45 var(--tb-font, sans-serif);
}
.tp-text:focus { outline: none; border-color: #4A4A50; }
.tp-text::placeholder { color: #5E5A55; }
.tp-nfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.tp-count { font-size: 11px; color: #6E6A64; font-variant-numeric: tabular-nums; }
.tp-save {
  height: 36px; padding: 0 20px; border-radius: 18px; border: 0; cursor: pointer;
  background: #D4B98A; color: #1C1406; font: 700 13px var(--tb-font, sans-serif);
}
.tp-save:disabled { background: #2A2A2F; color: #6E6A64; cursor: default; }

/* Label edit (rename the 10 colours) */
.tp-ntop { display: flex; align-items: center; gap: 10px; }
.tp-ntop .tp-cols { flex: 1; min-width: 0; }
.tp-ledit {
  flex-shrink: 0; height: 30px; padding: 0 10px; border-radius: 8px; background: transparent;
  border: 1px solid #34343A; color: #CFCAC2; font: 600 12px var(--tb-font, sans-serif);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.tp-ledit svg { width: 14px; height: 14px; }
.tp-ledit:hover { border-color: #55555C; color: #F4F4F5; }
.tp-lname { margin-top: 8px; font-size: 12px; color: #A8A29A; min-height: 16px; }
.tp-lname + .tp-text { margin-top: 6px; }
.tp-lbls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tp-lbl {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px;
  background: #141416; border: 1px solid #2A2A2F;
}
.tp-lbl:focus-within { border-color: #4A4A50; }
.tp-lbl i { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: var(--c); }
.tp-lbl input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #F4F4F5;
  font: 500 13px var(--tb-font, sans-serif);
}
.tp-lbl input::placeholder { color: #5E5A55; }
.tp-ghost {
  height: 36px; padding: 0 16px; border-radius: 18px; background: transparent; border: 1px solid #34343A;
  color: #CFCAC2; font: 600 13px var(--tb-font, sans-serif); cursor: pointer;
}
@media (max-width: 380px) {
  .tp-ntop { flex-direction: column; align-items: flex-start; }
  .tp-lbls { grid-template-columns: 1fr; }
}
