.ads-page {
  width: min(100%, 1180px);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 28px 28px 48px;
}

.ads-topbar {
  align-items: center;
}

.ads-ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(390px, 46vw);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 254 250 / 76%);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.ads-ai-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(118 164 28 / 12%);
}

.ads-ai-pill > span {
  min-width: 0;
}

.ads-ai-pill strong,
.ads-ai-pill small {
  display: block;
}

.ads-ai-pill strong {
  font-size: 10px;
}

.ads-ai-pill small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-ai-pill[data-status="error"] i {
  background: #d85148;
  box-shadow: 0 0 0 4px rgb(216 81 72 / 13%);
}

.ads-ai-pill[data-status="pending"] i {
  background: #d7932f;
  box-shadow: 0 0 0 4px rgb(215 147 47 / 13%);
}

.ads-connection-card,
.ads-form,
.ads-result,
.ads-history-section {
  border: 1px solid var(--line);
  background: rgb(255 254 250 / 90%);
  box-shadow: 0 14px 38px rgb(31 39 51 / 5%);
}

.ads-connection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 32px;
  padding: 28px;
  border-radius: 20px;
}

.ads-provider-error {
  grid-template-columns: 1fr;
}

.ads-connection-copy h2,
.ads-form-heading h2,
.ads-result-heading h2,
.ads-history-heading h2 {
  margin: 5px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.ads-connection-copy p {
  max-width: 610px;
  margin: 10px 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.ads-connection-copy a {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.ads-key-form {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: var(--paper);
}

.ads-secret-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.ads-secret-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(243 111 69 / 12%);
}

.dialog-field .ads-secret-input input {
  border: 0;
  box-shadow: none;
}

.ads-secret-input button {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 12px;
  background: transparent;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
}

.ads-key-form .primary-button {
  margin-top: 0;
}

.ads-block-heading button,
.ads-history-actions button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
}

.ads-history-actions .ads-history-delete {
  color: #a7372d;
}

.ads-builder {
  display: grid;
  gap: 18px;
}

.ads-form,
.ads-result,
.ads-history-section {
  padding: 24px;
  border-radius: 20px;
}

.ads-form-heading,
.ads-result-heading,
.ads-history-heading,
.ads-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ads-form-heading > div,
.ads-result-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ads-form-heading p,
.ads-block-heading p,
.ads-history-heading p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.ads-form-heading > span {
  color: var(--ink-soft);
  font-size: 9px;
}

.ads-field-status {
  margin-left: 3px;
  font-size: 0.72em;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.ads-field-optional {
  color: var(--ink-soft);
}

.ads-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.ads-field-grid .full-field {
  grid-column: 1 / -1;
}

.ads-creative-direction > small {
  margin-top: -4px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.ads-field-grid select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}

.ads-field-grid select:focus {
  border-color: var(--accent);
}

.ads-generate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ads-generate-bar strong,
.ads-generate-bar small {
  display: block;
}

.ads-generate-bar strong {
  font-size: 11px;
}

.ads-generate-bar small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.ads-generate-button {
  min-width: 180px;
  margin: 0;
  border-color: var(--success);
  background: var(--success);
  box-shadow: 0 8px 18px rgb(118 164 28 / 22%);
}

.ads-generate-button:hover:not(:disabled),
.ads-generate-button:focus-visible {
  border-color: #628a15;
  background: #628a15;
  box-shadow: 0 10px 22px rgb(98 138 21 / 27%);
}

.ads-generate-button span {
  margin-right: 5px;
}

body.ai-processing-open {
  overflow: hidden;
}

.ai-processing-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(21 32 51 / 38%);
  backdrop-filter: blur(5px);
}

.ai-processing-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 23px;
  background: rgb(255 254 250 / 96%);
  box-shadow: 0 28px 85px rgb(21 32 51 / 28%);
  text-align: center;
}

.ai-processing-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1;
}

.ai-processing-close:hover,
.ai-processing-close:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.ai-processing-spinner {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 3px solid rgb(243 111 69 / 18%);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ai-processing-spin 900ms linear infinite;
}

.ai-processing-spinner i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.ai-processing-spinner i:nth-child(1) {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.ai-processing-spinner i:nth-child(2) {
  right: 4px;
  bottom: 9px;
}

.ai-processing-spinner i:nth-child(3) {
  bottom: 9px;
  left: 4px;
}

.ai-processing-modal h2 {
  margin: 5px 0 7px;
  font-size: 23px;
  letter-spacing: -0.045em;
}

.ai-processing-modal > p {
  min-height: 38px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.ai-processing-elapsed {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-height: 0 !important;
  margin: 5px 0 0 !important;
}

.ai-processing-elapsed span {
  color: var(--ink-soft);
  font-size: 10px;
}

.ai-processing-elapsed strong {
  color: var(--success);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
}

.ai-processing-progress {
  height: 7px;
  margin: 20px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8df;
}

.ai-processing-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f49d52);
  transition: width 620ms ease;
}

.ai-processing-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.ai-processing-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  transition: 180ms ease;
}

.ai-processing-steps li::before {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: white;
  color: transparent;
  content: "✓";
  font-size: 10px;
  font-weight: 900;
}

.ai-processing-steps li.is-active {
  color: var(--ink);
  font-weight: 800;
}

.ai-processing-steps li.is-active::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(243 111 69 / 12%);
}

.ai-processing-steps li.is-complete::before {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.ai-processing-modal > small {
  display: block;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 10px;
}

@keyframes ai-processing-spin {
  to { transform: rotate(360deg); }
}

.ads-result {
  border-color: rgb(118 164 28 / 32%);
}

.ads-result-heading {
  align-items: center;
  margin-bottom: 16px;
}

.ads-result-heading .ghost-button {
  margin: 0;
}

.ads-result-block {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.ads-result-block h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.025em;
}

.ads-result-block > p,
.ads-long-copy {
  margin: 13px 0 0;
  color: #353e50;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
}

.ads-title-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ads-title-option {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.ads-title-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgb(243 111 69 / 10%);
}

.ads-title-option small {
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ads-title-option strong {
  font-size: 12px;
  line-height: 1.45;
}

.ads-title-option button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
}

.ads-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.ads-complete-description,
.ads-keywords-used {
  margin-top: 12px;
}

.ads-complete-description .ads-long-copy {
  font-size: 12px;
  line-height: 1.72;
}

.ads-result-block ul {
  display: grid;
  gap: 7px;
  margin: 13px 0 0;
  padding-left: 18px;
  color: #353e50;
  font-size: 11px;
  line-height: 1.5;
}

.ads-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.ads-keywords span {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 10px;
}

.ads-copy-all {
  display: block;
  margin: 16px 0 0 auto;
}

.ads-history-section {
  margin-bottom: 12px;
}

.ads-clear-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2px 0;
}

.ads-clear-bar small {
  color: var(--ink-soft);
  font-size: 9px;
}

.ads-clear-button {
  min-width: 112px;
}

.ads-clear-button span {
  margin-right: 4px;
  font-size: 15px;
  line-height: 0;
}

.ads-history-heading {
  align-items: flex-end;
  margin-bottom: 15px;
}

.ads-history-empty {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 11px;
  text-align: center;
}

.ads-history-list {
  display: grid;
  gap: 9px;
}

.ads-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.ads-history-item-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.ads-history-item-copy {
  min-width: 0;
}

.ads-history-thumbnails {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.ads-history-thumbnail {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper);
}

.ads-history-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.ads-history-thumbnail-more {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--lime);
  color: var(--nav);
  font-size: 9px;
  line-height: 1;
}

.ads-history-item strong,
.ads-history-item small {
  display: block;
}

.ads-history-item strong {
  font-size: 12px;
}

.ads-history-item small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.ads-history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ads-history-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 28px 85px rgb(21 32 51 / 28%);
}

.ads-history-dialog::backdrop {
  background: rgb(21 32 51 / 42%);
  backdrop-filter: blur(4px);
}

.ads-history-dialog form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.ads-history-dialog-heading,
.ads-history-editor-label,
.ads-history-dialog-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ads-history-dialog-heading h2 {
  margin: 5px 0 0;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.ads-history-dialog-heading p,
.ads-history-editor-label p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.ads-history-editor-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.ads-history-reference-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.ads-history-reference-loading {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.ads-history-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ads-history-reference-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.ads-history-reference-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #f6f3ed;
}

.ads-history-reference-card figcaption {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.ads-history-reference-card strong {
  color: var(--ink);
  font-size: 11px;
}

.ads-history-reference-card small {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.ads-history-reference-download {
  justify-self: start;
  margin-top: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.ads-history-reference-download:hover {
  border-color: var(--accent);
  background: white;
}

.ads-history-editor-label h3 {
  margin: 0;
  font-size: 14px;
}

.ads-history-editor-label button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 16px;
}

.ads-history-title-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ads-history-title-fields label,
.ads-history-keywords-field {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.ads-history-title-fields label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ads-history-title-fields button {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 13px;
}

.ads-history-dialog textarea,
.ads-history-dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.ads-history-dialog textarea:focus,
.ads-history-dialog input:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(243 111 69 / 12%);
}

.ads-history-description-field {
  min-height: 280px;
  margin-top: 14px;
  resize: vertical;
  white-space: pre-wrap;
}

.ads-history-keywords-field {
  padding: 0 2px;
}

.ads-history-dialog-actions {
  align-items: center;
}

.ads-history-dialog-actions .primary-button {
  margin: 0;
}

.ads-history-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.ads-history-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.ads-history-status.is-processing i {
  animation: ads-history-pulse 1s ease-in-out infinite;
}

.ads-history-status.is-failed {
  color: #a7372d;
}

.ads-history-status.is-failed i {
  background: #d85148;
}

@keyframes ads-history-pulse {
  50% { opacity: .35; transform: scale(.72); }
}

@media (max-width: 820px) {
  .ads-connection-card,
  .ads-field-grid,
  .ads-copy-grid {
    grid-template-columns: 1fr;
  }

  .ads-field-grid .full-field {
    grid-column: auto;
  }

  .ads-title-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ads-page {
    width: 100%;
    padding: 18px 14px 34px;
  }
  .ads-ai-pill {
    display: none;
  }

  .ads-connection-card,
  .ads-form,
  .ads-result,
  .ads-history-section {
    padding: 17px;
  }

  .ads-generate-bar,
  .ads-result-heading,
  .ads-history-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-generate-button,
  .ads-copy-all {
    width: 100%;
  }

  .ads-history-item {
    grid-template-columns: 1fr;
  }

  .ads-history-dialog form {
    padding: 18px;
  }

  .ads-history-dialog-heading,
  .ads-history-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-history-dialog-actions .ghost-button,
  .ads-history-dialog-actions .primary-button {
    width: 100%;
  }
}
.ads-vision-panel {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 19px;
  border: 1px solid rgb(118 164 28 / 42%);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgb(217 249 82 / 22%), transparent 34%),
    linear-gradient(135deg, #f8fbe9 0%, #fffef8 62%);
  box-shadow: 0 12px 30px rgb(78 108 22 / 9%);
}

.ads-vision-heading { display: flex; align-items: center; gap: 12px; }
.ads-vision-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--success); color: white; box-shadow: 0 8px 18px rgb(118 164 28 / 22%); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.ads-vision-heading .eyebrow { color: #5f8614; }
.ads-vision-heading h3 { margin: 0; font-size: 14px; }
.ads-vision-heading p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.ads-vision-capability { display: block; margin-top: 8px; color: #8b5a19; font-size: 10px; font-weight: 800; line-height: 1.45; }
.ads-vision-panel.is-text-only { border-color: rgb(215 147 47 / 48%); background: linear-gradient(135deg, #fff9ee 0%, #fffef8 62%); box-shadow: none; }
.ads-vision-panel.is-text-only .ads-vision-mark { background: #d7932f; box-shadow: 0 8px 18px rgb(215 147 47 / 22%); }
.ads-vision-panel.is-text-only .ads-vision-heading .eyebrow { color: #a66716; }
.ads-vision-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ads-upload-field { display: grid; align-content: start; gap: 9px; min-height: 190px; padding: 16px; border: 2px dashed var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink-soft); font-size: 10px; cursor: default; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.ads-upload-field:focus-visible { outline: 3px solid rgb(113 172 13 / 22%); outline-offset: 2px; }
.ads-upload-field.is-dragging { border-color: var(--success); background: rgb(217 249 82 / 10%); transform: translateY(-1px); }
.ads-upload-field > span { color: var(--ink); font-weight: 800; }
.ads-upload-field input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-dropzone-empty { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 125px; padding: 12px; text-align: center; }
.image-dropzone-empty b { color: var(--ink); font-size: 11px; }
.image-dropzone-empty small { max-width: 38ch; font-size: 9px; line-height: 1.5; }
.image-dropzone-empty button,
.ads-upload-preview button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--accent-dark); font-size: 10px; font-weight: 800; cursor: pointer; }
.ads-upload-preview { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 12px; margin-top: 3px; }
.ads-upload-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ads-upload-preview > div { display: grid; justify-items: start; gap: 9px; }
.ads-upload-preview b { color: var(--ink); font-size: 10px; }

@media (max-width: 820px) {
  .ads-vision-fields { grid-template-columns: 1fr; }
  .ads-clear-bar { align-items: stretch; flex-direction: column; }
  .ads-clear-bar small { text-align: center; }
}
