[data-testid="teleprompter"] {
  min-width: 280px;
  min-height: 250px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
}

[data-testid="teleprompter"] [aria-label="调整提词器大小"] {
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 7%, transparent);
}

[data-testid="teleprompter"] [aria-label="调整提词器大小"]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

button[data-recorder-mode="whiteboard"] {
  -webkit-font-smoothing: antialiased;
}

[data-excalicord-recorder-panel="true"] {
  position: fixed !important;
  top: 82px !important;
  right: 18px !important;
  bottom: 76px !important;
  width: 326px !important;
  padding-top: 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(24px) saturate(1.15) !important;
  overflow-y: auto !important;
  z-index: 160 !important;
  transition: transform 180ms ease, opacity 160ms ease !important;
}

[data-excalicord-recorder-panel="true"][data-open="false"] {
  transform: translateX(calc(100% + 42px));
  opacity: 0;
  pointer-events: none;
}

[data-excalicord-recorder-content="true"] {
  padding: 14px !important;
}

.excalicord-panel-header {
  position: sticky;
  top: -14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin: -14px -14px 0;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
  text-align: left !important;
}

.excalicord-panel-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.excalicord-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 14px;
  background: #eef2f7;
}

.excalicord-mode-switch button {
  display: flex;
  min-height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.excalicord-mode-switch button small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
}

.excalicord-mode-switch button[data-active="true"] {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.excalicord-recorder-launcher {
  position: fixed;
  right: 16px;
  top: 50%;
  z-index: 159;
  display: flex;
  width: 58px;
  height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: translateY(-50%);
  border: 3px solid #a3e635;
  border-radius: 999px;
  background: #12332d;
  color: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 160ms ease, opacity 140ms ease;
}

.excalicord-recorder-launcher:hover {
  transform: translateY(-50%) scale(1.05);
}

.excalicord-recorder-launcher[data-open="true"] {
  opacity: 0;
  pointer-events: none;
}

.excalicord-launcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff3b4d;
  box-shadow: 0 0 0 4px rgba(255, 59, 77, 0.17);
}

.excalicord-screen-settings {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

html[data-recording-mode="screen"] .excalicord-screen-settings {
  display: flex;
}

html[data-recording-mode="screen"] [data-whiteboard-setting="true"] {
  display: none !important;
}

.excalicord-native-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  font-size: 11px;
  font-weight: 650;
}

.excalicord-native-status i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.excalicord-setting-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #0f172a;
  font-size: 12px;
}

.excalicord-setting-group small,
.excalicord-check-row small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.excalicord-setting-group select,
.excalicord-setting-group textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  color: #0f172a;
  font: inherit;
}

.excalicord-setting-group select {
  height: 38px;
  padding: 0 10px;
}

.excalicord-setting-group textarea {
  min-height: 126px;
  resize: vertical;
  padding: 10px;
  line-height: 1.6;
}

.excalicord-scope-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.excalicord-scope-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.excalicord-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
  font-size: 12px;
}

.excalicord-check-row span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.excalicord-check-row input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
}

.excalicord-helper-note {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.55;
}

.excalicord-helper-download {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

button[data-recorder-mode="screen"] {
  background: #0f766e !important;
}

button.excalicord-screen-recording-active {
  background: #ef4444 !important;
}

[data-excalicord-recorder-control="true"] {
  z-index: 220 !important;
}

.excalicord-recorder-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 5000;
  display: flex;
  min-width: 320px;
  max-width: min(520px, calc(100vw - 32px));
  flex-direction: column;
  gap: 3px;
  transform: translateX(-50%);
  padding: 12px 15px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.94);
  color: white;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.28);
  font-size: 12px;
}

.excalicord-recorder-toast span {
  color: #cbd5e1;
  font-size: 11px;
}

@media (max-width: 720px) {
  [data-testid="teleprompter"] {
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  [data-excalicord-recorder-panel="true"] {
    top: 68px !important;
    right: 8px !important;
    bottom: 68px !important;
    width: min(326px, calc(100vw - 16px)) !important;
  }
}
