@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --unisc-blue: #0052c4;
  --unisc-navy: #002e9c;
  --unisc-yellow: #ffdd15;
  --unisc-orange: #faaf40;
  --ink: #101828;
  --muted: #475467;
  --line: #d0d5dd;
  --surface: #ffffff;
  --soft-blue: #f1f6ff;
  --soft-yellow: #fffbea;
  --danger: #b42318;
  --danger-dark: #7a271a;
  --success: #006900;
  --shadow: 0 18px 44px rgb(0 46 156 / 12%);
  font-family: "Poppins", Calibri, system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--soft-blue);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% -8%, rgb(255 221 21 / 35%) 0 9rem, transparent 9.1rem),
    linear-gradient(180deg, var(--unisc-blue) 0 13.5rem, var(--soft-blue) 13.5rem 100%);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100%, 48rem);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 0.25rem 0.25rem 1rem;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.12;
}

h2 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.icon-button {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--unisc-blue);
  background: var(--unisc-yellow);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.icon-button svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.icon-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--unisc-orange);
  outline-offset: 3px;
}

.recorder-card {
  overflow: hidden;
  padding: clamp(1.15rem, 4vw, 2rem);
  background: var(--surface);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.intro-copy p {
  max-width: 38rem;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.name-input,
select {
  width: 100%;
  min-height: 3.4rem;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 0.85rem;
}

.secondary-button {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.65rem;
  padding: 0.65rem 1rem;
  color: var(--unisc-blue);
  background: #ffffff;
  border: 2px solid var(--unisc-blue);
  border-radius: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.secondary-button:disabled {
  color: #667085;
  border-color: var(--line);
  cursor: wait;
}

.name-input {
  padding: 0.8rem 1rem;
  font-size: 1.05rem;
}

.name-input::placeholder {
  color: #667085;
}

.name-input.has-error {
  border-color: var(--danger);
}

.field-message {
  min-height: 1.35rem;
  margin: 0.35rem 0 0.35rem;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
}

.original-video-notice {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  color: var(--danger-dark);
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-left: 5px solid var(--danger);
  border-radius: 0.9rem;
}

.original-video-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.original-video-notice p {
  margin: 0;
  font-size: 0.8rem;
}

.privacy-choice {
  margin-bottom: 1rem;
  padding: 0.9rem;
  background: var(--soft-blue);
  border: 1px solid rgb(0 82 196 / 15%);
  border-radius: 0.9rem;
}

.privacy-choice legend {
  padding: 0 0.25rem;
}

.privacy-control {
  background: #ffffff;
}

.privacy-control input[value="on"]:checked + span {
  color: var(--unisc-navy);
  background: var(--unisc-yellow);
}

.camera-stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  margin: 0.4rem 0 1rem;
  color: #ffffff;
  background: var(--unisc-navy);
  border-radius: 1.1rem;
}

.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  transition: filter 160ms ease;
}

.camera-stage video.is-idle-preview {
  filter: grayscale(1);
}

.camera-stage video.is-recording-preview {
  filter: none;
}

.audio-meter {
  --audio-level: 0;
  position: absolute;
  top: 0.75rem;
  right: 0.65rem;
  bottom: 0.75rem;
  width: 0.72rem;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      to top,
      transparent 0 9%,
      rgb(255 255 255 / 24%) 9% 10%
    ),
    rgb(16 24 40 / 68%);
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 35%);
  backdrop-filter: blur(4px);
}

.audio-meter-fill {
  position: absolute;
  inset: 2px;
  background: linear-gradient(
    to top,
    #57d163 0 56%,
    var(--unisc-yellow) 76%,
    var(--unisc-orange) 100%
  );
  border-radius: 999px;
  transform: scaleY(var(--audio-level));
  transform-origin: bottom;
  transition: transform 55ms linear;
}

.recording-review {
  margin: 0.4rem 0 1rem;
  scroll-margin-top: 1rem;
}

.privacy-processing {
  margin: 0.4rem 0 1rem;
  padding: 1.1rem;
  background: var(--soft-blue);
  border: 2px solid var(--unisc-blue);
  border-radius: 1rem;
  scroll-margin-top: 1rem;
}

.privacy-processing h2 {
  margin-bottom: 0.35rem;
}

.privacy-processing > p:not(.summary-label) {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.privacy-processing progress {
  display: block;
  width: 100%;
  height: 1rem;
  overflow: hidden;
  accent-color: var(--unisc-blue);
  border: 0;
  border-radius: 999px;
}

.privacy-processing .processing-note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
}

.transcript-review {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--soft-yellow);
  border: 1px solid rgb(0 82 196 / 22%);
  border-radius: 1rem;
}

.transcript-review h3 {
  margin-bottom: 0.35rem;
}

.transcript-status {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.transcript-review progress {
  display: block;
  width: 100%;
  height: 0.8rem;
  margin-bottom: 0.75rem;
  accent-color: var(--unisc-blue);
}

.transcript-preview {
  min-height: 8rem;
  max-height: 18rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  margin-bottom: 0.7rem;
  padding: 0.85rem;
  white-space: pre-wrap;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.transcript-preview:focus-visible {
  outline: 3px solid var(--unisc-orange);
  outline-offset: 2px;
}

.processing-actions {
  margin-top: 0.85rem;
}

.version-kept {
  margin-top: 0.85rem;
  padding: 0.8rem 0.9rem;
  color: var(--success);
  background: #ecfdf3;
  border-left: 4px solid var(--success);
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.review-heading {
  margin-bottom: 0.75rem;
}

.review-heading h2 {
  margin-bottom: 0.25rem;
}

.review-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.playback-stage {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #000000;
  border: 4px solid var(--unisc-yellow);
  border-radius: 1.1rem;
  box-shadow: 0 0 0 2px var(--unisc-navy);
}

.playback-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.camera-placeholder {
  display: grid;
  max-width: 17rem;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}

.camera-placeholder svg {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.65rem;
  fill: none;
  stroke: var(--unisc-yellow);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.camera-placeholder strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.camera-placeholder span {
  margin-top: 0.35rem;
  color: rgb(255 255 255 / 84%);
  font-size: 0.8rem;
  line-height: 1.45;
}

.recording-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  color: #ffffff;
  background: rgb(16 24 40 / 84%);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.camera-state-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
  color: var(--unisc-yellow);
  background: rgb(16 24 40 / 82%);
  border: 1px solid rgb(255 221 21 / 55%);
  border-radius: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.recording-dot {
  width: 0.72rem;
  height: 0.72rem;
  background: #ff3b30;
  border-radius: 50%;
  animation: pulse 1.35s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.38;
  }
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 3.6rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.record-button {
  color: #ffffff;
  background: var(--unisc-blue);
}

.record-button:hover {
  background: var(--unisc-navy);
}

.record-button.is-recording {
  background: var(--danger);
}

.record-button.is-recording:hover {
  background: var(--danger-dark);
}

.record-symbol {
  width: 1rem;
  height: 1rem;
  background: currentColor;
  border-radius: 50%;
}

.record-button.is-recording .record-symbol {
  border-radius: 0.18rem;
}

.canvas-button {
  margin-top: 0.75rem;
  color: var(--unisc-blue);
  background: var(--unisc-yellow);
}

.canvas-button svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.save-button {
  margin-top: 0.85rem;
  color: #ffffff;
  background: var(--unisc-blue);
}

.save-button:hover {
  background: var(--unisc-navy);
}

.save-button svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.canvas-button:not(.is-disabled):hover {
  background: #f3cd00;
}

.primary-button.is-disabled,
.primary-button:disabled {
  color: #667085;
  background: #eaecf0;
  cursor: not-allowed;
}

.privacy-choice input:disabled + span {
  cursor: not-allowed;
  opacity: 0.62;
}

.recording-summary {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--soft-yellow);
  border-left: 5px solid var(--unisc-orange);
  border-radius: 0.7rem;
}

.save-location {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--unisc-blue);
  background: var(--soft-blue);
  border-radius: 0.8rem;
}

.save-location strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
}

.save-location p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.device-file-warning {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--danger-dark);
  background: #fff1f0;
  border: 1px solid rgb(180 35 24 / 28%);
  border-left: 5px solid var(--danger);
  border-radius: 0.8rem;
}

.device-file-warning strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
}

.device-file-warning p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.summary-label {
  margin-bottom: 0.15rem;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.file-name {
  overflow-wrap: anywhere;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.file-meta {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.text-button {
  min-height: 2.75rem;
  margin: 0.1rem 0 0 -0.5rem;
  padding: 0.45rem 0.5rem;
  color: var(--unisc-blue);
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.status-message {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.next-step {
  display: flex;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgb(0 82 196 / 12%);
  border-radius: 1rem;
}

.next-step h2 {
  margin-top: 0.1rem;
  font-size: 1rem;
}

.next-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.step-number {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--unisc-blue);
  background: var(--unisc-yellow);
  border-radius: 50%;
  font-weight: 600;
}

footer {
  padding: 1.5rem 0.5rem 0;
  color: #475467;
  font-size: 0.72rem;
  text-align: center;
}

footer p {
  margin-bottom: 0;
}

.settings-dialog {
  width: min(calc(100% - 1.5rem), 36rem);
  max-height: min(84vh, 48rem);
  max-height: min(84dvh, 48rem);
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 1.35rem;
  box-shadow: 0 24px 72px rgb(16 24 40 / 28%);
}

.settings-dialog::backdrop {
  background: rgb(0 24 68 / 68%);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.2rem;
  color: #ffffff;
  background: var(--unisc-blue);
}

.dialog-header h2 {
  margin: 0;
}

.close-button {
  color: #ffffff;
  background: rgb(255 255 255 / 16%);
}

.settings-content {
  display: grid;
  gap: 1.25rem;
  overflow-y: auto;
  padding: 1.25rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.settings-field > label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.3rem;
  background: #f2f4f7;
  border-radius: 0.8rem;
}

.segmented-control label {
  position: relative;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  min-height: 2.8rem;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  font-weight: 600;
}

.segmented-control input:checked + span {
  color: #ffffff;
  background: var(--unisc-blue);
}

.segmented-control input:focus-visible + span {
  border-color: var(--unisc-orange);
}

select {
  padding: 0.7rem 2.6rem 0.7rem 0.85rem;
}

.setting-help {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.transcription-setting {
  padding: 0;
  border: 0;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.75rem 0.85rem;
  background: var(--soft-blue);
  border: 1px solid rgb(0 82 196 / 18%);
  border-radius: 0.85rem;
  cursor: pointer;
}

.switch-row span {
  display: grid;
  gap: 0.1rem;
}

.switch-row small {
  color: var(--muted);
}

.switch-row input {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  accent-color: var(--unisc-blue);
}

.model-status {
  margin: 0.55rem 0 0;
  color: var(--unisc-navy);
  font-size: 0.78rem;
  font-weight: 600;
}

.reliability-note {
  padding: 1rem;
  color: var(--unisc-blue);
  background: var(--soft-blue);
  border-radius: 0.8rem;
}

.reliability-note p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  width: min(calc(100% - 2rem), 32rem);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  color: #ffffff;
  background: #101828;
  border-radius: 0.8rem;
  box-shadow: 0 12px 36px rgb(16 24 40 / 24%);
  font-size: 0.85rem;
  text-align: center;
}

[hidden] {
  display: none !important;
}

.durability-status {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  background: #f2f4f7;
  border-radius: 0.75rem;
  font-size: 0.78rem;
}

.durability-dot {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  margin-top: 0.22rem;
  background: #667085;
  border-radius: 50%;
}

.durability-status[data-state="safe"] {
  color: #005c2b;
  background: #ecfdf3;
}

.durability-status[data-state="safe"] .durability-dot {
  background: #079455;
}

.durability-status[data-state="danger"] {
  color: var(--danger-dark);
  background: #fef3f2;
}

.durability-status[data-state="danger"] .durability-dot {
  background: var(--danger);
}

.emergency-save {
  width: 100%;
  margin-top: 0.75rem;
  color: var(--danger-dark);
  border-color: var(--danger);
}

.queue-section {
  margin-top: 1rem;
  padding: clamp(1.15rem, 4vw, 1.6rem);
  background: var(--surface);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.queue-heading,
.job-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.queue-heading .eyebrow {
  color: var(--unisc-blue);
}

.queue-count {
  display: grid;
  min-width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--unisc-navy);
  background: var(--unisc-yellow);
  border-radius: 50%;
  font-weight: 600;
}

.recovery-manager {
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.recovery-manager summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  color: var(--unisc-blue);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.recovery-manager summary::-webkit-details-marker {
  display: none;
}

.recovery-manager summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.35rem;
  font-weight: 400;
}

.recovery-manager[open] summary::after {
  content: "−";
}

.recovery-manager .queue-count {
  min-width: 1.8rem;
  height: 1.8rem;
  margin-left: auto;
  font-size: 0.75rem;
}

.recovery-manager .queue-list {
  margin-top: 0.75rem;
}

.queue-help {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.clear-trials-button {
  width: 100%;
  margin: 0 0 1rem;
}

.queue-list {
  display: grid;
  gap: 0.9rem;
}

.queue-empty {
  display: grid;
  gap: 0.2rem;
  padding: 1.4rem 1rem;
  color: var(--muted);
  background: var(--soft-blue);
  border: 1px dashed rgb(0 82 196 / 35%);
  border-radius: 0.9rem;
  text-align: center;
}

.job-card {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgb(0 82 196 / 22%);
  border-left: 5px solid var(--unisc-blue);
  border-radius: 0.9rem;
}

.job-name {
  overflow-wrap: anywhere;
}

.job-meta,
.job-message,
.job-progress-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.job-status-pill {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  color: var(--unisc-navy);
  background: var(--soft-blue);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.job-status-pill[data-state="safe"] {
  color: #005c2b;
  background: #ecfdf3;
}

.job-status-pill[data-state="danger"] {
  color: var(--danger-dark);
  background: #fef3f2;
}

.job-status-pill[data-state="warning"] {
  color: #7a2e0e;
  background: var(--soft-yellow);
}

.privacy-result-banner {
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid;
  border-radius: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-align: center;
}

.privacy-result-banner[data-state="private"] {
  color: #005c2b;
  background: #ecfdf3;
  border-color: #079455;
}

.privacy-result-banner[data-state="original"] {
  color: var(--danger-dark);
  background: #fef3f2;
  border-color: var(--danger);
}

.job-progress-wrap {
  margin-top: 0.85rem;
}

.job-progress {
  width: 100%;
  height: 0.65rem;
  accent-color: var(--unisc-blue);
}

.job-message {
  margin-top: 0.75rem;
}

.job-preview {
  display: block;
  width: 100%;
  max-height: 25rem;
  margin-top: 0.85rem;
  background: #000000;
  border: 3px solid var(--unisc-yellow);
  border-radius: 0.85rem;
}

.job-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.job-actions .primary-button,
.job-actions .secondary-button {
  width: 100%;
}

.danger-button {
  color: var(--danger-dark);
}

main > .device-file-warning {
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

@media (min-width: 42rem) {
  .page-shell {
    padding-inline: 1.5rem;
  }

  .recorder-card {
    padding: 2rem;
  }

  .camera-stage {
    aspect-ratio: 16 / 9;
  }

  .playback-stage {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
