:root {
  --ink: #172033;
  --muted: #697386;
  --line: #d8dde8;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --side: #111827;
  --side-2: #1f2937;
  --blue: #1d4ed8;
  --cyan: #0891b2;
  --green: #15803d;
  --amber: #b45309;
  --red: #b91c1c;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  padding: 22px;
  color: #f8fafc;
  background: var(--side);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: #b7c1d4;
  font-size: 13px;
}

nav {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: var(--side-2);
}

.workflow-card {
  min-width: 0;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.workflow-card strong {
  display: block;
  margin: 7px 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.workflow-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 4px;
  font-size: clamp(26px, 4vw, 38px);
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 17px;
}

.tenant-pill {
  min-width: 210px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  gap: 9px;
}

.tenant-pill select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.status-dot.offline {
  background: var(--amber);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  margin-bottom: 18px;
}

.status-strip div {
  padding: 14px 16px;
  background: white;
}

.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.status-strip strong {
  font-size: 14px;
}

.workflow-progress {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #cbd7ea;
  border-radius: var(--radius);
  background: white;
}

.progress-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.progress-summary h2 {
  margin-top: 5px;
  font-size: 24px;
}

.progress-summary p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.progress-score {
  min-width: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  text-align: right;
}

.progress-score strong,
.progress-score span {
  display: block;
}

.progress-score strong {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.progress-score span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-meter {
  position: relative;
  height: 10px;
  margin: 18px 0 16px;
  border-radius: 999px;
  background: #e7edf6;
  overflow: hidden;
}

.progress-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 180ms ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(108px, 1fr));
  gap: 8px;
}

.progress-step {
  min-height: 94px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.progress-step.done {
  border-color: rgba(21, 128, 61, 0.3);
  background: #f0fdf4;
}

.progress-step.current {
  border-color: rgba(29, 78, 216, 0.48);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.12);
}

.progress-step.problem {
  border-color: rgba(185, 28, 28, 0.35);
  background: #fef2f2;
}

.progress-step.waiting {
  background: #f8fafc;
}

.progress-step span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #475569;
  background: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
}

.progress-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.progress-step.done span {
  color: white;
  background: var(--green);
}

.progress-step.current span {
  color: white;
  background: var(--blue);
}

.progress-step.problem span {
  color: white;
  background: var(--red);
}

.progress-step strong {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.25;
}

.progress-step small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.step-meter {
  position: relative;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.step-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 0;
  border-radius: inherit;
  background: #94a3b8;
  overflow: hidden;
  transition: width 180ms ease;
}

.progress-step.done .step-meter i,
.stage.done .step-meter i {
  background: var(--green);
}

.progress-step.current .step-meter i,
.stage.current .step-meter i {
  min-width: 28px;
  background: var(--blue);
}

.progress-step.problem .step-meter i {
  background: var(--red);
}

.step-meter.is-moving i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: step-shine 1.05s linear infinite;
}

.progress-step em,
.stage em {
  display: block;
  margin-top: 7px;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@keyframes step-shine {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}

.panel-heading {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-heading > div {
  min-width: 0;
}

.panel-heading h2,
.next-card h3 {
  overflow-wrap: anywhere;
}

.dashboard-panel {
  padding-bottom: 20px;
}

.sync-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #c8d4e7;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr) minmax(240px, 0.8fr);
  gap: 14px;
}

.next-card,
.job-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.next-card h3 {
  margin-top: 8px;
  font-size: 22px;
}

.next-card p {
  min-height: 48px;
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.next-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.job-details {
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.job-details div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.job-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.job-details dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 9px;
}

.check-list li {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
}

.check-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.check-list strong {
  text-align: right;
  font-size: 13px;
}

.check-list li.good {
  border-color: rgba(21, 128, 61, 0.28);
  background: #f0fdf4;
}

.check-list li.warn {
  border-color: rgba(180, 83, 9, 0.25);
  background: #fffbeb;
}

.job-queue {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.queue-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.queue-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.link-button {
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--blue);
  background: transparent;
  text-align: left;
  white-space: nowrap;
}

tr.selected-row td {
  background: #eff6ff;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label,
fieldset {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

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

.segmented-field {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.segmented-field legend {
  padding: 0 6px;
}

.segmented-field label {
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.segmented-field input {
  width: auto;
  min-height: auto;
}

.form-actions,
.table-actions,
.approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
  touch-action: manipulation;
}

.primary-button,
.approve-button {
  color: white;
  background: var(--blue);
}

.approve-button {
  background: var(--green);
}

.reject-button {
  color: white;
  background: var(--red);
}

.secondary-button,
.icon-button {
  color: var(--ink);
  background: #eef2f7;
  border-color: #dce3ee;
}

.icon-button {
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stage {
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafcff;
}

.stage.done {
  border-color: rgba(21, 128, 61, 0.3);
  background: #f0fdf4;
}

.stage.current {
  border-color: rgba(29, 78, 216, 0.45);
  background: #eff6ff;
}

.stage.waiting {
  border-color: rgba(180, 83, 9, 0.34);
  background: #fffbeb;
}

.stage span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stage strong {
  display: block;
  line-height: 1.25;
}

.stage p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.asset-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

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

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td strong {
  display: block;
  margin-bottom: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.badge.approved {
  background: #dcfce7;
  color: #166534;
}

.badge.waiting {
  background: #fef3c7;
  color: #92400e;
}

.badge.draft {
  background: #dbeafe;
  color: #1e40af;
}

.asset-panel {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.asset-panel h3 {
  margin: 6px 0 12px;
}

.broll-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.broll-item input {
  width: auto;
  min-height: auto;
  margin-top: 2px;
}

.file-drop {
  margin-top: 16px;
  min-height: 86px;
  padding: 12px;
  border: 1px dashed #aab4c5;
  border-radius: var(--radius);
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: #f8fafc;
}

.file-drop input {
  display: none;
}

.approval-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
}

.email-preview,
.revision-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.email-preview strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 18px;
}

.email-preview p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.hook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hook {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.hook span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

code {
  display: block;
  margin: 9px 0;
  color: #075985;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.hook p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 8px;
  color: white;
  background: var(--side);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.2);
  transform: translateY(90px);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1100px) {
.app-shell {
    grid-template-columns: 1fr;
    max-width: 100vw;
  }

  .sidebar {
    position: sticky;
    height: auto;
    top: 0;
    z-index: 20;
    width: 100%;
    max-width: 100vw;
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  nav {
    display: flex;
    flex: 1 1 360px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .workflow-card {
    width: 100%;
    margin-top: 0;
    padding: 12px 14px;
  }

  .status-strip,
  .hook-grid,
  .dashboard-grid,
  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-card {
    grid-column: span 2;
  }

  .asset-layout,
  .approval-grid {
    grid-template-columns: 1fr;
  }

  .asset-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 154px;
  }

  .workspace {
    padding: 14px;
  }

  .sidebar {
    padding: 12px 12px 10px;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    margin-top: 1px;
    font-size: 12px;
  }

  nav {
    order: 3;
    flex-basis: 100%;
    margin-inline: -2px;
    padding: 2px 2px 4px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .workflow-card {
    flex: 1 1 190px;
    width: auto;
    padding: 9px 11px;
  }

  .workflow-card strong {
    margin: 4px 0 0;
    font-size: 14px;
  }

  .workflow-card p {
    display: none;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .topbar h1 {
    font-size: 25px;
    line-height: 1.12;
  }

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

  .tenant-pill {
    min-width: 0;
    width: 100%;
    height: 48px;
  }

  .topbar-actions button,
  .next-actions button,
  .form-actions button,
  .table-actions button,
  .approval-actions button {
    width: 100%;
  }

  input,
  select,
  textarea,
  button {
    min-height: 48px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    background: transparent;
    overflow: visible;
    margin-bottom: 14px;
  }

  .status-strip div {
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .status-strip strong {
    display: block;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .request-grid,
  .hook-grid,
  .dashboard-grid,
  .progress-summary {
    grid-template-columns: 1fr;
  }

  .workflow-progress,
  .panel {
    padding: 14px;
    margin-bottom: 14px;
  }

  .progress-summary {
    gap: 12px;
  }

  .progress-summary h2 {
    font-size: 20px;
    line-height: 1.18;
  }

  .progress-summary p:not(.eyebrow) {
    font-size: 14px;
  }

  .progress-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    text-align: left;
  }

  .progress-score strong {
    font-size: 24px;
  }

  .progress-score span {
    margin-top: 0;
    text-align: right;
  }

  .progress-meter {
    margin: 15px 0 12px;
  }

  .progress-steps {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: minmax(214px, 78vw);
    grid-template-columns: none;
    gap: 9px;
    margin-inline: -4px;
    padding: 0 4px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }

  .progress-step {
    min-height: 104px;
    scroll-snap-align: start;
  }

  .panel-heading {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .next-card,
  .job-card,
  .email-preview,
  .revision-box,
  .hook {
    padding: 14px;
  }

  .next-card h3 {
    font-size: 20px;
  }

  .next-card {
    grid-column: span 1;
  }

  .next-card p {
    min-height: 0;
  }

  .next-actions,
  .form-actions,
  .table-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .approval-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .job-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .check-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .check-list strong {
    text-align: left;
  }

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

  .segmented-field {
    grid-template-columns: 1fr;
  }

  .stage-track {
    width: 100%;
    max-width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 82vw);
    grid-template-columns: none;
    margin-inline: -4px;
    padding: 0 4px 8px;
    scroll-snap-type: x mandatory;
  }

  .stage {
    min-height: 124px;
    scroll-snap-align: start;
  }

  .asset-table-wrap {
    overflow: visible;
  }

  .asset-table-wrap table,
  .asset-table-wrap thead,
  .asset-table-wrap tbody,
  .asset-table-wrap tr,
  .asset-table-wrap td {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .asset-table-wrap thead {
    display: none;
  }

  .asset-table-wrap tr {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
    overflow: hidden;
  }

  .asset-table-wrap tr.selected-row {
    border-color: rgba(29, 78, 216, 0.42);
  }

  .asset-table-wrap tr.selected-row td {
    background: #eff6ff;
  }

  .asset-table-wrap td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(76px, 0.36fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .asset-table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .asset-table-wrap td:last-child {
    border-bottom: 0;
  }

  .asset-table-wrap td[colspan] {
    display: block;
  }

  .asset-table-wrap td[colspan]::before {
    display: block;
    margin-bottom: 6px;
  }

  .link-button {
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .asset-panel {
    padding-top: 14px;
  }

  .file-drop {
    min-height: 76px;
  }

  .toast {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 430px) {
  html {
    scroll-padding-top: 174px;
  }

  .workspace {
    padding: 12px;
  }

  .status-strip,
  .approval-actions {
    grid-template-columns: 1fr;
  }

  .progress-steps {
    grid-auto-columns: minmax(248px, calc(100vw - 72px));
  }

  .stage-track {
    grid-auto-columns: minmax(248px, calc(100vw - 72px));
  }

  .progress-score {
    align-items: flex-start;
    flex-direction: column;
  }

  .progress-score span {
    text-align: left;
  }
}
