.teEditor,.tePicker,.teActionPad,.teSettings[open]{display:grid;gap:14px}
.teEditor h3,.tePicker h3,.teEditor p{margin:0}
.teEditor h3,.tePicker h3{font-size:17px}
.teEditor .btn,.teFieldTools .btn,.tePicker button{min-height:42px;height:auto;justify-content:center}
.teSetupFields,.teActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px}
.teEditor input,.teEditor select,.teEditor textarea{width:100%;min-width:0;font-size:16px}
.teEditor label{min-width:0}
.teFelt{position:relative;height:250px;background:#112c28;border-radius:16px;isolation:isolate;color:#eef8eb}
.teOval{position:absolute;inset:13% 8%;border:6px solid #53645b;border-radius:48%;background:radial-gradient(ellipse at 48% 56%,#24564a,#143a32);box-shadow:inset 0 0 0 2px #27453d}
.teSeat{position:absolute;transform:translate(-50%,-50%);display:grid;gap:2px;place-items:center;min-width:72px;min-height:45px;line-height:1.15;padding:5px 8px;border:1px solid #637b70;border-radius:9px;background:#203a33;color:#f6f8ed;font:inherit;z-index:2}
button.teSeat{cursor:pointer}
.teSeat small{color:#c2d7c7;font-size:12px}
.teSeat b{font-size:14px}
.teDealer{position:absolute;top:-7px;right:-6px;border:1px solid #8a9785;border-radius:50%;width:16px;height:16px;line-height:14px;text-align:center;background:#f4f5db;color:#26382c;font-size:11px;font-style:normal;font-weight:700}
.teSeat.current{background:#d4f4aa;color:#15362a;border-color:#ccf3a0;box-shadow:0 0 0 3px #95c59d38}
.teSeat.current small{color:#244a35}
.teSeat.inactive{opacity:.55}
.teCenter{position:absolute;left:25%;right:25%;top:50%;transform:translateY(-50%);text-align:center;display:grid;gap:3px;pointer-events:none}
.teCenter small{font-size:12px;color:#bed6c9}.teCenter strong{font-size:18px}.teCenter span{font-size:14px;font-weight:bold;color:#fff5d5}
.teCrowded{min-height:270px}
.teCrowded .teSeat{width:22%;max-width:88px;min-width:0;padding-inline:2px}
.teCrowded .teSeat b,.teCrowded .teSeat small{overflow-wrap:anywhere;max-width:100%}
.teEditor .teCommon{display:flex;align-items:center;gap:8px;font-size:14px}
.teEditor .teCommon input{width:auto;flex:none}
.poolPanel{border:1px solid var(--line);border-radius:10px;padding:12px;background:#f6f9f5;color:#243b30}
#player>.poolPanel{margin:10px 14px 14px}
.poolPanel h3{margin:0 0 5px;font-size:15px}
.poolPanel dl,.poolPanel dd{margin:0}
.poolRow{display:grid;grid-template-columns:minmax(78px,auto) 1fr;gap:12px;padding:7px 0;align-items:baseline}
.poolRow+.poolRow{border-top:1px solid var(--line)}
.poolRow dt,.poolRow b{font-size:14px}
.poolRow dd{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px}
.poolRow small{font-size:13px;color:#53685b;overflow-wrap:anywhere}
.teHeroline,.teRound,.teInline,.teBar,.teFoot,.teChips,.tePickerTools,.teFieldTools,.teSeatEdit{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.teHeroline,.teRound,.teFoot{justify-content:space-between}
.teHeroline,.teSeatEdit,.teSettings,.teActionPad,.teRound{padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8faf7}
.teInline{align-items:flex-end}.teInline label{flex:1}.teSeatEdit label{flex:1 1 110px}
.teSeatEdit strong,.teSeatEdit>.btn{font-size:14px}
.teSettings summary{cursor:pointer;font-weight:600;padding:4px}
.teHint,.teRows small{font-size:13px;color:#52665c}
.teRows{list-style:none;margin:0;padding:0;border-block:1px solid var(--line)}
.teRows li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}
.teRows li:last-child{border:0}.teRows .btn{min-height:36px}
.teWarn,.teInvalid{background:#fff0e0;color:#77431c}
#teError{color:#922d24}#teError:empty{display:none}
.tePicker{padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8faf7}
.tePicker button{border:1px solid #c5d3c8;border-radius:8px;background:white;color:#243d30;font:inherit;font-weight:600;padding:5px 9px;cursor:pointer}
.tePicker button:disabled{opacity:.4;cursor:default}
.tePicker button[aria-pressed=true],.tePicker .tePrimary{background:#245342;border-color:#245342;color:#fff}
.teSlots,.teRanks,.teSuits{display:grid;gap:5px}.teSlots{grid-template-columns:repeat(auto-fit,minmax(38px,1fr))}
.teRanks{grid-template-columns:repeat(7,minmax(0,1fr))}.teRanks button{padding-inline:0}
.teSuits{grid-template-columns:repeat(4,minmax(0,1fr))}.teSuits .suit-h{color:#b63140}.teSuits .suit-d{color:#255eaa}.teSuits .suit-c{color:#266f50}
.tePickerTools button,.teChips .btn{font-size:14px}
.teFieldTools #inlineCardPicker{flex:1 0 100%}
@media(max-width:600px){
  dialog:has(.teEditor){width:calc(100% - 12px);max-width:100%;max-height:95dvh;border-radius:14px}
  dialog:has(.teEditor) .modalBody{padding:12px 12px max(14px,env(safe-area-inset-bottom))}
  dialog:has(.teEditor) .modalHead{padding:10px 14px}
  .teFelt{height:clamp(174px,29dvh,224px)}
  .teSeat{min-width:59px;padding:4px}.teCenter strong{font-size:16px}
  .teEditor,.tePicker{gap:10px}.teFoot>.primary{margin-left:auto}
  .teChips{gap:4px}.tePicker .teSuits button{padding-inline:2px}
}
@media(max-width:360px){.teSuits{grid-template-columns:repeat(2,minmax(0,1fr))}.teFoot,.teBar{gap:4px}.teFoot .btn{padding-inline:8px}}
