/* Assets workspace
   Uses the shared workspace theme tokens from app.css. Media preview wells are
   intentionally true black; all surrounding UI follows the active theme. */

#panel-assets,
.product-set-modal {
  --assets-font-ui: 'Hanken Grotesk', Arial, sans-serif;
  --assets-font-display: 'Newsreader', Georgia, serif;
  --assets-radius-action: 11px;
  --assets-radius-control: 10px;
  --assets-radius-compact: 9px;
  font-family: var(--assets-font-ui);
  font-optical-sizing: auto;
}

#panel-assets :where(button, input, select, option),
.product-set-modal :where(button, input, select, option) {
  font-family: var(--assets-font-ui);
}

#panel-assets .btn,
.product-set-modal .btn {
  border-radius: var(--assets-radius-control);
  font-size: 11.5px;
  font-weight: 780;
}

#panel-assets .btn.btn-primary,
.product-set-modal .btn.btn-primary {
  border-radius: var(--assets-radius-action);
}

#panel-assets .btn.btn-sm,
.product-set-modal .btn.btn-sm {
  border-radius: var(--assets-radius-compact);
}

body.assets-workspace-active {
  --assets-filter-surface: var(--control-surface);
  --assets-filter-border: var(--divider);
  --assets-filter-hover: color-mix(in srgb, var(--assets-filter-surface) 92%, var(--text-primary));
  --assets-style-header-bg: linear-gradient(135deg, #fff7e7 0%, #fff1e8 52%, #fcebf2 100%);
  --assets-style-header-accent: linear-gradient(180deg, #f3c45b 0%, #f97316 48%, #ec4899 100%);
  --assets-style-header-edge: #ead8c7;
  --assets-style-header-title: #30271f;
  --assets-style-header-copy: #74685e;
  background: var(--canvas);
  color: var(--text-primary);
}

html[data-theme="dark"] body.assets-workspace-active {
  --assets-style-header-bg: linear-gradient(135deg, #2a2724 0%, #302725 52%, #32252b 100%);
  --assets-style-header-accent: linear-gradient(180deg, #d8a84c 0%, #d76120 48%, #c13f78 100%);
  --assets-style-header-edge: #45413e;
  --assets-style-header-title: #f0ebe4;
  --assets-style-header-copy: #c7bfb6;
}

body.assets-workspace-active .app-workspace,
body.assets-workspace-active #main {
  background: var(--canvas);
  color: var(--text-primary);
}

body.image-beta.assets-workspace-active .app-workspace {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
}

body.image-beta.assets-workspace-active #main {
  flex: 0 0 auto !important;
  min-height: 100%;
  overflow: visible !important;
}

body.image-beta.assets-workspace-active #panel-assets.active {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

body.image-beta.assets-workspace-active #header.storage-active {
  display: none !important;
}

#panel-assets {
  width: 100%;
  color: var(--text-primary);
}

#panel-assets [hidden] {
  display: none !important;
}

#panel-assets :where(button, a, input, select):focus-visible,
.product-set-modal :where(button, input, select):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.assets-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.assets-page-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.assets-page-heading {
  min-width: 0;
}

.assets-page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 0;
}

#panel-assets .assets-page-mobile-toggle {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--elevated-surface);
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  transform: none;
}

#panel-assets .assets-page-mobile-toggle:hover {
  border-color: var(--text-muted);
  background: var(--state-hover);
  color: var(--text-primary);
  transform: none;
}

#panel-assets .assets-page-mobile-toggle {
  display: none;
  right: 50px;
  place-items: center;
}

#panel-assets .assets-page-mobile-toggle svg {
  width: 18px;
  height: 18px;
}

.assets-page-header h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--assets-font-display);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .98;
}

.assets-page-header p:not(.assets-eyebrow) {
  max-width: 610px;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}

.assets-page-meta {
  display: flex;
  align-items: center;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 650;
}

.assets-page-meta #asset-count {
  color: var(--text-secondary);
  font-weight: 800;
}

.assets-creators-section {
  display: grid;
  gap: 15px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--divider);
  border-radius: 18px;
  background: var(--card-surface);
  box-shadow: var(--shadow-xs);
}

.assets-creators-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.assets-creators-head > div {
  display: grid;
  gap: 3px;
}

.assets-creators-eyebrow {
  color: var(--brand-accent, #f97316);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.assets-creators-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--assets-font-display);
  font-size: 29px;
  font-weight: 580;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.assets-creators-head p {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.assets-creators-head > a {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 780;
  text-decoration: none;
}

.assets-creators-head > a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.assets-creators-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assets-creator-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(126px, .8fr) minmax(150px, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background: var(--control-surface);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.assets-creator-card:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.assets-creator-views {
  display: grid;
  min-height: 136px;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
  background: var(--media-preview);
}

.assets-creator-views img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center 24%;
}

.assets-creator-views img:first-child {
  grid-row: 1 / -1;
}

.assets-creator-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
  padding: 16px;
}

.assets-creator-badge {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--state-selected);
  color: var(--text-secondary);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}

.assets-creator-copy > strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assets-creator-copy > small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.assets-creator-action {
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 10.5px;
  font-weight: 820;
}

.assets-creator-skeleton {
  min-height: 136px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background: linear-gradient(100deg, var(--control-surface) 20%, var(--state-hover) 42%, var(--control-surface) 64%);
  background-size: 220% 100%;
  animation: assets-skeleton 1.25s ease-in-out infinite;
}

.assets-creators-unavailable {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--divider);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 11.5px;
  text-align: center;
}

#panel-assets .assets-upload-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.assets-content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr);
  align-items: start;
  gap: 32px;
}

.assets-left-column,
.assets-styles-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 18px;
  box-shadow: var(--shadow-xs);
}

.assets-left-column {
  background: var(--card-surface);
}

.assets-library-head,
.assets-styles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.assets-library-head h2,
.assets-styles-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--assets-font-display);
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.assets-library-head h2,
.assets-styles-head h2 {
  font-size: 26px;
}

.assets-library-head h2 {
  font-size: 40px;
  white-space: nowrap;
}

.assets-library-head {
  align-items: center;
}

.assets-styles-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

#panel-assets .assets-filter-field select,
#panel-assets .assets-search-field input,
#panel-assets .asset-selection-controls input {
  min-height: 40px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  /* background-color, not the shorthand: a select's chevron rides on background-image. */
  background-color: var(--control-surface);
  color: var(--text-primary);
  font: 650 12.5px/1.2 var(--assets-font-ui);
  box-shadow: none;
}

.asset-upload-menu {
  position: relative;
  flex: 0 0 auto;
}

.asset-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--text-primary);
  border-radius: var(--assets-radius-control);
  background: var(--text-primary);
  color: var(--canvas);
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 7px 16px -10px rgba(28, 23, 21, .72) !important;
  transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

.asset-upload-button:hover {
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 11px 22px -12px rgba(28, 23, 21, .82) !important;
  transform: translateY(-2px);
}

.asset-upload-button:active {
  filter: brightness(.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18), 0 3px 8px -7px rgba(28, 23, 21, .72) !important;
  transform: translateY(0);
}

.asset-upload-button:focus-visible {
  outline: 3px solid var(--state-active);
  outline-offset: 2px;
}

.asset-upload-button:disabled {
  cursor: wait;
  opacity: .58;
  transform: none;
}

.asset-upload-button strong {
  color: inherit;
  font-size: 13.5px;
  font-weight: 780;
}

.asset-upload-chevron {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  transition: transform .18s ease;
}

.asset-upload-button:not([aria-expanded="true"]):hover .asset-upload-chevron {
  transform: translateY(2px);
}

.asset-upload-button[aria-expanded="true"] .asset-upload-chevron {
  transform: rotate(180deg);
}

.asset-upload-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  width: 210px;
  padding: 6px;
  border: 1px solid var(--divider);
  border-radius: 11px;
  background: var(--elevated-surface);
  box-shadow: var(--shadow-lg);
}

.asset-upload-options[hidden] {
  display: none;
}

.asset-upload-options button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font: 720 12px/1.2 var(--assets-font-ui);
  text-align: left;
  cursor: pointer;
}

.asset-upload-options button:hover,
.asset-upload-options button:focus-visible {
  outline: 0;
  background: var(--state-hover);
}

.asset-upload-options button:disabled {
  cursor: wait;
  opacity: .55;
}

#panel-assets .assets-status {
  min-height: 0;
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

#panel-assets .assets-status:empty {
  display: none;
}

#panel-assets .assets-status.is-success { color: var(--status-success); }
#panel-assets .assets-status.is-error { color: var(--status-error); }

.asset-upload-queue {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.asset-upload-queue:empty {
  display: none;
}

.asset-upload-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--control-surface);
}

.asset-upload-item-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--state-hover);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
}

.asset-upload-item.is-uploading .asset-upload-item-icon {
  border: 2px solid var(--divider);
  border-top-color: var(--status-info);
  background: transparent;
  color: transparent;
  animation: assets-spin .8s linear infinite;
}

.asset-upload-item.is-complete .asset-upload-item-icon {
  background: var(--status-success);
  color: var(--card-surface);
}

.asset-upload-item.is-error .asset-upload-item-icon {
  background: var(--status-error);
  color: var(--card-surface);
}

.asset-upload-item-copy {
  min-width: 0;
}

.asset-upload-item-name,
.asset-upload-item-state {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-upload-item-name {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
}

.asset-upload-item-state {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 10.5px;
}

.asset-upload-retry {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--divider);
  border-radius: var(--assets-radius-compact);
  background: var(--elevated-surface);
  color: var(--text-primary);
  font: 800 11px/1 var(--assets-font-ui);
  cursor: pointer;
}

.assets-library {
  padding: 24px;
}

.asset-result-count {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 650;
}

.assets-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: end;
  gap: 9px;
  margin: 18px 0 20px;
}

.assets-left-column .assets-toolbar {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .4fr) minmax(120px, .4fr);
}

.assets-left-column .assets-clear-filters {
  grid-column: 1 / -1;
  justify-self: start;
}

.assets-search-field {
  position: relative;
  display: block;
  min-width: 0;
}

.assets-search-field svg {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

#panel-assets .assets-search-field input {
  width: 100%;
  padding: 0 35px;
}

.assets-search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}

.assets-filter-field {
  display: grid;
  gap: 4px;
}

.assets-filter-field > span {
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#panel-assets .assets-filter-field select {
  min-width: 142px;
  padding: 0 32px 0 10px;
  border-color: var(--assets-filter-border) !important;
  background-color: var(--assets-filter-surface) !important;
}

#panel-assets .assets-filter-field select:hover {
  background-color: var(--assets-filter-hover) !important;
}

#panel-assets .assets-clear-filters {
  min-height: 40px;
  border-color: var(--divider);
  background: var(--elevated-surface);
  color: var(--text-secondary);
  white-space: nowrap;
}

.asset-selection-actions {
  display: grid;
  gap: 11px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid var(--state-active);
  border-radius: 13px;
  background: var(--state-selected);
}

.asset-selection-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.asset-selection-summary strong {
  color: var(--text-primary);
  font-size: 12.5px;
}

.asset-selection-summary span {
  color: var(--text-secondary);
  font-size: 11.5px;
}

.asset-selection-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

#panel-assets .asset-selection-controls input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0 11px;
}

#panel-assets .asset-selection-controls .btn {
  min-height: 40px;
  white-space: nowrap;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  align-content: start;
  gap: 24px 16px;
  min-height: 210px;
  padding: 0;
}

.asset-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.asset-card:hover .asset-preview-well,
.asset-card:focus-within .asset-preview-well,
.asset-card:hover .product-set-preview,
.asset-card:focus-within .product-set-preview {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.asset-card.is-selected {
  background: transparent;
}

.asset-card.is-selected .asset-preview-well {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px var(--state-active), var(--shadow-sm);
}

.asset-preview-well {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: var(--media-preview);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.asset-preview-well img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-preview-well.is-broken img {
  display: none;
}

.asset-preview-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: var(--control-surface);
  color: var(--text-muted);
  text-align: center;
}

.asset-preview-well.is-broken .asset-preview-fallback {
  display: grid;
}

.asset-preview-fallback svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 7px;
}

.asset-preview-fallback strong,
.asset-preview-fallback span {
  display: block;
}

.asset-preview-fallback strong {
  color: var(--text-secondary);
  font-size: 12px;
}

.asset-preview-fallback span {
  margin-top: 2px;
  font-size: 10.5px;
}

.asset-type-badge,
.product-set-badge {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  max-width: calc(100% - 58px);
  overflow: hidden;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 12, 12, .78);
  color: #fff;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .05em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
}

.asset-select-toggle {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--elevated-surface);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.asset-select-toggle:hover {
  border-color: var(--focus-ring);
  background: var(--state-hover);
  color: var(--text-primary);
}

.asset-select-toggle.selected {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}

.asset-card-body {
  min-width: 0;
  padding: 10px 2px 0;
}

.asset-card-name,
.product-set-title {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-card-meta,
.product-set-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.asset-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-card-meta .is-unavailable {
  color: var(--status-error);
  font-weight: 800;
}

.asset-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 0 0;
}

.asset-card-actions :where(a, button),
.product-set-main {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: var(--assets-radius-compact);
  background: transparent;
  color: var(--text-secondary);
  font: 780 10.5px/1 var(--assets-font-ui);
  text-decoration: none;
  cursor: pointer;
}

.asset-card-actions :where(a, button):hover {
  border-color: transparent;
  background: var(--state-hover);
  color: var(--text-primary);
}

.asset-card-actions > :first-child {
  padding-left: 2px;
}

.asset-card-actions .asset-danger-action {
  color: var(--status-error);
}

.asset-card-actions :where(button, a):disabled {
  color: var(--text-disabled);
  cursor: wait;
  opacity: .68;
}

.asset-inline-rename {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px;
  align-items: center;
  width: 100%;
}

#panel-assets .asset-inline-rename input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--focus-ring);
  border-radius: var(--assets-radius-compact);
  background: var(--control-surface);
  color: var(--text-primary);
  font: 650 11.5px/1.2 var(--assets-font-ui);
}

#panel-assets .asset-inline-rename .btn {
  min-height: 34px;
  padding: 0 9px;
  font-size: 10.5px;
}

.product-set-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.product-set-main:hover .product-set-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#panel-assets .product-set-preview {
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: var(--media-preview);
  transition: border-color .16s ease, box-shadow .16s ease;
}

#panel-assets .product-set-preview img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  background: var(--media-preview);
}

#panel-assets .product-set-preview img:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.product-set-empty-preview {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  place-items: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.asset-empty-state,
.asset-no-results,
.asset-error-state {
  display: grid;
  min-height: 230px;
  grid-column: 1 / -1;
  align-content: center;
  justify-items: center;
  padding: 34px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  text-align: center;
}

.asset-state-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--state-hover);
  color: var(--text-secondary);
}

.asset-state-icon svg {
  width: 25px;
  height: 25px;
}

.asset-empty-state h3,
.asset-no-results h3,
.asset-error-state h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--assets-font-display);
  font-size: 20px;
  font-weight: 580;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.asset-empty-state p,
.asset-no-results p,
.asset-error-state p {
  max-width: 460px;
  margin: 6px 0 15px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.asset-empty-state .btn,
.asset-no-results .btn,
.asset-error-state .btn {
  min-height: 40px;
}

.asset-skeleton {
  min-height: 286px;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background:
    linear-gradient(var(--media-preview), var(--media-preview)) 0 0 / 100% 162px no-repeat,
    linear-gradient(100deg, transparent 25%, var(--state-hover) 45%, transparent 65%) 0 0 / 220% 100%,
    var(--control-surface);
  animation: assets-skeleton 1.3s ease-in-out infinite;
}

.assets-styles-section {
  padding: 0;
  background: var(--card-surface);
}

.assets-styles-head {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--assets-style-header-edge);
  background: var(--assets-style-header-bg);
}

.assets-styles-head::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--assets-style-header-accent);
}

.assets-styles-heading-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

#panel-assets .assets-styles-head h2 {
  margin: 0;
  color: var(--assets-style-header-title);
  font-size: 34px;
  line-height: 1.05;
}

#panel-assets .assets-styles-head p {
  margin: 5px 0 0;
  color: var(--assets-style-header-copy);
  font-size: 11.5px;
  line-height: 1.35;
}

.assets-style-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
}

#panel-assets .assets-style-grid > .card {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
}

#panel-assets .assets-create-card {
  padding: 0;
  border: 0;
}

#panel-assets .assets-saved-styles {
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

#panel-assets .assets-saved-styles .card-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--text-primary);
  font-family: var(--assets-font-display);
  font-size: 20px;
  font-weight: 580;
  letter-spacing: -.015em;
  line-height: 1.15;
  text-transform: none;
}

#panel-assets .assets-upload-wide {
  width: 100%;
  min-height: 76px;
  justify-content: center;
  gap: 10px;
  border-color: transparent !important;
  border-radius: var(--assets-radius-action);
  background: var(--text-primary) !important;
  color: var(--canvas) !important;
  font-size: 19px !important;
  font-weight: 780 !important;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 7px 16px -10px rgba(28, 23, 21, .72) !important;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

#panel-assets .assets-upload-wide > svg {
  width: 26px;
  height: 26px;
}

#panel-assets .assets-upload-wide:hover {
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 11px 22px -12px rgba(28, 23, 21, .82) !important;
  transform: translateY(-2px);
}

#panel-assets .assets-upload-wide:active {
  filter: brightness(.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18), 0 3px 8px -7px rgba(28, 23, 21, .72) !important;
  transform: translateY(0);
}

#panel-assets .assets-upload-wide:focus-within {
  outline: 3px solid var(--state-active);
  outline-offset: 2px;
}

.assets-saved-styles-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.assets-muted-state {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  min-height: 108px;
  padding: 30px 18px;
  box-sizing: border-box;
  border: 1px dashed var(--divider);
  border-radius: 12px;
  background: var(--control-surface);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.custom-style-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--divider);
}

.custom-style-row:last-child {
  border-bottom: 0;
}

.custom-style-thumb {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--divider);
  border-radius: 9px;
  background: var(--media-preview);
  object-fit: contain;
}

.custom-style-thumb.is-broken {
  background: var(--control-surface);
  color: var(--text-muted);
}

.custom-style-fallback {
  background: var(--control-surface);
  color: var(--text-muted);
}

.custom-style-fallback svg {
  width: 22px;
  height: 22px;
}

.custom-style-meta {
  min-width: 0;
}

.custom-style-meta strong,
.custom-style-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-style-meta strong {
  color: var(--text-primary);
  font-size: 12.5px;
}

.custom-style-meta span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
}

.custom-style-actions {
  display: flex;
  gap: 5px;
}

.custom-style-actions .btn {
  min-height: 34px;
  padding: 0 9px;
  border-color: var(--divider);
  border-radius: var(--assets-radius-compact);
  background: var(--elevated-surface);
  color: var(--text-secondary);
}

.custom-style-actions .asset-danger-action {
  color: var(--status-error);
}

/* Existing product-set builder and dialog behavior, updated to semantic theme
   surfaces and comfortable responsive dimensions. */
#panel-assets .product-set-builder {
  gap: 8px;
  margin-top: 0;
}

#panel-assets .product-set-row {
  border-color: var(--divider);
  background: var(--card-surface);
}

#panel-assets .product-set-row img,
.product-set-dialog-row img {
  border-color: var(--divider);
  background: var(--media-preview);
  object-fit: contain;
}

#panel-assets .product-set-name,
.product-set-dialog .product-set-name,
.product-set-dialog-title {
  color: var(--text-primary);
}

.product-set-dialog-title {
  font-family: var(--assets-font-display);
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.product-set-modal {
  background: var(--overlay);
}

.product-set-dialog {
  border: 1px solid var(--divider);
  background: var(--elevated-surface);
  color: var(--text-primary);
}

.product-set-dialog-row {
  border-color: var(--divider);
  background: var(--control-surface);
}

.product-set-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}

.product-set-add-row .btn {
  flex: 0 0 auto;
}

.product-set-add-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--overlay);
}

.product-set-add-dialog {
  display: grid;
  width: min(1120px, 100%);
  height: min(820px, calc(100vh - 32px));
  overflow: auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--divider);
  border-radius: 22px;
  background: var(--elevated-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.product-set-add-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-set-add-head h2 {
  margin: 0;
  font-family: var(--assets-font-display);
  font-size: 24px;
  font-weight: 580;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.product-set-add-head p {
  max-width: 520px;
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.product-set-add-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 18px;
}

.product-set-add-section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: var(--control-surface);
}

.product-set-add-section h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 820;
}

.product-set-add-assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  max-height: none;
  overflow: auto;
}

.product-set-add-asset {
  display: grid;
  grid-template-columns: auto 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--divider);
  border-radius: 9px;
  background: var(--card-surface);
  cursor: pointer;
}

.product-set-add-asset:has(input:checked) {
  border-color: var(--brand-accent, #f97316);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-accent, #f97316) 18%, transparent);
}

.product-set-add-asset input {
  accent-color: var(--brand-accent, #f97316);
}

.product-set-add-asset img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--media-preview);
}

.product-set-add-asset span {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-set-add-file-label {
  display: grid;
  align-content: center;
  min-height: 92px;
  gap: 5px;
  padding: 14px;
  border: 1px dashed var(--divider);
  border-radius: 10px;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
}

.product-set-add-file-label:hover {
  border-color: var(--text-muted);
  background: var(--state-hover);
}

.product-set-add-file-label strong {
  color: var(--text-primary);
  font-size: 12px;
}

.product-set-add-file-label small {
  font-size: 10px;
}

#product-set-add-files {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.product-set-add-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .product-set-add-modal {
    padding: 0;
  }

  .product-set-add-dialog {
    width: 100%;
    height: 100%;
    border-width: 0;
    border-radius: 0;
    padding: 18px 14px;
  }

  .product-set-add-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-set-add-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.product-set-dialog :where(input, select) {
  border-color: var(--divider);
  background: var(--card-surface);
  color: var(--text-primary);
}

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

@keyframes assets-skeleton {
  0% { background-position: 0 0, 130% 0, 0 0; }
  100% { background-position: 0 0, -130% 0, 0 0; }
}

@media (max-width: 980px) {
  .assets-content-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .assets-page-heading {
    padding-right: 100px;
  }

  #panel-assets .assets-page-mobile-toggle {
    display: grid;
  }
}

@media (max-width: 820px) {
  .assets-left-column .assets-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(135px, .45fr);
  }

  .assets-clear-filters {
    width: 100%;
  }

  .assets-creators-list {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 620px) {
  body.image-beta.assets-workspace-active #main {
    padding: 22px 14px 48px;
  }

  .assets-page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .assets-page-actions {
    width: 100%;
    padding-top: 0;
  }

  .assets-page-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .assets-page-meta [aria-hidden="true"] {
    display: none;
  }

  .assets-creators-section {
    padding: 16px;
  }

  .assets-creators-head {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }

  .assets-creator-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .asset-selection-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .asset-upload-button {
    min-width: 128px;
    min-height: 44px;
    padding-inline: 12px;
  }

  .asset-upload-button strong {
    font-size: 12.5px;
  }

  .assets-library-head {
    align-items: center;
    gap: 12px;
  }

  .assets-library-head h2 {
    font-size: 32px !important;
  }

  #panel-assets .assets-styles-head h2 {
    font-size: 28px !important;
  }

  .assets-left-column .assets-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .assets-search-field,
  .assets-clear-filters {
    grid-column: 1 / -1;
  }

  #panel-assets .assets-filter-field select {
    width: 100%;
    min-width: 0;
  }

  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 10px;
  }

  .asset-card-actions :where(a, button) {
    min-height: 32px;
  }

  .asset-selection-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-inline-rename {
    grid-template-columns: 1fr 1fr;
  }

  .asset-inline-rename input {
    grid-column: 1 / -1;
  }

  .custom-style-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .custom-style-thumb {
    width: 52px;
    height: 52px;
  }

  .custom-style-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .asset-selection-controls input {
    flex-basis: auto;
  }

}

@media (max-width: 420px) {
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .asset-preview-well,
  #panel-assets .product-set-preview {
    aspect-ratio: 16 / 11;
  }

  #panel-assets .product-set-row,
  .product-set-dialog-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  #panel-assets .product-set-row img,
  .product-set-dialog-row img {
    width: 58px;
    height: 58px;
  }

  #panel-assets .product-set-row select,
  .product-set-dialog-row select {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #panel-assets *,
  #panel-assets *::before,
  #panel-assets *::after,
  .product-set-modal * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 2026 Library composition — one calm canvas matching the unified Assets brief. */
body.assets-workspace-active {
  --assets-library-paper: color-mix(in srgb, var(--canvas) 93%, #efe8dd);
}

body.image-beta.assets-workspace-active #main {
  padding: 34px clamp(24px, 3.5vw, 58px) 70px;
  background: var(--assets-library-paper);
}

#panel-assets {
  max-width: 1540px;
  margin: 0 auto;
}

.assets-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}

.assets-page-eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.assets-page-header h1 {
  font-size: clamp(42px, 4.3vw, 62px);
}

.assets-page-header p:not(.assets-eyebrow) {
  max-width: 690px;
  margin-top: 13px;
  font-size: 14px;
}

.assets-page-actions {
  order: 2;
  width: 0;
}

#panel-assets .assets-page-mobile-toggle {
  position: static;
}

.asset-upload-menu {
  z-index: 20;
  order: 3;
}

.asset-upload-button {
  min-width: 188px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
}

.asset-upload-options {
  top: calc(100% + 10px);
  width: 290px;
  padding: 18px;
  border-radius: 17px;
}

.asset-upload-options-title {
  display: block;
  padding: 0 8px 10px;
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.asset-upload-options-title.is-accent {
  padding-top: 2px;
  color: var(--status-error);
}

.asset-upload-options-divider {
  display: block;
  height: 1px;
  margin: 10px 4px 14px;
  background: var(--divider);
}

.asset-upload-options button {
  display: grid;
  min-height: 56px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
}

.asset-upload-options button > i {
  color: var(--text-primary);
  font-size: 17px;
  font-style: normal;
  text-align: center;
}

.asset-upload-options button > span {
  display: grid;
  gap: 2px;
}

.asset-upload-options button b {
  font-size: 13px;
  font-weight: 820;
}

.asset-upload-options button small {
  color: var(--text-muted);
  font-size: 11px;
}

.assets-content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.assets-left-column,
.assets-styles-section {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.assets-library {
  padding: 0;
}

.assets-library-head {
  margin-bottom: 22px;
}

.assets-library-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.assets-library-head h2 {
  font-size: 28px;
}

.assets-library-title-row #asset-count {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.asset-result-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.assets-toolbar,
.assets-left-column .assets-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px 165px;
  gap: 12px;
  margin: 0 0 22px;
}

#panel-assets .assets-search-field input,
#panel-assets .assets-filter-field select {
  min-height: 46px;
  border-radius: 12px !important;
  background-color: var(--elevated-surface) !important;
}

.assets-filter-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.asset-card {
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 15px;
  background: var(--elevated-surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.asset-card:hover,
.asset-card:focus-within {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.asset-preview-well,
#panel-assets .product-set-preview {
  aspect-ratio: 1 / 1;
  border: 0;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  background: #fff;
}

.asset-card-body {
  padding: 12px 14px 4px;
}

.asset-card-name {
  font-size: 12px;
}

.asset-card-actions {
  gap: 5px;
  padding: 7px 12px 13px;
}

.asset-card-actions :where(a, button) {
  min-height: 34px;
  padding: 0 10px;
  border-color: var(--divider);
  background: var(--card-surface);
}

.asset-card-actions > :first-child {
  padding-left: 10px;
  background: var(--state-selected);
}

.asset-upload-tile {
  display: grid;
  min-height: 100%;
  aspect-ratio: 4 / 5.45;
  place-content: center;
  justify-items: center;
  gap: 13px;
  border: 1px dashed var(--text-muted);
  border-radius: 15px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.asset-upload-tile:hover {
  background: var(--state-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.asset-upload-tile > span {
  font-size: 26px;
  font-weight: 350;
}

.asset-upload-tile > strong {
  font-size: 11px;
}

.asset-empty-state {
  min-height: 290px;
}

.assets-styles-section {
  display: grid;
  gap: 18px;
}

.assets-styles-head {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.assets-styles-head::before {
  content: none;
}

.assets-styles-heading-copy > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

#panel-assets .assets-styles-head h2 {
  color: var(--text-primary);
  font-size: 28px;
}

.assets-styles-heading-copy > div > span {
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--status-error) 8%, var(--elevated-surface));
  color: var(--status-error);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#panel-assets .assets-styles-head p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.assets-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  padding: 0;
}

#panel-assets .assets-create-card {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 5.45;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#panel-assets .assets-upload-wide {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  gap: 11px;
  padding: 20px;
  border: 1px dashed var(--text-muted) !important;
  border-radius: 15px;
  background: transparent !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.assets-style-create-icon {
  display: grid;
  width: auto;
  height: auto;
  margin: 0;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 27px;
  font-weight: 350;
}

#panel-assets .assets-upload-wide > strong {
  color: inherit;
  font-family: var(--assets-font-ui);
  font-size: 11px;
  font-weight: 780;
}

#panel-assets .assets-upload-wide > small {
  color: inherit;
  font-size: 10px;
}

#panel-assets .assets-upload-wide:hover {
  border-color: var(--text-primary) !important;
  background: var(--state-hover) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
  filter: none;
  transform: translateY(-2px);
}

#panel-assets .assets-upload-wide:active {
  box-shadow: none !important;
  filter: none;
  transform: translateY(0);
}

#panel-assets .assets-saved-styles {
  display: contents;
}

.assets-saved-voice-clones {
  display: contents;
}

.assets-voice-clones-section .assets-style-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 176px;
}

#panel-assets .assets-voice-clones-section .assets-create-card {
  height: 176px;
  min-height: 176px;
  aspect-ratio: auto;
}

.voice-clone-saved-card {
  position: relative;
  min-width: 0;
  height: 176px;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 15px;
  background: var(--elevated-surface);
  box-shadow: var(--shadow-xs);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.voice-clone-saved-summary {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px 54px;
}

.voice-clone-saved-card::after {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--state-selected) 70%, transparent);
  content: "";
  filter: blur(3px);
  inset: -54px -47px auto auto;
  pointer-events: none;
}

.voice-clone-card-edit-action:focus-visible,
.voice-clone-card-preview:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.voice-clone-card-preview {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--elevated-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  inset: auto auto 14px 16px;
}

.voice-clone-card-preview:hover,
.voice-clone-card-preview.is-playing {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.voice-clone-card-preview i {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
}

.voice-clone-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-clone-card-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--text-primary);
  color: var(--canvas);
  box-shadow: 0 10px 22px -14px rgba(30, 25, 22, .8);
}

.voice-clone-card-mark svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.voice-clone-card-edit-action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-width: 68px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--card-surface);
  color: var(--text-secondary);
  font: 750 11px/1 var(--assets-font-ui);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.voice-clone-card-edit-action svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-clone-saved-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 5px;
}

.voice-clone-saved-copy > strong {
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--assets-font-ui);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-clone-saved-copy > small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 10px;
}

.voice-clone-card-ready {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--status-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-success) 10%, transparent);
}

.voice-clone-card-edit-action:hover,
.voice-clone-card-edit-action:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--divider));
  background: color-mix(in srgb, var(--accent) 8%, var(--card-surface));
  color: var(--accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 12%, transparent);
}

.assets-saved-styles-head {
  display: none;
}

#custom-styles-list {
  display: contents;
}

.assets-style-loading-state,
.assets-style-empty-state {
  display: none;
}

.custom-style-row {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--divider);
  border-radius: 15px;
  background: var(--elevated-surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.custom-style-row:hover,
.custom-style-row:focus-within {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.custom-style-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--media-preview);
}

.custom-style-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.custom-style-visual > span {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(35, 29, 26, .82);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.custom-style-meta {
  padding: 13px 14px 15px;
}

.custom-style-meta strong {
  font-size: 12px;
}

.custom-style-actions {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
}

.custom-style-actions .btn:first-child {
  display: none;
}

.custom-style-actions .asset-danger-action {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: var(--status-error);
  font-size: 18px;
}

.assets-creators-section {
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.assets-creators-head {
  align-items: baseline;
}

.assets-creators-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.assets-creators-head h2 {
  font-size: 28px;
}

.assets-creators-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.assets-creators-list {
  gap: 16px;
}

.assets-creator-card {
  min-height: 150px;
  grid-template-columns: 165px minmax(0, 1fr);
  border-radius: 15px;
  background: var(--elevated-surface);
}

.assets-creator-views {
  min-height: 150px;
}

.assets-creator-copy {
  padding: 20px;
}

.assets-creator-copy > strong {
  font-family: var(--assets-font-display);
  font-size: 19px;
}

.assets-creator-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-self: start;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--elevated-surface);
  font-size: 13.5px;
  font-weight: 820;
  line-height: 1;
  transition: box-shadow .18s ease, transform .18s ease;
}

.assets-creator-card:hover .assets-creator-action,
.assets-creator-card:focus-visible .assets-creator-action {
  box-shadow: 0 8px 18px -12px rgba(48, 39, 31, .72);
  transform: translateY(-1px);
}

.asset-upload-modal {
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(38, 32, 28, .43);
  backdrop-filter: blur(6px);
}

.voice-clone-modal {
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
  background: rgba(38, 32, 28, .43);
  backdrop-filter: blur(6px);
}

.asset-upload-modal[hidden],
.voice-clone-modal[hidden] {
  display: none !important;
}

body.asset-upload-modal-open,
body.voice-clone-modal-open {
  overflow: hidden;
}

.asset-upload-dialog {
  display: grid;
  width: min(610px, 100%);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--divider);
  border-radius: 22px;
  background: var(--elevated-surface);
  box-shadow: 0 35px 85px -35px rgba(31, 25, 21, .68);
  animation: assets-dialog-in .2s ease both;
}

.voice-clone-dialog {
  display: grid;
  width: min(1280px, 100%);
  gap: 22px;
  max-height: none;
  overflow: visible;
  padding: 28px;
  border: 1px solid var(--divider);
  border-radius: 22px;
  background: var(--elevated-surface);
  box-shadow: 0 35px 85px -35px rgba(31, 25, 21, .68);
  animation: assets-dialog-in .2s ease both;
}

.voice-clone-dialog > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.voice-clone-dialog-eyebrow {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.voice-clone-dialog h2 {
  margin: 3px 0 0;
  font-family: var(--assets-font-display);
  font-size: 29px;
  font-weight: 600;
}

.voice-clone-dialog > header button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 27px;
  cursor: pointer;
}

#voice-clone-modal-description {
  margin: -10px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.voice-clone-identity-fields {
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(0, 1.18fr);
  align-items: end;
  gap: 18px;
}

.voice-clone-name-field {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  gap: 7px;
}

.voice-clone-identity-fields.is-editing .voice-clone-name-field {
  grid-column: auto;
}

.voice-clone-name-field > span {
  color: #6f6761;
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0;
  text-transform: none;
}

.voice-clone-name-field > span small {
  margin-left: 7px;
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#voice-clone-modal #voice-clone-name {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 15px !important;
  appearance: none;
  border: 1px solid #e8ddd4 !important;
  border-radius: 11px !important;
  outline: none !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #18181b !important;
  font: 600 14px/1.55 var(--assets-font-ui);
  box-shadow: inset 0 1px 2px rgba(24, 24, 27, .025) !important;
  transition: border-color .16s ease, box-shadow .16s ease;
}

#voice-clone-modal #voice-clone-name::placeholder {
  color: #a5a5ae;
  font-weight: 500;
  opacity: 1;
}

#voice-clone-modal #voice-clone-name:hover {
  border-color: #ddd0c5 !important;
}

#voice-clone-modal #voice-clone-name:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .09) !important;
}

#panel-assets .voice-clone-name-field input:focus-visible,
#panel-assets .voice-clone-language-options input:focus-visible {
  outline: none;
}

.voice-clone-language-field {
  display: grid;
  min-width: 0;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.voice-clone-language-field legend {
  margin-bottom: 7px;
  color: #6f6761;
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0;
  text-transform: none;
}

.voice-clone-language-field legend small {
  margin-left: 7px;
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.voice-clone-language-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.voice-clone-language-options label {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.voice-clone-language-options input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.voice-clone-language-option {
  position: relative;
  display: grid;
  box-sizing: border-box;
  min-height: 44px;
  place-content: center;
  gap: 2px;
  padding: 5px 9px;
  border: 1px solid #dcd6cf;
  border-radius: 8px;
  background: #fff;
  color: #6f6761;
  text-align: center;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.voice-clone-language-option::after {
  display: none;
}

.voice-clone-language-options label:hover .voice-clone-language-option {
  border-color: #cfc6bc;
  background: #fbfaf8;
  color: #3f3a36;
}

.voice-clone-language-options input:checked + .voice-clone-language-option {
  border-color: #e85d24;
  background: #fff7f2;
  color: #b94317;
  box-shadow: inset 0 0 0 1px rgba(232, 93, 36, .08);
}

.voice-clone-language-options input:focus-visible + .voice-clone-language-option {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.voice-clone-language-option strong {
  font-size: 12px;
  font-weight: 740;
  line-height: 1.05;
}

.voice-clone-language-option small {
  color: #817872;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.voice-clone-language-options input:checked + .voice-clone-language-option small {
  color: #b96846;
}

html[data-theme="dark"] .voice-clone-name-field > span,
html[data-theme="dark"] .voice-clone-language-field legend {
  color: #d2cbc4;
}

html[data-theme="dark"] #voice-clone-modal #voice-clone-name {
  border-color: #514b47 !important;
  background-color: #302e2d !important;
  color: #f0ebe4 !important;
}

html[data-theme="dark"] #voice-clone-modal #voice-clone-name::placeholder {
  color: #928b84;
}

html[data-theme="dark"] .voice-clone-language-option {
  border-color: #514b47;
  background: #302e2d;
  color: #f0ebe4;
}

html[data-theme="dark"] .voice-clone-language-options label:hover .voice-clone-language-option {
  border-color: #665d56;
  background: #353231;
}

html[data-theme="dark"] .voice-clone-language-options input:checked + .voice-clone-language-option {
  border-color: #e85d24;
  background: #402a21;
  color: #ff9a6c;
}

.voice-clone-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.voice-clone-sample-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(126px, 1fr) auto;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background: var(--card-surface);
}

.voice-clone-sample-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.voice-clone-sample-card > header > div {
  display: grid;
  gap: 2px;
}

.voice-clone-sample-card > header span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.voice-clone-sample-card > header strong {
  color: var(--text-primary);
  font-size: 12px;
}

.voice-clone-sample-card > header em {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--state-selected);
  color: var(--text-secondary);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.voice-clone-sample-card blockquote {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--assets-font-display);
  font-size: 14px;
  line-height: 1.5;
}

.voice-clone-capture {
  display: grid;
  grid-column: 1;
  grid-row: 3;
  align-content: start;
  gap: 10px;
}

.voice-clone-source-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 106px;
  align-items: stretch;
  gap: 8px;
}

.voice-clone-source-button {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  place-content: center;
  justify-items: center;
  gap: 6px;
  margin: 0;
  padding: 12px 8px;
  appearance: none;
  border: 1px dashed var(--text-muted);
  border-radius: 11px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.voice-clone-source-button:hover,
.voice-clone-source-button:focus-visible,
.voice-clone-upload-slot:focus-within {
  border-color: var(--text-primary);
  background: var(--state-hover);
  color: var(--text-primary);
  outline: none;
}

.voice-clone-source-button:disabled,
.voice-clone-source-button[aria-disabled="true"] {
  cursor: default;
  opacity: .48;
}

.voice-clone-source-button > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--state-selected);
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}

.voice-clone-record-button > span {
  width: 13px;
  height: 13px;
  margin: 9px;
  border-radius: 50%;
  background: var(--status-error);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--status-error) 11%, transparent);
}

.voice-clone-record-button[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--status-error);
  background: color-mix(in srgb, var(--status-error) 6%, var(--elevated-surface));
  color: var(--status-error);
}

.voice-clone-record-button[aria-pressed="true"] > span {
  animation: voice-clone-recording-pulse 1.15s ease-in-out infinite;
}

.voice-clone-source-button > strong {
  font-size: 11px;
}

.voice-clone-source-button > small {
  max-width: 130px;
  overflow: hidden;
  color: inherit;
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-clone-selection {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--status-success) 34%, var(--divider));
  border-radius: 10px;
  background: color-mix(in srgb, var(--status-success) 7%, var(--elevated-surface));
}

.voice-clone-selection[hidden] {
  display: none;
}

.voice-clone-selection-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--status-success);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.voice-clone-selection-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.voice-clone-selection-copy strong,
.voice-clone-selection-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-clone-selection-copy strong {
  color: var(--text-primary);
  font-size: 10px;
}

.voice-clone-selection-copy small {
  color: var(--text-muted);
  font-size: 9px;
}

.voice-clone-selection audio {
  width: min(170px, 19vw);
  height: 32px;
}

.voice-clone-selection > [data-voice-clone-remove] {
  min-height: 30px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.voice-clone-selection > [data-voice-clone-remove]:hover {
  color: var(--status-error);
}

@keyframes voice-clone-recording-pulse {
  0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--status-error) 10%, transparent);transform: scale(.92); }
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--status-error) 4%, transparent);transform: scale(1); }
}

.voice-clone-consent-note {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--divider));
  border-radius: 12px;
  background: var(--state-selected);
}

.voice-clone-consent-note label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.voice-clone-consent-note input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.voice-clone-consent-note span {
  display: grid;
  gap: 3px;
}

.voice-clone-consent-note strong,
.voice-clone-consent-note small {
  display: block;
}

.voice-clone-consent-note strong {
  font-size: 11px;
}

.voice-clone-consent-note small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.voice-clone-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.voice-clone-dialog > footer .btn {
  min-width: 106px;
  min-height: 46px;
}

.asset-upload-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asset-upload-dialog h2 {
  margin: 0;
  font-family: var(--assets-font-display);
  font-size: 29px;
  font-weight: 600;
}

.asset-upload-dialog > header button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 27px;
  cursor: pointer;
}

.asset-upload-dropzone {
  display: grid;
  min-height: 180px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed var(--text-muted);
  border-radius: 15px;
  background: var(--card-surface);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}

.asset-upload-dropzone:hover,
.asset-upload-dropzone.is-dragging {
  border-color: var(--text-primary);
  background: var(--state-hover);
  color: var(--text-primary);
}

.asset-upload-dropzone > strong {
  font-size: 14px;
  font-weight: 650;
}

.asset-upload-dropzone > small {
  font-size: 10px;
}

.asset-upload-kind {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.asset-upload-kind legend {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.asset-upload-kind > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-upload-kind button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--card-surface);
  color: var(--text-secondary);
  font: 750 12px/1 var(--assets-font-ui);
  cursor: pointer;
}

.asset-upload-kind button[aria-pressed="true"] {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--canvas);
}

.asset-upload-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.asset-upload-dialog-actions .btn {
  min-width: 106px;
  min-height: 46px;
}

@keyframes assets-dialog-in {
  from { opacity: 0;transform: translateY(10px) scale(.985); }
  to { opacity: 1;transform: none; }
}

@media (max-width: 820px) {
  .assets-page-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .assets-page-actions {
    display: flex;
    width: auto;
    justify-self: start;
  }
  .assets-style-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .assets-creators-list { grid-template-columns: minmax(0, 1fr); }
  .voice-clone-identity-fields { grid-template-columns: minmax(0, 1fr); }
  .voice-clone-samples { grid-template-columns: minmax(0, 1fr); }
  .voice-clone-sample-card { grid-template-rows: auto auto auto; }
}

@media (max-width: 620px) {
  body.image-beta.assets-workspace-active #main { padding: 22px 14px 48px; }
  .assets-page-header { align-items: start; }
  .assets-page-heading { grid-column: 1 / -1;padding-right: 0; }
  .asset-upload-menu { justify-self: end; }
  .asset-upload-button { min-width: 154px;min-height: 46px; }
  .assets-toolbar,.assets-left-column .assets-toolbar { grid-template-columns: 1fr 1fr; }
  .assets-search-field { grid-column: 1 / -1; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assets-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assets-creators-head,.assets-creators-head > div { align-items: flex-start;flex-direction: column;gap: 5px; }
  .assets-creator-card { grid-template-columns: 120px minmax(0, 1fr); }
  .assets-creator-copy { padding: 14px; }
  .asset-upload-dialog { gap: 18px;padding: 22px; }
  .voice-clone-dialog { gap: 18px;padding: 22px; }
  .voice-clone-source-options { grid-auto-rows: 108px; }
  .asset-upload-kind > div { display: grid;grid-template-columns: 1fr 1fr; }
  .asset-upload-kind button { padding: 0 10px; }
}

@media (max-width: 420px) {
  .asset-grid { grid-template-columns: minmax(0, 1fr); }
  .assets-style-grid { grid-template-columns: minmax(0, 1fr); }
  .assets-creator-card { grid-template-columns: 104px minmax(0, 1fr); }
  .voice-clone-language-options { grid-template-columns: minmax(0, 1fr); }
}
