.offline-shell {
  --offline-surface: #fbfaf7;
  --offline-surface-soft: #e9edf0;
  --offline-ink: #14161a;
  --offline-muted: #5a6069;
  --offline-line: #d7dde2;
  --offline-console: #0e1013;
  --offline-console-2: #15181d;
  --offline-console-line: #2a2f37;
  --offline-console-text: #f4f1ea;
  --offline-amber: #e8a33d;
  --offline-amber-ink: #1b1408;
  --offline-red: #e35d6a;
  --offline-mint: #65d6c2;
  --offline-mint-ink: #0e3b34;
  --offline-blue: #315f8a;
  padding: 24px 0 64px;
}

.offline-shell .offline-heading {
  max-width: 960px;
  margin: 0 auto 16px;
  padding: 0 20px;
}

.offline-shell h1 {
  max-width: none;
  margin: 0 0 10px;
  color: var(--offline-ink);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.offline-shell .offline-lead {
  max-width: 70ch;
  margin: 0;
  color: var(--offline-muted);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.offline-intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: calc(100% - 40px);
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--offline-line);
  border-radius: 8px;
  background: var(--offline-surface);
  box-shadow: 0 1px 1px rgba(16, 18, 22, 0.04), 0 18px 40px rgba(16, 18, 22, 0.08);
}

.offline-audio-panel,
.offline-submit-panel {
  min-width: 0;
  padding: 20px;
}

.offline-audio-panel {
  background: var(--offline-console);
  color: var(--offline-console-text);
}

.offline-submit-panel {
  background: var(--offline-surface);
  color: var(--offline-ink);
}

.offline-panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
}

.offline-panel-heading h2 {
  min-width: 0;
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.offline-panel-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--offline-console-line);
  border-radius: 7px;
  background: var(--offline-console-2);
  color: var(--offline-amber);
}

.offline-submit-panel .offline-panel-icon {
  border-color: #c9d4dc;
  background: #e6f0f3;
  color: var(--offline-blue);
}

.offline-panel-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.offline-record-actions {
  display: grid;
  gap: 10px;
}

.offline-record-button,
.offline-submit-button,
.offline-file-drop {
  font-family: var(--font);
}

.offline-record-button,
.offline-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.offline-record-button {
  background: var(--offline-amber);
  color: var(--offline-amber-ink);
}

.offline-record-button:hover {
  background: #f2b85c;
}

.offline-record-button.offline-stop-button {
  background: var(--offline-red);
  border-color: var(--offline-red);
  color: #fff;
}

.offline-record-button.offline-stop-button:hover {
  background: #cf4c59;
}

.offline-record-button:disabled,
.offline-submit-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.offline-record-button .ui-icon,
.offline-submit-button .ui-icon {
  width: 19px;
  height: 19px;
}

.offline-record-help,
.offline-retention,
.offline-field small,
.offline-verification-copy small {
  overflow-wrap: anywhere;
}

.offline-record-help {
  margin: 10px 0 14px;
  color: var(--muted-on-dark);
  font-size: 13px;
  line-height: 1.5;
}

.offline-file-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 82px;
  padding: 12px;
  border: 1px dashed #555d68;
  border-radius: 7px;
  background: var(--offline-console-2);
  color: var(--offline-console-text);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.offline-file-drop:hover {
  border-color: var(--offline-amber);
  background: #191d22;
}

.offline-file-drop[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.offline-file-drop:focus-within {
  outline: 3px solid rgba(232, 163, 61, 0.55);
  outline-offset: 3px;
}

.offline-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.offline-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: rgba(232, 163, 61, 0.14);
  color: var(--offline-amber);
}

.offline-file-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.offline-file-copy strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.offline-file-copy small {
  color: var(--muted-on-dark);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.offline-preview {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border-radius: 7px;
}

.offline-audio-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--offline-console-line);
  border-radius: 7px;
  background: var(--offline-console-line);
}

.offline-audio-facts div {
  min-width: 0;
  padding: 10px;
  background: var(--offline-console-2);
}

.offline-audio-facts dt {
  margin: 0 0 3px;
  color: var(--muted-on-dark);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.offline-audio-facts dd {
  margin: 0;
  color: var(--offline-console-text);
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.offline-retention {
  margin: 12px 0 0;
  color: var(--muted-on-dark);
  font-size: 12px;
  line-height: 1.55;
}

.offline-retention a {
  display: inline-block;
  margin-left: 4px;
  color: #f3bd67;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.offline-field {
  display: grid;
  min-width: 0;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.offline-field > span,
.offline-consent > span,
.offline-verification-copy strong {
  overflow-wrap: anywhere;
}

.offline-field input,
.offline-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cbd3da;
  border-radius: 7px;
  background: #fff;
  color: var(--offline-ink);
  font: inherit;
  font-weight: 400;
}

.offline-field input::placeholder {
  color: #6c727a;
  opacity: 1;
}

.offline-shell input:disabled,
.offline-shell select:disabled,
.offline-shell textarea:disabled {
  border-color: #d4d9dd;
  background: #e7ebee;
  color: #6a7179;
  opacity: 0.62;
  cursor: not-allowed;
}

.offline-shell input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.offline-shell label:has(:disabled),
.offline-shell fieldset:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.offline-field small,
.offline-verification-copy small {
  color: var(--offline-muted);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
}

.offline-license-options {
  min-width: 0;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid var(--offline-line);
}

.offline-license-options h3 {
  margin: 0 0 8px;
  color: var(--offline-ink);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
}

.offline-plan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.offline-plan-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid #cbd3da;
  border-radius: 7px;
  background: #fff;
  color: var(--offline-ink);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.offline-plan-link:hover {
  border-color: #8d9aa5;
  background: #f4f7f8;
}

.offline-plan-link--credits {
  border-color: #d3a257;
  background: #fff8eb;
}

.offline-plan-link--credits:hover {
  border-color: #a97428;
  background: #fff3dd;
}

.offline-plan-link span,
.offline-plan-link strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.offline-plan-link span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.offline-plan-link strong {
  color: var(--offline-blue);
  font-size: 13px;
  line-height: 1.35;
}

.offline-plan-link .ui-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 16px;
  height: 16px;
  margin-left: 7px;
  color: var(--offline-muted);
}

.offline-plan-note,
.offline-plan-tab-note {
  margin: 8px 0 0;
  color: var(--offline-muted);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.offline-plan-tab-note {
  margin-top: 3px;
}

.offline-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 2px 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

.offline-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--offline-blue);
}

.offline-verification {
  min-width: 0;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.offline-verification[aria-disabled="true"] {
  opacity: 0.58;
}

.offline-verification-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.offline-verification-copy > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.offline-verification-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--offline-mint-ink);
}

.offline-verification-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.offline-turnstile {
  max-width: 100%;
  margin-top: 12px;
  overflow: hidden;
}

.offline-submit-button {
  background: var(--offline-console);
  border-color: var(--offline-console);
  color: #fff;
}

.offline-submit-button:hover {
  background: #242a31;
  border-color: #242a31;
}

.offline-submit-button.is-loading .ui-icon {
  animation: offline-pulse 900ms ease-in-out infinite alternate;
}

@keyframes offline-pulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

.offline-status {
  min-height: 0;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 1px solid #b9c4cc;
  color: var(--offline-muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.offline-status[data-state="ready"],
.offline-status[data-state="queued"] {
  background: #edf7f4;
  border-left-color: #2c8c7d;
  color: #17574e;
}

.offline-status[data-state="recording"] {
  background: #fff4e2;
  border-left-color: var(--offline-amber);
  color: #6d430d;
}

.offline-status[data-state="creating"] {
  background: #eef1f3;
  border-left-color: var(--offline-blue);
  color: #294b6a;
}

.offline-status[data-state="error"] {
  background: #fdecec;
  border-left-color: var(--offline-red);
  color: #7d2931;
}

.offline-noscript {
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid #b9c4cc;
  border-radius: 7px;
  background: #eef1f3;
  color: var(--offline-muted);
  font-size: 13px;
}

.offline-shell :focus-visible {
  outline: 3px solid rgba(49, 95, 138, 0.4);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .offline-intake-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .offline-submit-panel {
    border-top: 1px solid var(--offline-line);
  }
}

@media (max-width: 520px) {
  .offline-shell {
    padding: 22px 0 48px;
  }

  .offline-shell .offline-heading {
    margin-bottom: 18px;
    padding: 0 14px;
  }

  .offline-shell h1 {
    max-width: none;
    font-size: 30px;
    line-height: 1.16;
  }

  .offline-shell .offline-lead {
    font-size: 16px;
  }

  .offline-intake-grid {
    width: calc(100% - 28px);
  }

  .offline-audio-panel,
  .offline-submit-panel {
    padding: 18px;
  }

  .offline-panel-heading {
    margin-bottom: 16px;
  }

  .offline-panel-heading h2 {
    font-size: 19px;
  }

  .offline-audio-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .offline-plan-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .offline-retention a {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offline-record-button,
  .offline-submit-button,
  .offline-file-drop {
    transition: none;
  }

  .offline-submit-button.is-loading .ui-icon {
    animation: none;
  }
}

.private-job-shell {
  padding: 24px 0 72px;
}

.private-job-frame {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
}

.private-job-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  margin-bottom: 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--offline-line);
}

.private-job-heading-copy {
  min-width: 0;
}

.private-job-shell .private-job-heading h1 {
  margin-bottom: 8px;
}

.private-job-lead {
  max-width: 72ch;
  margin: 0;
  color: var(--offline-muted);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.private-job-top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.private-job-view {
  min-width: 0;
}

.private-job-loading {
  display: grid;
  gap: 12px;
  padding: 36px 0;
  border-block: 1px solid var(--offline-line);
}

.private-job-loading span {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 4px;
  background: #e4e8eb;
  animation: private-loading-pulse 900ms ease-in-out infinite alternate;
}

.private-job-loading span:nth-child(2) {
  width: 82%;
  animation-delay: 100ms;
}

.private-job-loading span:nth-child(3) {
  width: 64%;
  animation-delay: 180ms;
}

@keyframes private-loading-pulse {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

.private-job-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 320px;
  padding: 48px 4px;
  border-block: 1px solid var(--offline-line);
}

.private-job-state h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--offline-ink);
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.private-job-state-body {
  max-width: 64ch;
  margin: 0;
  color: var(--offline-muted);
  font-size: 16px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.private-job-status-note {
  margin: 2px 0 0;
  color: #47515b;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-job-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 84px;
  height: 24px;
}

.private-job-progress span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--offline-blue);
  animation: private-progress 900ms ease-in-out infinite alternate;
}

.private-job-progress span:nth-child(2) {
  animation-delay: 120ms;
}

.private-job-progress span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes private-progress {
  from {
    opacity: 0.35;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.private-job-state-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 6px;
}

.private-job-primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #244f77;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.private-editor {
  overflow: visible;
  border: 1px solid var(--offline-line);
  border-radius: 8px;
  background: var(--offline-surface);
  color: var(--offline-ink);
}

.private-editor ::selection {
  background: rgba(49, 95, 138, 0.22);
}

.private-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--offline-line);
  border-radius: 7px 7px 0 0;
  background: #f1f3f2;
}

.private-save-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #46505a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.private-save-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c8c7d;
}

.private-save-status[data-state="pending"] .private-save-dot,
.private-save-status[data-state="saving"] .private-save-dot {
  background: var(--offline-amber);
}

.private-save-status[data-state="error"] .private-save-dot,
.private-save-status[data-state="conflict"] .private-save-dot {
  background: var(--offline-red);
}

.private-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.private-job-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.private-job-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.private-job-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.private-job-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: #c8d0d6;
  background: #fff;
  color: #2f3841;
}

.private-job-icon-button:hover:not(:disabled) {
  border-color: #9cabb7;
  background: #e9edf0;
}

.private-job-secondary-button {
  border-color: #bec8cf;
  background: #fff;
  color: #26313b;
}

.private-job-secondary-button:hover:not(:disabled) {
  border-color: #8799a7;
  background: #edf1f3;
}

.private-job-primary-button {
  border-color: var(--offline-console);
  background: var(--offline-console);
  color: #fff;
}

.private-job-primary-button:hover:not(:disabled) {
  background: #252b32;
}

.private-job-danger-button {
  border-color: #bf777d;
  background: #fff;
  color: #8d2731;
}

.private-job-danger-button:hover:not(:disabled) {
  border-color: #9c3842;
  background: #fdecec;
}

.private-job-button .ui-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.private-editor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-bottom: 1px solid var(--offline-line);
  background: var(--offline-line);
}

.private-editor-summary div {
  min-width: 0;
  padding: 12px 16px;
  background: var(--offline-surface);
}

.private-editor-summary dt {
  margin-bottom: 3px;
  color: var(--offline-muted);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.private-editor-summary dd {
  margin: 0;
  color: var(--offline-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.private-editor-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #dba5aa;
  background: #fdecec;
  color: #6f222b;
}

.private-editor-notice[hidden] {
  display: none;
}

.private-editor-notice[data-private-conflict] {
  position: sticky;
  top: 76px;
  z-index: 20;
  border: 1px solid #dba5aa;
  box-shadow: 0 12px 30px rgba(64, 18, 24, 0.16);
  scroll-margin-top: 84px;
}

.private-notice-copy {
  min-width: 0;
}

.private-notice-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.4;
}

.private-notice-copy p {
  max-width: 72ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.private-editor-notice .private-job-button {
  flex: 0 0 auto;
}

.private-qa {
  padding: 22px 16px 20px;
  border-bottom: 1px solid #ccd4da;
  background: #eef2f1;
}

.private-qa-heading p {
  color: var(--offline-muted);
}

.private-qa-local {
  display: inline-flex;
  max-width: 88ch;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid #b8cec8;
  border-radius: 5px;
  background: #f5faf8;
  color: #275f54;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 16px;
  min-width: 0;
}

.private-qa-input-panel,
.private-qa-results {
  min-width: 0;
}

.private-qa-field {
  display: grid;
  gap: 6px;
  color: var(--offline-ink);
  font-size: 12.5px;
  font-weight: 650;
}

.private-qa-field textarea,
.private-qa-glossary textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #afbac2;
  border-radius: 6px;
  background: #fff;
  color: var(--offline-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
  resize: vertical;
}

.private-qa-field textarea {
  min-height: 210px;
}

.private-qa-glossary textarea {
  min-height: 108px;
}

.private-qa-field textarea:focus-visible,
.private-qa-glossary textarea:focus-visible,
.private-qa-file-button:focus-within,
.private-qa .private-job-button:focus-visible {
  outline: 3px solid rgba(49, 95, 138, 0.28);
  outline-offset: 2px;
}

.private-qa-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid #bec8cf;
  border-radius: 6px;
  background: #fff;
  color: #26313b;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.private-qa-file-button:hover {
  border-color: #8799a7;
  background: #edf1f3;
}

.private-qa-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.private-qa-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 10px;
}

.private-qa-glossary {
  margin-top: 14px;
  border-top: 1px solid #c9d1d6;
}

.private-qa-glossary summary {
  width: fit-content;
  margin-top: 10px;
  color: #26313b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  text-underline-offset: 3px;
}

.private-qa-glossary-body {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.private-qa-glossary-body p {
  margin: 0;
  color: var(--offline-muted);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-qa-glossary-body .private-qa-glossary-count {
  color: #3e5f56;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.private-qa-results {
  padding: 14px;
  border: 1px solid #c6d0d6;
  border-radius: 6px;
  background: #fff;
}

.private-qa-results h3 {
  margin: 0 0 10px;
  color: var(--offline-ink);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.private-qa-results h3:focus-visible {
  outline: 3px solid rgba(49, 95, 138, 0.28);
  outline-offset: 3px;
}

.private-qa-empty,
.private-qa-no-findings {
  margin: 0;
  color: var(--offline-muted);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.private-qa-stale {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #d9a565;
  border-radius: 4px;
  background: #fff5e8;
  color: #73400d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-qa-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6dde1;
  border-radius: 5px;
  background: #d6dde1;
}

.private-qa-stats div {
  min-width: 0;
  padding: 9px 10px;
  background: #f8faf9;
}

.private-qa-stats dt {
  margin-bottom: 3px;
  color: var(--offline-muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.private-qa-stats dd {
  margin: 0;
  color: var(--offline-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.private-qa-coverage-note {
  margin: 7px 0 12px;
  color: var(--offline-muted);
  font-size: 10.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.private-qa-finding-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  margin: 10px 0 0;
  padding: 0 4px 0 0;
  overflow: auto;
  list-style: none;
  scrollbar-gutter: stable;
}

.private-qa-finding {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d6dde1;
  border-left: 4px solid #8a9aa5;
  border-radius: 4px;
  background: #fbfcfc;
}

.private-qa-finding[data-severity="high"] {
  border-left-color: #b64651;
}

.private-qa-finding-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  min-width: 0;
}

.private-qa-risk-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #c9d1d6;
  border-radius: 999px;
  background: #eef2f3;
  color: #3d4a54;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.private-qa-finding[data-severity="high"] .private-qa-risk-label:first-child {
  border-color: #d6a6aa;
  background: #fdeff0;
  color: #812c34;
}

.private-qa-finding-time {
  margin-left: auto;
  color: #59636d;
  font-family: var(--mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.private-qa-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.private-qa-comparison div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.private-qa-comparison span {
  color: var(--offline-muted);
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.35;
}

.private-qa-comparison strong {
  color: #26313b;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.private-qa-manifest {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d6dde1;
}

.private-qa-manifest h4 {
  margin: 0 0 4px;
  color: var(--offline-ink);
  font-size: 13px;
  line-height: 1.4;
}

.private-qa-manifest p {
  margin: 0;
  color: var(--offline-muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-qa-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #43515c;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-qa-status[data-state="error"] {
  color: #7d2c34;
}

.private-qa-status[data-state="success"] {
  color: #246558;
}

.private-qa-unavailable {
  padding: 20px 16px;
}

.private-qa-unavailable h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.private-qa-unavailable p {
  margin: 0;
  color: var(--offline-muted);
  font-size: 13px;
  line-height: 1.55;
}

.private-glossary-hit {
  padding: 0 2px;
  border-radius: 2px;
  background: #ffe49b;
  color: #31250b;
  box-decoration-break: clone;
}

.private-export {
  padding: 22px 16px 20px;
  border-bottom: 1px solid var(--offline-line);
  background: #f5f7f6;
}

.private-export-heading {
  margin-bottom: 10px;
}

.private-export-heading p {
  color: var(--offline-muted);
}

.private-export-disclosure {
  max-width: 88ch;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #b9cbd7;
  border-radius: 4px;
  background: #edf2f5;
  color: #33424e;
  font-size: 12.5px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.private-export-license {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.private-license-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--offline-ink);
  font-size: 12.5px;
  font-weight: 650;
}

.private-license-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #afbac2;
  border-radius: 6px;
  background: #fff;
  color: var(--offline-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.private-license-field input:focus-visible,
.private-email-format select:focus-visible,
.private-export .private-job-button:focus-visible {
  outline: 3px solid rgba(49, 95, 138, 0.28);
  outline-offset: 2px;
}

.private-license-field input:disabled {
  background: #e8ecee;
  color: #5c6771;
}

.private-field-hint {
  color: var(--offline-muted);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-license-status {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid #ccd4da;
  border-radius: 6px;
  background: #fff;
  color: #44515c;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-license-status strong {
  color: var(--offline-ink);
  font-size: 13px;
}

.private-license-detail {
  color: #3d5c4f;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.private-license-status[data-state="ready"] {
  border-color: #9bc1b8;
  background: #f1f8f5;
}

.private-license-status[data-state="error"],
.private-license-status[data-state="inactive"] {
  border-color: #d6b7a1;
  background: #fff8f1;
}

.private-license-status a {
  width: fit-content;
  color: #244f77;
  font-weight: 650;
  text-underline-offset: 3px;
}

.private-export-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-block: 1px solid #ccd4da;
}

.private-export-panel {
  min-width: 0;
  padding: 15px 0 14px;
}

.private-export-panel:first-child {
  padding-right: 18px;
}

.private-export-panel + .private-export-panel {
  padding-left: 18px;
  border-left: 1px solid #ccd4da;
}

.private-export-panel h3 {
  margin: 0 0 9px;
  color: var(--offline-ink);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
}

.private-export-formats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.private-export-formats .private-job-button {
  min-width: 0;
  padding-inline: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

.private-email-heading p {
  margin: -3px 0 10px;
  color: var(--offline-muted);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-email-controls {
  display: grid;
  grid-template-columns: minmax(112px, 0.55fr) minmax(190px, 1fr);
  align-items: end;
  gap: 9px;
}

.private-email-format {
  color: var(--offline-ink);
}

.private-email-format select {
  background: #fff;
  color: var(--offline-ink);
}

.private-email-controls .private-job-button {
  width: 100%;
  min-width: 0;
}

.private-export-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #43515c;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-export-status[data-state="error"] {
  color: #7d2c34;
}

.private-export-status[data-state="queued"],
.private-export-status[data-state="sent"],
.private-export-status[data-state="ready-to-download"] {
  color: #246558;
}

.private-speakers {
  padding: 22px 16px 20px;
  border-bottom: 1px solid var(--offline-console-line);
  background: var(--offline-console);
  color: var(--offline-console-text);
}

.private-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  margin-bottom: 14px;
}

.private-section-heading > div:first-child {
  min-width: 0;
}

.private-section-heading h2 {
  margin: 0 0 4px;
  color: inherit;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.private-section-heading p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.private-speaker-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 1px;
  overflow: hidden;
  border: 1px solid var(--offline-console-line);
  border-radius: 7px;
  background: var(--offline-console-line);
  list-style: none;
}

.private-speaker-row {
  display: grid;
  grid-template-columns: 32px 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  background: var(--offline-console-2);
}

.private-checkbox-control {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 44px;
  cursor: pointer;
}

.private-checkbox-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--offline-amber);
}

.private-speaker-swatch {
  width: 10px;
  height: 28px;
  border-radius: 2px;
}

.private-speaker-name {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #434b55;
  border-radius: 6px;
  background: #0b0d10;
  color: var(--offline-console-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.private-speaker-name:disabled {
  border-color: #343a42;
  background: #16191e;
  color: #89919a;
  opacity: 0.72;
  cursor: not-allowed;
}

.private-speaker-count {
  color: var(--muted-on-dark);
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
}

.private-speaker-merge {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.private-target-field {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--offline-console-text);
  font-size: 12px;
  font-weight: 650;
}

.private-target-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #434b55;
  border-radius: 6px;
  background: #0b0d10;
  color: var(--offline-console-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.private-speaker-merge .private-job-secondary-button {
  border-color: #59626d;
  background: #1c2026;
  color: var(--offline-console-text);
}

.private-speaker-merge .private-job-secondary-button:hover:not(:disabled) {
  border-color: var(--offline-amber);
  background: #272c33;
}

.private-merge-help {
  max-width: 84ch;
  margin: 7px 0 0;
  color: var(--muted-on-dark);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-transcript {
  padding: 22px 16px 24px;
  background: var(--offline-surface);
}

.private-transcript-heading {
  align-items: flex-end;
}

.private-transcript-heading p {
  color: var(--offline-muted);
}

.private-segment-merge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.private-selection-count {
  color: var(--offline-muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.private-segment-help {
  margin: -4px 0 12px;
  color: var(--offline-muted);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.private-transcript-list {
  border-top: 1px solid var(--offline-line);
}

.private-transcript-segment {
  display: grid;
  grid-template-columns: 32px 62px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--offline-line);
}

.private-segment-time {
  padding-top: 12px;
  color: #59626c;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.private-segment-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  min-width: 0;
  padding-top: 8px;
}

.private-speaker-chip {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
  padding-left: 10px;
  color: var(--private-speaker-color);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.private-speaker-chip::before {
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--private-speaker-color);
  content: "";
}

.private-segment-text {
  min-width: min(22ch, 100%);
  color: var(--offline-ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.private-split-button {
  border-color: #c7d0d6;
  background: #fff;
  color: #35414b;
}

.private-split-button:hover:not(:disabled) {
  border-color: #8fa1ae;
  background: #eef1f3;
}

.private-transcript-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--offline-muted);
}

.private-job-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #b9c3ca;
  border-radius: 8px;
  background: var(--offline-surface);
  color: var(--offline-ink);
  box-shadow: 0 22px 70px rgba(8, 12, 16, 0.3);
}

.private-job-dialog::backdrop {
  background: rgba(8, 10, 13, 0.66);
}

.private-dialog-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
}

.private-dialog-card h2 {
  margin: 0;
  color: var(--offline-ink);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.private-dialog-card > p {
  margin: 0;
  color: var(--offline-muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.private-split-options {
  display: grid;
  max-height: min(42vh, 360px);
  overflow-y: auto;
  border-block: 1px solid var(--offline-line);
  scrollbar-color: #9eabb5 #eef1f3;
}

.private-split-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--offline-line);
  color: var(--offline-ink);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.private-split-option:last-child {
  border-bottom: 0;
}

.private-split-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--offline-blue);
}

.private-split-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.private-split-estimate {
  padding: 10px 12px;
  border: 1px solid #d6c3a1;
  border-radius: 7px;
  background: #fff6e8;
  color: #66491d;
  font-size: 12.5px;
  line-height: 1.55;
}

.private-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.private-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .private-editor-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private-editor-summary div:last-child {
    grid-column: 1 / -1;
  }

  .private-section-heading,
  .private-transcript-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .private-export-license,
  .private-export-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-qa-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-export-panel:first-child {
    padding-right: 0;
  }

  .private-export-panel + .private-export-panel {
    padding-left: 0;
    border-top: 1px solid #ccd4da;
    border-left: 0;
  }

  .private-license-status {
    min-height: 0;
  }

  .private-segment-merge {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .private-job-shell {
    padding: 18px 0 48px;
  }

  .private-job-frame {
    width: calc(100% - 28px);
  }

  .private-job-heading {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .private-job-shell .private-job-heading h1 {
    font-size: 30px;
  }

  .private-job-lead {
    font-size: 15px;
  }

  .private-job-state {
    min-height: 280px;
    padding: 34px 2px;
  }

  .private-job-state h2 {
    font-size: 25px;
  }

  .private-editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .private-editor-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .private-editor-actions .private-job-danger-button {
    margin-left: auto;
  }

  .private-editor-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-editor-summary div:last-child {
    grid-column: auto;
  }

  .private-editor-notice {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 12px;
  }

  .private-editor-notice[data-private-conflict] {
    top: 124px;
    scroll-margin-top: 132px;
  }

  .private-editor-notice .private-job-button {
    align-self: flex-start;
  }

  .private-export {
    padding: 18px 12px;
  }

  .private-qa {
    padding: 18px 12px;
  }

  .private-qa-stats,
  .private-qa-comparison {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-qa-actions .private-job-button,
  .private-qa-actions .private-qa-file-button {
    width: 100%;
  }

  .private-export-formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private-email-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-speakers,
  .private-transcript {
    padding: 18px 12px;
  }

  .private-speaker-row {
    grid-template-columns: 32px 12px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .private-speaker-count {
    grid-column: 3;
    white-space: normal;
  }

  .private-speaker-merge {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-speaker-merge .private-job-button {
    width: 100%;
  }

  .private-segment-merge {
    align-items: stretch;
    flex-direction: column;
  }

  .private-segment-merge .private-job-button {
    width: 100%;
  }

  .private-transcript-segment {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 7px 9px;
  }

  .private-transcript-segment .private-checkbox-control {
    grid-column: 1;
    grid-row: 1;
    width: 28px;
  }

  .private-segment-time {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-top: 0;
  }

  .private-split-button {
    grid-column: 3;
    grid-row: 1;
  }

  .private-segment-content {
    grid-column: 2 / -1;
    grid-row: 2;
    padding-top: 0;
  }

  .private-dialog-card {
    padding: 18px;
  }

  .private-dialog-actions {
    flex-direction: column-reverse;
  }

  .private-dialog-actions .private-job-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .private-job-loading span,
  .private-job-progress span {
    animation: none;
  }

  .private-job-button {
    transition: none;
  }
}
