:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --brand: #00aaa6;
  --brand-dark: #008d8a;
  --brand-soft: rgba(0, 170, 166, 0.12);
  --brand-tint: #e9faf8;
  --border: rgba(29, 29, 31, 0.1);
  --shadow: 0 18px 42px rgba(0, 94, 91, 0.08);
  --workspace-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    linear-gradient(135deg, rgba(0, 170, 166, 0.12), rgba(255, 255, 255, 0) 42%),
    var(--bg);
}

.auth-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 34px;
  line-height: 1.12;
}

.auth-card .lede {
  margin-bottom: 8px;
}

.auth-card button {
  width: 100%;
}

.auth-card button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.shell {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: var(--workspace-columns);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.hero > div,
.hero-guide,
.card,
.metric {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero > div:first-child {
  padding: 28px 32px;
  background: linear-gradient(135deg, #fff 0%, #fbfbfd 62%, var(--brand-tint) 100%);
}

.hero-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.hero-panel strong {
  font-size: 22px;
}

.hero-panel span,
.lede,
.card p,
.message {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: 26px;
}

.lede {
  margin: 14px 0 0;
  font-size: 17px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.metric {
  padding: 22px 24px;
}

.metric span {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
}

.card {
  padding: 24px;
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: var(--workspace-columns);
  gap: 16px;
  align-items: start;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-stack .card {
  margin-bottom: 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 650;
  color: #3a3a3c;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.audience-scenario-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fbfbfd;
  color: var(--text);
  font: inherit;
}

.model-field {
  gap: 8px;
}

.model-field select,
.model-search {
  min-height: 44px;
}

.model-search {
  border-radius: 999px;
  padding-inline: 16px;
}

button,
.upload {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.upload input {
  display: none;
}

.message {
  min-height: 22px;
  font-size: 14px;
}

.message.error {
  color: #d70015;
}

.message.ok {
  color: var(--brand-dark);
}

.jobs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 650px;
  overflow-y: auto;
  padding-right: 4px;
}

.jobs::-webkit-scrollbar {
  width: 6px;
}

.jobs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 170, 166, 0.35);
}

.compact-jobs-card {
  padding: 20px;
}

.compact-card-head {
  margin-bottom: 12px;
}

.compact-card-head h2 {
  font-size: 24px;
}

.compact-card-head button {
  min-height: 38px;
  padding: 0 14px;
}

.compact-empty {
  min-height: 96px;
}

.check-list {
  display: grid;
  gap: 8px;
  max-height: 356px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfbfd;
}

.check-list.compact {
  max-height: 224px;
}

.context-toggles {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 2px 0;
}

.inline-toggle {
  width: auto;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.inline-toggle input {
  width: auto;
  margin: 0;
  accent-color: var(--brand);
}

.check-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.check-item:hover {
  background: var(--brand-tint);
  border-color: rgba(0, 170, 166, 0.24);
}

.check-item.selected {
  background: linear-gradient(135deg, rgba(0, 170, 166, 0.16), rgba(0, 170, 166, 0.08));
  border-color: rgba(0, 170, 166, 0.42);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 170, 166, 0.14);
}

.check-sign {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(29, 29, 31, 0.24);
  border-radius: 50%;
  color: transparent;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.check-item.selected .check-sign {
  border-color: #fff;
  background: var(--brand);
  color: #fff;
}

.check-empty {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 500;
}

.selection-card {
  background:
    radial-gradient(circle at 92% 0%, var(--brand-soft), transparent 13rem),
    #fff;
}

.selection-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.selection-summary div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbfd;
}

.selection-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.selection-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.selection-summary ul {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 14px 14px 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbfd;
  color: #3a3a3c;
}

.selection-summary li {
  margin: 4px 0;
}

.guide-card {
  background:
    radial-gradient(circle at 100% 0%, var(--brand-soft), transparent 13rem),
    #fff;
}

.hero-guide {
  padding: 28px;
  margin: 0;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.hero-guide .guide-steps {
  height: calc(100% - 48px);
  align-items: stretch;
}

.hero-guide .guide-steps div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-steps div {
  padding: 14px;
  border-radius: 18px;
  background: #fbfbfd;
  border: 1px solid var(--border);
}

.guide-steps span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.guide-steps strong,
.guide-steps small {
  display: block;
}

.guide-steps strong {
  margin-top: 10px;
}

.guide-steps small {
  margin-top: 4px;
  color: var(--muted);
}

.empty-state {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(29, 29, 31, 0.16);
  border-radius: 22px;
  background: #fbfbfd;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  color: var(--text);
  font-size: 22px;
}

.job {
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fbfbfd;
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.job-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-time {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  height: 7px;
  margin: 8px 0;
  border-radius: 999px;
  background: #e8e8ed;
  overflow: hidden;
}

.progress > div {
  height: 100%;
  background: var(--brand);
}

.variant {
  margin-top: 12px;
  white-space: pre-wrap;
  color: #3a3a3c;
  font-size: 14px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.download-link,
.load-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.load-result {
  margin-right: 8px;
}

.result-card {
  scroll-margin-top: 24px;
}

.result-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.result-tab {
  min-height: 42px;
  border: 1px solid var(--border);
  background: #fbfbfd;
  color: var(--text);
}

.result-tab.active {
  border-color: rgba(0, 170, 166, 0.42);
  background: var(--brand-tint);
  color: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(0, 170, 166, 0.12);
}

.result-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 700;
}

.script-markdown {
  color: #2c2c2e;
  line-height: 1.65;
}

.script-markdown p {
  margin: 10px 0;
}

.script-markdown h3 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.script-markdown ul {
  margin: 8px 0 16px;
  padding-left: 24px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.table-wrap table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap th,
.table-wrap td {
  max-width: 260px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
}

.table-wrap th {
  position: sticky;
  top: 0;
  background: var(--brand-tint);
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.table-wrap td {
  background: #fff;
}

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

.media-panel {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid rgba(0, 170, 166, 0.18);
  border-radius: 18px;
  background: #fbfbfd;
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
}

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

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-head h3 {
  margin: 0;
  font-size: 18px;
}

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

.product-image-upload {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.product-image-upload input {
  display: none;
}

.product-image-preview {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.product-image-preview.empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: var(--muted);
  font-weight: 700;
}

.product-image-preview .storyboard-image-placeholder {
  min-height: 150px;
}

.product-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  padding: 12px;
}

.product-image-thumb {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.product-image-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 170, 166, 0.16);
}

.product-image-thumb .storyboard-image,
.product-image-thumb .storyboard-image-placeholder {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.product-image-thumb .storyboard-image-placeholder {
  display: grid;
  place-items: center;
  padding: 8px;
  background: #f5f5f7;
  color: var(--muted);
  font-size: 12px;
}

.product-image-thumb span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-thumb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-image-thumb span.product-image-thumb-actions {
  overflow: visible;
}

.product-image-thumb-actions span {
  min-width: 0;
}

.product-image-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.72);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.22);
}

.product-image-delete:hover,
.product-image-delete:focus-visible {
  background: #c81e1e;
  outline: none;
}

.media-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.storyboard-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.storyboard-head {
  margin-bottom: 16px;
}

.storyboard-head h3 {
  margin: 0;
  font-size: 24px;
}

.storyboard-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.storyboard-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.storyboard-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 170, 166, 0.12), transparent 9rem),
    #fbfbfd;
}

.storyboard-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.storyboard-card h4 {
  margin: 12px 0 6px;
  font-size: 20px;
}

.storyboard-feature {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.storyboard-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.storyboard-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.storyboard-card dd {
  margin: 3px 0 0;
  color: #2c2c2e;
}

.storyboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.storyboard-generate {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(0, 170, 166, 0.16);
}

.storyboard-generate:disabled {
  cursor: progress;
  opacity: 0.78;
}

.storyboard-video-refresh {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.storyboard-video-slot {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 170, 166, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}

.storyboard-video-slot.empty,
.storyboard-video-slot.loading,
.storyboard-video-slot.error {
  padding: 14px;
}

.storyboard-video-slot.loading {
  display: grid;
  gap: 4px;
  color: var(--brand-dark);
  background: var(--brand-tint);
}

.storyboard-video-slot.error {
  color: #d70015;
  background: #fff2f2;
  border-color: rgba(215, 0, 21, 0.18);
}

.storyboard-video-slot.ready {
  padding: 12px;
}

.storyboard-video-slot .download-link {
  margin-top: 10px;
}

.storyboard-image-slot {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 170, 166, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}

.storyboard-image-slot.empty,
.storyboard-image-slot.loading,
.storyboard-image-slot.error,
.storyboard-image-placeholder {
  padding: 14px;
}

.storyboard-image-slot.loading {
  color: var(--brand-dark);
  background: var(--brand-tint);
}

.storyboard-image-slot.error {
  color: #d70015;
  background: #fff2f2;
  border-color: rgba(215, 0, 21, 0.18);
}

.storyboard-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f5f5f7;
  cursor: zoom-in;
}

.storyboard-image-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.storyboard-card details {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(0, 170, 166, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.storyboard-card summary {
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
}

.storyboard-card details p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.preview-open {
  overflow: hidden;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.image-preview-modal.hidden {
  display: none;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
  cursor: zoom-out;
}

.image-preview-panel {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 92vh;
  display: grid;
  place-items: center;
}

.image-preview-panel img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 10px;
  background: #f5f5f7;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

.image-preview-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.competitor-card {
  scroll-margin-top: 24px;
}

.competitor-form {
  gap: 14px;
}

.competitor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-head.compact {
  margin-top: 22px;
}

.card-head.compact h3 {
  margin: 0;
  font-size: 24px;
}

.competitor-discovery {
  margin-top: 14px;
}

.discovery-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}

.discovery-head strong {
  color: var(--text);
}

.asin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asin-chip {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 170, 166, 0.26);
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--text);
  gap: 8px;
}

.asin-chip strong,
.asin-chip span {
  display: block;
  line-height: 1.1;
}

.asin-chip span {
  color: var(--muted);
  font-size: 12px;
}

.competitor-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.competitor-assets.compact {
  grid-template-columns: 1fr;
}

.competitor-asset {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbfd;
}

.competitor-asset img,
.asset-image-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.asset-image-empty {
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.asset-image-empty strong,
.asset-image-empty span {
  display: block;
}

.asset-meta,
.asset-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.competitor-asset h4 {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.25;
}

.competitor-asset p {
  margin: 0 0 10px;
  color: #3a3a3c;
  font-size: 13px;
  line-height: 1.5;
}

.asset-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.asset-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.asset-foot {
  justify-content: space-between;
  align-items: center;
}

.asset-foot a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.empty-state.small {
  min-height: 96px;
}

.empty-state.small strong {
  font-size: 18px;
}

.competitor-report {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.video-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.video-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.video-head h3 {
  margin: 0;
  font-size: 24px;
}

.video-head p,
.video-cost {
  margin: 8px 0 0;
  color: var(--muted);
}

.video-section label {
  margin-bottom: 14px;
}

.video-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

button.secondary {
  background: #fbfbfd;
  color: var(--brand-dark);
  border: 1px solid rgba(0, 170, 166, 0.32);
}

.video-jobs {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.video-job {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbfd;
}

.video-preview {
  display: block;
  width: 100%;
  max-height: 420px;
  margin: 12px 0;
  border-radius: 16px;
  background: #111;
}

@media (max-width: 980px) {
  .hero,
  .grid,
  .metrics,
  .field-row,
  .selection-summary,
  .guide-steps,
  .job-tools,
  .media-grid,
  .storyboard-cards,
  .competitor-assets,
  .competitor-asset {
    grid-template-columns: 1fr;
  }
}
