.pp-table-dialog:is(.pp-dialog-flipped,.pp-dialog-left,.pp-dialog-right) { --pp-seat-keyboard-rotated: 1; }
.pp-table-dialog input[data-seat-input] { font-size:16px; }
.pp-table-dialog input[data-seat-input][inputmode="none"]:focus { border-color:#c8abfa; caret-color:#f0d9ff; }
.pp-seat-keyboard {
  --pp-key-edge:#69547e;
  margin:.42rem 0 .58rem; padding:.43rem; border:1px solid var(--pp-key-edge); border-radius:11px;
  background:#211a2d; box-shadow:0 4px 16px #0e091740; user-select:none;
}
.pp-seat-keyboard > header { display:flex; align-items:center; justify-content:space-between; min-width:0; padding-bottom:.3rem; }
.pp-seat-keyboard > header > small { margin:0; color:#dac8ed; font-size:.79rem; font-weight:700; }
.pp-key-row,.pp-key-utility { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:.21rem; margin-bottom:.23rem; }
.pp-key-row:nth-child(3) { grid-template-columns:repeat(9,minmax(0,1fr)); }
.pp-key-utility { grid-template-columns:repeat(auto-fit,minmax(min(100%,2.1rem),1fr)); margin-bottom:0; }
.pp-table .pp-seat-keyboard button {
  min-width:0; min-height:34px; padding:.18rem .13rem; font-size:.93rem; line-height:1.12;
  border-radius:6px; border-color:var(--pp-key-edge); background:#362849; color:#f5ebff; touch-action:manipulation;
}
.pp-table .pp-seat-keyboard :is(header,.pp-key-utility) button { font-size:.75rem; }
.pp-table .pp-seat-keyboard button[data-seat-key="done"] { min-height:29px; padding-inline:.46rem; }
.pp-table .pp-seat-keyboard button[data-seat-key="next"] { grid-column:span 2; background:#4c3661; }
.pp-table .pp-seat-keyboard button[data-seat-key="space"] { font-size:1rem; }
.pp-table .pp-seat-keyboard button:active { background:#624482; }

/* Native caret may be invisible in iPad Safari's readonly inputs. Paint in the seat's own rotated coordinate space. */
.pp-seat-input-wrap { position:relative; display:block; min-width:0; }
.pp-seat-input-wrap[data-seat-caret-active] input[data-seat-input] {
  color:transparent; -webkit-text-fill-color:transparent; caret-color:transparent;
}
.pp-seat-input-wrap[data-seat-caret-active] input[data-seat-input]::selection {
  background:transparent; color:transparent; -webkit-text-fill-color:transparent;
}
.pp-seat-input-wrap[data-seat-caret-active] input[data-seat-input]::placeholder {
  color:#9d98ab; -webkit-text-fill-color:#9d98ab;
}
.pp-seat-echo {
  position:absolute; inset:1px; display:flex; align-items:center; padding:0 .67rem;
  pointer-events:none; text-align:start; color:#f4f1fb; font-size:16px;
  font-family:inherit; font-weight:inherit; line-height:normal;
}
.pp-seat-echo-view { position:relative; display:block; width:100%; min-width:0; overflow:hidden; }
.pp-seat-echo-line {
  position:relative; display:inline-block; min-width:1px; white-space:pre;
  padding-inline-end:5px;
}
.pp-seat-echo-line [data-seat-mark="caret"] { position:relative; }
.pp-seat-echo-line [data-seat-mark="caret"]::after {
  position:absolute; top:-.02em; left:0; height:1.12em; width:2px; content:"";
  background:#fff6bf; border-radius:2px; box-shadow:0 0 5px #fff29c8c;
}
.pp-seat-echo-line [data-seat-mark="selection"] {
  background:#7353a4; color:#fff6df; border-radius:2px;
}
.pp-seat-measure { position:absolute; left:0; top:0; width:max-content; white-space:pre; visibility:hidden; }
