.pc-remote-screen,
.remote-app,
.remote-app * {
  box-sizing: border-box;
}

.pc-remote-screen {
  min-width: 0;
  overflow-x: hidden;
}

.remote-app {
  min-width: 0;
  color: #202020;
}

.remote-shell {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.remote-shell.is-call-view {
  --remote-call-fallback-height: calc(100dvh - var(--pc-header-height) - var(--pc-body-pad-top) - 8px);
  --remote-call-min-height: 520px;
  min-height: min(var(--remote-call-min-height), var(--remote-call-available-height, var(--remote-call-min-height)));
  height: var(--remote-call-available-height, max(var(--remote-call-min-height), var(--remote-call-fallback-height)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.remote-page-head,
.remote-list-toolbar,
.remote-detail-panel,
.remote-create-form,
.remote-precheck,
.remote-waiting-card,
.remote-dev-tools,
.remote-call-toolbar {
  border: 1px solid #b9d6e8;
  border-radius: 8px;
  background: #fff;
}

.remote-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.remote-page-head h1,
.remote-detail-head h2,
.remote-create-form h2,
.remote-precheck h2,
.remote-waiting-card h2,
.remote-material-head h2,
.remote-participant-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.remote-head-actions,
.remote-form-actions,
.remote-reservation-actions,
.remote-device-toggles,
.remote-call-actions,
.remote-page-controls,
.remote-participant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.remote-primary-button,
.remote-secondary-button,
.remote-app button {
  min-height: 36px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid #8ec5e4;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}

.remote-primary-button,
.remote-app button.is-active {
  border-color: #0879c9;
  background: #0879c9;
  color: #fff;
}

.remote-secondary-button {
  background: #f5fbff;
}

.remote-app button.is-danger,
.remote-primary-button.is-danger {
  border-color: #c82435;
  background: #c82435;
  color: #fff;
}

.remote-app button:disabled,
.remote-app input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.remote-notice,
.remote-form-error,
.remote-empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7d6;
  color: #6d4f00;
  font-size: 14px;
  line-height: 1.55;
}

.remote-form-error {
  grid-column: 1 / -1;
  background: #ffe8ec;
  color: #9f1728;
}

.remote-dev-tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  padding: 12px;
}

.remote-dev-tools label,
.remote-create-form label,
.remote-precheck-form label,
.remote-filter-row,
.remote-level-field,
.remote-color-field,
.remote-width-field {
  min-width: 0;
}

.remote-dev-tools label,
.remote-create-form label,
.remote-precheck-form label,
.remote-level-field {
  display: grid;
  gap: 5px;
  color: #44515f;
  font-size: 13px;
  font-weight: 700;
}

.remote-dev-check,
.remote-check-grid label,
.remote-radio-grid label,
.remote-recording-consent label {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.remote-app input,
.remote-app select,
.remote-app textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #b9c8d6;
  border-radius: 8px;
  background: #fff;
  color: #202020;
  font: inherit;
  font-size: 14px;
}

.remote-app textarea {
  resize: vertical;
}

.remote-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.remote-segment {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background: #f5fbff;
}

.remote-segment button {
  min-height: 32px;
  padding: 6px 10px;
  border-color: transparent;
  background: transparent;
}

.remote-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}

.remote-reservation-list {
  display: grid;
  gap: 10px;
}

.remote-reservation-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(430px, 1.35fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #fff;
}

.remote-reservation-main {
  min-width: 0;
}

.remote-reservation-main time,
.remote-detail-head p,
.remote-precheck-form p,
.remote-waiting-card p,
.remote-permission-note,
.remote-help-text {
  color: #556372;
  font-size: 13px;
  line-height: 1.5;
}

.remote-reservation-main time {
  display: block;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.remote-reservation-main h2 {
  margin: 5px 0 3px;
  color: #172033;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.remote-reservation-count {
  color: #44515f;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.remote-reservation-main p {
  margin: 0;
  color: #556372;
  line-height: 1.45;
}

.remote-recording-retention-note {
  display: inline-flex;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid #ffe1a6;
  border-radius: 6px;
  background: #fff8d8;
  color: #725200;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.remote-card-recording-consent {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.remote-card-recording-consent .remote-recording-retention-note {
  margin-top: 0;
}

.remote-card-recording-consent label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.remote-card-recording-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.remote-reservation-meta,
.remote-detail-grid {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
}

.remote-reservation-meta {
  grid-template-columns: minmax(250px, 1.8fr) minmax(92px, 0.65fr) minmax(84px, 0.55fr);
  column-gap: 14px;
}

.remote-reservation-material-meta {
  min-width: 250px;
}

.remote-reservation-material-meta dd {
  overflow-wrap: normal;
  word-break: keep-all;
}

.remote-reservation-actions {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(132px, auto) minmax(64px, auto);
  grid-template-rows: repeat(2, minmax(38px, auto));
  align-items: stretch;
  justify-content: end;
}

.remote-reservation-actions button {
  width: 100%;
  min-width: 0;
}

.remote-reservation-detail-button {
  grid-column: 1;
  grid-row: 1;
}

.remote-reservation-precheck-button {
  grid-column: 2;
  grid-row: 1;
}

.remote-reservation-edit-button {
  grid-column: 1;
  grid-row: 2;
}

.remote-reservation-cancel-button {
  grid-column: 2;
  grid-row: 2;
}

.remote-reservation-enter-button {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}

.remote-reservation-meta div,
.remote-detail-grid div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.remote-reservation-meta dt,
.remote-detail-grid dt {
  color: #687789;
  font-size: 12px;
  font-weight: 700;
}

.remote-reservation-meta dd,
.remote-detail-grid dd {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.remote-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f5ff;
  color: #0879c9;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.remote-status[data-status="ready"] {
  background: #e8f8ed;
  color: #14783b;
}

.remote-status[data-status="active"] {
  background: #ffe8ec;
  color: #c82435;
}

.remote-status[data-status="ended"] {
  background: #edf0f3;
  color: #58606b;
}

.remote-status[data-status="canceled"] {
  background: #f5e8ff;
  color: #6b3298;
}

.remote-detail-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.remote-detail-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.remote-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.remote-detail-grid .is-wide {
  grid-column: 1 / -1;
}

.remote-create-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.remote-create-form fieldset {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
}

.remote-create-form fieldset.remote-reservation-fields {
  grid-template-columns: minmax(220px, 320px) minmax(180px, 1fr) minmax(180px, 1fr);
}

.remote-date-control,
.remote-time-field select {
  min-width: 0;
  max-width: 100%;
}

.remote-date-control {
  position: relative;
  width: 100%;
  height: 42px;
  overflow: hidden;
  border: 1px solid #c5d3df;
  border-radius: 6px;
  background: #fff;
}

.remote-date-field input[type="date"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  opacity: 0;
}

.remote-date-display {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  color: #202020;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.remote-date-control:focus-within {
  border-color: #69b6d1;
  box-shadow: 0 0 0 3px rgba(105, 182, 209, 0.2);
}

.remote-time-field select {
  width: 100%;
}

.remote-create-form legend {
  padding: 0 6px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.remote-create-form .is-wide,
.remote-help-text.is-wide {
  grid-column: 1 / -1;
}

.remote-participant-fields,
.remote-internal-participant-picker,
.remote-external-participant-fields,
.remote-external-participant-grid {
  min-width: 0;
}

.remote-external-participant-fields {
  display: grid;
  gap: 10px;
}

.remote-external-participant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.remote-external-participant-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px) auto;
  gap: 10px;
  align-items: end;
}

.remote-external-participant-row label {
  min-width: 0;
}

.remote-external-participant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.remote-external-participant-actions span {
  color: #556372;
  font-size: 13px;
  font-weight: 800;
}

.remote-internal-participant-picker {
  display: grid;
  gap: 12px;
}

.remote-internal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background: #f5fbff;
  color: #172033;
}

.remote-internal-summary strong {
  font-size: 15px;
}

.remote-internal-summary span {
  color: #556372;
  font-size: 13px;
  font-weight: 700;
}

.remote-selected-staff-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.remote-selected-staff,
.remote-staff-candidate {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #fff;
}

.remote-selected-staff {
  padding: 9px 10px;
}

.remote-selected-staff.is-host,
.remote-staff-candidate.is-selected {
  border-color: #0879c9;
  background: #eef8ff;
}

.remote-selected-staff-main,
.remote-staff-candidate-main {
  min-width: 0;
  flex: 1 1 auto;
  color: #172033;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-selected-staff button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.remote-staff-role {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0879c9;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900;
}

.remote-staff-filter-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, 260px);
  gap: 10px;
  align-items: end;
}

.remote-staff-agency-filter,
.remote-staff-type-filter,
.remote-staff-search {
  min-width: 0;
}

.remote-staff-agency-filter,
.remote-staff-type-filter {
  display: grid;
  gap: 5px;
}

.remote-staff-agency-filter p,
.remote-staff-type-filter p,
.remote-staff-candidate-title {
  margin: 0;
  color: #44515f;
  font-size: 13px;
  font-weight: 800;
}

.remote-staff-agency-checks,
.remote-staff-type-checks {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remote-staff-agency-checks label,
.remote-staff-type-checks label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #f8fbfd;
  color: #202020;
  font-size: 14px;
}

.remote-staff-search {
  display: grid;
  gap: 5px;
}

.remote-staff-candidate-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.remote-create-form label.remote-staff-candidate {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px;
  justify-content: flex-start;
}

.remote-create-form label.remote-staff-candidate input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.remote-check-grid,
.remote-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.remote-material-picker {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.remote-material-picker-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 12px;
  align-items: end;
}

.remote-material-add-row label,
.remote-material-url-row label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.remote-material-picker-head strong {
  color: #172033;
  font-size: 15px;
}

.remote-material-picker-head span,
.remote-material-draft-card span {
  color: #556372;
  font-size: 12px;
}

.remote-material-add-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.remote-material-upload-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.remote-material-url-row {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 0.8fr) auto;
  gap: 8px;
  align-items: end;
}

.remote-material-upload-row label,
.remote-call-material-upload,
.remote-call-material-url {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.remote-material-upload-row input[type="file"],
.remote-call-material-upload input[type="file"],
.remote-material-url-row input,
.remote-call-material-url input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #c7d7e6;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 13px;
}

.remote-material-draft-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.remote-material-draft-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #f8fbfd;
}

.remote-material-draft-card.is-initial {
  border-color: #0879c9;
  background: #eef8ff;
}

.remote-material-draft-card > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.remote-material-draft-card strong {
  min-width: 0;
  overflow: hidden;
  color: #172033;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-material-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}

.remote-material-draft-actions button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.remote-check-grid label,
.remote-radio-grid label {
  min-height: 38px;
  padding: 8px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #f8fbfd;
  color: #202020;
  font-size: 14px;
}

.remote-check-grid input,
.remote-radio-grid input,
.remote-recording-consent input,
.remote-dev-check input {
  width: auto;
  min-height: 0;
}

.remote-precheck {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  padding: 16px;
}

.remote-precheck-preview,
.remote-precheck-form,
.remote-waiting-room {
  min-width: 0;
}

.remote-precheck-preview {
  display: grid;
  gap: 12px;
  align-content: start;
}

.remote-precheck-form {
  display: grid;
  gap: 12px;
}

.remote-mic-level {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f3;
}

.remote-mic-level span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #1da84a;
  transition: width 120ms linear;
}

.remote-device-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f0a8b2;
  border-radius: 8px;
  background: #fff5f7;
  color: #9f1728;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.remote-precheck-video-tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
}

.remote-precheck-video-tile video,
.remote-livekit-video-mount video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #172033;
}

.remote-precheck-video-tile:not(.is-camera-off) .remote-avatar {
  display: none;
}

.remote-recording-consent {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ffd2d9;
  border-radius: 8px;
  background: #fff5f7;
}

.remote-recording-consent h3,
.remote-participant-row strong,
.remote-video-meta strong {
  margin: 0;
  color: #172033;
}

.remote-waiting-room {
  display: grid;
  place-items: center;
  min-height: 520px;
}

.remote-waiting-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.remote-waiting-message {
  margin: 0;
  padding: 12px;
  border: 1px solid #b9d6e8;
  border-radius: 8px;
  background: #f5fbff;
  color: #172033 !important;
  font-weight: 700;
}

.remote-call-screen {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.remote-shell.is-call-view .remote-call-screen {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.remote-call-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
}

.remote-call-title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.remote-call-title strong {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  color: #172033;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-livekit-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf0f3;
  color: #556372;
  font-size: 12px;
  font-weight: 900;
}

.remote-livekit-status[data-status="connected"] {
  background: #e8f8ed;
  color: #14783b;
}

.remote-livekit-status[data-status="connecting"],
.remote-livekit-status[data-status="reconnecting"] {
  background: #fff7d6;
  color: #6d4f00;
}

.remote-livekit-status[data-status="failed"],
.remote-livekit-status[data-status="disconnected"] {
  background: #ffe8ec;
  color: #9f1728;
}

.remote-call-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.remote-call-actions button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.remote-call-actions button.is-recording,
.remote-recording-live {
  flex: 0 0 auto;
  border-color: #c82435;
  background: #c82435;
  color: #fff;
}

.remote-call-actions button.is-muted {
  border-color: #cfd6dd;
  background: #edf0f3;
  color: #687789;
}

.remote-layout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  padding: 2px;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background: #f6fbff;
}

.remote-layout-toggle-label {
  padding: 0 5px;
  color: #556372;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.remote-call-actions .remote-layout-toggle button {
  min-height: 28px;
  padding: 4px 7px;
  border-color: transparent;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.remote-call-actions .remote-layout-toggle button.is-active {
  border-color: #0879c9;
  background: #0879c9;
  color: #fff;
}

.remote-recording-live {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.remote-recording-live[data-status="failed"] {
  background: #ffe8ec;
  color: #9f1728;
}

.remote-recording-passive {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  background: #f4f7fa;
  color: #556372;
  font-size: 13px;
  font-weight: 900;
}

.remote-mobile-tabs {
  display: none;
}

.remote-call-layout {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 8px;
  overflow: hidden;
}

.remote-call-screen.is-layout-wide-material .remote-call-layout {
  grid-template-columns: minmax(0, 4fr) minmax(220px, 1fr);
}

.remote-call-screen.is-layout-material-only .remote-call-layout {
  grid-template-columns: minmax(0, 1fr);
}

.remote-call-screen.is-layout-material-only .remote-video-pane {
  display: none;
}

.remote-material-pane,
.remote-video-pane,
.remote-participant-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #b9d6e8;
  border-radius: 8px;
  background: #fff;
}

.remote-material-pane {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

.remote-material-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.remote-material-head h2 {
  font-size: 18px;
}

.remote-material-head p {
  margin: 3px 0 0;
  color: #556372;
  font-size: 13px;
}

.remote-material-control-stack {
  position: relative;
  z-index: 5;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.remote-material-tools,
.remote-material-zoom-tools {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.remote-material-head .remote-page-controls {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin-left: auto;
}

.remote-page-label {
  color: #556372;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.remote-material-drawer {
  position: relative;
  flex: 0 0 auto;
}

.remote-material-drawer summary {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #8ec5e4;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.remote-material-drawer summary::-webkit-details-marker {
  display: none;
}

.remote-material-drawer[open] summary {
  border-color: #0879c9;
  background: #0879c9;
  color: #fff;
}

.remote-material-drawer-body {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9;
  width: min(720px, calc(100vw - 48px));
  max-width: min(720px, calc(100vw - 48px));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #b9d6e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.16);
}

.remote-annotation-drawer .remote-material-drawer-body {
  width: min(560px, calc(100vw - 48px));
  max-width: min(560px, calc(100vw - 48px));
}

.remote-call-material-add-panel,
.remote-annotation-tools {
  min-width: 0;
}

.remote-call-material-add-panel {
  width: min(520px, calc(100vw - 48px));
  max-width: min(520px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.remote-material-select-field {
  flex: 0 1 min(320px, 36vw);
  min-width: 180px;
  max-width: 360px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #556372;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.remote-material-select-field span {
  flex: 0 0 auto;
}

.remote-material-select-field select {
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #b9d6e8;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
}

.remote-call-title .remote-material-select-field {
  flex: 0 1 240px;
  min-width: 160px;
  max-width: 280px;
}

.remote-call-material-add {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: #556372;
  font-size: 12px;
  font-weight: 700;
}

.remote-call-material-add-group {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.remote-call-material-upload {
  min-width: 0;
  color: #556372;
  font-size: 12px;
  font-weight: 700;
}

.remote-call-material-url {
  min-width: 0;
  color: #556372;
  font-size: 12px;
  font-weight: 700;
}

.remote-call-material-add select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

.remote-call-material-add-panel button {
  min-width: 86px;
  white-space: nowrap;
}

.remote-call-material-url input {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

.remote-material-tools button,
.remote-page-controls button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.remote-color-field,
.remote-width-field {
  width: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  color: #556372;
  font-size: 12px;
  font-weight: 700;
}

.remote-color-field input {
  min-height: 32px;
  padding: 2px;
}

.remote-width-field {
  width: 118px;
}

.remote-width-field input {
  min-height: 24px;
  padding: 0;
}

.remote-material-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  contain: layout paint;
  display: grid;
  align-items: start;
  justify-items: center;
  justify-items: safe center;
  padding: 16px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #edf0f3;
}

.remote-material-stage[data-material-kind="webpage"] {
  overflow: hidden;
  align-items: stretch;
  justify-items: stretch;
}

.remote-pdf-page-wrap {
  position: relative;
  width: max-content;
  max-width: none;
  overflow: hidden;
  border: 1px solid #c9d5e1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.13);
}

.remote-pdf-canvas,
.remote-annotation-canvas {
  display: block;
}

.remote-web-material {
  width: 100%;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
}

.remote-web-material-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.remote-web-material-toolbar span {
  min-width: 0;
  overflow: hidden;
  color: #556372;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-web-material-toolbar a {
  flex: 0 0 auto;
  color: #0879c9;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.remote-web-material iframe {
  width: 100%;
  min-height: 0;
  height: 100%;
  display: block;
  border: 1px solid #c9d5e1;
  border-radius: 6px;
  background: #fff;
}

.remote-web-material p {
  margin: 0;
  color: #556372;
  font-size: 12px;
  font-weight: 700;
}

.remote-annotation-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.remote-annotation-canvas.is-drawing-enabled {
  cursor: crosshair;
  pointer-events: auto;
  touch-action: none;
}

.remote-pdf-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  margin: 0;
  min-width: 180px;
  max-width: min(320px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid #b9d6e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, -50%);
}

.remote-pdf-status[data-status="error"] {
  border-color: #f0a8b2;
  background: #fff5f7;
  color: #9f1728;
}

.remote-pdf-empty {
  width: min(100%, 560px);
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px dashed #b9c8d6;
  border-radius: 8px;
  background: #fff;
  color: #556372;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.remote-mock-page {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1 / 1.38;
  transform: scale(var(--remote-zoom));
  transform-origin: center;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 36px;
  border: 1px solid #c9d5e1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.13);
}

.remote-page-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #172033;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.remote-mock-page h3 {
  margin: 0;
  color: #172033;
  font-size: 26px;
  letter-spacing: 0;
}

.remote-mock-page p {
  margin: 0;
  color: #556372;
}

.remote-page-lines {
  display: grid;
  gap: 10px;
}

.remote-page-lines span {
  height: 10px;
  border-radius: 999px;
  background: #dce7f0;
}

.remote-page-lines span:nth-child(2),
.remote-page-lines span:nth-child(5) {
  width: 72%;
}

.remote-annotation-sample {
  position: absolute;
  right: 16%;
  bottom: 24%;
  width: 36%;
  height: 36px;
  border-bottom: 6px solid #e6007e;
  transform: rotate(-4deg);
}

.remote-annotation-sample[data-tool="marker"] {
  height: 28px;
  border: 0;
  background: rgba(250, 214, 45, 0.55);
  transform: rotate(-2deg);
}

.remote-annotation-sample[data-tool="eraser"] {
  width: 22%;
  height: 36px;
  border: 3px dashed #9aa8b5;
  transform: rotate(3deg);
}

.remote-permission-note {
  margin: 0;
}

.remote-mobile-pip {
  display: none;
}

.remote-video-pane {
  padding: 12px;
}

.remote-video-grid {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.remote-livekit-message {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(23, 32, 51, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.remote-speaker-video,
.remote-video-thumbs {
  min-width: 0;
  min-height: 0;
}

.remote-video-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.remote-video-grid.is-many .remote-video-thumbs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.remote-call-screen.is-layout-wide-material .remote-video-thumbs,
.remote-call-screen.is-layout-wide-material .remote-video-grid.is-many .remote-video-thumbs {
  grid-template-columns: 1fr;
  max-height: 220px;
  overflow: auto;
}

.remote-video-tile {
  position: relative;
  min-width: 0;
  min-height: 116px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
}

.remote-video-tile.is-speaking {
  outline: 3px solid #1da84a;
  outline-offset: -3px;
}

.remote-video-tile.is-empty {
  justify-content: center;
}

.remote-livekit-video-mount {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.remote-livekit-video-mount:empty {
  display: none;
}

.remote-video-tile.is-large {
  height: 100%;
  min-height: 260px;
}

.remote-call-screen.is-layout-wide-material .remote-video-tile {
  min-height: 96px;
  padding: 10px;
}

.remote-call-screen.is-layout-wide-material .remote-video-tile.is-large {
  min-height: 220px;
}

.remote-video-tile.is-compact {
  min-height: 120px;
}

.remote-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: #0879c9;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.remote-video-tile.is-large .remote-avatar {
  width: 104px;
  height: 104px;
  font-size: 32px;
}

.remote-video-tile.is-camera-off .remote-avatar {
  background: #58606b;
}

.remote-video-tile:not(.is-camera-off) .remote-avatar {
  display: none;
}

.remote-video-meta,
.remote-video-badges {
  position: relative;
  z-index: 1;
}

.remote-video-meta {
  display: grid;
  gap: 2px;
}

.remote-video-meta strong {
  color: #fff;
  font-size: 16px;
}

.remote-video-meta span {
  color: #d6e7f3;
  font-size: 12px;
}

.remote-video-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.remote-video-badges span {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
}

.remote-livekit-audio-mount {
  display: none;
}

.remote-participant-pane {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  width: min(420px, 42%);
  display: none;
  padding: 12px;
  box-shadow: -8px 0 20px rgba(23, 32, 51, 0.16);
}

.remote-call-screen.has-participant-panel .remote-participant-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.remote-participant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.remote-participant-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.remote-recordings-panel,
.remote-archives-panel,
.remote-external-invites-panel,
.remote-waiting-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d6e2ea;
}

.remote-recordings-head,
.remote-archives-panel .remote-recordings-head,
.remote-waiting-head,
.remote-recording-row,
.remote-waiting-row,
.remote-recording-row > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remote-recordings-head,
.remote-archives-panel .remote-recordings-head,
.remote-waiting-head {
  justify-content: space-between;
}

.remote-recordings-head h3,
.remote-archives-panel h3,
.remote-waiting-head h3 {
  margin: 0;
  color: #172033;
  font-size: 14px;
}

.remote-recordings-list {
  display: grid;
  gap: 8px;
}

.remote-external-invite-list {
  display: grid;
  gap: 8px;
}

.remote-external-participant-add {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #cfe2ee;
  border-radius: 8px;
  background: #fff;
}

.remote-external-participant-add label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: #405060;
  font-size: 12px;
  font-weight: 700;
}

.remote-external-participant-add input {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c9d8e3;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.remote-external-invite-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.6fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d6e2ea;
  border-radius: 8px;
  background: #f8fafc;
}

.remote-external-invite-person,
.remote-external-invite-url label {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.remote-external-invite-person span,
.remote-external-invite-url span {
  color: #556372;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.remote-external-invite-url input {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c9d8e3;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.remote-external-invite-actions {
  justify-content: flex-end;
}

.remote-recording-row,
.remote-waiting-row {
  justify-content: space-between;
  padding: 8px;
  border: 1px solid #d6e2ea;
  border-radius: 8px;
  background: #f8fafc;
}

.remote-recording-row > div:first-child,
.remote-waiting-row > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.remote-recording-row strong,
.remote-recording-row span,
.remote-waiting-row strong,
.remote-waiting-row span {
  overflow-wrap: anywhere;
}

.remote-recording-row span,
.remote-waiting-row span {
  color: #556372;
  font-size: 12px;
}

.remote-participant-row {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #f8fbfd;
}

.remote-participant-row span,
.remote-participant-state span {
  color: #556372;
  font-size: 12px;
}

.remote-participant-state {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.remote-participant-state span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #e8f5ff;
  color: #0879c9;
  font-weight: 700;
}

.remote-participant-actions button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .remote-external-participant-add,
  .remote-external-invite-row {
    grid-template-columns: 1fr;
  }

  .remote-external-invite-actions {
    justify-content: flex-start;
  }
}

.remote-exit-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(23, 32, 51, 0.46);
}

.remote-exit-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.remote-exit-dialog h2,
.remote-exit-dialog p {
  margin: 0;
}

.remote-exit-dialog div {
  display: flex;
  justify-content: end;
  gap: 8px;
}

@media (max-width: 1180px) {
  .remote-reservation-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .remote-reservation-actions {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(72px, 0.8fr);
    justify-content: stretch;
  }

  .remote-reservation-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .remote-dev-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px), (orientation: portrait) and (max-width: 1180px) {
  .remote-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .remote-head-actions {
    justify-content: stretch;
  }

  .remote-head-actions button {
    flex: 1 1 120px;
  }

  .remote-list-toolbar,
  .remote-precheck,
  .remote-create-form fieldset,
  .remote-create-form fieldset.remote-reservation-fields,
  .remote-detail-grid,
  .remote-dev-tools {
    grid-template-columns: 1fr;
  }

  .remote-filter-row,
  .remote-external-participant-grid,
  .remote-external-participant-row,
  .remote-material-picker-head,
  .remote-material-add-row,
  .remote-material-upload-row,
  .remote-material-url-row,
  .remote-material-draft-list,
  .remote-selected-staff-list,
  .remote-staff-filter-row,
  .remote-staff-candidate-grid,
  .remote-check-grid,
  .remote-radio-grid {
    grid-template-columns: 1fr;
  }

  .remote-staff-agency-checks,
  .remote-staff-type-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .remote-call-screen {
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    gap: 8px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .remote-call-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 6px 8px;
  }

  .remote-call-title {
    width: 100%;
    flex-wrap: nowrap;
  }

  .remote-call-title strong {
    flex: 0 1 35%;
    max-width: 35%;
    white-space: nowrap;
  }

  .remote-call-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .remote-call-actions button {
    min-height: 34px;
    padding: 6px 4px;
    font-size: 12px;
  }

  .remote-layout-toggle {
    display: none;
  }

  .remote-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #cfe0ee;
    border-radius: 8px;
    background: #fff;
  }

  .remote-mobile-tabs button {
    min-height: 34px;
    border-color: transparent;
    background: transparent;
  }

  .remote-mobile-tabs button.is-active {
    border-color: #0879c9;
    background: #0879c9;
    color: #fff;
  }

  .remote-call-layout {
    display: block;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .remote-material-pane,
  .remote-video-pane,
  .remote-participant-pane {
    height: 100%;
    display: none;
    overflow: hidden;
  }

  .remote-call-screen.is-tab-call .remote-video-pane,
  .remote-call-screen.is-tab-material .remote-material-pane,
  .remote-call-screen.is-tab-participants .remote-participant-pane {
    display: grid;
  }

  .remote-participant-pane,
  .remote-call-screen.has-participant-panel .remote-participant-pane {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .remote-material-pane {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .remote-material-head {
    align-items: stretch;
    flex-direction: column;
  }

  .remote-material-control-stack {
    flex-wrap: wrap;
  }

  .remote-material-select-field {
    flex: 1 1 100%;
    max-width: none;
  }

  .remote-call-title .remote-material-select-field {
    flex: 1 1 160px;
    min-width: 0;
    max-width: none;
  }

  .remote-material-tools {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
  }

  .remote-material-tools button,
  .remote-page-controls button,
  .remote-material-drawer,
  .remote-material-drawer summary,
  .remote-call-material-add,
  .remote-call-material-upload,
  .remote-call-material-url,
  .remote-color-field,
  .remote-width-field {
    flex: 0 0 auto;
  }

  .remote-call-material-add-panel {
    width: min(480px, calc(100vw - 32px));
    max-width: min(480px, calc(100vw - 32px));
  }

  .remote-call-material-add-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .remote-call-material-add-panel button {
    width: 100%;
  }

  .remote-mobile-pip {
    position: absolute;
    right: 10px;
    bottom: 46px;
    z-index: 5;
    width: min(38vw, 150px);
    display: block;
    pointer-events: none;
  }

  .remote-mobile-pip .remote-video-tile {
    min-height: 92px;
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.22);
  }

  .remote-mobile-pip .remote-video-badges {
    display: none;
  }

  .remote-video-grid {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .remote-video-thumbs,
  .remote-video-grid.is-many .remote-video-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .remote-video-tile.is-large {
    min-height: 260px;
  }
}

@media (max-width: 430px) {
  .pc-remote-screen {
    width: 100%;
    max-width: 100%;
  }

  .remote-shell {
    gap: 10px;
  }

  .remote-page-head,
  .remote-list-toolbar,
  .remote-detail-panel,
  .remote-create-form,
  .remote-precheck,
  .remote-waiting-card,
  .remote-dev-tools {
    padding: 10px;
  }

  .remote-page-head h1,
  .remote-detail-head h2,
  .remote-precheck h2,
  .remote-waiting-card h2 {
    font-size: 21px;
  }

  .remote-reservation-card {
    padding: 10px;
  }

  .remote-reservation-main h2 {
    font-size: 18px;
  }

  .remote-reservation-main time {
    font-size: 16px;
  }

  .remote-reservation-count {
    font-size: 15px;
  }

  .remote-reservation-meta {
    grid-template-columns: 1fr;
  }

  .remote-create-form fieldset {
    padding: 10px;
  }

  .remote-staff-agency-checks,
  .remote-staff-type-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .remote-precheck-video-tile {
    min-height: 220px;
  }

  .remote-call-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .remote-material-pane,
  .remote-video-pane,
  .remote-participant-pane {
    padding: 8px;
  }

  .remote-material-tools button,
  .remote-page-controls button {
    min-width: 70px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .remote-color-field,
  .remote-width-field {
    width: 116px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .remote-material-stage {
    padding: 10px;
  }

  .remote-pdf-empty {
    min-height: 220px;
  }

  .remote-video-thumbs,
  .remote-video-grid.is-many .remote-video-thumbs {
    grid-template-columns: 1fr;
    max-height: 220px;
    overflow: auto;
  }

  .remote-video-tile.is-large {
    min-height: 240px;
  }
}

@media (max-width: 340px) {
  .remote-call-actions button,
  .remote-mobile-tabs button,
  .remote-app button {
    font-size: 11px;
  }

  .remote-call-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* PC login: keep the authentication QR separate from its companion artwork. */
.pc-qr-login-box {
  width: min(780px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 40px);
  gap: 18px;
}
.pc-qr-login-box h1 { text-align: left; font-size: 26px; }
.pc-login-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 52px);
}
.pc-login-mascot { margin: 0; min-width: 0; text-align: center; }
.pc-login-mascot video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
#pcLoginSoundButton { width: auto; margin: 10px auto 0; padding: 6px 14px; font-size: 13px; }
.pc-login-mascot figcaption { margin-top: 8px; color: #78808d; font-size: 13px; }
@media (max-width: 540px) {
  .pc-login-visuals { grid-template-columns: 1fr; gap: 12px; }
  .pc-login-mascot { width: 180px; justify-self: center; }
  .pc-qr-login-box h1 { font-size: 22px; }
}

.kintai-roster-day-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.kintai-roster-leave-actions { display: flex; align-items: center; gap: 8px; }
.kintai-roster-leave-actions[hidden] { display: none; }
.kintai-roster-leave-actions button { padding: 6px 14px; border: 1px solid #a9c4d5; border-radius: 6px; background: #fff; color: #17335c; font: inherit; font-weight: 700; cursor: pointer; }
.kintai-correction-time-field[hidden] { display: none; }
.kintai-correction-editor.is-leave-request { grid-template-columns: minmax(140px, 1fr) auto auto; }

.pc-staff-management-password-reset {
  padding: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pc-staff-management-password-reset summary { cursor: pointer; font-weight: 700; }
.pc-staff-management-password-reset p { margin: 12px 0; line-height: 1.6; }

.kintai-roster-punches { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; font-size: 12px; color: #435467; }
.kintai-roster-punch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kintai-roster-punch-status { font-size: 11px; font-weight: 700; }
.kintai-roster-punch-status[data-status="本人打刻"] { color: #287052; }
.kintai-roster-punch-status[data-status="修正打刻"] { color: #19628b; }
.kintai-roster-punch-status[data-status="申請中"] { color: #976200; }
.kintai-roster-punch-status[data-status="打刻漏"] { color: #b43131; }

/* Keep the agency visible within narrow roster calendar cells. */
.kintai-roster-badges .kintai-adjustment-badge {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

/* Store merge is an inline LIST detail workflow, shared with /sp/. */
.store-merge-panel { flex: 0 0 auto; padding: 14px; border: 1px solid #65bed4; border-radius: 8px; margin: 8px; background: #f4fbfe; }
.store-merge-panel[hidden] { display: none; }
.store-merge-panel h3 { margin: 0 0 10px; }
.store-merge-panel p { margin: 6px 0; overflow-wrap: anywhere; }
.store-merge-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.store-merge-card { background: white; padding: 10px; border: 1px solid #b9d7df; border-radius: 6px; min-width: 0; }
.store-merge-search,.store-merge-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.store-merge-search input { flex: 1; min-width: 120px; }
.store-merge-panel button,.store-merge-panel input[type=search] { padding: 9px; border: 1px solid #89b9cc; border-radius: 6px; background: white; }
.store-merge-panel button:disabled { opacity: .5; }
.store-merge-panel label { display: flex; align-items: center; gap: 7px; margin: 12px 0; }
.store-merge-panel input[type=checkbox] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; box-shadow: none; }
.store-merge-results { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.store-merge-results button { white-space: pre-line; text-align: left; }
.store-merge-status { color: #8a4200; }
@media(max-width: 600px) { .store-merge-cards { grid-template-columns: 1fr; } }

/* Selected-staff WORK bulk removal, shared by office PC and smartphone. */
.setti-work-head-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.setti-work-list-head { flex-wrap: wrap; }
.setti-work-list-head > div:first-child { flex-basis: 280px; }
.setti-work-list-head > .setti-work-head-actions { flex-shrink: 0; }
.setti-work-list-pane:has(.setti-work-bulk-confirm:not([hidden])) { grid-template-rows: auto auto auto auto auto minmax(0, 1fr); }
#pcSettiWorkBulkDeleteButton, #pcSettiWorkBulkConfirmButton, #pcSettiWorkBulkCancelButton {
  min-height: 34px; padding: 6px 10px; border: 1px solid #b73e50; border-radius: 6px;
  background: #fff5f6; color: #a82b3e; font-weight: 800; white-space: nowrap;
}
#pcSettiWorkBulkConfirmButton { background: #b52d43; color: #fff; }
#pcSettiWorkBulkCancelButton { background: #fff; color: #34495e; border-color: #b6c6d3; }
#pcSettiWorkBulkDeleteButton:disabled, #pcSettiWorkBulkConfirmButton:disabled, #pcSettiWorkBulkCancelButton:disabled { opacity: .5; cursor: default; }
.setti-work-bulk-confirm { margin: 10px 12px; padding: 12px; border: 1px solid #d69aa4; border-radius: 6px; background: #fff5f6; }
.setti-work-bulk-confirm p { margin: 0 0 10px; font-size: 13px; color: #733441; overflow-wrap: anywhere; }
#pcSettiWorkBulkConfirmText { font-weight: 800; }
@media (max-width: 700px) { .setti-work-list-head { flex-wrap: wrap; gap: 8px; } }

.setti-work-delete-button.is-delete-selected{background:#b42318;color:#fff;border-color:#b42318}.setti-work-delete-button.is-delete-selected:hover,.setti-work-delete-button.is-delete-selected:focus-visible{background:#901c13;color:#fff}

.remote-phone-photo-panel { width: 100%; min-width: 0; }
.remote-phone-photo-panel p { margin: 6px 0; font-size: 12px; line-height: 1.5; }
.remote-phone-photo-panel input { width: 100%; min-width: 0; font-size: 12px; }
.remote-phone-photo-qr { display: block; width: 190px; height: 190px; max-width: 100%; margin: 6px auto; }
.remote-phone-photo-receipt { font-size: 11px; font-weight: 700; color: #0879c9; white-space: nowrap; }
.remote-material-add-drawer .remote-call-material-add-panel { max-height: min(70dvh, 600px); overflow-y: auto; }

/* Meeting-only expanded view; the user's usual header/menu preferences remain unchanged. */
@media (min-width: 901px) {
  body.is-remote-call { overflow: hidden; }
  body.is-remote-call .pc-shell {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.is-remote-call .pc-header { flex: 0 0 auto; }
  body.is-remote-call .pc-shell .pc-body {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 8px;
    overflow: hidden;
  }
  body.is-remote-call .pc-sidebar {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.is-remote-call .pc-content { min-height: 0; overflow: hidden; }
  body.is-remote-call .remote-material-stage,
  body.is-remote-call .remote-video-thumbs { overscroll-behavior: contain; }
}
body.is-remote-fullscreen { overflow: hidden; }
body.is-remote-fullscreen .pc-header,
body.is-remote-fullscreen .pc-sidebar { display: none !important; }
body.is-remote-fullscreen .pc-shell .pc-body { display: block; min-height: 0; padding: 0; }
body.is-remote-fullscreen #pcRemoteScreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: #fff;
  overflow: hidden;
}

/* Material selection stays beside the document actions. */
.remote-material-tools { flex: 1 1 auto; flex-wrap: wrap; }
.remote-material-tools .remote-material-select-field { flex: 0 1 220px; min-width: 120px; max-width: 240px; }
@media (max-width: 720px) {
  .remote-material-tools .remote-material-select-field { flex: 0 1 180px; min-width: 100px; max-width: calc(100% - 90px); }
}

.remote-call-title:not(:has(.remote-recording-live, .remote-phone-photo-receipt:not([hidden]))) { display: none; }
/* Let the document occupy both rows while call controls stay above the camera. */
@media (min-width: 1181px), (min-width: 901px) and (orientation: landscape) {
  .remote-call-screen { grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
  .remote-call-screen.is-layout-wide-material { grid-template-columns: minmax(0,4fr) minmax(220px,1fr); }
  .remote-call-screen > .remote-call-layout { display: contents; }
  .remote-call-screen > .remote-call-toolbar { grid-column: 2; grid-row: 1; position: relative; flex-wrap: wrap; align-content: start; }
  .remote-call-toolbar .remote-call-actions { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start; }
  .remote-call-layout > .remote-material-pane { grid-column: 1; grid-row: 1 / span 2; }
  .remote-call-layout > .remote-video-pane { grid-column: 2; grid-row: 2; }
  .remote-call-screen.is-layout-material-only { grid-template-columns: minmax(0,1fr); }
  .remote-call-screen.is-layout-material-only > .remote-call-toolbar { grid-column: 1; grid-row: 1; }
  .remote-call-screen.is-layout-material-only .remote-material-pane { grid-column: 1; grid-row: 2; }
}

.remote-call-actions button.remote-av-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
.remote-call-actions button.remote-av-button img { display: block; width: 44px; height: 44px; opacity: 1; }
.remote-call-actions button.remote-av-button[aria-pressed="false"] img { opacity: .3; }
.remote-call-actions button.remote-av-button:focus-visible { outline: 2px solid #0879c9; outline-offset: 3px; }

/* Anchor the writing palette to the document controls, not the rightmost button. */
.remote-annotation-drawer { position: static; }
.remote-annotation-drawer .remote-material-drawer-body { left: 0; width: min(560px,100%); max-width: 100%; box-sizing: border-box; }
.remote-annotation-tools .remote-color-field { display: flex; width: auto; flex: 0 0 auto; }
.remote-annotation-tools .remote-color-field input { width: 32px; min-width: 32px; max-width: 32px; height: 32px; min-height: 32px; padding: 2px; box-sizing: border-box; }
.remote-annotation-tools .remote-width-field { width: 140px; max-width: 100%; min-width: 0; }
.remote-annotation-tools .remote-width-field input { width: 100%; min-width: 0; }
.remote-annotation-tools .remote-color-field input::-webkit-color-swatch-wrapper { padding: 0; }
.remote-annotation-tools .remote-color-field input::-webkit-color-swatch { border: 0; border-radius: 2px; }
.remote-annotation-tools .remote-color-field input::-moz-color-swatch { border: 0; border-radius: 2px; }

.remote-call-screen.is-layout-camera-only .remote-material-pane { display: none; }
.remote-call-screen.is-layout-camera-only .remote-call-layout { grid-template-columns: minmax(0,1fr); }
.remote-call-screen.is-layout-camera-only:not(.is-tab-participants) .remote-video-pane { display: grid; }
@media (min-width: 1181px), (min-width: 901px) and (orientation: landscape) {
  .remote-call-screen.is-layout-camera-only { grid-template-columns: minmax(0,1fr); }
  .remote-call-screen.is-layout-camera-only > .remote-call-toolbar { grid-column: 1; grid-row: 1; }
  .remote-call-screen.is-layout-camera-only .remote-video-pane { grid-column: 1; grid-row: 2; }
}

.remote-call-actions .remote-layout-toggle { max-width: 100%; min-width: 0; flex-wrap: wrap; }

/* Camera-only meetings give every participant an equal tile without moving media nodes. */
.remote-call-screen.is-layout-camera-only .remote-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: minmax(0, 1fr);
}
.remote-call-screen.is-layout-camera-only .remote-speaker-video,
.remote-call-screen.is-layout-camera-only .remote-video-thumbs { display: contents; }
.remote-call-screen.is-layout-camera-only .remote-video-grid:not(:has(.remote-video-thumbs > article)) { grid-template-columns: minmax(0, 1fr); }
.remote-call-screen.is-layout-camera-only .remote-video-grid:has(.remote-video-thumbs > article:nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.remote-call-screen.is-layout-camera-only .remote-video-tile { height: 100%; min-height: 0; }
.remote-call-screen.is-layout-camera-only .remote-livekit-video-mount video { object-fit: contain; }
@media (max-width: 720px) and (orientation: portrait) {
  .remote-call-screen.is-layout-camera-only .remote-video-grid:not(:has(.remote-video-thumbs > article:nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
  .remote-call-screen.is-layout-camera-only .remote-video-grid:has(.remote-video-thumbs > article:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pc-new-window-button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #8ec5e4; border-radius: 8px; background: #fff; color: #17658c; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
@media (max-width: 720px) { .pc-new-window-button { display: none; } }

/* Remote reservation list and selected meeting, matching the supplied PC design. */
.remote-meeting-layout { display: grid; grid-template-columns: minmax(390px, 37%) minmax(0, 1fr); gap: 24px; align-items: start; }
.remote-meeting-sidebar, .remote-meeting-detail { min-width: 0; }
.remote-meeting-toolbar { display: flex; align-items: center; gap: 14px; min-height: 42px; margin-bottom: 10px; }
.remote-meeting-toolbar h1 { display: flex; align-items: center; gap: 8px; margin: 0; color: #22ad45; font-size: 24px; white-space: nowrap; }
.remote-meeting-toolbar h1 img { width: 28px; height: 28px; object-fit: contain; }
.remote-meeting-toolbar .remote-asset-button { padding: 0; border: 0; background: transparent; min-width: 0; border-radius: 7px; }
.remote-asset-button img { display: block; width: 72px; max-width: 100%; height: auto; }
.remote-create-button { flex: 1; }
.remote-create-button img { width: 142px; }
.remote-asset-button[aria-pressed="true"] { outline: 2px solid #65b9e9; outline-offset: 2px; }
.remote-meeting-sidebar .remote-reservation-list { gap: 5px; }
.remote-app .remote-meeting-card { display: grid; width: 100%; gap: 5px; padding: 6px 9px; text-align: left; border: 1px solid #93cf25; border-radius: 10px; background: white; color: #222; cursor: pointer; }
.remote-app .remote-meeting-card.is-ended { border-color: #ffa51e; }
.remote-app .remote-meeting-card.is-selected { box-shadow: 0 0 0 2px #dcecf8; color: #222; background: #f8fcff; }
.remote-meeting-card:focus-visible { outline: 3px solid #65b9e9; outline-offset: 2px; }
.remote-meeting-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; }
.remote-meeting-card-top time { white-space: nowrap; }
.remote-purpose-badge { width: 46px; height: 20px; object-fit: contain; flex-shrink: 0; }
.remote-meeting-card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote-meeting-card-bottom { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.remote-meeting-detail .remote-detail-panel { border: 1px solid #73b0ef; border-radius: 10px; background: #fff; padding: 14px; }
.remote-meeting-detail .remote-detail-head { justify-content: space-between; }
.remote-meeting-detail .remote-detail-head h2 { font-size: 22px; }
.remote-meeting-detail .remote-detail-grid { grid-template-columns: minmax(0, 1fr); }
.remote-meeting-detail .remote-detail-grid > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 12px; }
.remote-meeting-detail dd { overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .remote-meeting-layout { grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); gap: 14px; }
  .remote-meeting-toolbar { gap: 8px; flex-wrap: wrap; }
  .remote-meeting-card-top { flex-wrap: wrap; gap: 5px 8px; }
}
@media (max-width: 850px) {
  .remote-meeting-layout { grid-template-columns: minmax(0, 1fr); }
  .remote-meeting-detail .remote-detail-grid > div { grid-template-columns: 95px minmax(0, 1fr); }
}
.remote-app .remote-meeting-card { font-weight: 400; }
.remote-meeting-detail .remote-detail-panel { padding: 0; border: 0; }
.remote-meeting-detail .remote-detail-head { min-height: 42px; margin-bottom: 10px; }
.remote-meeting-detail .remote-detail-head > div { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.remote-meeting-detail .remote-detail-head h2 { margin: 0; font-weight: 500; }
.remote-meeting-detail .remote-meeting-purpose { margin:0; padding:0; background:transparent; }
.remote-meeting-purpose img { display:block; height:36px; width:auto; max-width:100%; object-fit:contain; }
.remote-meeting-detail-body { padding: 14px; border: 1px solid #73b0ef; border-radius: 10px; }
.remote-meeting-detail .remote-detail-grid dt { color: #222; font-size: 13px; font-weight: 400; }
.remote-meeting-detail .remote-detail-grid dd { font-size: 16px; }

/* In-page internal Meeting creation. */
.remote-create-purpose-tabs { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:16px; min-height:42px; }
.remote-create-purpose-tabs strong { color:#22ad45; font-size:18px; font-weight:500; }
.remote-app .remote-create-purpose-tabs button { border:0; padding:0; background:transparent; }
.remote-create-purpose-tabs img { display:block; width:auto; height:32px; }
.remote-create-purpose-tabs button[aria-pressed="true"] { outline:2px solid #87bbe5; outline-offset:3px; border-radius:6px; }
.remote-internal-create { gap:16px; }
.remote-internal-create fieldset { border:1px solid #aaa; border-radius:10px; padding:12px; grid-template-columns:1fr; min-width:0; }
.remote-internal-create legend { color:#777; font-size:19px; font-weight:400; padding:0 6px; }
.remote-internal-create fieldset.remote-internal-members { border-color:#73b0ef; }
.remote-internal-create .remote-internal-members legend { color:#147bc3; }
.remote-internal-create .remote-staff-type-filter { display:none; }
.remote-internal-create .remote-staff-filter-row { display:flex; flex-wrap:wrap; align-items:center; }
.remote-internal-create .remote-staff-agency-filter { display:flex; align-items:center; gap:16px; }
.remote-internal-create .remote-staff-agency-checks label { border:1px solid #73b0ef; border-radius:8px; color:#147bc3; padding:4px 12px; min-width:54px; }
.remote-internal-create .remote-staff-agency-checks label:has(input:checked) { background:#e6f4ff; }
.remote-internal-create .remote-internal-summary { color:#ff2341; }
.remote-meeting-dates { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.remote-internal-create .remote-notice-file-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:18px; }
.remote-internal-create .remote-notice-files > div { display:flex; align-items:center; justify-content:space-between; gap:12px; overflow-wrap:anywhere; }
.remote-internal-create .remote-material-add-row { display:none; }
.remote-internal-create .remote-material-picker > .remote-help-text { display:none; }
.remote-internal-create .remote-material-picker-head { display:grid; gap:12px; }
.remote-internal-create input[type="file"] { padding:6px 10px; }
.remote-internal-create input[type="file"]::file-selector-button { border:0; border-radius:12px; background:#27abe1; color:white; padding:2px 10px; }
.remote-internal-create [data-remote-notice-file]::file-selector-button { background:#8dc31d; }
.remote-meeting-permissions { display:grid; grid-template-columns:3fr 2fr; gap:24px; }
.remote-internal-create .remote-radio-grid { display:flex; gap:24px; flex-wrap:wrap; margin-top:8px; }
.remote-internal-create .remote-radio-grid label { flex:1; min-width:110px; border:1px solid #98c4ee; color:#147bc3; border-radius:10px; padding:9px 12px; }
.remote-internal-create .remote-retention-note { color:#ff2341; margin:0; font-size:12px; }
.remote-internal-create .remote-form-actions { justify-content:flex-start; gap:24px; }
.remote-app .remote-asset-submit, .remote-app .remote-asset-cancel { border:0; padding:0; background:transparent; max-width:100%; }
.remote-asset-submit img { display:block; width:360px; max-width:100%; height:auto; }
.remote-asset-cancel img { display:block; width:140px; max-width:100%; height:auto; }
@media (max-width:1200px) { .remote-meeting-dates { gap:10px; } .remote-meeting-permissions { grid-template-columns:1fr; } .remote-internal-create .remote-radio-grid { gap:10px; } }
@media (max-width:600px) { .remote-meeting-dates, .remote-internal-create .remote-notice-file-row { grid-template-columns:1fr; } .remote-create-purpose-tabs { gap:8px; } .remote-create-purpose-tabs img { height:28px; } .remote-internal-create .remote-staff-agency-filter { flex-wrap:wrap; } }
.remote-internal-create .remote-internal-participant-picker { display:flex; flex-direction:column; gap:10px; }
.remote-internal-create .remote-staff-filter-row { order:-2; }
.remote-internal-create .remote-internal-summary { order:-1; }
.remote-internal-create .remote-material-upload-row { grid-template-columns:minmax(0,1fr) auto; }
.remote-internal-create .remote-material-url-row { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto; }
@media (max-width:1200px) { .remote-internal-create .remote-material-upload-row, .remote-internal-create .remote-material-url-row { grid-template-columns:minmax(0,1fr); } }
.remote-create-form.remote-internal-create { padding:0; border:0; background:transparent; }
.remote-internal-create .remote-material-picker-head { grid-template-columns:minmax(0,1fr); }
.remote-internal-create label > span, .remote-internal-create .remote-staff-agency-filter p { font-size:14px; font-weight:400; color:#222; }
.remote-internal-create .remote-internal-summary { background:transparent; border:0; padding:0; }
.remote-internal-create .remote-internal-summary span { color:#ff2341; }
.remote-internal-create .remote-staff-agency-checks label { padding:4px 10px; min-height:32px; }
.remote-internal-create input[data-remote-notice-file]::file-selector-button { width:126px; color:transparent; background:transparent url('/design-assets/remote/button-filewosentaku-green.png') center/contain no-repeat; }
.remote-internal-create input[data-remote-material-file]::file-selector-button { width:126px; color:transparent; background:transparent url('/design-assets/remote/button-filewosentaku-blue.png') center/contain no-repeat; }
.remote-training-create fieldset.remote-training-members { border-color:#55c267; }
.remote-training-create .remote-training-members legend { color:#25a93b; }
.remote-training-create .remote-training-members input, .remote-training-create .remote-training-members select { border-color:#b6d788; }
.remote-training-create .remote-training-members .remote-radio-grid { justify-content:flex-start; }
.remote-training-create .remote-training-members .remote-radio-grid label { flex:0 1 auto; color:#25a93b; border-color:#b6d788; }
.remote-training-share { display:grid; gap:6px; margin-bottom:18px; }
.remote-training-share input { width:100%; min-width:0; }

.remote-training-create .remote-asset-submit img,
.remote-training-create .remote-asset-cancel img { width:auto; height:32px; object-fit:contain; }

.remote-interview-create fieldset.remote-training-members { border-color:#ef8cbb; }
.remote-interview-create .remote-training-members legend { color:#ef559e; }
.remote-interview-create .remote-training-members input, .remote-interview-create .remote-training-members select { border-color:#f4c4dc; }
.remote-interview-create .remote-training-members .remote-radio-grid label { color:#ef559e; border-color:#f4c4dc; }

.remote-date-calendar-icon { position:absolute; right:12px; top:50%; transform:translateY(-50%); width:20px; height:20px; color:#147bc3; pointer-events:none; }
.remote-date-control .remote-date-display { padding-right:44px; }
.remote-date-field input[type="date"]::-webkit-calendar-picker-indicator { position:absolute; right:0; top:0; width:44px; height:100%; margin:0; padding:0; cursor:pointer; }

/* Manager requests for missing clock-in and clock-out. */
.kintai-roster-leave-actions { flex-wrap: wrap; }
.kintai-roster-leave-actions button[aria-pressed="true"] { background: #087fbe; color: #fff; }
.kintai-roster-staff-card.is-invite-selectable { cursor: pointer; border: 2px solid #1685b1; }
.kintai-roster-staff-card.is-invite-selectable:focus-visible { outline: 3px solid #e6b841; outline-offset: 2px; }
.kintai-roster-staff-card.is-invite-selectable[aria-disabled="true"] { cursor: default; opacity: .65; }
.kintai-invite-card-hint { display: block; color: #0876a8; font-size: 12px; margin-bottom: 6px; }
.pc-message-detail-body .attendance-correction-invite-action { display: block; margin-top: 14px; padding: 10px 18px; border: 1px solid #a9c4d5; border-radius: 6px; background: #087fbe; color: #fff; font: inherit; cursor: pointer; }

.attendance-dialog .attendance-requested-correction .attendance-primary { color: #fff; }
.remote-meeting-card-item { position:relative; min-width:0; }
.remote-meeting-card-item.has-delete .remote-meeting-card-bottom { padding-right:82px; }
.remote-app .remote-card-delete { position:absolute; right:8px; bottom:5px; padding:2px 7px; min-height:22px; border:1px solid #e48d8d; border-radius:5px; color:#b32b37; background:#fff; font-size:11px; line-height:1.4; }
.remote-card-delete:focus-visible { outline:2px solid #65b9e9; outline-offset:2px; }

/* Keep host controls compact so documents and camera images retain their space. */
.remote-call-screen .remote-video-tile { padding: 0; gap: 0; }
.remote-call-screen .remote-video-tile:has(.remote-video-footer) .remote-livekit-video-mount { bottom: 30px; }
.remote-video-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; height: 30px; min-width: 0; padding: 0 4px; background: #172033; }
.remote-video-footer .remote-video-meta { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
.remote-video-footer .remote-video-meta strong,
.remote-video-footer .remote-video-meta span { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote-video-footer .remote-video-badges { flex-wrap: nowrap; gap: 3px; min-width: 0; overflow: hidden; white-space: nowrap; }
.remote-video-footer .remote-video-badges span { padding: 0; background: transparent; font-size: 10px; }
.remote-self-controls { display: flex; flex: 0 0 auto; gap: 4px; }
.remote-self-controls button.remote-av-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; min-width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
.remote-self-controls .remote-av-button img { display: block; width: 26px; height: 26px; }
.remote-self-controls .remote-av-button[aria-pressed="false"] img { opacity: .3; }
.remote-self-controls .remote-av-button:focus-visible { outline: 2px solid #0879c9; outline-offset: -2px; }
@media (min-width: 721px) {
  .remote-call-screen > .remote-call-toolbar { flex-wrap: wrap; gap: 3px; padding: 5px; overflow-x: visible; }
  .remote-call-toolbar .remote-call-title { flex: 0 0 auto; width: auto; gap: 3px; }
  .remote-call-toolbar .remote-call-actions { display: flex; flex: 1 1 100%; min-width: 0; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 3px; }
  .remote-call-toolbar .remote-call-actions button { min-height: 28px; padding: 5px; font-size: 10px; white-space: nowrap; }
  .remote-call-actions .remote-layout-toggle { flex: 0 1 auto; flex-wrap: wrap; min-height: 28px; max-width: 100%; }
  .remote-call-toolbar .remote-layout-toggle-label { font-size: 10px; padding: 0 2px; }
  .remote-call-toolbar .remote-recording-live { font-size: 10px; padding: 3px; white-space: nowrap; }
  .remote-call-toolbar .remote-form-error { max-width: 220px; white-space: normal; }
}

.remote-material-head:has(.remote-page-controls[hidden]):not(:has(.remote-material-tools > *)) { display: none; }
.remote-page-controls[hidden] { display: none !important; }
.remote-material-drawer-body button[aria-pressed="true"] { background: #0879c9; color: white; }
.remote-mobile-tabs[hidden] { display: none !important; }
.remote-material-tools > .remote-material-drawer { position: static; }
.remote-material-tools > .remote-material-drawer > .remote-material-drawer-body { left: 0; width: min(520px, 100%); max-width: 100%; box-sizing: border-box; }

/* Keep upload inputs visible beside their operation label. */
.remote-operation-row { display:flex; flex:1 0 100%; align-items:center; gap:8px; min-width:0; padding:6px 8px; border:1px solid #c7dfef; border-radius:8px; background:#f6fbff; box-sizing:border-box; }
.remote-operation-row > strong { flex:0 0 64px; color:#0879c9; font-size:13px; }
.remote-operation-row > label, .remote-operation-row .remote-call-material-add-group { flex:1; min-width:0; display:flex; align-items:center; gap:8px; }
.remote-operation-row .remote-call-material-upload { display:flex; align-items:center; flex:1; min-width:0; gap:6px; }
.remote-operation-row input { min-width:0; flex:1; width:100%; }
.remote-operation-row button { flex-shrink:0; white-space:nowrap; }
.remote-operation-row .remote-call-material-upload > span { display:none; }
.remote-material-head:has(.remote-operation-row) { display:flex!important; }
.remote-material-tools > .remote-annotation-drawer > .remote-annotation-tools { width:max-content; max-width:100%; flex-wrap:nowrap; overflow-x:auto; gap:5px; }
.remote-annotation-tools > * { flex-shrink:0; white-space:nowrap; }
.remote-annotation-tools .remote-width-field input { width:65px; }
.remote-material-tools > .remote-annotation-drawer[open] { display:flex; align-items:center; gap:6px; flex:1 0 100%; min-width:0; }
.remote-material-tools > .remote-annotation-drawer[open] > summary { flex-shrink:0; }
.remote-material-tools > .remote-annotation-drawer[open] > .remote-annotation-tools { position:static; flex:1; min-width:0; padding:4px; box-shadow:none; }
.remote-annotation-tools .remote-width-field { width:auto; display:flex; align-items:center; gap:4px; }
.remote-annotation-tools button { padding:5px; font-size:12px; }

.remote-screen-share-view { width:100%; min-height:240px; min-width:0; background:#152030; overflow:hidden; }
.remote-screen-share-view video { display:block; width:100%; height:100%; object-fit:contain; }
.has-remote-screen-share > .remote-material-stage, .has-remote-screen-share > .remote-guest-material-viewport, .has-remote-screen-share > .remote-guest-material-info { display:none!important; }

[data-width-locked="true"] { overflow-x:hidden; overscroll-behavior-x:none; touch-action:pan-y pinch-zoom; }

.remote-material-head > .remote-page-controls { align-self:flex-end; }

/* Keep metadata/actions independent of the optional playback row. */
.remote-recording-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; min-width:0; }
.remote-recording-row > .remote-recording-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.remote-recording-actions button { white-space:nowrap; flex-shrink:0; }
.remote-recording-row .remote-recording-info strong, .remote-recording-row .remote-recording-info span { overflow-wrap:normal; word-break:normal; }
.remote-recording-row > .remote-recording-player { display:block; grid-column:1 / -1; min-width:0; }
.remote-recording-row > .remote-recording-player:empty { display:none; }
@media (max-width:480px) {
  .remote-recording-row { grid-template-columns:minmax(0,1fr); }
}
.remote-recording-player audio, .remote-recording-player video { display:block; width:100%; max-height:65vh; }

.remote-participant-writing { min-width:0; max-width:100%; flex:1 0 100%; }
.remote-participant-writing > .remote-annotation-tools { display:flex; flex-wrap:nowrap; gap:5px; overflow-x:auto; }

/* Shared mailbox: all received content is rendered as text. */
.pc-mail-folders { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
#pcMailbox .pc-mail-folders [aria-pressed="true"] { background:#355d80; color:white; }
.pc-mailbox-columns { display:grid; grid-template-columns:minmax(250px, 35%) minmax(0,1fr); gap:16px; }
.pc-mailbox-columns > * { min-width:0; border:1px solid #d9e0e6; border-radius:8px; padding:12px; background:white; }
.pc-mail-message { display:flex; flex-direction:column; gap:5px; width:100%; text-align:left; padding:12px; border:0; border-bottom:1px solid #e2e6eb; background:white; overflow-wrap:anywhere; }
.pc-mail-message.is-unread { background:#edf5ff; }
.pc-mail-message-body { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:1.7; }
.pc-mail-attachment { display:block; margin:12px 0; overflow-wrap:anywhere; }
#pcMailLegacyLayout[hidden], #pcMailbox [hidden] { display:none !important; }
#pcMailbox [data-mail-detail] button { margin:8px 8px 0 0; }
@media (max-width:760px) { .pc-mailbox-columns { grid-template-columns:1fr; } .pc-mail-folders button { min-height:44px; } }

/* Draw attention to selected Remote material/notice files until they are added. */
.remote-app button:is([data-remote-action="add-draft-material-file"], [data-remote-action="add-notice-files"]).is-file-pending {
  border-color: #c82435;
  background: #c82435;
  color: #fff;
  animation: remote-file-pending 2s ease-in-out infinite;
}

@keyframes remote-file-pending {
  0%, 100% { background-color: #c82435; color: #fff; }
  50% { background-color: #fff; color: #c82435; }
}

@media (prefers-reduced-motion: reduce) {
  .remote-app button:is([data-remote-action="add-draft-material-file"], [data-remote-action="add-notice-files"]).is-file-pending {
    animation: none;
  }
}

.pc-mail-team {border-top:1px solid #cbd5e1;margin-top:18px;padding-top:12px;}
.pc-mail-team label {display:block;margin:10px 0;}
.pc-mail-team select {max-width:100%;padding:6px;}
.pc-mail-team ul {padding-left:20px;}
.pc-mail-permissions fieldset {border:1px solid #cbd5e1;border-radius:8px;margin:16px 0;padding:16px;}
.pc-mail-permissions label {display:inline-flex;gap:5px;margin:10px 16px 10px 0;align-items:center;}
.pc-mail-permissions button {display:block;margin-top:10px;}

/* Match each new reservation form to its supplied purpose button. */
.remote-sales-create { --remote-create-accent: #29a8d9; --remote-create-ink: #0876a1; --remote-create-tint: #edf9ff; }
.remote-lesson-create { --remote-create-accent: #90c31a; --remote-create-ink: #527600; --remote-create-tint: #f5fae9; }
.remote-external-meeting-create { --remote-create-accent: #ed9410; --remote-create-ink: #9a5700; --remote-create-tint: #fff7e9; }
.remote-guest-create fieldset, .remote-guest-create fieldset.remote-training-members { border-color: var(--remote-create-accent); }
.remote-guest-create fieldset legend, .remote-guest-create .remote-training-members legend { color: var(--remote-create-ink); }
.remote-guest-create .remote-training-members input, .remote-guest-create .remote-training-members select { border-color: var(--remote-create-accent); }
.remote-guest-create .remote-training-members .remote-radio-grid label { color: var(--remote-create-ink); border-color: var(--remote-create-accent); }
.remote-guest-create .remote-radio-grid label:has(input:checked) { background: var(--remote-create-tint); border-color: var(--remote-create-accent); }
.remote-guest-create input { accent-color: var(--remote-create-accent); }
.remote-guest-create .remote-guest-submit { background: var(--remote-create-accent); color: #fff; border: 0; border-radius: 9px; min-height: 40px; padding: 8px 18px; font-size: 17px; font-weight: 800; white-space: normal; }

/* Asunaro shell adapter: keep the existing navigation and header. */
#pcRemoteScreen { grid-column: 2 / -1; width:100%; --pc-header-height:var(--header-height,100px); --pc-body-pad-top:18px; }
#pcRemoteScreen[hidden] {display:none;}
@media (max-width:800px) { #pcRemoteScreen {grid-column:1 / -1;} }

.remote-meeting-toolbar {flex-wrap:wrap;}
.remote-meeting-toolbar .remote-create-button {flex:0 0 142px; min-width:142px;}
