.tvc-app {
  --tvc-red: #b5121b;
  --tvc-red-dark: #7d001f;
  --tvc-ink: #1f1d1c;
  --tvc-muted: #706a66;
  --tvc-line: #e6ded7;
  --tvc-soft: #f7f5f2;
  --tvc-cream: #fffdf9;
  --tvc-green: #1d7b55;
  --tvc-gold: #8b641e;
  width: min(1480px, calc(100vw - 28px));
  max-width: 100%;
  margin: 0 auto 42px;
  color: var(--tvc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tvc-app *,
.tvc-app *::before,
.tvc-app *::after {
  box-sizing: border-box;
}

.tvc-shell {
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--tvc-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 29, 28, .08);
}

.tvc-app h2,
.tvc-app h3,
.tvc-app p {
  letter-spacing: 0;
}

.tvc-topbar,
.tvc-topbar-actions,
.tvc-form-head,
.tvc-section-head,
.tvc-workflow,
.tvc-workflow-actions {
  display: flex;
  align-items: center;
}

.tvc-topbar {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tvc-line);
}

.tvc-kicker {
  margin: 0 0 4px;
  color: var(--tvc-red-dark);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 850;
}

.tvc-topbar h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
}

.tvc-topbar-actions,
.tvc-workflow-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tvc-primary,
.tvc-secondary,
.tvc-danger,
.tvc-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.tvc-primary:disabled,
.tvc-secondary:disabled,
.tvc-danger:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.tvc-primary {
  background: var(--tvc-red);
  color: #fff;
  border-color: var(--tvc-red);
}

.tvc-app .tvc-primary:hover,
.tvc-app .tvc-primary:focus-visible {
  background: var(--tvc-red-dark);
  border-color: var(--tvc-red-dark);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(181, 18, 27, .13);
}

.tvc-primary:focus {
  outline: none;
}

.tvc-secondary,
.tvc-tabs button {
  background: #fff;
  color: var(--tvc-ink);
  border-color: var(--tvc-line);
}

.tvc-app .tvc-secondary:hover,
.tvc-app .tvc-secondary:focus-visible {
  background: #fff8f8;
  border-color: rgba(181, 18, 27, .34);
  color: var(--tvc-red-dark);
  box-shadow: 0 0 0 3px rgba(181, 18, 27, .1);
}

.tvc-secondary:focus {
  outline: none;
}

.tvc-secondary:active {
  background: #fff1f1;
}

.tvc-danger {
  background: #fff;
  color: var(--tvc-red-dark);
  border-color: rgba(181, 18, 27, .34);
}

.tvc-app .tvc-danger:hover,
.tvc-app .tvc-danger:focus-visible {
  background: #fff2f2;
  color: var(--tvc-red-dark);
  border-color: rgba(181, 18, 27, .5);
  box-shadow: 0 0 0 3px rgba(181, 18, 27, .1);
}

.tvc-tabs button:focus {
  outline: none;
}

.tvc-tabs button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .42);
}

.tvc-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin: 16px 0;
  padding: 8px;
  border: 1px solid rgba(125, 0, 31, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(125, 0, 31, .98), rgba(52, 25, 27, .96));
  box-shadow: 0 16px 42px rgba(125, 0, 31, .16);
}

.tvc-tabs button {
  display: grid;
  justify-items: start;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  text-align: left;
  color: rgba(255, 255, 255, .84);
  background: transparent;
  border-color: transparent;
}

.tvc-app .tvc-tabs button:hover,
.tvc-app .tvc-tabs button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--tvc-red-dark);
  box-shadow: 0 10px 24px rgba(31, 29, 28, .12);
}

.tvc-app .tvc-tabs button:hover span,
.tvc-app .tvc-tabs button:focus-visible span {
  color: var(--tvc-red-dark);
}

.tvc-tabs button span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .66);
  font-size: 11px;
  font-weight: 650;
}

.tvc-tabs button.is-active {
  background: #fff;
  color: var(--tvc-red-dark);
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(31, 29, 28, .12);
}

.tvc-tabs button.is-active:hover,
.tvc-tabs button.is-active:focus-visible {
  background: #fff;
  color: var(--tvc-red-dark);
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(31, 29, 28, .12), 0 0 0 2px rgba(255, 255, 255, .42);
}

.tvc-tabs button.is-active span {
  color: var(--tvc-red-dark);
}

.tvc-status {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--tvc-line);
  border-radius: 7px;
  background: #fff;
  font-weight: 740;
}

.tvc-status.is-visible {
  display: block;
}

.tvc-status[data-type="success"] {
  border-color: rgba(29, 123, 85, .24);
  background: #effaf5;
  color: var(--tvc-green);
}

.tvc-status[data-type="error"] {
  border-color: rgba(181, 18, 27, .24);
  background: #fff2f2;
  color: var(--tvc-red);
}

.tvc-panel[hidden] {
  display: none !important;
}

.tvc-panel.is-active {
  display: block;
}

.tvc-metrics,
.tvc-grid,
.tvc-form-grid {
  display: grid;
  gap: 12px;
}

.tvc-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 14px 0;
}

.tvc-metrics article,
.tvc-band,
.tvc-form,
.tvc-workflow,
.tvc-result,
.tvc-access-denied {
  border: 1px solid var(--tvc-line);
  border-radius: 8px;
  background: #fff;
}

.tvc-metrics article {
  padding: 16px;
  background: var(--tvc-soft);
}

.tvc-metrics strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.tvc-metrics span,
.tvc-muted,
.tvc-list span,
.tvc-list small,
.tvc-panel p,
.tvc-section-head p,
.tvc-form-head p,
.tvc-workflow p {
  color: var(--tvc-muted);
  font-size: 13px;
}

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

.tvc-band,
.tvc-form,
.tvc-workflow {
  padding: 16px;
}

.tvc-band h3,
.tvc-form h3,
.tvc-workflow h3,
.tvc-anaf-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.tvc-band p,
.tvc-form p,
.tvc-workflow p,
.tvc-anaf-card p {
  margin: 0;
}

.tvc-section-head,
.tvc-form-head,
.tvc-workflow {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tvc-workflow {
  margin: 14px 0;
  background: linear-gradient(180deg, #fff, #fbf7f3);
}

.tvc-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tvc-form-subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--tvc-line);
}

.tvc-form-subhead h4 {
  margin: 0;
  color: var(--tvc-ink);
  font-size: 15px;
  line-height: 1.25;
}

.tvc-form-subhead p {
  margin: 3px 0 0;
  color: var(--tvc-muted);
  font-size: 12px;
}

.tvc-form-grid--single {
  grid-template-columns: 1fr;
}

.tvc-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 780;
  color: var(--tvc-muted);
}

.tvc-form input,
.tvc-form select,
.tvc-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--tvc-line);
  border-radius: 7px;
  padding: 9px 11px;
  background: #fff;
  color: var(--tvc-ink);
  font: inherit;
  font-weight: 650;
}

.tvc-form textarea {
  min-height: 88px;
  resize: vertical;
}

.tvc-span-2 {
  grid-column: span 2;
}

.tvc-check {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--tvc-line);
  border-radius: 7px;
}

.tvc-check input {
  width: auto;
  min-height: 0;
}

.tvc-list {
  display: grid;
  gap: 10px;
}

.tvc-list article,
.tvc-work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border-radius: 7px;
  background: var(--tvc-soft);
}

.tvc-list article > div,
.tvc-work-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tvc-list strong,
.tvc-work-item strong {
  overflow-wrap: anywhere;
}

.tvc-work-item {
  border-left: 4px solid var(--tvc-green);
}

.tvc-work-item--warning {
  border-left-color: var(--tvc-gold);
}

.tvc-work-item--danger {
  border-left-color: var(--tvc-red);
}

.tvc-request-card {
  border: 1px solid rgba(116, 105, 96, .16);
  align-items: flex-start;
}

.tvc-request-card em {
  color: var(--tvc-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.tvc-request-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 280px;
}

.tvc-request-card__actions > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(181, 18, 27, .18);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--tvc-red-dark);
  font-weight: 780;
}

.tvc-request-card__actions .tvc-primary,
.tvc-request-card__actions .tvc-secondary,
.tvc-request-card__actions .tvc-danger {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.tvc-request-editor {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(181, 18, 27, .16);
  border-radius: 8px;
  background: #fffdfb;
}

.tvc-request-editor[hidden] {
  display: none;
}

.tvc-request-editor h4,
.tvc-request-editor p {
  margin: 0;
}

.tvc-request-editor h4 {
  font-size: 15px;
  line-height: 1.25;
}

.tvc-request-editor p {
  color: var(--tvc-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tvc-request-editor label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--tvc-muted);
  font-size: 12px;
  font-weight: 780;
}

.tvc-request-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.tvc-notice {
  margin-top: 14px;
  border-left: 4px solid var(--tvc-red);
  padding: 12px 14px;
  background: #fff5f4;
  color: #5d2526;
  font-weight: 750;
}

.tvc-secure-note {
  min-height: 42px;
  border: 1px solid rgba(139, 100, 30, .26);
  border-radius: 7px;
  padding: 11px 12px;
  background: #fffaf0;
  color: #6e511a;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.tvc-secure-note[hidden] {
  display: none;
}

.tvc-result {
  margin: 14px 0 0;
  padding: 0;
  overflow: hidden;
}

.tvc-result[hidden] {
  display: none !important;
}

.tvc-anaf-card {
  padding: 16px;
}

.tvc-anaf-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.tvc-anaf-card dl div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--tvc-line);
  border-radius: 7px;
  background: var(--tvc-soft);
}

.tvc-anaf-card dt {
  color: var(--tvc-muted);
  font-size: 12px;
  font-weight: 760;
}

.tvc-anaf-card dd {
  margin: 4px 0 0;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.tvc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

.tvc-pill--ok {
  border: 1px solid rgba(29, 123, 85, .22);
  background: #effaf5;
  color: var(--tvc-green);
}

.tvc-pill--danger {
  border: 1px solid rgba(181, 18, 27, .24);
  background: #fff2f2;
  color: var(--tvc-red);
}

.tvc-inline-pill {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
  min-height: 24px;
  border: 1px solid rgba(181, 18, 27, .18);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff8f8;
  color: var(--tvc-red-dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 820;
}

.tvc-assist-note {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 100, 30, .24);
  border-radius: 7px;
  background: #fffaf0;
  color: #4a3824;
}

.tvc-assist-note strong {
  color: var(--tvc-gold);
  font-size: 13px;
}

.tvc-assist-note span {
  color: var(--tvc-muted);
  font-size: 13px;
  line-height: 1.42;
}

.tvc-ifep-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fffdfa);
}

.tvc-ifep-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.tvc-ifep-card dl div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--tvc-line);
  border-radius: 7px;
  background: var(--tvc-soft);
}

.tvc-ifep-card dt {
  color: var(--tvc-muted);
  font-size: 12px;
  font-weight: 760;
}

.tvc-ifep-card dd {
  margin: 4px 0 0;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.tvc-ifep-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(181, 18, 27, .2);
  border-radius: 7px;
  background: #fff5f4;
}

.tvc-ifep-warning strong {
  color: var(--tvc-red-dark);
  font-size: 13px;
}

.tvc-ifep-warning span {
  color: #5d2526;
  font-size: 13px;
  line-height: 1.42;
}

.tvc-next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tvc-next-steps article {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--tvc-line);
  border-radius: 7px;
  background: #fff;
}

.tvc-next-steps article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tvc-red-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.tvc-next-steps strong,
.tvc-next-steps small {
  display: block;
}

.tvc-next-steps strong {
  font-size: 13px;
}

.tvc-next-steps small {
  margin-top: 3px;
  color: var(--tvc-muted);
  font-size: 12px;
  line-height: 1.4;
}

.tvc-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tvc-upload-package {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(29, 123, 85, .18);
  border-radius: 7px;
  background: #fbfffd;
}

.tvc-upload-package h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.tvc-upload-documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tvc-upload-documents article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--tvc-line);
  border-radius: 7px;
  background: #fff;
}

.tvc-upload-documents strong {
  font-size: 13px;
}

.tvc-upload-documents small {
  color: var(--tvc-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tvc-upload-documents span {
  justify-self: start;
  border: 1px solid rgba(29, 123, 85, .18);
  border-radius: 999px;
  padding: 3px 8px;
  background: #effaf5;
  color: var(--tvc-green);
  font-size: 11px;
  font-weight: 820;
}

.tvc-upload-checklist {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #4a4642;
  font-size: 13px;
  line-height: 1.42;
}

.tvc-access-denied {
  padding: 18px;
  background: #fff8f2;
  color: var(--tvc-red-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .tvc-grid--2,
  .tvc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tvc-app {
    width: min(100%, calc(100vw - 12px));
    overflow-x: clip;
  }

  .tvc-app *,
  .tvc-shell,
  .tvc-topbar,
  .tvc-tabs,
  .tvc-panel,
  .tvc-form,
  .tvc-band {
    min-width: 0;
  }

  .tvc-shell {
    padding: 14px;
  }

  .tvc-topbar,
  .tvc-form-head,
  .tvc-form-subhead,
  .tvc-workflow {
    align-items: stretch;
    flex-direction: column;
  }

  .tvc-topbar h2 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .tvc-topbar-actions,
  .tvc-workflow-actions {
    width: 100%;
    justify-content: stretch;
  }

  .tvc-topbar-actions .tvc-secondary {
    width: auto;
    flex: 1 1 0;
  }

  .tvc-topbar-actions .tvc-primary {
    width: 100%;
  }

  .tvc-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tvc-tabs button {
    flex: 0 0 142px;
    scroll-snap-align: start;
  }

  .tvc-primary,
  .tvc-secondary,
  .tvc-danger {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .tvc-metrics,
  .tvc-grid--2,
  .tvc-form-grid,
  .tvc-form-grid--single,
  .tvc-anaf-card dl,
  .tvc-ifep-card dl,
  .tvc-next-steps,
  .tvc-upload-documents {
    grid-template-columns: 1fr;
  }

  .tvc-inline-pill {
    margin: 6px 0 0;
  }

  .tvc-ifep-warning,
  .tvc-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tvc-span-2 {
    grid-column: auto;
  }

  .tvc-list article,
  .tvc-work-item {
    align-items: stretch;
    flex-direction: column;
  }

  .tvc-request-card__actions {
    justify-content: stretch;
    min-width: 0;
    width: 100%;
  }

  .tvc-request-card__actions > span,
  .tvc-request-card__actions .tvc-secondary,
  .tvc-request-card__actions .tvc-danger {
    width: 100%;
  }

  .tvc-request-editor {
    grid-template-columns: 1fr;
  }
}
