:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d120f;
  color: #eef4ef;
  font-synthesis: none;
  --background: #0d120f;
  --panel: #151c18;
  --panel-raised: #1b251f;
  --border: #29362e;
  --border-strong: #3c6d50;
  --text: #eef4ef;
  --muted: #9dab9f;
  --accent: #6ce7a2;
  --accent-strong: #26bd6b;
  --warning: #f2c96d;
  --danger: #ff8e83;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 0%, rgba(74, 205, 131, 0.12), transparent 30rem),
    var(--background);
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #07120b;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4rem;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(68, 88, 75, 0.6);
  background: rgba(13, 18, 15, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--accent);
  color: #092012;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-self: stretch;
  gap: 0.25rem;
}

.nav-links a {
  display: grid;
  place-items: center;
  padding: 0 0.9rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.nav-logout {
  display: inline-flex;
  margin-left: 0.75rem;
}

.nav-logout .button {
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}

.local-badge {
  margin-left: auto;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-shell {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.page-header.narrow > div:first-child,
.dashboard-header > div:first-child {
  max-width: 47rem;
}

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

h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.intro,
.section-copy,
.all-clear {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.intro {
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--accent);
  color: #07150c;
}

.button.primary:hover {
  background: #8aefb5;
}

.button.secondary {
  border-color: var(--border);
  background: var(--panel-raised);
  color: var(--text);
}

.button.warning {
  border-color: rgba(242, 201, 109, 0.45);
  background: rgba(242, 201, 109, 0.1);
  color: var(--warning);
}

.text-link {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.panel {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(21, 28, 24, 0.92);
}

.attention-panel {
  border-color: var(--border-strong);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading h2,
.section-heading p:last-child {
  margin-bottom: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.metric-card {
  display: grid;
  gap: 0.3rem;
  min-height: 8.3rem;
  align-content: space-between;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--panel);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: 2.35rem;
  letter-spacing: -0.05em;
}

.metric-card.metric-warning {
  border-color: rgba(242, 201, 109, 0.5);
}

.metric-warning strong {
  color: var(--warning);
}

.count-badge,
.step-number {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  padding: 0.35rem;
  border-radius: 0.5rem;
  background: var(--panel-raised);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 9rem;
  padding: 1.25rem;
  border: 1px dashed #35473c;
  border-radius: 0.8rem;
  color: var(--muted);
}

.empty-state.compact {
  min-height: auto;
}

.empty-state.large {
  min-height: 20rem;
  justify-content: center;
}

.empty-state p {
  margin: 0.35rem 0 0.7rem;
}

.empty-number,
.checkmark {
  display: grid;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--panel-raised);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
}

.checkmark {
  border-radius: 999px;
  font-size: 1.2rem;
}

.attention-list {
  display: grid;
  gap: 0.6rem;
}

.attention-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--panel-raised);
  text-decoration: none;
}

.attention-item:hover {
  outline: 1px solid var(--border-strong);
}

.attention-item small,
table small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.attention-item .attention-reason {
  color: var(--warning);
}

.arrow {
  color: var(--accent);
}

.status-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #7d8a80;
  box-shadow: 0 0 0 0.27rem rgba(125, 138, 128, 0.12);
}

.status-needs_attention,
.status-dot.status-needs_attention {
  color: var(--warning);
  background-color: var(--warning);
}

.status-ready_for_review,
.status-dot.status-ready_for_review {
  color: #7cbcff;
  background-color: #7cbcff;
}

.status-complete,
.status-dot.status-complete {
  color: var(--accent);
  background-color: var(--accent-strong);
}

.two-column,
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pipeline-list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-list li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(49, 65, 55, 0.7);
}

.pipeline-list li:last-child {
  border-bottom: 0;
}

.pipeline-list span,
.pipeline-list small {
  color: var(--muted);
  font-size: 0.75rem;
}

.storage-number {
  margin: 1.6rem 0 0.85rem;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.storage-number small {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.progress-track {
  overflow: hidden;
  height: 0.45rem;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  background: #29342d;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.progress-track.indeterminate span {
  width: 35%;
  animation: download-activity 1.4s ease-in-out infinite alternate;
}

@keyframes download-activity {
  from {
    transform: translateX(-20%);
  }

  to {
    transform: translateX(205%);
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #253129;
  color: #bec9c0;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.success {
  background: rgba(108, 231, 162, 0.1);
  color: var(--accent);
}

.status-pill.danger {
  background: rgba(255, 142, 131, 0.1);
  color: var(--danger);
}

.status-pill.warning {
  background: rgba(242, 201, 109, 0.1);
  color: var(--warning);
}

.status-pill.muted {
  color: var(--muted);
}

.detail-list {
  margin: 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) 1.3fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(49, 65, 55, 0.7);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  min-width: 0;
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

code {
  color: #c1d2c5;
  font-size: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid rgba(49, 65, 55, 0.7);
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td a {
  font-weight: 750;
  text-decoration: none;
}

.align-right {
  text-align: right;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}

.channel-card {
  display: block;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
  text-decoration: none;
}

.channel-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.channel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.channel-card h2 {
  margin-bottom: 0.2rem;
}

.channel-card > p {
  color: var(--muted);
}

.channel-card dl {
  margin: 1.4rem 0;
}

.channel-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.channel-card dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

.card-action {
  color: var(--accent);
  font-weight: 750;
}

.avatar {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, #356a4b, #1c3d2b);
  color: #c9f6dc;
  font-weight: 850;
}

.avatar.large {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  font-size: 1.35rem;
}

.heading-with-avatar,
.button-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.button-row form {
  margin: 0;
}

.form-layout {
  display: grid;
  gap: 0.25rem;
  max-width: 58rem;
}

.form-section {
  margin-top: 0;
  margin-bottom: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  color: #dfe8e1;
  font-size: 0.88rem;
  font-weight: 720;
}

.field-wide {
  grid-column: 1 / -1;
}

.identity-note {
  align-self: end;
  min-height: 2.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #3a4b40;
  border-radius: 0.6rem;
  color: var(--muted);
}

.identity-note strong {
  color: var(--text);
  font-size: 0.88rem;
}

.identity-note p,
.identity-action p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.identity-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.verified-identity {
  color: var(--accent);
  font-weight: 750;
}

.archive-scan-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.7rem;
  background: rgba(108, 231, 162, 0.06);
  text-decoration: none;
}

.archive-scan-link:hover {
  background: rgba(108, 231, 162, 0.1);
}

.archive-scan-link small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.archive-scan-link > span:last-child {
  color: var(--accent);
  font-size: 1.2rem;
}

.archive-explainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: var(--border-strong);
}

.archive-explainer > div {
  flex: 1;
}

.archive-explainer form {
  margin: 0;
}

.archive-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.discovery-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.25rem;
}

.discovery-details > div {
  display: block;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.discovery-details dd {
  margin-top: 0.35rem;
  text-align: left;
}

.discovery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.discovery-actions form {
  margin: 0;
}

.discovery-start {
  margin-top: 1.25rem;
}

.discovery-error {
  margin-bottom: 1rem;
}

.archive-explainer p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.vod-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
}

.vod-card.before-cutoff {
  opacity: 0.68;
}

.vod-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090d0a;
}

.vod-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-thumbnail > span {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(5, 8, 6, 0.88);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
}

.vod-card-body {
  padding: 1.15rem;
}

.vod-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.vod-card-heading small {
  color: var(--muted);
}

.vod-card h2 {
  line-height: 1.25;
}

.vod-description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.template-preview {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  color: inherit;
}

.youtube-preview {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.2rem;
}

.youtube-preview .eyebrow {
  margin-bottom: 0.35rem;
}

.youtube-title {
  display: block;
  font-size: 1.15rem;
  line-height: 1.35;
}

.metadata-form {
  margin-top: 0.4rem;
}

.vod-metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 1.1rem 0;
}

.vod-metadata div {
  min-width: 0;
}

.vod-metadata dt {
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vod-metadata dd {
  overflow: hidden;
  margin: 0;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field em {
  margin-left: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
}

.field small {
  color: var(--muted);
  font-weight: 450;
  line-height: 1.4;
}

.field .field-error {
  color: var(--danger);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #334139;
  border-radius: 0.6rem;
  outline: 0;
  background: #101713;
  color: var(--text);
}

input {
  min-height: 2.8rem;
  padding: 0 0.8rem;
}

select {
  min-height: 2.8rem;
  padding: 0 0.8rem;
}

textarea {
  padding: 0.8rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(108, 231, 162, 0.1);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}

.input-prefix,
.input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid #334139;
  border-radius: 0.6rem;
  background: #101713;
}

.input-prefix:focus-within,
.input-suffix:focus-within {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(108, 231, 162, 0.1);
}

.input-prefix span,
.input-suffix span {
  padding: 0 0.8rem;
  color: var(--muted);
  font-weight: 550;
}

.input-prefix input,
.input-suffix input {
  border: 0;
  box-shadow: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.test-panel {
  border-color: #385e47;
}

.mini-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.notice {
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid;
  border-radius: 0.7rem;
  font-weight: 700;
}

.notice.success {
  border-color: rgba(108, 231, 162, 0.4);
  background: rgba(108, 231, 162, 0.08);
  color: var(--accent);
}

.notice.danger {
  border-color: rgba(255, 142, 131, 0.4);
  background: rgba(255, 142, 131, 0.08);
  color: var(--danger);
}

.notice.warning {
  border-color: rgba(242, 201, 109, 0.4);
  background: rgba(242, 201, 109, 0.08);
  color: var(--warning);
}

.notice p {
  margin: 0.35rem 0 0;
  color: inherit;
  font-weight: 500;
  line-height: 1.5;
}

.retention-item.critical {
  outline: 1px solid rgba(255, 142, 131, 0.32);
}

.retention-badge {
  margin-top: 0.35rem;
}

.retention-notice {
  margin-bottom: 1rem;
}

.tool-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.download-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.download-progress-copy span {
  color: var(--muted);
}

.download-live-detail {
  margin: -0.7rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.download-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.download-state-note {
  margin: 1.25rem 0 0;
}

.download-details {
  margin-top: 1rem;
}

.large-state {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
}

.large-state .status-dot {
  width: 0.9rem;
  height: 0.9rem;
}

.transition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.transition-actions p {
  flex: 1 0 100%;
  margin-bottom: 0.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.transition-actions form {
  margin: 0;
}

.error-copy {
  color: var(--warning);
  line-height: 1.5;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0 1.5rem;
}

.timeline li:not(:last-child)::before {
  position: absolute;
  top: 0.8rem;
  bottom: -0.2rem;
  left: 0.32rem;
  width: 1px;
  background: var(--border);
  content: "";
}

.timeline-dot {
  z-index: 1;
  flex: 0 0 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.3rem;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 0 2px var(--warning);
}

.timeline p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.history-timeline li {
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.history-timeline a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .topbar {
    gap: 0.7rem;
    padding: 0 1rem;
  }

  .brand > span:last-child,
  .local-badge {
    display: none;
  }

  .nav-links {
    margin-left: auto;
  }

  .nav-links a {
    padding: 0 0.55rem;
    font-size: 0.82rem;
  }

  .page-shell {
    padding-top: 2.5rem;
  }

  .page-header,
  .channel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .two-column,
  .detail-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 7rem;
  }

  .heading-with-avatar {
    align-items: flex-start;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .identity-action {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-explainer {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-metrics {
    grid-template-columns: 1fr;
  }

  .discovery-details {
    grid-template-columns: 1fr 1fr;
  }

  .discovery-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .discovery-actions .button {
    width: 100%;
  }

  .vod-grid {
    grid-template-columns: 1fr;
  }

  .button-row .button {
    width: 100%;
  }

  .history-timeline li {
    grid-template-columns: auto 1fr;
  }

  .history-timeline .status-pill {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }

  .storage-details > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .storage-details dd {
    text-align: left;
  }
}

.authorize-url {
  display: block;
  margin-top: 0.5rem;
  word-break: break-all;
  font-size: 0.78rem;
}

.youtube-health-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.youtube-connection-actions {
  margin-top: 0.75rem;
}

.oauth-result-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--background);
}

.oauth-result {
  max-width: 32rem;
  padding: 2rem 1.5rem;
}

.oauth-result h1 {
  margin: 0.35rem 0 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .progress-track.indeterminate span {
    width: 100%;
    opacity: 0.45;
    transform: none;
  }
}
