body {
  background:
    radial-gradient(circle at 100% 0, rgba(94, 168, 149, 0.16), transparent 34rem),
    #eeece5;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 28px 20px;
  color: white;
  background:
    radial-gradient(circle at 20% 10%, rgba(74, 136, 119, 0.26), transparent 18rem),
    #16201f;
}

.internal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.internal-brand .brand-mark {
  color: var(--ink);
  background: #f7f2e8;
}

.internal-brand strong,
.internal-brand small {
  display: block;
}

.internal-brand strong {
  font-size: 16px;
}

.internal-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 54px;
}

.side-nav button {
  position: relative;
  display: grid;
  min-height: 50px;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  text-align: left;
  font-weight: 750;
}

.side-nav button.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.side-nav i {
  display: none;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: white;
  background: var(--red);
  font-size: 10px;
  font-style: normal;
  line-height: 22px;
  text-align: center;
}

.sidebar-foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
}

.sidebar-foot > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.native-app .sidebar-foot > a {
  display: none;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: #f7f2e8;
  font-weight: 900;
}

.staff-card strong,
.staff-card small {
  display: block;
}

.staff-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.mobile-header,
.internal-bottom-nav {
  display: none;
}

.sidebar-logout {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: rgba(255,255,255,.68);
  background: transparent;
}

.invite-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr); gap: 18px; }
.invite-form { display: grid; align-content: start; gap: 16px; }
.invite-created {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center;
  margin-bottom: 18px; padding: 18px; border-radius: 16px; color: white; background: var(--ink);
}
.invite-created span { color: rgba(255,255,255,.7); font-size: 12px; }
.invite-created strong { grid-column: 1; color: #d7ff3f; font: 800 22px ui-monospace, monospace; letter-spacing: .08em; }
.invite-created .btn { grid-column: 2; grid-row: 1 / span 2; }
.invite-list { display: grid; gap: 10px; }
.invite-row {
  display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .7fr) auto auto;
  gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.invite-row > div { display: grid; gap: 4px; }
.invite-row small { color: var(--muted); }

@media (max-width: 900px) {
  .invite-layout { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .invite-row { grid-template-columns: 1fr auto; }
  .invite-created { grid-template-columns: 1fr; }
  .invite-created .btn { grid-column: 1; grid-row: auto; }
}

.workspace-main {
  min-width: 0;
  padding: 48px clamp(28px, 4vw, 64px) 80px;
}

.workspace-view {
  display: none;
  max-width: 1400px;
  margin: 0 auto;
}

.workspace-view.active {
  display: block;
  animation: view-in 240ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(7px); }
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

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

.notification-button {
  position: relative;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.75);
  font-weight: 800;
}

.notification-button i {
  position: absolute;
  top: -6px;
  right: -6px;
  display: none;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-size: 10px;
  font-style: normal;
}

.activity-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin: -18px 0 18px;
  padding: 10px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.64);
}

.activity-label {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.activity-items {
  display: flex;
  gap: 24px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.topbar.compact {
  margin-bottom: 25px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.topbar p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.metric-card {
  display: grid;
  min-height: 174px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.metric-card.featured {
  color: white;
  border-color: transparent;
  background: var(--ink);
}

.metric-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card.featured > span,
.metric-card.featured > small {
  color: rgba(255, 255, 255, 0.6);
}

.metric-card strong {
  align-self: end;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card small {
  margin-top: 7px;
  color: var(--muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.panel,
.sample-table-wrap {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

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

.panel-head h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.text-btn {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.compact-list {
  display: grid;
}

.compact-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.compact-request:first-child {
  border-top: 0;
}

.compact-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--jade);
  background: #e1f1ec;
  font-weight: 850;
}

.compact-request strong,
.compact-request small {
  display: block;
}

.compact-request small {
  margin-top: 4px;
  color: var(--muted);
}

.signal-list {
  display: grid;
  gap: 17px;
}

.signal-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.signal-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-item span {
  color: var(--muted);
  font-size: 12px;
}

.signal-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #e4e3dc;
}

.signal-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade), #69b99f);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.filter-row .chip {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
}

.filter-row .history-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  color: #fff;
  background: #16201f;
}

.filter-row .history-toggle span {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  margin-left: 4px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #16201f;
  background: #fff;
  font-size: 11px;
}

.filter-row .history-toggle.active {
  color: #fff;
  background: var(--jade);
}

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

.request-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.request-card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background: #d9ddd8;
}

.request-card .request-progress-stars { margin: 14px 0; }

.internal-category-strip {
  display: flex;
  overflow-x: auto;
  gap: 9px;
  margin: -10px 0 20px;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

.internal-category-strip::-webkit-scrollbar { display: none; }

.internal-category-strip .chip {
  flex: none;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .78);
}

.internal-category-strip .chip.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.internal-category-strip .category-add-chip {
  border-style: dashed;
  color: var(--jade);
  background: #eef8f4;
}

.category-chip-group {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
}

.category-delete-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(183, 54, 46, .2);
  border-radius: 50%;
  color: #a92f29;
  background: #fff0ee;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.category-delete-button:hover {
  border-color: #b7362e;
  color: #fff;
  background: #b7362e;
}

.request-card-cover .cover-image,
.request-card-cover .generated-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-cover-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.request-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
}

.request-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.request-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 7px;
}

.video-type {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.type-mixed {
  color: #654109;
  background: #f8e5b8;
}

.type-full {
  color: #153c34;
  background: #d8eee7;
}

.type-workflow {
  color: #3d2b70;
  background: #e5ddf7;
}

.readonly-value {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f1f0eb;
}

.field > small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.rights-panel {
  margin-bottom: 16px;
}

.entitlement-token-list,
.internal-rights-summary,
.account-entitlements,
.entitlement-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.entitlement-token {
  display: inline-grid;
  min-width: 56px;
  min-height: 42px;
  place-items: center;
  padding: 0 13px;
  border-radius: 12px;
  color: white;
  background: var(--ink);
  font-weight: 900;
}

.entitlement-request-list {
  display: grid;
}

.entitlement-request-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  border-top: 1px solid var(--line);
}

.entitlement-request-row:first-child {
  border-top: 0;
}

.entitlement-request-row > div:first-child {
  display: grid;
  gap: 4px;
}

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

.inline-actions {
  display: flex;
  gap: 7px;
}

.compact-empty {
  min-height: 80px;
}

.account-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.account-filter-row .chip {
  min-height: 38px;
  border: 0;
}

.account-list {
  display: grid;
  gap: 12px;
}

.account-row {
  display: grid;
  gap: 17px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}

.account-row.inactive {
  opacity: .66;
}

.account-row-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
}

.account-row-head > div {
  display: grid;
  gap: 3px;
}

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

.account-role {
  display: grid;
  min-width: 50px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--jade);
  background: #e0eee9;
  font-size: 11px;
  font-weight: 900;
}

.entitlement-check {
  cursor: pointer;
}

.entitlement-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.entitlement-check span {
  display: grid;
  min-width: 52px;
  min-height: 38px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f1f0ea;
  font-weight: 850;
}

.entitlement-check input:checked + span {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.account-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.compact-input {
  width: min(260px, 100%);
  margin-right: auto;
}

.entitlement-fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.entitlement-fieldset legend {
  padding: 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-modal {
  width: min(620px, calc(100% - 28px));
}

.notification-list {
  display: grid;
  max-height: min(62vh, 620px);
  overflow-y: auto;
}

.notification-item {
  padding: 16px 2px;
  border-top: 1px solid var(--line);
}

.notification-item:first-child {
  border-top: 0;
}

.notification-item > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.notification-item p,
.notification-item small {
  color: var(--muted);
}

.notification-item p {
  margin: 7px 0 0;
}

.notification-item.unread strong::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

@media (max-width: 780px) {
  .entitlement-request-row {
    grid-template-columns: 1fr auto;
  }

  .entitlement-request-row .inline-actions {
    grid-column: 1 / -1;
  }

  .account-row-actions {
    flex-wrap: wrap;
  }

  .compact-input {
    width: 100%;
  }

  .activity-items span:not(:first-child) {
    display: none;
  }
}

.priority {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.priority-urgent {
  color: var(--red);
}

.priority-high {
  color: #a35b00;
}

.request-card h3 {
  margin: 7px 0 12px;
  overflow: hidden;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-card-kicker {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.request-customer-update {
  display: grid;
  gap: 4px;
  min-height: 66px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--jade);
  border-radius: 10px;
  color: #25443d;
  background: #e4f3ed;
}

.request-customer-update span {
  color: var(--jade);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.request-customer-update strong {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.request-status-note {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.request-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.request-meta div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0efe9;
}

.request-meta span {
  color: var(--muted);
  font-size: 10px;
}

.request-meta strong {
  font-size: 13px;
}

.request-card .btn {
  width: 100%;
  margin-top: auto;
  min-height: 42px;
}

.sample-table-wrap {
  padding: 0;
  overflow: hidden;
}

.internal-sample-grid {
  padding: 18px;
  background: transparent;
}

.internal-sample-grid > #internal-sample-list,
.internal-sample-grid > #downlisted-sample-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.internal-sample-card.is-downlisted .internal-sample-cover {
  filter: saturate(.72);
}

.internal-sample-card.is-downlisted .internal-sample-category {
  color: #a92f29;
}

.internal-sample-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
}

.internal-sample-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #d9ddd8;
  cursor: pointer;
}

.internal-sample-cover .cover-image,
.internal-sample-cover .generated-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.internal-sample-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(22, 32, 31, .78);
  font-size: 12px;
}

.internal-sample-likes {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 32, 31, .78);
  box-shadow: 0 4px 14px rgba(22, 32, 31, .18);
  font-size: 11px;
  font-weight: 800;
}

.internal-sample-body {
  padding: 14px;
}

.internal-sample-category,
.internal-sample-meta {
  color: var(--muted);
  font-size: 11px;
}

.internal-sample-title {
  display: block;
  width: 100%;
  margin: 7px 0 5px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.internal-sample-tags {
  display: flex;
  gap: 6px;
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.internal-sample-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.internal-sample-stats {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.sample-table-head,
.sample-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) 0.55fr 0.65fr 0.8fr;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
}

.sample-table-head {
  color: var(--muted);
  background: #e7e5de;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sample-row {
  min-height: 92px;
  border-top: 1px solid var(--line);
}

.sample-row:first-child {
  border-top: 0;
}

.sample-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.sample-thumb {
  width: 86px;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.sample-thumb .generated-cover {
  padding: 10px;
}

.sample-thumb .generated-cover strong {
  font-size: 12px;
}

.sample-info strong,
.sample-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-info small {
  margin-top: 4px;
  color: var(--muted);
}

.sample-feedback {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.sample-row-actions {
  display: flex;
  gap: 8px;
}

.sample-row-actions .btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.checkbox-field {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.drawer-shell {
  position: fixed;
  z-index: 850;
  inset: 0;
  display: none;
  justify-content: flex-end;
  background: rgba(9, 18, 16, 0.42);
  backdrop-filter: blur(8px);
}

.drawer-shell.open {
  display: flex;
}

.request-drawer {
  position: relative;
  width: min(580px, 100%);
  height: 100%;
  overflow: auto;
  padding: 32px;
  background: var(--surface-solid);
  box-shadow: -25px 0 80px rgba(7, 16, 14, 0.24);
}

.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
}

.drawer-title {
  padding-right: 60px;
}

.drawer-title h2 {
  margin: 8px 0;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.drawer-title > p:last-child {
  color: var(--muted);
}

.drawer-sample {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  padding: 12px;
  border-radius: 16px;
  background: #efede6;
}

.drawer-sample .sample-thumb {
  width: 108px;
}

.drawer-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.drawer-section h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.drawer-section > p {
  color: #46504d;
  line-height: 1.7;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.workflow-action-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #efede6;
}

.workflow-action-block > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.workflow-step {
  min-height: 42px;
}

.workflow-step:disabled {
  cursor: default;
  opacity: 0.45;
}

@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .sample-table-head {
    display: none;
  }

  .internal-sample-grid > #internal-sample-list,
  .internal-sample-grid > #downlisted-sample-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-row {
    grid-template-columns: 1fr auto;
  }

  .sample-row > :nth-child(2),
  .sample-row > :nth-child(3) {
    display: none;
  }
}

@media (max-width: 760px) {
  .workspace {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 500;
    left: 0;
    width: 260px;
    transform: translateX(-110%);
    transition: transform 200ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    color: white;
    background: rgba(22, 32, 31, 0.96);
  }

  .mobile-header .brand-mark {
    width: 38px;
    height: 38px;
  }

  .mobile-header .icon-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
  }

  .workspace-main {
    padding: 34px 16px 110px;
  }

  .filter-row .history-toggle {
    margin-left: 0;
  }

  .request-card {
    border-radius: 16px;
  }

  .request-card-content {
    padding: 12px;
  }

  .request-card h3 {
    font-size: 15px;
  }

  .request-meta {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 12px 0;
  }

  .internal-sample-grid {
    padding: 10px;
  }

  .internal-sample-grid > #internal-sample-list,
  .internal-sample-grid > #downlisted-sample-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    align-items: start;
  }

  .topbar .btn {
    width: 100%;
  }

  .metric-grid,
  .request-board {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 142px;
  }

  .internal-bottom-nav {
    position: fixed;
    z-index: 300;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    padding: 8px calc(8px + var(--safe-bottom));
    border-radius: 22px;
    background: rgba(22, 32, 31, 0.95);
    box-shadow: 0 18px 55px rgba(14, 24, 22, 0.3);
  }

  .internal-bottom-nav button {
    display: grid;
    min-height: 49px;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.46);
    background: transparent;
  }

  .internal-bottom-nav button.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  .internal-bottom-nav small {
    font-size: 10px;
  }

  .sample-row {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .sample-row-actions .btn {
    flex: 1;
  }

  .request-drawer {
    padding: 25px 18px calc(30px + var(--safe-bottom));
  }
}
