.tp-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #dce4ec;border-radius:20px;background:#fff;color:#1b2937;font:14px/1.6 system-ui,sans-serif;box-shadow:0 24px 80px #172a3c26}
.tp-dialog::backdrop{background:#10202f66}
.tp-dialog .tp-row small{margin:0;line-height:1.6}.tp-dialog .tp-row>span{display:grid;gap:4px}
.tp-dialog *{box-sizing:border-box}.tp-dialog h2{font-size:22px;margin:0}.tp-dialog p{margin:8px 0 16px;color:#64748a}.tp-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}.tp-dialog button{min-height:44px;padding:8px 16px;border:1px solid #dce4ec;border-radius:10px;color:#1b2937;background:#fff;font:inherit;cursor:pointer}.tp-dialog button:focus-visible,.tp-row input:focus-visible{outline:3px solid #b18c4b;outline-offset:3px}.tp-dialog button:disabled{opacity:.55;cursor:not-allowed}.tp-devices{display:grid;gap:10px}.tp-row{display:flex;gap:12px;align-items:flex-start;padding:14px;background:#f8fafc;border:1px solid #dce4ec;border-radius:12px;cursor:pointer}.tp-row input{width:20px;height:20px;flex:none;margin:4px 0;accent-color:#ab8847}.tp-row span{min-width:0;display:grid;gap:3px}.tp-row strong,.tp-row small{overflow-wrap:anywhere}.tp-row small{font-size:12px;color:#64748a}.tp-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}.tp-actions .tp-primary{background:#1b2937;color:#ecd4a8;border-color:#1b2937}.tp-feedback{margin-top:12px;color:#64748a}.tp-feedback[data-error=true]{color:#b52c3a}.tp-empty{padding:24px;background:#f8fafc;border-radius:12px;color:#64748a}
@media(max-width:480px){.tp-dialog{padding:18px}.tp-actions{flex-wrap:wrap}.tp-actions button{flex:1}}

/* A visible entry to device selection, not an immediate broadcast command. */
button[data-tv-presentation-open].tp-entry {
  --tp-entry-bg: var(--match-admin-ink, #1b2937);
  --tp-entry-fg: #ecd4a8;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 60px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--tp-entry-bg);
  border-radius: 10px;
  background: var(--tp-entry-bg);
  color: var(--tp-entry-fg);
  box-shadow: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
button[data-tv-presentation-open].tp-entry svg { width: 24px; height: 24px; flex: none; }
button[data-tv-presentation-open].tp-entry .tp-entry-arrow { width: 16px; height: 16px; margin-left: auto; }
button[data-tv-presentation-open].tp-entry .tp-entry-copy { display: grid; gap: 3px; min-width: 0; }
button[data-tv-presentation-open].tp-entry strong { color: inherit; font-size: 16px; font-weight: 650; line-height: 1.4; }
button[data-tv-presentation-open].tp-entry small { color: #d4dce5; font-size: 12px; line-height: 1.5; margin: 0; letter-spacing: 0; white-space: normal; }
button[data-tv-presentation-open].tp-entry:is(:hover, :focus-visible) { background: #2c4155; border-color: #2c4155; color: #fff2d6; }
button[data-tv-presentation-open].tp-entry:focus-visible { outline: 3px solid #826335; outline-offset: 3px; }
button[data-tv-presentation-open].tp-entry:disabled { opacity: .55; cursor: not-allowed; }
.pc-center .pc-heading { flex-wrap: wrap; }
.pc-center .pc-heading > div:first-child,
.gc-shell .gc-head > div:first-child { flex: 1 1 220px; min-width: 0; }
@media(max-width:600px) { button[data-tv-presentation-open].tp-entry { width: 100%; } }
@media(prefers-reduced-motion:reduce) { button[data-tv-presentation-open].tp-entry { transition: none; } }
