.study-remote-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  margin: auto;
  inset: 0;
  padding: 24px;
  border: 1px solid #96703b;
  border-radius: 16px;
  background: linear-gradient(150deg, #292419, #15130e);
  color: #e9e0cd;
  box-shadow: 0 20px 80px #000a;
  font: 14px/1.5 var(--font-ui, sans-serif);
}
.study-remote-dialog[open] { display: flex; flex-direction: column; }
.study-remote-dialog::backdrop { background: #090805b8; backdrop-filter: blur(3px); }
.study-remote-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding-bottom: 14px; border-bottom: 1px solid #544731; }
.study-remote-content { min-height: 0; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.study-remote-heading h2 { margin: 0; font-size: 24px; color: #f1ddb7; }
.study-remote-dialog p { margin: 10px 0; color: #bdb29d; font-size: 13px; line-height: 1.5; }
.study-remote-dialog .study-remote-kicker { margin: 0 0 5px; font-size: 10px; letter-spacing: .12em; color: #d6a858; }
.study-remote-dialog .study-remote-note { font-size: 12px; }
.study-remote-enabled { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; color: #d5c8ad; font: 13px/1.5 var(--font-ui, sans-serif); letter-spacing: normal; text-transform: none; }
.study-remote-enabled input { width: 18px; height: 18px; padding: 0; flex: 0 0 18px; accent-color: var(--amber, #c89142); }
.study-remote-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #544731; font-size: 13px; }
.study-remote-row kbd { max-width: 140px; overflow-wrap: anywhere; font: 12px/1.4 var(--font-mono, monospace); color: #e9c17d; }
.study-remote-dialog button { min-height: 44px; padding: 10px 14px; border: 1px solid #75603b; border-radius: 8px; background: #30291c; color: #e6d8b9; font: 600 13px/1.3 var(--font-ui, sans-serif); cursor: pointer; }
.study-remote-dialog button:hover:enabled { background: #473821; border-color: #c1934d; }
.study-remote-dialog button[data-listening="true"] { border-color: var(--lantern, #f0b050); color: var(--lantern, #f0b050); background: #473821; }
.study-remote-dialog .study-remote-primary { background: #62481e; border-color: #bb8b3c; }
.study-remote-dialog :is(button, input):focus-visible { outline: 2px solid #9ad9df; outline-offset: 3px; }
.study-remote-footer { display: flex; justify-content: space-between; gap: 12px; flex: 0 0 auto; margin-top: 16px; padding-top: 16px; border-top: 1px solid #544731; }
#study-remote-status { min-height: 3em; }
@media (max-width: 420px) {
  .study-remote-dialog { padding: 16px; }
  .study-remote-row { grid-template-columns: 1fr auto; gap: 6px; }
  .study-remote-row > span { grid-column: 1 / -1; }
}
