dialog.sf-recorder {
  box-sizing: border-box;
  width: min(620px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #202024;
  background: #fff;
  border: 1px solid #c8c8cf;
  border-radius: 18px;
  box-shadow: 0 24px 90px rgb(0 0 0 / 32%);
  font: 400 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  color-scheme: light;
}
dialog.sf-recorder::backdrop { background: rgb(8 9 13 / 72%); }
.sf-recorder *, .sf-recorder *::before, .sf-recorder *::after { box-sizing: border-box; }
.sf-recorder [hidden] { display: none !important; }
.sf-recorder .sf-recorder__content { display: grid; gap: 18px; min-width: 0; padding: 26px; }
.sf-recorder .sf-recorder__header { display: block; margin: 0; padding: 0; color: inherit; background: transparent; border: 0; }
.sf-recorder .sf-recorder__eyebrow { display: block; margin-bottom: 4px; color: #595961; font-size: 13px; font-weight: 650; }
.sf-recorder h2 { margin: 0 0 8px; color: #18181c; font-size: clamp(23px, 5vw, 29px); font-weight: 750; line-height: 1.2; }
.sf-recorder p { margin: 0; color: inherit; font: inherit; overflow-wrap: anywhere; }
.sf-recorder .sf-recorder__privacy { padding: 12px 14px; border-left: 3px solid #d5ac00; border-radius: 0 8px 8px 0; background: #fff9dd; color: #484022; font-size: 14px; }
.sf-recorder .sf-recorder__capture { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px; color: #fff; background: #202024; border: 1px solid #34343c; border-radius: 12px; }
.sf-recorder .sf-recorder__timer { min-width: 76px; color: #fff; font-size: 30px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sf-recorder .sf-recorder__limit { color: #dddde3; font-size: 14px; }
.sf-recorder .sf-recorder__capture-actions { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 10px; min-width: 0; margin-top: 8px; }
.sf-recorder button { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; min-height: 48px; height: auto; margin: 0; padding: 11px 18px; color: #202024; background: #fff; border: 1px solid #b6b6c0; border-radius: 10px; font: 650 15px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: center; white-space: normal; overflow-wrap: anywhere; cursor: pointer; transition: background-color 120ms ease, box-shadow 120ms ease; }
.sf-recorder button:hover:not(:disabled) { background: #f0f0f4; box-shadow: inset 0 0 0 1px #84848e; }
.sf-recorder button:active:not(:disabled) { background: #e5e5eb; }
.sf-recorder button.sf-recorder__primary { color: #18181c; background: #f7d334; border-color: #d4ae05; }
.sf-recorder button.sf-recorder__primary:hover:not(:disabled) { background: #ffe16a; box-shadow: inset 0 0 0 1px #a78902; }
.sf-recorder button.sf-recorder__stop { color: #fff; background: #b62439; border-color: #d8495e; }
.sf-recorder button.sf-recorder__stop:hover:not(:disabled) { background: #972034; }
.sf-recorder button:disabled { color: #66666f; background: #ededf1; border-color: #d0d0d8; opacity: 1; cursor: not-allowed; box-shadow: none; }
.sf-recorder :is(button, input, textarea, audio):focus-visible { outline: 3px solid #285ed1; outline-offset: 3px; }
.sf-recorder .sf-recorder__status { min-height: 3em; color: #44444d; font-size: 14px; }
.sf-recorder .sf-recorder__status[data-tone="error"] { color: #9b142a; font-weight: 600; }
.sf-recorder audio { display: block; width: 100%; max-width: 100%; min-width: 0; margin: 0; }
.sf-recorder .sf-recorder__field { display: grid; gap: 7px; min-width: 0; }
.sf-recorder label { display: block; margin: 0; color: #242429; font-size: 15px; font-weight: 700; line-height: 1.4; }
.sf-recorder label span { color: #62626c; font-weight: 400; }
.sf-recorder input, .sf-recorder textarea { display: block; width: 100%; min-width: 0; min-height: 48px; max-width: 100%; margin: 0; padding: 11px 12px; color: #202024; background: #fff; border: 1px solid #aaaab6; border-radius: 8px; font: 400 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sf-recorder textarea { resize: vertical; }
.sf-recorder :is(input, textarea)[aria-invalid="true"] { border: 2px solid #b62439; }
.sf-recorder .sf-recorder__field p { color: #5b5b66; font-size: 13px; }
.sf-recorder .sf-recorder__footer { position: sticky; bottom: -26px; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; margin: 2px 0 0; padding: 16px 0 26px; background: #fff; border: 0; border-top: 1px solid #dfdfe6; box-shadow: 0 -10px 12px #fff; }
.sf-recorder .sf-recorder__footer button:first-child { flex: 0 1 auto; }
.sf-recorder .sf-recorder__footer button:last-child { flex: 1 1 auto; }
@media (max-width: 480px) {
  .sf-recorder .sf-recorder__content { gap: 16px; padding: 20px 16px; }
  .sf-recorder .sf-recorder__footer { bottom: -20px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr); gap: 10px; padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sf-recorder button { transition: none; } }
@media (forced-colors: active) { .sf-recorder button, .sf-recorder input, .sf-recorder textarea { border: 1px solid ButtonText; } }
