/* Shared Recording Desk palette and controls. */
.desk-theme {
  color-scheme: light;
  --paper: #f1f4ef;
  --card: #fffffc;
  --desk-panel: #f6f8f3;
  --desk-plot: #f3f7f4;
  --line: #ccd7ce;
  --desk-edge: #adbeaf;
  --ink: #202c27;
  --muted: #4c6157;
  --teal: #17674e;
  --desk-green-dark: #195041;
  --teal-soft: #e1f1e8;
  --coral: #ac343b;
  --coral-dark: #972830;
  --desk-coral-soft: #fbe6e4;
  --desk-coral-edge: #d6a5a1;
  --desk-panel-radius: 12px;
  --desk-control-radius: 6px;
  --desk-control-height: 34px;
  --shadow: 0 9px 32px rgb(32 44 39 / 25%);
}

.desk-theme :is(.panel, .studio-notice-panel, .confirmation-dialog) {
  border-radius: var(--desk-panel-radius);
  background: var(--card);
  box-shadow: none;
}
.desk-theme :is(.button, .take-action, .participant-chip, .role-badge) { border-radius: var(--desk-control-radius); }
.desk-theme.editorial-entry #studioContent { gap: clamp(16px, 2vw, 24px); }
.desk-theme.editorial-entry .login-panel { padding: clamp(20px, 4vw, 32px); }
.desk-theme .login-action h1.login-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
}
.login-reset { width: min(100%, 560px); margin: 12px auto 0; }
.login-heading img { max-width: 100%; height: auto; }
.login-heading-mark { width: clamp(104px, 24vw, 216px); }
.login-heading-wordmark { width: clamp(200px, 52vw, 384px); }
.desk-theme :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.desk-theme .button { min-height: var(--desk-control-height); padding: 5px 9px; }
.desk-theme .button:hover:not(:disabled) { transform: none; }
.desk-theme .button-primary { background: var(--teal); color: var(--card); }
.desk-theme .button-primary:hover:not(:disabled) { background: var(--desk-green-dark); }
.desk-theme :is(.button-quiet, .take-action, .participant-chip) { background: var(--card); color: var(--ink); }
.desk-theme :is(.button-danger, .session-delete, .inline-message, .settings-warning) { color: var(--coral-dark); }
.desk-theme .button-danger { border: 1px solid var(--desk-coral-edge); }
.desk-theme .button-danger:hover:not(:disabled) { background: var(--desk-coral-soft); }
.desk-theme :is(.role-badge, .role-badge.guest) { background: var(--teal-soft); color: var(--teal); }
.desk-theme :is(.field, .network-metrics, .confirmation-dialog-message, .guest-request-copy p,
  .transfer-progress p, .transfer-diagnostics) { color: var(--muted); }
.desk-theme .field :is(input, select, textarea), .desk-theme .invite-input-row input {
  min-height: var(--desk-control-height);
  padding: 5px 8px;
  border-radius: var(--desk-control-radius);
  background: var(--card);
}
.desk-theme :is(.field :is(input, select, textarea), .studio-title-input, .network-event-log):focus {
  box-shadow: 0 0 0 2px var(--teal-soft);
}
.desk-theme .session-open:hover { color: var(--desk-green-dark); }
.desk-theme .confirmation-dialog::backdrop { background: rgb(32 44 39 / 65%); }

.desk-theme :is(.studio-title-row, .view, .shell) h1.page-title {
  margin: 0 0 10px;
  font: 650 clamp(24px, 3.6vw, 36px)/1.15 var(--font-ui);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.desk-theme .studio-title-copy { border: 0; padding: 0; }
.desk-theme .login-action > p, .desk-theme .login-panel .login-guest-note { font-size: 14px; }
.desk-theme .login-panel .login-guest-note { padding-top: 14px; border-top: 1px solid var(--line); }
.desk-theme .login-status[data-kind='error'] { color: var(--coral-dark); }
.desk-theme .session-entry > span { min-width: 0; overflow-wrap: anywhere; }
.desk-theme .settings-form { padding: 14px; border-radius: var(--desk-control-radius); background: var(--desk-panel); }
